How To Install VNC Server on Ubuntu 14.04

vnc-server-logo

In this tutorial we will show you how to install and configuration VNC Server on Ubuntu 14.04. For those of you who didn’t know, VNC (Virtual Network Computing) server is a free and open source software which is designed for allowing remote access to the Desktop Environment of the server to the VNC Client whereas  VNC viewer is used on remote computer to connect to the server .

This article assumes you have at least basic knowledge of linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo’ to the commands to get root privileges. I will show you through the step by step installation VNC Server on an Ubuntu 14.04 server.

Install VNC Server on Ubuntu 14.04

Step 1. First make sure that all your system packages are up-to-date by running these following apt-get commands in the terminal.

Step 2. Installing VNC Server.

By default, most Linux server installations will not come with a graphical desktop environment. In this case you need to install one that you can work with. In this example, we will install xfce4:

Step 3. Configure VNC Server.

First add new user called vncuser you can use any user as you want:

Now switch to the user you want to login to VNC server with. We are going to modify xstartup file to start xfce4 session whenever VNC server is started:

VNC server will ask you for a password you want to use to login to VNC server. This is the sample output:

After VNC Server started and created some of it’s files. We are now can turn it off to modify the xstartup file (startup script) to make it start with xfce4:

Before we begin configuring our new xstartup file, let’s back up the original in case we need it later:

Add the following lines:

The next step is to create VNC Server statup script. You must do this with root user:

Copy this configuration and save it into the file:

Make vnc server startup script executable:

Step 4. Accessing VNC.

To access remote desktop on vnc server from windows system, you must have vnc viewer installed on your system. There are various vnc viewer available to use. Download any one and install on your system, for example:

tightvnc-connection

Congratulation’s! You have successfully installed VNC Server. Thanks for using this tutorial for installing VNC Server on your Ubuntu 14.04 system. For additional help or useful information, we recommend you to check the official VNC web site.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get a best deal!