Raspberry Pi GUI over SSH

So what after buying R Pi , the much hyped little supercomputer. You bought it with a huge urge for learning phython and develop some cool devices. But then you realise to setup a programming environment u need a keyboard, a mouse, network, a pricey HDMI display. (I swear any RCA  TV or monitor is too low in quality for an programming geek.)
       So now your little but brilliant mind start asking why can't i connect and work R pi to my PC/Laptop.
  Who can help you... ?????

     Praise linux ... thanks to SSH and X window system ....

SSH is a protocol , remote login facility for any linux system from another network device.

X window is the aplication which runs a GUI in any linux OS. eg:- it runs LXDE on pi and GNOME on Ubuntu .
The best thing about X window is that it is forward-able through  SSH protocol... !!

 So what is the setup ???

Ingrediants:  
1. A linux/ Windows PC ; which is your work station
2. A router with extra lan ports
3. Of course the rasp Pi

Connect both PC and Raspberry (raspbian OS) to your Router using RJ-45 cables.

If using linux on PC then open a terminal and issue below comand
user@host :~$ sudo ssh -Y pi@raspberrypi 
OR
user@host :~$ sudo ssh -Y pi@192.168.1.3   
     provided 192.168.1.3  is your pi's IP address

This will open the LXDE GUI of R pi on your workstation.

If using a Windows PC ... then install an X server software like Xming. Dial SSH connection from Xming to pi... 

What is the advantage ???
u can use the same keyboard, mouse, other devices on network with your Pi.
So guys...open the IDLE python IDE, and do some working stuff as fast as you could....


Again..
What if u dont have a router  ???
Simple, get a cross-connected RJ-45 cable. Connect it b/w PC lan port and R pi lan port. Find the IP of both systems.

Follow the same procedure using terminal from Linux PC or Xming from Windows PC.












Comments

Popular posts from this blog

Bidirectional 3.3v 5v Level Shifter

DIY Fixing a Laptop Battery

USB-UART console using old nokia DKU-5 datacable. (3.3v TTL)