Tuesday 23 October 2012

Using the Raspberry Pi remotely from a Windows PC.


Having a Raspberry pi and desktop/Laptop PC can lead to a desktop covered in keyboards and mice. To reduce this (and stop confusion over which mouse or keyboard you should be using)  you can access the pi remotely using putty and a X server. 

This guide assumes you have used the standard Raspbian image from (http://www.raspberrypi.org) which already has ssh configured. 


Install Putty (http://www.chiark.greenend.org.uk/~sgtatham/putty/

and 

Xming (http://sourceforge.net/projects/xming/) on your windows PC

Start Xming by launching XLaunch option from start menu 



Set the display settings to 'one window', if your select multiple each program you launch on your pi with run in it's own window. Make a note of the display number you will need this later.



Leave as default and press 'Next'.



  Leave as default and press 'Next'.



Save your configuration and press 'Finish'.



Start putty and configure a session to connect via ssh on port 22 using the ip address of your pi.



under connections/SSH/X11 tick the "Enable x11 forwarding" and set the X display location to
 localhost: (in this case 0 noted earlier).



Click on the session option and save your configuration.

Click open to connect to your Raspberry pi and log in. You now have a terminal access on your pi and use it as you would the LxTerminal.



Once logged in you can either start individual applications or a complete desktop session.

To use IDLE type idle

 or to start a full desktop session enter startlxde





No comments: