VNC, or “Virtual Network Computing”, is a connection system that allows you to use your keyboard and mouse to interact with a graphical desktop environment on a remote server. VNC makes managing files, software, and settings on a remote server easier for users who are not yet comfortable with working with the command line.
In this article, Azhowto guide install VNC Server for Ubuntu 14.04 LTS (Linux VPS) and connecting to it securely through an SSH tunnel. I use Gnome, the GUI can be accessed from anywhere over the internet or local network with a VNC client on any OS.
Before you begin with this guide, You will need Ubuntu Server 14.04 with minimum 512mb of ram, 1GB Ram is bester than.
Step one – Install Gnome GUI
Install PUTTY so you can access the console of the linux vps. Log in as “root” and enter the pass you have from the vps. If you never used linux vps please search google “how to login linux”.
On the console type the lines:
When prompted type Y and then press [Enter].
apt-get install gnome-core
Step Two – Install VNC Server for Ubuntu 14.04 LTS
Type the under lines, when prompted type Y and press [Enter].
apt-get install vnc4server
You’ll then be prompted to create and verify a new password.
Type the following command to kill the session:
vncserver -kill :1
Now type the following command to open up the file we need to edit:
In Trusty we need to make quite a few changes. So, press the [Insert] key once (this will switch us into “edit” mode) and then edit the script so it ends up looking like this:
You have to enter this 3 lines at the end of the file to make it look like above:
When you’re done editing the .vnc/xstartup file for your particular version of Ubuntu press the [Esc] key once and type the following:
Next type the following command to create the VNC Session once more:
vncserver -geometry 1024×768
Done, you installed successfully VNC Server for Ubuntu 14.04. The next step we will test and connect VNC Server.
Step Three – Connect to VNC Desktop
I using VNC Viewer in this Guide because I like this client, but you may use any other VNC client as well. Download and install VNC Viewer on to your computer.
In VNC Viewer Client, Click menu File -> Choose New Connection.
Type your Host name or Serrver IP Address. Make sure you don’t forget that :2 at the end, Example: 22.214.171.124:2
Encryption: chosse Prefer off for bester settings.
Connect your server. You will enter the VNC Server password.
If you are connected, you should see the default GNOME desktop ready for configuration and use! It should look something like this:
You should now have a secured VNC server up and running on your Ubuntu 14.04 server. Now you’ll be able to manage your server’s files, software, and settings with an easy-to-use graphical interface.