List Info

Thread: Re: blank screen




Re: blank screen
user name
2007-03-05 03:43:30
On Mon, Mar 05, 2007 at 03:53:49AM +0100, Fabian Franz
wrote:
> > > 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
> 
> This is perfectly okay ...
> 
> Please try to debug via the instructions given above.

I already had done so, I didn't see any changes in the logs.
But I
think all the output from nxnode gets lost or the above code
path is
never reached, because I also added

echo XXXXXX
echo XXXXXX >&2

before calling the xauths and grepped ~/.nx and
/var/lib/nxserver for
it w/o finding anything.

> It might also help to just do:
> 
> xauth source ~/.nx/C-.../authority
> 
> cu
> 
> Fabian
>
____________________________________________________________
____
>      Were you helped on this list with your FreeNX
problem?
>     Then please write up the solution in the FreeNX
Wiki/FAQ:
>   http://openfacts.berlios.de/index-en.phtml?title=Free
NX_FAQ
>          Don't forget to check the NX Knowledge Base:
>                  http://www.nomachine.com
/kb/ 
> 
>
____________________________________________________________
____
>        FreeNX-kNX mailing list --- FreeNX-kNXkde.org
>       http
s://mail.kde.org/mailman/listinfo/freenx-knx
>
____________________________________________________________
____

-- 
Axel.Thimm at ATrpms.net

____________________________________________________________
____
     Were you helped on this list with your FreeNX problem?
    Then please write up the solution in the FreeNX
Wiki/FAQ:
  http://openfacts.berlios.de/index-en.phtml?title=Free
NX_FAQ
         Don't forget to check the NX Knowledge Base:
                 http://www.nomachine.com
/kb/ 

____________________________________________________________
____
       FreeNX-kNX mailing list --- FreeNX-kNXkde.org
      http
s://mail.kde.org/mailman/listinfo/freenx-knx
____________________________________________________________
____
Re: blank screen
user name
2007-03-06 15:45:06
On Mon, Mar 05, 2007 at 10:43:30AM +0100, Axel Thimm wrote:
> On Mon, Mar 05, 2007 at 03:53:49AM +0100, Fabian Franz
wrote:
> > > > 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.
> > Please try to debug via the instructions given
above.
> 
> I already had done so, I didn't see any changes in the
logs. But I
> think all the output from nxnode gets lost or the above
code path is
> never reached, because I also added

OK, I placed a wrapper around xauth to check how it's being
called and
what it returns, and found out that it is only once called
as

/usr/bin/xauth -q -

which is probably done indirectly durcing the ssh login.
E.g. freenx
never calls xauth itself (?).
-- 
Axel.Thimm at ATrpms.net

____________________________________________________________
____
     Were you helped on this list with your FreeNX problem?
    Then please write up the solution in the FreeNX
Wiki/FAQ:
  http://openfacts.berlios.de/index-en.phtml?title=Free
NX_FAQ
         Don't forget to check the NX Knowledge Base:
                 http://www.nomachine.com
/kb/ 

____________________________________________________________
____
       FreeNX-kNX mailing list --- FreeNX-kNXkde.org
      http
s://mail.kde.org/mailman/listinfo/freenx-knx
____________________________________________________________
____
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )