Setup VNC with Ubuntu-desktop?

Posted June 3, 2016 9.9k views
Configuration Management

What the question asks, is there a nice guide to setting up such? Using the default droplet console to control my desktop is horrific (Mouse offsets).
Want to be able to flawlessly control my desktop.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
3 answers

Yes. Here is a guide for Ubuntu 14.04 and here is one for 16.04

Personally I find x2go to provide a much better experience (faster, more responsive and more secure since it tunnels over ssh by default) and would highly recommend going with that. For x2go we have several user-data scripts available here that you can paste directly into the create droplet page (after clicking the user-data checkbox). With the user-data script there is no further configuration needed. About 5-10 minutes (depending on how long the install takes) after your droplet creation is done you’ll be able to log in with the x2go client (if you’re not using ssh keys you will still have to log in via ssh once to update your password).

by Josh Barnett
VNC is a connection system that allows you to manage your Ubuntu server with a graphical desktop environment. With VNC, you can use your keyboard and mouse to interact with a graphical display of your remote server, making it easier to work with the server.
  • For what it’s worth, when I search for “x2go” on the main DigitalOcean community page, there are currently zero hits. Perhaps their search index ignores strings which include a number.

    Also for what it’s worth, when I ran the script “” from the referenced GitHub page on a Debian “Jessie” droplet, the script failed with the following errors:

    E: Unable to locate package lubuntu-desktop
    ./ 10: ./ add-apt-repository: not found
    E: Unable to locate package x2goserver
    E: Unable to locate package x2goserver-xsession

    I’ll just switch to VNC to get my desktop. Since you’re a fan of the x2go route, however, I figured you’d want the feedback.


This tutorial should help you set up VNC on your Droplet:

You might have to replace startxfce4 with the matching command(s) for your desktop environment if you are not running XFCE.

by finid
In this guide, we will be setting up VNC on a Ubuntu 16.04 server and connecting to it securely through an SSH tunnel. The VNC server we will be using is TightVNC, a fast and lightweight remote control package. This choice will ensure that our VNC connection will be smooth and stable even on slower internet connections.