The Unity desktop for Ubuntu 14.04 is now obsolete and is being replaced by GNOME. GNOME has been available in versions 15 and above. Unity has been used in Ubuntu since approx. 2012. Unity was dropped as it has a number of compatability issues with Ubuntu plugins.
Pre-Requisites to complete work
- SSH terminal access to server.
- Sudo root access
(This should be possible without AWS console access)
Confirm Server details
SSH to Server using putty or equivalent.
Confirm version of Ubuntu Running
Confirm version of desktop running
dpkg -l|grep unity
or following if you are not sure
dpkg -l|egrep -i “(kde|gnome|lxde|xfce|mint|unity|fluxbox|openbox)” | grep -v library
Installing xRDP on Ubuntu 14.04
Open terminal and type:
sudo apt-get install xrdp
Open terminal and type:
sudo apt-get update
sudo apt-get install xfce4
This will force xRDP to use the XFCE desktop instead of the packaged UNITY desktop.
This change will only affect the xRDP desktop experience. On the AWS console you will see a different wallpaper, but the same Unity server.
This change is persistent and will remain in place if the server reboots
echo xfce4-session >~/.xsession
sudo service xrdp restart
Accessing Ubuntu with RDP
On the console type:
Open Remote Desktop
You will be prompted to log in to XRDP
A connection log will popup. This will tell you the process of the XDRP login and errors you may have. The most common error is password failure.
Your xRDP Desktop Session
Configure console / admin sessions on xRDP
Every time you log into a xRDP session the server will create you a new log in. This can be frustrating if you are disconnected, the server will, by default, connect you to a new session. To allow true admin or console xRDP access you need to do the following.
Edit the xrdp.ini
Sudo gedit /etc/xrdp/xrdp.ini
Port =-1 change to port=ask-1
Restart the xRDP service
Sudo service xrdp restart
If you are connected via xRDP you will be disconnected
Open Remote Desktop and reconnect to the server.
On the connection log make a note of the port highlighted below. In my example its 5914, it will most likely be different on your AWS config.
Disconnect from that session.
Now, reopen Remote desktop and connect to xRDP
This time enter the port number when connecting.
You will now be able to log straight back into any saved work.
How will it look from the AWS console?
Login in screen wallpaper will change, but it will still be Unity underneath:
Post log in on console