<div dir="ltr"><div><div><div>Hi Mikhail,<br><br></div>It's hard to tell exactly what is wrong - if you attach both .Xauthority files it will be easier to see the difference.<br><br></div>Check what version of Xorg you are running and check it is actually enabling TCP connections - there was a behaviour change in X [1].<br><br></div>--Robert<br><div><br>[1] <a href="https://launchpad.net/bugs/1449282">https://launchpad.net/bugs/1449282</a>
<br><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, 30 Oct 2015 at 16:45 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">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> 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 happens.<br>
<br>
I think I have the exact same options set in both cases, i.e. in the /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 (/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? 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>
</blockquote></div>