Thursday, March 12, 2015

Raspberry Pi 2 as a Remote Desktop Client

 

The Raspberry Pi makes a good remote desktop client. I use them to remote to Windows terminal servers. I Velcro the Pi to the back of a 1920x1080 monitor. The Pi is powered by the monitor's USB port.

To boot right in to a remote desktop session, create a Bash script /home/pi/remoteDesktop.sh.

#!/bin/bash
while true
do
  logger "$0 Executing /usr/bin/rdesktop"
  /usr/bin/rdesktop -r sound:local -f -d DOMAINNAME WinPC
done

Add your new Bash script to the end of the /etc/xdg/lxsession/LXDE-pi/autostart file. Mine looks like this:

@lxpanel --profile LXDE-pi
@pcmanfm --desktop --profile LXDE-pi
@/home/pi/remoteDesktop.sh

The Pi will boot up in to the remote desktop session of your WinPC. If the user logs out of Windows or tries to escape, the script will run the rdesktop command again. This is not hacker proof or anything like that. The user can hit Ctrl-Alt-Enter to exit out of full-screen and kill the Bash script.

Component list with Amazon links

Post a Comment