I used to have a Xvnc server that was running at boot on my Ubuntu 9.04 OS and I would like to do the same with 11.10. The procedure I followed at the time was this one. There was some configuration to do in gdm which I cannot find in Ubuntu 11.10. The result is that when I connect to my computer with vncviewer it stays in a basic X screen with the simple X cursor and I get no option to log. The solution to this in prior versions of Ubuntu was to
enable remote login system -> administration -> login Window remote tab choose "same as local" (or whatever?)
What would be the equivalent configuration on 11.10? Maybe something to change in the config files of lightdm which seems to be the new display sessions manager in 11.10?
I found a partial solution. I was not able to use Xvnx the same way I was doing on Ubuntu 9.04 but I found that lightdm was natively supporting VNC. To enable it you can add these lines in /etc/lightdm/lightdm.conf
It will support only tightvncserver (vnc4server will not work) and it will only enable you to connect to a new session through vnc but when the vncviwer is closed the session is destroyed.
On Ubuntu 9.04, I was able to launch a session, disconnect, and then reconnect to it but was not able to do it with this solution.