<br>I want to add access to my Ubuntu 11.10 machine over vnc. I tried two things that are not exactly working as I want.<br><br><br>First I simply tried to run Xvnc with the following  command:<br>&gt; sudo /usr/bin/Xvnc :1 -query localhost -geometry 1680x1050 -depth 16 -once -fp /usr/share/fonts/X11/misc -DisconnectClients=0 -NeverShared passwordFile=/root/.vncpasswd<br>
<br>This option works but when I connect to my vnc server it stays in the default X view and never goes to the login screen. I had a similar problem with previous versions of Ubuntu but I could activate &quot;remote login&quot; in gdm but I cannot find an equivalent option in lightdm in Ubuntu 11.10. Is there any equivalent option?<br>
<br><br>Next, after googling for a while I saw that lightdm is natively supporting Xvnx so I added these lines in lightdm.conf as mentioned in the documentation:<br>[VNCServer]<br>enabled=true<br>port=5902<br>width=1680<br>
height=1050<br>depth=8<br><br>In this case I can connect to the server with vncclient but I always get &quot;No password configured for VNC Auth&quot;. I tried to run &quot;sudo vncpasswd&quot; to set a root password for xvnc but it does not work. I also specified &quot;sudo vncpasswd /root/.vncpasswd&quot; and &quot;sudo vncpasswd /root/.vnc/passwd&quot; because I tought these were the default pw files for root but it did not work. In /var/log/lightdm/lightdm.log I can see that ligthdm calls &quot;/usr/bin/Xvnc :1 -auth /var/run/lightdm/root/:1 -inetd -nolisten tcp -geometry 1680x1050 -depth 8&quot; but no passwd file is specified. So how could I specify a password for this VNC access?<br clear="all">
<br><br><br>I hope I included enough details. Thanks for you help...<br><br>-- <br>Jean-Michel<br>