<br><tt><font size=2>fdpo1@yahoo.com <fdpo1@yahoo.com> wrote on 11/07/2011
19:11:25:<br>
<br>
> <chris <at> ccburton.com> writes:<br>
> > fdpo1 <at> yahoo.com <fdpo1 <at> yahoo.com>
wrote on 07/07/2011<br>
> > 19:12:35:<br>
> ><br>
> > > 1. I can't open a new window -- try to run an xterm (or
other window,<br>
> > such as<br>
> > > firefox) and get an error:<br>
> > > "Can't open display: :2000.0"<br>
> > Looks like something is listening on :2000<br>
> > (else you get a "Can't connect . . . ")<br>
> <br>
> :2000.0 is the correct display -- i.e., it is the port used by freenx
-- so<br>
> there should be something listening on it, right? Or am I confused?<br>
</font></tt>
<br><tt><font size=2>There should be an nxagent process for your session
which should be </font></tt>
<br><tt><font size=2>listening on one, possibly several ports, including
one for the</font></tt>
<br><tt><font size=2>display:-</font></tt>
<br>
<br><tt><font size=2> PROXY_DISPLAY=session-display
+ 4000</font></tt>
<br>
<br><tt><font size=2>in your case for display :2000 , port 6000</font></tt>
<br>
<br><tt><font size=2>
127.0.0.1:6000</font></tt>
<br>
<br><tt><font size=2>which you should see if you run:- </font></tt>
<br>
<br><tt><font size=2> sudo netstat
-napt|grep nxagent</font></tt>
<br>
<br><tt><font size=2>NOTE:-</font></tt>
<br><tt><font size=2>The session display ports are selected in sequence
from</font></tt>
<br><tt><font size=2> DISPLAY_BASE</font></tt>
<br><tt><font size=2>which is set in</font></tt>
<br><tt><font size=2> /etc/nxserver/node.conf</font></tt>
<br>
<br><tt><font size=2>You may find the DISPLAY_BASE(s) need changing if
you connect to more</font></tt>
<br><tt><font size=2>than one FreeNX sever simultaneously</font></tt>
<br>
<br><tt><font size=2>You should be able to find lock files for each display
in use in /tmp</font></tt>
<br><tt><font size=2>i.e.</font></tt>
<br><tt><font size=2> /tmp/.X2000-lock</font></tt>
<br><tt><font size=2> /tmp/.nX2000-lock</font></tt>
<br>
<br><tt><font size=2>and a socket</font></tt>
<br>
<br><tt><font size=2> /tmp/.X11-unix/X2000</font></tt>
<br>
<br><tt><font size=2>If you are using the SMB client mounts/printers and/or
client ipp</font></tt>
<br><tt><font size=2>printers, you should see ports for the smb tunnel,
and/or ipp, also</font></tt>
<br><tt><font size=2>associated with nxagent process.</font></tt>
<br>
<br><tt><font size=2>> <br>
> > What's happened to the session authority file in<br>
> > ~/.nx/C-MachineName-2000-...sessionIDstring.../authority<br>
> > If you don't have md5sum installed for example, the<br>
> > sessionIDstring doesn't get generated . . . .<br>
> <br>
> That file exists. Not sure what the contents should be.<br>
</font></tt>
<br><tt><font size=2>The contents should look a bit like like:-</font></tt>
<br>
<br><tt><font size=2>2000MIT-MAGIC-COOKIE-1('..2000MIT-MAGIC-COOKIE-1('..server-name2000MIT-MAGIC-COOKIE-1('..</font></tt>
<br>
<br>
<br>
<br><tt><font size=2>Let's try a quick test.</font></tt>
<br>
<br><tt><font size=2>Connect FreeNX as you have before and check you still</font></tt>
<br><tt><font size=2>have the same problem.</font></tt>
<br>
<br><tt><font size=2>Check the ~/.nx/C-MachineName-2000-...sessionIDstring.../</font></tt>
<br>
<br><tt><font size=2>has a 32 byte sessionIDstring not -2000-(STDIN)/ or
-2000-*/</font></tt>
<br>
<br><tt><font size=2>Connect as the same user, to a new terminal session
on the</font></tt>
<br><tt><font size=2>NX machine, BUT NOT USING nx this time i.e. log in
locally</font></tt>
<br><tt><font size=2>or ssh.</font></tt>
<br>
<br><tt><font size=2>In the new terminal session for the CORRECT "SessonID"
enter</font></tt>
<br>
<br><tt><font size=2>export $XAUTHORITY=~/.nx/C-MachineName-2000-yoursessionID/authority</font></tt>
<br><tt><font size=2>export $DISPLAY=:2000</font></tt>
<br><tt><font size=2>xterm</font></tt>
<br>
<br><tt><font size=2>If you used the same user account then an xterm should
appear on your</font></tt>
<br><tt><font size=2>FreeNX display, else you should get an error message.</font></tt>
<br>
<br>