How to Enable VNC server / connectivity in Linux ( Ubuntu 12.04 LTS )
VNC connectivity is not set up by default on most Linux distributions.
Follow the steps below to get VNC up and running so that you can connect using VNC Viewer, or some other VNC client application.
1. Install x11vnc:
sudo apt-get install x11vnc
2. Create /etc/init/x11vnc.conf file using vi or gedit:
start on login-session-start
x11vnc -xkb -noxrecord -noxfixes -noxdamage -display :0 -auth /var/run/lightdm/root/:0 -forever -bg -o /var/log/x11vnc.log
3. After restarting, 11vnc should listen on vnc standard port (port 5900).
The script is based on upstart event mechanism when Lightdm emits login-session-start event, x11vnc is started.
Steps 2 & 3 above … not working. (probably for an older version of Ubuntu and something has changed.)
However, once it has been installed (Step #1) it can be run as an application that requires no password by simply running
Then, connect to the machine’s IP via VNC Viewer.
—Review steps #2 and #3 so that this will automatically start up on system startup.