I've used
https://www.nomachine.com/ successfully. In the days before Unity it was straightforward to set up a remote desktop on Ubuntu, you can still do it without NoMachine but it's a hassle.
You probably won't be able to run Unity, I'd recommend Xfce.
If you prefer vnc4server and vncviewer instead then install those on the server/client then set up the following, this works on Ubuntu 14.
Start the tunnel:
Code:
# CLIENT ssh tunnel script
#!/bin/sh
ssh -X -p 22 -L 127.0.0.1:5999:127.0.0.1:5901 todoyouruserid@todoyourlinodehostorip
Create a .vnc directory on the server and an executable file called xstartup and fill it with this:
Code:
#!/bin/sh
# Uncomment the following two lines for normal desktop:
# debugging trying this out
unset SESSION_MANAGER
# exec /etc/X11/xinit/xinitrc
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
#fvwm &
startxfce4&
Start the server:
Code:
# SERVER start the VNC server
#!/bin/sh
vncserver :01 -rfbport 5901 -once -geometry 1280x1024 -depth 16 -nevershared -localhost
Run a ps and make sure the VNC server started or check the log in the .vnc directory.
Start your vncviewer:
Code:
vncviewer 127.0.0.1:5999
^^^ at some point, I can't recall when, you need to set up a VNC password and you'd enter it when starting the viewer. The viewer will connect to your localhost tunneling over ssh to your vnc server port and you should see Xfce or FVWM if you prefer it as your desktop.
To kill the server:
Code:
vncserver -kill :01
# or whatever the server started the screen on, it should be in the .vnc/ directory log.