The Start

Hi, What and Why

Compare to Arduino

What do you need to buy ?

It's plugged in, what's first ?

How to install packages.

Recommended packages.

Essential Linux Commands.

How to use the vi editor.

The next step

Set up I2C.

My first program - blink.

VNC - Use your computer to control your Pi.

Samba - copy files.

Raspberry Pi: How to use VNC

VNC allows you to run the Pi GUI on another computer. So, instead of having my Pi attached to a keyboard, mouse, and screen, I have my Pi running alone in the corner with only a wifi dongle attached. I use my desktop to run VNC, to bring up the Pi GUI on my desktop monitor.

On the Pi, I run a VNC server; on my desktop, I run a VNC client. My desktop is a Linux Mint 17.3 AMD64 box, and I choose the package remmina as my VNC client.

To start - find the Pi IP Address

I will need to know the IP address, on my local network, of my Pi. Using a terminal session, run the command ifconfig and make a note of the value under inet addr

pi@raspberrypi:~ $
pi@raspberrypi:~ $ ifconfig
Note: this will output about 30 lines of text. If you are connected via an ethernet cable, look at section eth0. If you are connected via wifi, look at section wlan0.
The value you are looking for is inet addr, and it will start with 192.168.
Mine happens to be

Note that my own IP address is, and I will use this later on to connect with. Naturally your IP address will be different.


On the Pi (I have already used ssh to remotely log into the Pi with a terminal session)
pi@raspberrypi:~ $
pi@raspberrypi:~ $ sudo apt-get install x11vnc

On my desktop, to install the VNC client. On Linux, I use 'remmina'. If you are still stuck on M$ Windows, then you will need to search for a VNC client. Sorry, I no longer support M$ products.

paul@jp ~ $
paul@jp ~ $ sudo apt-get install remmina remmina-common remmina-plugin-vnc remmina-plugin-rdp libvncserver0


Note that for my initial configuration, I am not setting a password, and I have my desktop firewall deactivated. (I can rely on my router firewall to deny all access to my local network.) If you run M$ Windows, then you may need to keep your firewall on, and allow access to VNC and/or port 5900.

On the Pi, start a VNC server session using the terminal command. Note that I am _not_ running this as root, I am running this as user pi.

pi@raspberrypi:~ $
pi@raspberrypi:~ $ x11vnc -display :0
The default port for VNC connections is 5900. When you run this command, note the warnings about 'no password'. Now, in order to connect to the Pi on port 5900, I use remmina on my desktop PC.

The setup of the VNC connection is like this: Note the IP address that we fetched using ifconfig, and note the suffix :5900 in the 'server' field. Whichever VNC client you use, you will need to provide this information.

These are the VNC settings you will need to enter. Note the :5900 at the end of the Pi IP address. Note that we log in as user Pi. VNC settings