[LightDM] Remote login to Ubuntu with VNC
Jean-Michel Bouffard
jmbouffard at gmail.com
Wed Nov 16 17:13:03 PST 2011
The Xvnc version that I'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.
Then I tried my second option (vnc in lightdm) and in this case I'm not
able to log in the vncserver at all and I get "No password configured for
VNC Auth". 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't have any control on how
lightdm launches Xvnc so I cannot change that behaviour.
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...
Thanks.
On Wed, Nov 16, 2011 at 6:34 PM, Robert Ancell <robert.ancell at gmail.com>wrote:
> Hi Jean,
>
> I couldn't find a passwordFile option, what version of Xvnc are you
> using? In TightVNC there is a -rfbauth option, does this do what you
> want?
>
> Is this the requirement this fulfils:
> - You want only certain clients to be able to log in via VNC, using a
> special VNC authentication step.
> - Once authenticated they are shown the normal login screen and use
> their standard authentication to continue.
>
> Thanks,
> --Robert
>
> On 17 November 2011 02:51, Jean-Michel Bouffard <jmbouffard at gmail.com>
> wrote:
> >
> > 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.
> >
> >
> > First I simply tried to run Xvnc with the following command:
> >> sudo /usr/bin/Xvnc :1 -query localhost -geometry 1680x1050 -depth 16
> -once
> >> -fp /usr/share/fonts/X11/misc -DisconnectClients=0 -NeverShared
> >> passwordFile=/root/.vncpasswd
> >
> > 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 "remote login" in
> gdm
> > but I cannot find an equivalent option in lightdm in Ubuntu 11.10. Is
> there
> > any equivalent option?
> >
> >
> > 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:
> > [VNCServer]
> > enabled=true
> > port=5902
> > width=1680
> > height=1050
> > depth=8
> >
> > In this case I can connect to the server with vncclient but I always get
> "No
> > password configured for VNC Auth". I tried to run "sudo vncpasswd" to
> set a
> > root password for xvnc but it does not work. I also specified "sudo
> > vncpasswd /root/.vncpasswd" and "sudo vncpasswd /root/.vnc/passwd"
> 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 "/usr/bin/Xvnc
> :1
> > -auth /var/run/lightdm/root/:1 -inetd -nolisten tcp -geometry 1680x1050
> > -depth 8" but no passwd file is specified. So how could I specify a
> password
> > for this VNC access?
> >
> >
> >
> > I hope I included enough details. Thanks for you help...
> >
> > --
> > Jean-Michel
> >
> > _______________________________________________
> > LightDM mailing list
> > LightDM at lists.freedesktop.org
> > http://lists.freedesktop.org/mailman/listinfo/lightdm
> >
> >
>
--
Jean-Michel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/lightdm/attachments/20111116/23477cf0/attachment.html>
More information about the LightDM
mailing list