Pi Thinclient

This is my raspberrypi thin client. I set it up to boot to console, automatically login, execute a script to launch rdesktop to connect to the windows virtual machine.


First I used win32diskimager to extract RASPBIAN iso to an sd card. Then I insert the sd card into the pi and let it boot. From there, I Expand the fileSystem, change the password.


Then I select Internationalisation Options , Change Locale. Then I select only en_US.UTF-8 UTF-8  After I hit next (I think), I hit select none and finish (I think).

Change timezone and select your timezone by following the prompts.

Now we need to change keyboard layout to a us keyboard. If you skip this step, it will mess stuff up. Click Change Keyboard Layout select Generic 105-key (Intl) PC then next, select other next English (US)  next English (US)  next The default for the keyboard layout next No compose key  next no then finish.


Now its time to overclock. Click OverClock click ok then Pi2 

After overclocking, we need to force audio out of the audio jack and not through the hdmi port because I’m using an monitor. Click Advance Options click Audio  then click Force 3.5mm (headphone) jack finish.

Go  back to Advance Options and click Update When its done, click finish and reboot.


sudo su to make this simpler.

First, let’s edit the boot config to adjust video and overclocking.

sudo nano /boot/config.txt

Uncomment and update the following.

Now increase the voltage to increase the stability of the pi

now add these to the bottom

Now reboot. When it boots, sudo su then we need to install  rdesktop as our rdp client.

apt-get install rdesktop

And now we need to allow auto login.

Then find the line that looks like 1:2345:respawn:/sbin/getty --noclear 38400 tty1 and comment it out. Then right below it, add 1:2345:respawn:/bin/login -f pi tty1 </dev/tty1 >/dev/tty1 2>&1 Reboot and see if it works.

Now we need to create a login script that will automatically launch the remote desktop application.

then copy and paste the following. Replace rivver.com with the ip adress (or whatever) of your rdp server.

After you close and save, sudo chmod +x loginScript to make the file executable.

sudo nano .bashrc then add the following to the bottom to execute the loginScript and add alias’. This will allow the user to type vm  or VM  to start the rdp client.
Now reboot and watch the magic.


I modified the windows rdp server that may or may not improve performance.


Hit Start, type gpedit.msc  then hit enter. This should start gpedit


There is a tree in the right panel. follow the following.

  • Administrative Templates
    • Windows Components
      • Remote Desktop Services
        • Remote Desktop Session Host
          • Device and Resource Redirection
            • Limit audio playback quality: enabled: high
          • Printer Redirection
            • Do Not allow client printer redirection: enabled
          • Remote Session Environment
            • Limit maximum color depth 24bit
            • Enforce Removal of Remote Desktop         Wallpaper: Disable
            • Configure RemoteFX: enable
            • Optimize visual experience when using RemoteFX: enable
              • Screen Capture Rate: Highest
              • Screen Image Quality: Medium
            • Set Compression for RDP data: enable
              • Optimized to use less network bandwidth
            • Optimize visual experience for remote Desktop Services sessions: enabled
              • Rich multimedia
            • Configure image quality for RemoteFX Adaptive Graphics: enable
              • Medium
            • Configure RemoteFX Adaptive Graphics: enable
              • Optimize for minimum bandwidth usage




Categories: Software