VNC is a graphical desktop sharing system that allows you to remotely control the desktop interface of one computer from another. It transmits the keyboard and mouse events from the controller, and receives updates to the screen over the network from the remote host.
You will see the desktop of the Linux inside a window on your computer. You’ll be able to control it as though you were working on the Linux desktop itself.
Install TightVNC on your linux via ssh.
Run TightVNC Server which will prompt you to enter a password and an optional view-only password
Start a VNC server from the terminal. This example starts a session on VNC display zero (:0) with full HD resolution:
Automation and run at boot
You can create a simple file with the command to run the VNC server on the Pi, to save having to remember it:
Create a file containing the following shell script:
Save this as vnc.sh (for example)
Make the file executable:
Then you can run it at any time with:
Log into a terminal on the Linux as root:
Create a new file here containing the following script:
You can change the MY_USER_NAME with your user.
Make this file executable:
Enable dependency-based boot sequencing:
If enabling dependency-based boot sequencing was successful, you will see this:
update-rc.d: using dependency based boot sequencing
But if you see this:
then try the following command:
Reboot your Linux and you should find a VNC server already started.
On a Linux machine install the package xtightvncviewer:
Now, on your computer, install and run the VNC client
Enter the linux system IP address and colon 1 or 2 which is screen assigned for that instance.