Archive for January, 2013

Connecting to the raspberry pi via TightVNC Viewer

January 12, 2013

The information below was taken from the link:    The modifications I used are underlined.

Well here we go.

Login to your RPi with putty

#sudo apt-get update  #run this if you need an update
sudo apt-get install vnc-server

follow the instructions to add a server password confirm the password say no to the view only option

Close your putty window but leave your RPi running if you reboot shutdown or restart your RPi you will need to re-run vncserver from the command line as it’s not added automatically to the start up script.

NOTE: If you use sudo su or sudo bash or one of the other commands to change to a root login to install vnc-server you need to get back to a pi login before you run vncserver to set the password it goes through the motions if your logged in as root but if you look at the response root is debarred from this action.

Setting up the PC

Now you need to get some software for your PC use your browser and visit

I got the Installer for Windows (32-bit) (1,744,896 bytes) rather than the Java viewer [florespino remark]

Go to

Start | TightVNC Viewer

Type your IP address for your RaspberryPi followed by the port 5901 into the Remote Host field.  E.g.

Click connect.  You will be asked for the password you setup when installing vncserver in the rpi.

And voi’ la:
Inline image 2

How to setup a headless raspberry pi via wifi

January 12, 2013

The steps to setup a headless raspberry pi involve installing the usb wifi, in this case I used the Edimax EW-7811Un.

The site is very clear and it explains how to setup:

1. To start with, I have a headless rpi connected via Ethernet cable:

2. install the wifi usb using the $10 usb device.  I mind you, there are two pitfalls in running the otherwise excellent script

Hence, first backup /etc/network/interfaces file.  I copied it to interfaces.bkup

The first problem is, don’t copy and paste it to a windows text editor.  That process introduces strange characters.  Just download the file to your pc and then copy it to the rpi via:  scp pi@x.y.z.a://home/pi/ .

The second problem is, if you enter the password for your router incorrectly then the usb wifi is partially installed and it doesn’t work properly. You will need to remove the /etc/network/interfaces file and restore the original interfaces.

3.  Once you run the script and enter the proper user id and password for your wifi network, you can find out the ip address with: ifconfig. That’ll give you the inet addr of your wifi connection to the rpi !

Note:  For additional details about installation, check out the instructions given in: