[FreeNX-kNX] blank screen

Fabian Franz FabianFranz at gmx.de
Sun Mar 4 14:31:38 UTC 2007


> On Sat, Mar 03, 2007 at 04:52:46PM +0100, Fabian Franz wrote:
> > > That's what makes me suspicious. Maybe the apps cannot connect to the
> > > xserver. I also tried
> > > 
> > > | $ env DISPLAY=:1000 xclock
> > > | Xlib: connection to ":1000.0" refused by server
> > > | Xlib: No protocol specified
> > > | 
> > > | Error: Can't open display: :1000
> > 
> > Okay, so we found the source of the problem. Good.
> > 
> > Now lets see what we can try to fix it.
> > 
> > I guess it can't find the xauth binary in the path ...
> > 
> > But nxloadconfig --check should tell you that ... Hm ...
> > 
> > So please check if authorization cookie is added correctly to
> ~/.Xauthority file.
> 
> I see some light in the tunnel: As written later in the thread
> ~/.Xauthority doesn't have auth cookies for DISPLAY=:1000, but I
> digged a bit and found that these are in ~/.nx/C-*-1000-*/authority
> 
> Setting XAUTHORITY to the above value, I can finally manually fire up
> an xterm into the blank session.
> 
> env XAUTHORITY=$HOME/.nx/C-*-1000-*/authority DISPLAY=:1000 xterm

I do the following in nxnode:

# for example
display=1000
cookie=$(mcookie)
COMMAND_XAUTH=$(which xauth)
USER_FAKE_HOME=$HOME
sessid=<some session id>

$COMMAND_XAUTH >/dev/null 2>&1 <<EOF
add localhost:$display MIT-MAGIC-COOKIE-1 $cookie
add unix:$display MIT-MAGIC-COOKIE-1 $cookie
exit
EOF

$COMMAND_XAUTH -f "$USER_FAKE_HOME/.nx/C-$sess_id/authority" >/dev/null 2>&1 <<EOF
add localhost:$display MIT-MAGIC-COOKIE-1 $cookie
add unix:$display MIT-MAGIC-COOKIE-1 $cookie
exit
EOF

I can't see anything wrong about that ...

But you might want to remove the >/dev/null 2>&1 from nxnode to see if xauth gives some error message.

cu

Fabian



More information about the FreeNX-kNX mailing list