Saturday, March 9, 2013

Remote Desktop of Raspberry Pi onto Ubuntu/Android/Windows

I recently bought a Raspberry Pi board from crazypi.com. Raspberry is a low cost chipset from Broadcom which can host linux and many other OS. It just costs 3K INR if you buy it in India. It is an awesome lowcost chipset with 2 USB ports, one ethernet port, one HDMI port, one TV out and one audio jack port. It also has a micro-USB power input and SD card, from where the OS boots.

Now I am gonna explain how to setup remote desktop from Raspberry Pi to Linux or Windows PC. VNC and RDP protocols are famous for desktop sharing. Both have their advantages and disadvantages. However I prefer RDP over VNC, because VNC often gets stuck while using Desktop sharing. I am gonna explain setting up of both the protocols on Raspberry Pi:

1. Using VNC protocol

Server Configurations on Raspberry Pi:
- Install tightvncserver on the Raspberry
$ sudo apt-get install tightvncserver

- Enter passwords if prompted.

- start the vncserver with the following command

$ vncserver :1 -geometry 800x600 -depth 32 -pixelformat rgb565
   
- Now you are ready to connect to Raspberry Pi remotely from any VNC client either on Ubuntu or Android.

Client Configurations:
On Ubuntu: install vncviewer, to connect remotely, install necesarry packages when prompted.

$ vncviewer 192.168.1.3:5901

   

On Android: Download VNC client app from Android market. I downloaded "androidVNC" app from market, works well on my Galaxy Nexus.

Nickname: raspberry:1

password: <type in the view password set while installing vncserver on Raspberry Pi>

Address: <enter ip address of RPi; ex: 192.168.1.3>

Port: 5901


- To kill the server
$ vncserver -kill :1

However I was unable to browse comfortable using VNC so I decided to use RDP protocol. RDP is faster and preferred over VNC and it performs better.

2. Using RDP protocol
Server Configurations on Raspberry Pi:
- Install the xrdp package on Raspberry Pi

$ sudo apt -get install xrdp

- Thats it, the server is ready on RPi. Restart if required.

Client Configurations:
On Ubuntu: Applications > internet > Terminal server Client

Computer: 192.168.1.3
Protocol: RDPv5
User name: pi
Password: raspberry

Alternatively you can use the rdesktop command from the shell as follows:
$ rdesktop -u pi -p raspberry 192.168.1.3 




On Android: Install a RDP client, I used "AccessToGo Remote Desktop/RDP" and "Ahope RDP Client"from Android market. plugin the details as required.




This is really coooooooooool.

Using Rapberry Pi Command Prompt on other devices:
In addition, to access Raspberry Pi in command shell
On ubuntu: 

$ ssh pi@192.168.1.3 

On android: Download "ConnectBot" app from the Android market. Plugin the details and you are ready to go. :-)

You can expect some more stuff on Raspberry Pi sooner.

See you...

2 comments:

  1. Hi, great tutorial! Just one question: have you tried to connect your raspberry pi outside your local network? I notice that the IP address is local only, and tried all your methods, no success from a public network.

    ReplyDelete
  2. Hi, incredible instructional exercise! Only one inquiry: have you attempted to interface your raspberry pi outside your neighborhood system? i want to purchase raspberry pi in india at lowest prices some people advice this site https://www.robomart.com/buy-raspberry-pi-2-india-price

    ReplyDelete