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.
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:~ $ 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 192.168.1.140|
Note that my own IP address is 192.168.1.140, and I will use this later on to connect with. Naturally your IP address will be different.
|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:~ $ x11vnc -display :0|
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.|