Session notes, 26th Jan 2013

Useful Linux commands

To use the following commands, open terminal window from desktop

whoshows who is logged onto the PI
ls –llists files in directory
sshOpen a secure connection with another computer / PI
ifconfigShows details of IP address
manShow help details on Linux command and options
sudoAllows a command to be executed as a superuser or other user
raspi-configNot a Linux command, but allow various confiruration parameters to be changed, including starting SSH server. Need to prefix with sudo (ie. sudo raspi-config)
startxStarts the desktop
apt-getUsed to install and remove applications
 apt-get install [package name]
 apt-get remove [package name]
apt-cache searchCan be used to search for applications
 apt-cache search [game]
exitCloses command window

Accessing Raspberry PI from laptop using PuTTY

On your laptop

Download PuTTY application from

Download ZIP file ( & unzip

Run PUTTY application on your laptop

You will need to type in the IP address of the Raspberry PI.

To get the IP address on the PI, open a terminal window and type ifconfig

IP address will be listed on the line with inet addr: and will be something like

Log onto Raspberry PI using pi/raspberry as login name and password.

Accessing Raspberry PI from laptop using Virtual Network Computing (VNC)

Allows you to control the PIs desktop remotely

Need to install a VNC server application on PI and client application on laptop

We will use TightVNC

On the Raspberry PI

Open a terminal window and use apt-get to install tightvnc server

sudo apt-get install tightvncserver

Run tightvnc server by typing tightvncserver

Enter password which will be used to access desktop via tightvnc client on laptop

On laptop

Download Tightvnc from

Run tightvnc-2.6.4-setup-32bit to install TightVNC

From Start button, select TightVNC, then select TightVNCViewer

In the Remote Host field enter the IP address for PI and a port number (5901 should work)


The Raspberry PI desktop is then displayed in a window, which you can use as if you were using the PI. Try starting Scratch.

Installing and running Raspbmc

For the Coder Dojo session, we will use a downloaded image of Raspbmc and put this on SD, rather than downloading the image from Raspbmc site.

Details on downloading and installing Raspbmc media centre are available from