This post describe VNC server how to install and configure in your Ubuntu 14.04 system. Its used to remotely access and control your system wherever you are in the world.

Install VNC

# apt-get -y install ubuntu-desktop tightvncserver xfce4 xfce4-goodies

You can choose any one default display manager "gdn" or "lightdn"

Once installed the packages check vnc-server using below command,
# dpkg -l | grep vnc

ii  libvncserver0:amd64
0.9.9+dfsg-1ubuntu1.1                               amd64        API
to write one's own vnc server
ii  remmina-plugin-vnc
1.0.0-4ubuntu3                                      amd64        VNC
plugin for remmina remote desktop client
ii  tightvncserver
1.3.9-6.4ubuntu1                                    amd64
virtual network computing server software
ii  vnc4server
4.1.1+xorg4.3.0-37ubuntu5                           amd64
Virtual network computing server software

Create a user for accessing vnc server,
# useradd vnc

# vncpasswd vnc


You would like to active root permission for vnc user set in to sudoers file,
# vim /etc/sudoers

# User privilege specification
vnc    ALL=(ALL:ALL) ALL

Start your VNC,
# /etc/init.d/vncserver start
 * Starting vncserver for user 'vnc' on

Check your VNC process status ,
# ps aux | grep vnc

root      5357  0.0  0.0  26320  1096 pts/13   S    11:56   0:00 Xvnc4
:1 -desktop vnc:1 (root) -auth
/var/run/gdm/auth-for-vnc-NM2P84/database -geometry 1024x768 -

depth 16 -rfbwait 30000 -rfbauth /root/.vnc/passwd -rfbport 5901 -pn -fp

Find out VNC port number using below command,
# netstat -tlanp | grep vnc

tcp        0      0  *
LISTEN      5357/Xvnc4
tcp        0      0
tcp6       0      0 :::5901                 :::*
LISTEN      5357/Xvnc4

Your VNC connection port number is 5901 for example you can view the Image,

Install Remmina,

Remmina is very efficient and fast Remote Desktop tool if you dont have installed in your system execute below command,
# apt-get install remmina-plugin-rdp