[FreeNX-kNX] blank screen

Axel Thimm Axel.Thimm at ATrpms.net
Sun Mar 4 23:37:16 UTC 2007


On Sun, Mar 04, 2007 at 03:31:38PM +0100, Fabian Franz wrote:
> > 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.

It doesn't. I see somthing else that looks wrong, using "ps e" I see
that nxagent has

XAUTHORITY=/home/athimm/.nx/.../authority

set, which looks OK, but has

DISPLAY=nx/nx,options=/home/athimm/.nx/.../options:1000

set, which looks wrong. Maybe there is some parsing issue?
-- 
Axel.Thimm at ATrpms.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/freenx-knx/attachments/20070305/d16b8112/attachment.sig>


More information about the FreeNX-kNX mailing list