RE: {Altair_B - 5333} -: Remote Desktop Connection and xrdp

3 views
Skip to first unread message

John Murrell

unread,
Feb 6, 2015, 3:44:45 AM2/6/15
to alta...@googlegroups.com

Hi Roy, that is how it works. I think windows has a wizard to set up a peer to peer network without a router but that may not work with a RasPi at one end ?

 

In essence once you have a crossover all you need is a DHCP server I think though if both have fixed and known IP addresses I am not sure that is required ?

 

I was thinking more of operating it completely headless – setting the Python programme to run when it boots and then executing the shutdown command as the last instruction of the Python Programme as it is about to exit. Have not tried that yet though. Alternative would be to execute the shutdown command from one of the PiFace switches – that way at least I could edit the programme if required. The first part should be trivial but the second may be more challenging ?

 

Running my NLC time lapse programme from boot means I would have to set the parameters beforehand but for that application they seem to be fixed now after some experiments ( High ISO, wide open lens, 30 sec exposure and allow automatic exposure measuring).

 

Longer term I have a Display for the Pi that I intend to add but it will not fit in my present case and I have not seen any with a PiFace & a display. I also need to add a RTC card to the pi though I have now seen one so small it fits over the IO pins and then allows you to put the normal PiFace on top of it. 

 

So many things to do ! Sounds like we need a maker workshop !

 

John Murrell

Astronomer Without Portfolio

Website www.JohnMurrell.org.uk

 

 

From: alta...@googlegroups.com [mailto:alta...@googlegroups.com] On Behalf Of Roy Easto
Sent: 05 February 2015 22:36
To: alta...@googlegroups.com
Subject: Re: {Altair_B - 5333} -: Portable power for RaspberryPi - Remote Desktop Connection and xrdp

 

Ah, its over an ethernet cable. I guess away from home you can use a cross over ethernet cable from a laptop to the Pi on a tiny network of two computers.

Roy

On 05/02/15 22:30, John Murrell wrote:

Roy,

 

I use ‘Remote Desktop Connection’ which is available in Win7 and other versions as well. Someone has hacked the protocol and written a send end programme for the RasPi. You need to load xrdp on the raspi and run it – instructions at http://www.raspberrypiblog.com/2012/10/how-to-setup-remote-desktop-from.html.

 

Works very well for me – I have not broken it yet. I have only tried to run one RasPi at a time – I am not sure if you can run the windows remote desktop twice if you need to control a second pi.

 

I have a feeling I had to do something clever with some sort of keyboard file as I was getting the wrong characters for a couple of keys – I thing it may default to USA keyboard and I had to edit the file to get the correct translations. If you run into this and work out what the file name is I can probably send you the edited file. See http://www.maketecheasier.com/enabling-remote-desktop-access-on-raspberry-pi/ I have commented at the bottom of this page and provided a link to the site with the UK cure at http://component-parts.blogspot.co.uk/2012/08/fixing-uk-keyboard-mapping-for-xrdp.html.

 

 

Regards

 

 

John Murrell

Astronomer Without Portfolio

Website www.JohnMurrell.org.uk

 

 

From: alta...@googlegroups.com [mailto:alta...@googlegroups.com] On Behalf Of Roy Easto
Sent: 05 February 2015 22:07
To: alta...@googlegroups.com
Subject: Re: {Altair_B - 5330} -: Portable power for RaspberryPi

 

John,

Can you tell us more about the windows remote control program?

Roy

On 05/02/15 21:23, John Murrell wrote:

I have written before about using a RaspberryPi as a programmable timer for taking time lapse images of NLC and other phenomena. Details of my setup are on my website.

 

One problem is that the RasPi is normally powered by a mains to 5V USB adaptor. This ties you to a mains power source and is not very convenient. People have made their own battery packs for RasPi’s but quite often this has involved modifications to the power regulator on the RasPi board and is not very neat.

 

I recently realised that the battery packs now sold to charge mobile phones on tablets on the move give 5V out as required by a RasPi and also deliver the 1 amp required for peak loads on the RasPi. As a result I had a look round and purchased a 11,500 maH pack from 7day shop – it only cost £19.99. So far I have tried running my RasPi with the camera interface for around 13 hours which appears to have about half discharged the battery so I anticipate getting something like a full day out of the battery. I should say my setup is running without keyboard, mouse, wireless network or monitor as I now control it remotely over my network using the windows remote control programme which works really well.

 

So if you want to operate your RasPi from a battery I recommend you buy one of these packs- at £19.99 for 11,500 maH they are really good value for money.

 

John Murrell

Astronomer Without Portfolio

John Murrell

unread,
Feb 6, 2015, 5:44:19 AM2/6/15
to alta...@googlegroups.com

PS – I have just read the RasPi network port is clever enough to swap the Tx & Rx wires itself so you can do it with a plain cat 5 Ethernet cable.  Not sure about the setup though as people have different opinions on how to get it to work. Wireless peer to peer is also possible but will increase the RasPi power consumption.

--
You received this message because you are subscribed to the Google Groups "Altair_B" group.
To unsubscribe from this group and stop receiving emails from it, send an email to altair_b+u...@googlegroups.com.
To post to this group, send email to alta...@googlegroups.com.
Visit this group at http://groups.google.com/group/altair_b.
For more options, visit https://groups.google.com/d/optout.

John Murrell

unread,
Feb 6, 2015, 5:52:56 AM2/6/15
to alta...@googlegroups.com

Here is a post http://carbonstone.blogspot.co.uk/2014/02/connecting-to-pi-from-laptops-ethernet.html that describes how to connect a Pi directly to a laptop. I need to see if this works as I run my RasPi’s with a fixed IP address so I can use windows remote desktop which needs to know the IP address when you connect.

 

Something to try later when I need a break from my research for the essay I am writing on BOSS.

 

John Murrell

Astronomer Without Portfolio

Website www.JohnMurrell.org.uk

 

 

From: alta...@googlegroups.com [mailto:alta...@googlegroups.com] On Behalf Of John Murrell


Sent: 06 February 2015 08:45
To: alta...@googlegroups.com

--

Graeme Coates

unread,
Feb 6, 2015, 6:19:15 AM2/6/15
to alta...@googlegroups.com

Most modern day NICs will do auto-sensing for X-Overs not just the RPi. I can’t recall the time I last saw my own X-over cable so I obviously haven’t needed it recently (not to mention that switches are so cheap these days anyhow!)

 

The trick to getting this to work is to make sure:

a.       The NICs have static IPs and are different (!)

b.      The IPs are on the same subnet

c.       The subnet mask is the same for both NICs.

 

Don’t faff with setting up dhcpd on the Pi – it’s not worth the hassle, unless you fancy tinkering, and even then, I’d assume the Pi can’t dhcp it’s own interface anyhow ;-)

 

GC

Reply all
Reply to author
Forward
0 new messages