This simple tutorial will show you how to install and setup vnc server (tightvncserver) in Ubuntu 12.04 ,after which you can control your Ubuntu from remote,here we go.
1Open a terminal in your Ubuntu by pressing Ctl+Alt+t or from Dash
2.Run below command in your terminal to install tightvncserver
sudo apt-get install tightvncserver
3.Then run below command to create a VNC session,type the vnc password twice.
vncserver -geometry widthxheight
4.Now you can connect vnc session j-ubuntu:1 using a VNC client from remote.For Windows you can download tightvnc from http://www.tightvnc.com/download.php
After type in your the vnc password you set in step 3 ,you will connect to your ubuntu now
5.(Optional), you can use below command to change your vnc’s password in Ubuntu 12.04
6.(Optional),to kill your vnc session you can use command “vncserver -kill :1″
vncserver -kill :1