This is the quick how to on installing VNC on Ubuntu for Remote Desktop sharing,
To, install VNC on Ubuntu, run
sudo apt-get install x11vnc vnc-java
Now, we need to set up a password for clients, to do so run,
Now to start VNC in background run,
nohup x11vnc -forever -usepw -httpdir /usr/share/vnc-java/ -httpport 5800 &
That’s it. Now you can access your UBUNTU machine from anywhere. Remember if you are behind firewall then you need to open 5800 and 5900 port.