Learn the Installation & configuration of VNC server on Ubuntu 14.04
VNC (Virtual Network Computing) is a broadly used graphical desktop-sharing system that enables users to remotely access and control the desktop interface of one computer from another device.
In this guide, we will explain how to install and configure a VNC Server on a Ubuntu 14.04
But wait! Before you begin with this guide, there are a couple of steps that required to be performed first.
You will require an Ubuntu 14.04 server installed and configured with a non-root user that has
sudoprivileges. Once you have the non-root user, you can use it to SSH into your Ubuntu server and proceed with the installation process of your VNC server as below.
Let’s see the step by step procedure-
Step 1: Install Ubuntu desktop that helps VNC to load efficiently.
At the end of your installation, you’ll get a prompt window to select between gdm3 and lightDM as your Gnome display manager.
Note: Gdm3 is the default Gnome 3 desktop environment greeter.
LightDM is a lighter and faster version of the same greeter system. Use the Tab ↹ key to select, and press ↵ Enter or ⏎ Return to confirm.
Step 2: To install VNC on your system use the below command.
Step 3: To perform configuration changes in vncserver and add the installed desktop packages use the commands
Step 4: To start your VNC server
Now, to start the VNC session type the command You will be prompted for creating a new VNC password.
Step 5: To check the VNC server has started, kindly check if the port 5901 is running and listening in the
Step 6: To configure the firewall.
If the firewall is active, you need to open ports for inbound communication. If no firewall is enabled, you can simply skip this section.
Step 7: Try to access the login details in the VNC viewer on a local machine, i.e, Host & password as shown in the below screenshot.
You are Successfully connected to the server desktop.
If you wish to access the desk for different users, you can follow the below steps:
//Set the password for the user.
//Set the password to access this server using VNC viewer (you may keep the same password).
// switch user root.
Please check for the processes running for the concern user test2.
In the above output, you will get an ID for the user as “Xvnc4 :3” which is 3.
So in the VNC viewer simply add the host as >> 126.96.36.199:3 and the password for the concerned user.
To Conclude: Here you go! In this guide, we’ve explained the steps to install and configure the VNC server on Ubuntu 14.04. I hope it is useful for you. If you have any quires do share with us.