Setup VNC with Ubuntu-desktop?

June 3, 2016 831 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.

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).

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 "lxde-x2go.sh" from the referenced GitHub page on a Debian "Jessie" droplet, the script failed with the following errors:

    E: Unable to locate package lubuntu-desktop
    ./lxde-x2go.sh: 10: ./lxde-x2go.sh: 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.

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.
  • You see, that's what I am having issues with. What do I replace exactly to make it suitable for Ubuntu-desktop?

Have another answer? Share your knowledge.