How to install VNC server on ubuntu 14.04

VNC server is used to share graphical desktop which can be controlled from other computers . This guide is helpful to install VNC server on Ubuntu Desktop 14.04, Ubuntu server 14.04 and Ubuntu cloud 14.04 . Basically ubuntu server and ubuntu cloud editions does not contains GUI, which needs to be installed before installing VNC server. Please note that server and cloud editions are carefully designed to utilize less hardware resources ( minimal environment ), installing GUI might leads to high hardware utilization.

Install gui on ubuntu server 14.04

Issue the below command to install GUI on server and cloud editions.krizna@leela:~$ sudo apt-get install --no-install-recommends ubuntu-desktopUse –no-install-recommends key to keep GUI minimal. this will skip extra tools and apps and will install only basic desktop environment with few supported tools . Ubuntu desktop users can skip this command .

VNC server as service

Just like centos and other flavours , you can run VNC server as service in ubuntu. This is very helpful, as it automatically starts vnc sessions when restarting the server.Step 6 » Create a file vncserver in /etc/init.d/ directorykrizna@leela:~$ sudo nano /etc/init.d/vncserver and add the below code .