Table of Contents
Was this article helpful?

0  out of  2 found this helpful

Try Vultr Today with

$50 Free on Us!

Want to contribute?

You could earn up to $600 by adding new articles!

How-To Install VNC Desktop on Ubuntu 14.04

Last Updated: Fri, Mar 6, 2015
Linux Guides Ubuntu
Archived content

This article is outdated and may not work correctly for current operating systems or software.

This guide will walk you through installing a VNC desktop on Ubuntu 14.04 with the free VNC software, TightVNC.

Step 1: Install components

We need to install the following components for a proper desktop with VNC.

  • xOrg
  • A desktop (LXDE)
  • An Ubuntu VNC server (TightVNC)

Run the following command to install them.

sudo apt-get install xorg lxde-core tightvncserver

Step 2: Setup VNC

We have to set up a VNC password for our VNC connection. This password is limited to 8 characters in length. Longer passwords will be truncated.

tightvncserver :1

Next, we need to config the xstartup because VNC doesn't know how to launch LXDE.

nano ~/.vnc/xstartup

In this file...

  • Remove the # before #x-window-manager &
  • Add the line lxterminal &
  • Add the line /usr/bin/lxsession -s LXDE &

Your config should now resemble the following:


xrdb $HOME/.Xresources
xsetroot -solid grey
#x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
x-window-manager &
lxterminal &
/usr/bin/lxsession -s LXDE &
# Fix to make GNOME work

Save the file with Ctrl + O, then exit nano with Ctrl + X.

Step 3: Restart VNC

To restart VNC we have to shut it down with:

tightvncserver -kill :1

... and start it again:

vncserver :1 -geometry 1024x768 -depth 16 -pixelformat rgb565

Step 4: Connect to the VNC server

Start your favorite VNC Client and connect to your server's IP with the ending :1. For example:

Enjoy your new VNC server!

Want to contribute?

You could earn up to $600 by adding new articles