← back to code snippets


Install Ubuntu Desktop UI from terminal

Posted on July 11th, 2015 by Graeme

My Ubuntu 13.10 had a problem with the source.list where it wasn't able to update.

1. Fix Ubuntu 13.10 source list, and upgrade to the latest version (14.04 at the time of writing)

To check which version of Ubuntu you're using, run this:

lsb_release -a

Everytime I tried sudo-apt-get update, I got loads of 404 errors, as seen here: http://askubuntu.com/questions/29071/apt-get-update-cannot-find-ubuntu-servers.

To fix this, and upgrade to version 14.04, I ran the following commands:

sudo sed -i 's/saucy/trusty/g' /etc/apt/sources.list
sudo apt-get update
sudo apt-get upgrade 

source: askubuntu

2. Install Ubuntu Desktop

Next, to install desktop, run this:

apt-get install ubuntu-desktop

src: askubuntu

Now to see if your Ubuntu version has updated run this again: lsb_release -a 

3. Set up VCN

Then, just follow this guide on digitalocean.

Install VNC server:

sudo apt-get update
sudo apt-get install xfce4 xfce4-goodies tightvncserver

Run VNC server, and set your password

vncserver

..just follow the digital ocean guide, and you should be able to access the desktop Ubuntu from a VNC server viewer