Installing VNC with resumable sessions
I'm coming from Fedora, where there's a useful package called "vnc-ltsp-config", which installs VNC so that it functions just like a normal Gnome desktop (i.e. it provides a login prompt, and then starts a new session for your user).
Does Ubuntu have anything similar to this? The normal VNC package appears to operate via the unuseful default, where you can only login to an existing desktop. How do you configure Ubuntu to create a new session when someone logs in via VNC?
Solution 1:
x11vnc
Install X11vnc server on the remote desktop for access to the login screen, or access to an existing session.
Lightdm via VNC
On the remote machine run x11vnc as root (e.g. through a ssh session)
root@remote:# x11vnc -auth /var/lib/lightdm/.Xauthority -display :0
Then on our desktop here view the remote login screen with
vncviewer -via user@remote :0
The remote session started from the login screen will survive after we closed our vncviewer session.
View existing remote desktop
On the remote machine run x11vnc as the user logged in (e.g. through a ssh session where you can log in as the remote user)
user@remote:$ x11vnc -display :0
To export the display :0 for remote viewing.
On our desktop here run the viewer by
vncviewer -via user@remote :0