[FreeNX-kNX] Re: Shadow session - NX client loads the session window but closes with black screen
chris at ccburton.com
chris at ccburton.com
Mon Feb 28 13:00:43 UTC 2011
José Pablo Méndez Soto <auxcri at gmail.com> wrote on 23/02/2011 18:17:55:
[SNIP]
> The only things I modified from the instructions above, was the
> shell for the script. It says to use the she-bang header #!/bin/sh,
> but if I run it like that, it throws this error:
>
> [: 6: 1: unexpected operator
Hmm I've not seen this one before ????
for aa in `cat /etc/shells`;do [ -e "$aa" ] && [ $(grep -c "unexpected
operator" "$aa") -gt 0 ] && echo $aa;done
So, you are using
/bin/ash
by the look of it.
Mostly
/bin/sh -> bash
>
> So I changed the header to #/bin/bash and the error went away. I
Did you actually leave out the ! in #!/bin/bash ??
Doesn't sound like it.
[SNIP]
> testing the script. If I do a
> ./nxshadowacl user1; $?
>
> Then I get:
>
> 0: Command not found.
That's because it can't execute "0", the return code in $?.
Did you mean to use
./nxshadowacl user1; echo $?
[SNIP]
> Display Type Session ID Options
> Depth Screen Status Session Name
> ------- ---------------- -------------------------------- --------
> ----- -------------- ----------- ------------------------------
> 2000 unix-gnome 26929CEE4FC75CE9EC279D996186CD6B --D--
> PSA 32 1274x947 Running Ubuntu Server (willy) (Shadowed)
> 0 Local 8332C75EC2C8A37A5D3818BCBBA64C29
> -------- Running X0 (Local)
> 0 Local 0DB46FC6CB1D1BC759E33B4A3FB3DC54
> -------- Running X0 (Local)
>
>
> NX> 148 Server capacity: not reached for user: .*
> NX> 105 attachsession --link="lan" --backingstore="1" --
> encryption="1" --cache="16M" --images="64M" --shmem="1" --shpix="1"
> --strict="0" --composite="1" --media="0" --session="Shadow" --
> type="shadow" --client="winnt" --keyboard="pc102/us" --
> id="0DB46FC6CB1D1BC759E33B4A3FB3DC54" --display="0"
>
> NX> 596 Could not find shadowed session
> 0DB46FC6CB1D1BC759E33B4A3FB3DC54. Session failed.
Don't try to shadow the "Local" sessions.
Aim at the
"2000 unix-gnome 26929CEE4FC75CE9EC279D996186CD6B"
one (in this instance)
> Thanks in advance,
>
> José [attachment "sessionlist.jpg"
Good luck. Let us know how you get on
cb
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/freenx-knx/attachments/20110228/ffeb41de/attachment.html>
More information about the FreeNX-kNX
mailing list