jimterw
Posts: 1
Joined: Thu Nov 07, 2013 8:33 am

How can Pi boot directly to a Remote Desktop?

Thu Nov 07, 2013 8:49 am

I want my Pi, not to boot to GUI but directly to a remote desktop(windows) .
Also can i ask one more thing. I installed and run the app rdesktop.
How i can deactivate the esc button from rdesktop, so the user cannot accidentally close the remote session.I need to have the remote session always active.

milktoast
Posts: 1
Joined: Thu Nov 07, 2013 6:13 pm

Re: How can Pi boot directly to a Remote Desktop?

Thu Nov 07, 2013 6:16 pm

I want this also. I know a few people that want this ability.

Essentially we want as much of the processing as possible to take place on the "remote" server. We don't want a full OS or a browser. We want only mouse, keyboard, sound and video to pass over the network from the server to the Pi.


Anyone doing this?

thecarpy
Posts: 2
Joined: Fri Nov 08, 2013 7:53 am

Re: How can Pi boot directly to a Remote Desktop?

Fri Nov 08, 2013 8:09 am

You basically need an Xserver for rdesktop ... the easiest solution I see is to add rdesktop to your session startup items.

The command to enter is the following:

Code: Select all

/usr/bin/rdesktop -u myuser -p mypassword -Pf myserver:port
See http://ubuntuforums.org/showthread.php?t=824710 for some info on the command line options.

To overrule a key use

Code: Select all

xmodmap -e 'keycode <keyvalue>=<action>'
in Linux.

So, keyvalue for Esc is 9, so you want to run that on startup, add it to your .login:


xmodmap -e 'keycode 9='

Note. that this will disable your ESC key.

jimmyb2
Posts: 1
Joined: Tue Nov 12, 2013 2:21 pm

Re: How can Pi boot directly to a Remote Desktop?

Tue Nov 12, 2013 2:32 pm

i added ./remote.sh to the bottom of the file /etc/profile to call the remote desktop script i placed in the /home/pi directory. within that script i used:

#!/bin/bash

sudo rdesktop -u USERNAME -p PASSWORD -d DOMAINNAME(ex:CORP) -k en-us -n Pi_USERNAME -f -s C:\\Scripts\\remote.bat SERVERNAME

it automatically logs into a terminal server (before the Pi even fully boots) and runs the files i need.

woutur
Posts: 5
Joined: Sun Sep 23, 2012 8:39 pm

Re: How can Pi boot directly to a Remote Desktop?

Thu Nov 21, 2013 3:42 pm

Another route is to go with http://rpitc.blogspot.nl/
It will need some minor tweaking to autostart your favourite rdesktop environment. But it is quite lightweight.

Return to “Networking and servers”