<div dir="ltr">I just really wanted the .Xauthority files to check that they contain the cookies in the format we expected.<br></div><br><div class="gmail_quote"><div dir="ltr">On Thu, 19 Nov 2015 at 03:03 Mikhail Morfikov <<a href="mailto:mmorfikov@gmail.com">mmorfikov@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 2015-11-18 06:17, Robert Ancell wrote:<br>
> Hi Mikhail,<br>
><br>
> It's hard to tell exactly what is wrong - if you attach both .Xauthority<br>
> files it will be easier to see the difference.<br>
><br>
> Check what version of Xorg you are running and check it is actually<br>
> enabling TCP connections - there was a behaviour change in X [1].<br>
><br>
> --Robert<br>
><br>
> [1] <a href="https://launchpad.net/bugs/1449282" rel="noreferrer" target="_blank">https://launchpad.net/bugs/1449282</a><br>
><br>
><br>
> On Fri, 30 Oct 2015 at 16:45 Mikhail Morfikov <<a href="mailto:mmorfikov@gmail.com" target="_blank">mmorfikov@gmail.com</a>> wrote:<br>
><br>
>> When I start an X-session via startx on my debian distro, I can get the<br>
>> output of the two following commands:<br>
>><br>
>> $ xauth extract - $DISPLAY<br>
>> morfikownia0MIT-MAGIC-COOKIE-1’E!ö½o`q!SD„%<br>
>><br>
>> $ xauth extract - morfikownia.mhouse.lh:0.0<br>
>> À¨–0MIT-MAGIC-COOKIE-1ʹ2y0ºˆ%<br>
>><br>
>> I know that the output is a little unreadable, but the most important<br>
>> thing is that I get the output from the two commands above. When I send<br>
>> that cookie to another machine using this command:<br>
>><br>
>> $ xauth extract - morfikownia.mhouse.lh:0.0 | ssh -x <a href="mailto:morfik@192.168.10.20" target="_blank">morfik@192.168.10.20</a><br>
>> xauth merge -<br>
>><br>
>> I can get access to this X-server from that machine, and everything works<br>
>> as expected.<br>
>><br>
>> When I start am X-session via LightDM, the command:<br>
>><br>
>> xauth extract - morfikownia.mhouse.lh:0.0<br>
>><br>
>> returns nothing, or actually it gives me the following message:<br>
>><br>
>> "No matches found, authority file "-" not written"<br>
>><br>
>> I can, of course, use the following command to get the cookie:<br>
>><br>
>> xauth extract - $DISPLAY<br>
>><br>
>> and then send it via:<br>
>><br>
>> $ xauth extract - $DISPLAY | ssh -x <a href="mailto:morfik@192.168.10.20" target="_blank">morfik@192.168.10.20</a> xauth merge -<br>
>><br>
>> But in that case, when I try to connect remotely to this X-server, I'm<br>
>> unable to do it. I get a message that "no protocol specified", and nothing<br>
>> happens.<br>
>><br>
>> I think I have the exact same options set in both cases, i.e. in the<br>
>> /etc/X11/xinit/xserverrc file I have the following line:<br>
>><br>
>> exec /usr/bin/X -auth "$HOME/.Xauthority" -listen tcp "$@"<br>
>><br>
>> And in the case of LightDM I have these options set in its config file<br>
>> (/etc/lightdm/lightdm.conf):<br>
>><br>
>> egrep -v ^# /etc/lightdm/lightdm.conf<br>
>> [LightDM]<br>
>> greeter-user=lightdm<br>
>> minimum-display-number=0<br>
>> minimum-vt=7<br>
>> logind-check-graphical=true<br>
>> log-directory=/var/log/lightdm<br>
>> run-directory=/var/run/lightdm<br>
>> cache-directory=/var/cache/lightdm<br>
>><br>
>> [Seat:*]<br>
>> xserver-command=X -listen tcp -auth "$HOME/.Xauthority"<br>
>> xserver-allow-tcp=true<br>
>> greeter-session=lightdm-gtk-greeter<br>
>> greeter-hide-users=false<br>
>> greeter-allow-guest=false<br>
>> greeter-show-manual-login=true<br>
>> greeter-show-remote-login=true<br>
>> user-session=openbox<br>
>> allow-user-switching=true<br>
>> allow-guest=false<br>
>> autologin-guest=false<br>
>> autologin-user-timeout=0<br>
>> autologin-in-background=false<br>
>><br>
>> [XDMCPServer]<br>
>><br>
>> [VNCServer]<br>
>><br>
>> Do you know why it fails to connect to the X-server when LightDM is used?<br>
>> Is there a way to fix it?<br>
>> _______________________________________________<br>
>> LightDM mailing list<br>
>> <a href="mailto:LightDM@lists.freedesktop.org" target="_blank">LightDM@lists.freedesktop.org</a><br>
>> <a href="http://lists.freedesktop.org/mailman/listinfo/lightdm" rel="noreferrer" target="_blank">http://lists.freedesktop.org/mailman/listinfo/lightdm</a><br>
>><br>
><br>
I know that the default behavior of X-server changed in some version, but<br>
I managed to set the server without any problem, and it was working when<br>
started via "startx". You can see the settings that was set in the<br>
/etc/lightdm/lightdm.conf file, and they were exactly the same as those<br>
in the /etc/X11/xinit/xserverrc file. The problem was somewhere in "xauth<br>
extract" because this command was working fine with "startx", but it<br>
didn't work well with lightdm.<br>
<br>
> It's hard to tell exactly what is wrong - if you attach both .Xauthority<br>
> files it will be easier to see the difference.<br>
<br>
I sent that message some weeks ago, and I don't have that setup anymore.<br>
I could try to make another one, but you have to tell me if you want me<br>
to issue some particular commands, or you want me to attach the full<br>
.Xauthority files from both machines?<br>
<br>
</blockquote></div>