<br>The Xvnc version that I&#39;m using is vnc4server version 4.1.1+xorg4.3.0-37ubuntu3 that I installed from Synaptic in Ubuntu 11.10. And the passwordFile option exits and it works correctly. When I use the first option from my previous email I can log with my vnc client but it then stays in a plain X environment with nothing more that the X mouse cursor.<br>
<br>Then I tried my second option (vnc in lightdm) and in this case I&#39;m not able to log in the vncserver at all and I get &quot;No password configured for VNC Auth&quot;. In this case, after looking at the lightdm log file, I see that it starts Xvnc with some parameters but there is nothing to identify the location of the .vncpasswd file. Also I don&#39;t have any control on how lightdm launches Xvnc so I cannot change that behaviour.<br>
<br>My goal is to have a way to connect to a virtual vnc session without having to login to the machine first. Then in the logon screen I could use my account information to log in as usual. To use or not the VNC password is not that important because the login screen will control who logs in the virtual session anyway. So if you have a solution that prevents he lightdm vnc support to ask for a password it would be fine also...<br>
<br>Thanks.<br><br><div class="gmail_quote">On Wed, Nov 16, 2011 at 6:34 PM, Robert Ancell <span dir="ltr">&lt;<a href="mailto:robert.ancell@gmail.com">robert.ancell@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi Jean,<br>
<br>
I couldn&#39;t find a passwordFile option, what version of Xvnc are you<br>
using?  In TightVNC there is a -rfbauth option, does this do what you<br>
want?<br>
<br>
Is this the requirement this fulfils:<br>
- You want only certain clients to be able to log in via VNC, using a<br>
special VNC authentication step.<br>
- Once authenticated they are shown the normal login screen and use<br>
their standard authentication to continue.<br>
<br>
Thanks,<br>
--Robert<br>
<div><div></div><div class="h5"><br>
On 17 November 2011 02:51, Jean-Michel Bouffard &lt;<a href="mailto:jmbouffard@gmail.com">jmbouffard@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; I want to add access to my Ubuntu 11.10 machine over vnc. I tried two things<br>
&gt; that are not exactly working as I want.<br>
&gt;<br>
&gt;<br>
&gt; First I simply tried to run Xvnc with the following  command:<br>
&gt;&gt; sudo /usr/bin/Xvnc :1 -query localhost -geometry 1680x1050 -depth 16 -once<br>
&gt;&gt; -fp /usr/share/fonts/X11/misc -DisconnectClients=0 -NeverShared<br>
&gt;&gt; passwordFile=/root/.vncpasswd<br>
&gt;<br>
&gt; This option works but when I connect to my vnc server it stays in the<br>
&gt; default X view and never goes to the login screen. I had a similar problem<br>
&gt; with previous versions of Ubuntu but I could activate &quot;remote login&quot; in gdm<br>
&gt; but I cannot find an equivalent option in lightdm in Ubuntu 11.10. Is there<br>
&gt; any equivalent option?<br>
&gt;<br>
&gt;<br>
&gt; Next, after googling for a while I saw that lightdm is natively supporting<br>
&gt; Xvnx so I added these lines in lightdm.conf as mentioned in the<br>
&gt; documentation:<br>
&gt; [VNCServer]<br>
&gt; enabled=true<br>
&gt; port=5902<br>
&gt; width=1680<br>
&gt; height=1050<br>
&gt; depth=8<br>
&gt;<br>
&gt; In this case I can connect to the server with vncclient but I always get &quot;No<br>
&gt; password configured for VNC Auth&quot;. I tried to run &quot;sudo vncpasswd&quot; to set a<br>
&gt; root password for xvnc but it does not work. I also specified &quot;sudo<br>
&gt; vncpasswd /root/.vncpasswd&quot; and &quot;sudo vncpasswd /root/.vnc/passwd&quot; because I<br>
&gt; tought these were the default pw files for root but it did not work. In<br>
&gt; /var/log/lightdm/lightdm.log I can see that ligthdm calls &quot;/usr/bin/Xvnc :1<br>
&gt; -auth /var/run/lightdm/root/:1 -inetd -nolisten tcp -geometry 1680x1050<br>
&gt; -depth 8&quot; but no passwd file is specified. So how could I specify a password<br>
&gt; for this VNC access?<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; I hope I included enough details. Thanks for you help...<br>
&gt;<br>
&gt; --<br>
&gt; Jean-Michel<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; LightDM mailing list<br>
&gt; <a href="mailto:LightDM@lists.freedesktop.org">LightDM@lists.freedesktop.org</a><br>
&gt; <a href="http://lists.freedesktop.org/mailman/listinfo/lightdm" target="_blank">http://lists.freedesktop.org/mailman/listinfo/lightdm</a><br>
&gt;<br>
&gt;<br>
</blockquote></div><br><br clear="all"><br>-- <br>Jean-Michel<br>