<br><tt><font size=2>Marco Passerini <marco.passerini@csc.fi> wrote
on 12/05/2011 12:50:16:<br>
<br>
> I removed .Xauthority and now the results are a bit different:<br>
> <br>
> *** First Session ***<br>
> <br>
> $xauth list<br>
> myhostname.com/unix:10 MIT-MAGIC-COOKIE-1 **cookie**<br>
> localhost.localdomain:1000 MIT-MAGIC-COOKIE-1 **cookie**<br>
> myhostname.com/unix:1000 MIT-MAGIC-COOKIE-1 **cookie**<br>
> <br>
> $ls | grep xauth<br>
> .xauthm0c9gu</font></tt>
<br><tt><font size=2>> <br>
> $xterm<br>
> [works fine, it opens a new terminal]<br>
> <br>
> Suspending session...<br>
> <br>
> *** Restored session ***<br>
> <br>
> $ls | grep xauth<br>
> [no result!]<br>
</font></tt>
<br><tt><font size=2>What is in your</font></tt>
<br><tt><font size=2> $XAUTHORITY</font></tt>
<br><tt><font size=2>envvar ??</font></tt>
<br>
<br><tt><font size=2>What does</font></tt>
<br><tt><font size=2> xauth -f
~/.Xauthority list </font></tt>
<br><tt><font size=2>give here.</font></tt>
<br><tt><font size=2><br>
> $xauth list<br>
> xauth: creating new authority file /home/myusername/.xauthm0c9Gu<br>
</font></tt>
<br><tt><font size=2>Hmmm. It thinks the cookie file is:- /home/myusername/.xauthm0c9Gu</font></tt>
<br><tt><font size=2> <br>
> $ls -a| grep xauth<br>
> [no result!]<br>
> <br>
> $echo $SHADOW_XAUTHORITY<br>
> /home/myusername/.nx/C-myhostname.com-1000-**code***/authority<br>
> <br>
> $cd /home/myusername/.nx/C-myhostname.com-1000-**code***/<br>
> $xauth list<br>
> xauth: creating new authority file /home/myusername/.xauthm0c9Guls<br>
</font></tt>
<br><tt><font size=2>. . . and again . . .</font></tt>
<br>
<br><tt><font size=2>> <br>
> $ls | grep xauth<br>
> [no result!]<br>
> <br>
> $ls /home/myusername| grep xauth<br>
> [no result!]<br>
> <br>
> $xterm<br>
> Xlib: connection to ":1000.0" refused by server<br>
> Xlib: No protocol specified<br>
> xterm Xt error: Can't open display :1000.0<br>
</font></tt>
<br><tt><font size=2>Reconnect, and look at what</font></tt>
<br><tt><font size=2> echo $XAUTHORITY</font></tt>
<br><tt><font size=2>says the cookie file is called . . . .</font></tt>
<br>
<br><tt><font size=2>.xauthm0c9Gu maybe.</font></tt>
<br>
<br><tt><font size=2>Where is this filename set ??</font></tt>
<br>
<br><tt><font size=2>If this is your cookie file (and it is being removed),
it</font></tt>
<br><tt><font size=2>won't be replaced by FreeNX.</font></tt>
<br>
<br>
<br>
<br>
<br>