I have a Ubuntu 16.10 x64 Droplet with ubuntu desktop which I am connecting to via x2go and that works, however, I also installed gnome 3 but cannot connect to that with either x2go or RealVNC.
I tried setting up VNC with this tutorial : https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-vnc-on-ubuntu-14-04
But cannot get past Step 4 without it timing out while connecting that tunnel.
If i can log into Gnome with x2go as well that would be better.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Are you running the SSH command locally, or on the server that’s serving as your VNC Server? For example, the command:
ssh -L 5901:127.0.0.1:5901 -N -f -l demo DROPLET_PUBLIC_IP
is meant to be ran from your Mac (via Terminal) or Windows machine (using PuTTy or similar), not on your Droplet.
When setting up the Droplet, did you create a new user and add that user to the sudo group and then set that username in /etc/init.d/vncserver? If not, you’ll need to do that and then pass the username to the SSH command. You don’t want to pass root as the user.
adduser demo \
&& gpasswd -a demo sudo
Where demo is the user you’d like to login as. Now run:
ssh -L 5901:127.0.0.1:5901 -N -f -l demo DROPLET_PUBLIC_IP
If you’re on a 512MB droplet, you may want to run with a 1GB droplet as Gnome does tend to use more resources than XFCE and other, more lightweight desktops.
I just created a fresh Ubuntu 14.04 Droplet and ran through the entire tutorial, removed XFCE and then installed Gnome and after restarting then running vncserver, was able to log right in and access the Gnome desktop.
sudo apt-get purge xfce4 -y \
&& sudo apt-get install gnome -y \
&& shutdown -r now
Then log back in to SSH:
vncserver
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.