[FreeNX-kNX] Shadow session - NX client loads the session window but closes with black screen

José Pablo Méndez Soto auxcri at gmail.com
Wed Feb 23 18:17:55 UTC 2011


Ubuntu 10.10
Nomachine NX client 3.4.0.10
Freenx Server 0.7.3.git10032

I can do regular NX connections smoothly. But shadowing won't work.

Configured the client and the server according to

http://openfacts2.berlios.de/wikien/index.php/BerliosProject:FreeNX_-_HowtoShadow#An_example_nxshadowacl:


When connecting as Desktop > Shadow, no matter what Display resolution I
choose, once I get the list of sessions available to shadow (attached
screenshot) I get this message window:

"The NX client received an error from the server. Please check the details
for more information"

The detailed error provided is below. I can see that the session connects
and authenticates, and it evens prompts me to chose a session to shadow, but
it fails. /var/log/nxserver.log is empty

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

So I changed the header to #/bin/bash and the error went away. I have
node.conf set not to ask authorization from local user:

ENABLE_SESSION_SHADOWING_AUTHORIZATION=0

Something else happens if I have ENABLE_INTERACTIVE_SESSION_SHADOWING=0, I
can see that it actually connects and opens up the window as if it was
already downloading the session but then it suddenly closes.

Finally, the only unexpeect behavior based on the tutorial, is when testing
the script. If I do a
./nxshadowacl user1; $?

Then I get:

0: Command not found.

Seems like it is returning the exit value accordingly but it concerns me the
Command not  found.

Here is the detail log:

NX> 203 NXSSH running with pid: 2256
NX> 285 Enabling check on switch command
NX> 285 Enabling skip of SSH config files
NX> 285 Setting the preferred NX options
NX> 200 Connected to address: 10.198.29.69 on port: 22
NX> 202 Authenticating user: nx
NX> 208 Using auth method: publickey
Linux uccg-server 2.6.35-25-generic #44-Ubuntu SMP Fri Jan 21 17:40:48 UTC
2011 i686 GNU/Linux
Ubuntu 10.10

Welcome to Ubuntu!
 * Documentation:  https://help.ubuntu.com/

0 packages can be updated.
0 updates are security updates.

HELLO NXSERVER - Version 3.2.0-74-SVN OS (GPL, using backend: 3.4.0)
NX> 105 hello NXCLIENT - Version 3.2.0
NX> 134 Accepted protocol: 3.2.0
NX> 105 SET SHELL_MODE SHELL
NX> 105 SET AUTH_MODE PASSWORD
NX> 105 login
NX> 101 User: willy
NX> 102 Password:
NX> 103 Welcome to: uccg-server user: willy
NX> 105 listsession --type="shadow"
NX> 127 Sessions list of user '.*' for reconnect:

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 listsession --type="shadow"
NX> 127 Sessions list of user '.*' for reconnect:

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.
NX> 596 Sharing:
NX> 105 NX> 280 Exiting on signal: 15

Don't even have event viewer logs on this.

Thanks in advance,

 *José *
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/freenx-knx/attachments/20110223/aa5e0a27/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sessionlist.jpg
Type: image/jpeg
Size: 16284 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/freenx-knx/attachments/20110223/aa5e0a27/attachment.jpg>


More information about the FreeNX-kNX mailing list