[FreeNX-kNX] Rootless Mode

Brent Davidson brent at texascountrytitle.com
Sat Jan 13 06:22:12 UTC 2007


I'm trying to use rootless mode to call a java program on my linux box 
with the following command:

/usr/bin/java -jar /plant/dx/dbcsc.jar 192.168.1.10 -encrypt=off

I have tried everything I can think of but am still getting a "Session 
Startup failed" message.

I am using the version of freenx and nx libraries that re in the Centos 
repositories, freenx-0.5.0-10.c4.noarch.rpm and nx-1.5.0-1.centos4.i386.rpm

I am working from a Windows XP system have tried NoMachine's NX client 
versions 2.0.0-93 and 2.1.0-11 with no luck.

This is the log from the NXClient window:

NX> 203 NXSSH running with pid: 3704
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: <address removed> on port: <edited>
NX> 202 Authenticating user: nx
NX> 208 Using auth method: publickey
which: no xauth in (/usr/local/bin:/bin:/usr/bin)
HELLO NXSERVER - Version 1.5.0-50-SVN OS (GPL)
NX> 105 hello NXCLIENT - Version 1.5.0
NX> 134 Accepted protocol: 1.5.0
NX> 105 SET SHELL_MODE SHELL
NX> 105 SET AUTH_MODE PASSWORD
NX> 105 login
NX> 101 User: root
NX> 102 Password:
NX> 103 Welcome to: <server name removed> user: root
which: no xauth in (/usr/local/bin:/bin:/usr/bin)
NX> 105 listsession --user="root" --status="suspended,running" 
--geometry="1280x800x32+render" --type="unix-application"
NX> 127 Sessions list of user 'root' for reconnect:

Display Type             Session ID                       Options  Depth 
Screen         Status      Session Name
------- ---------------- -------------------------------- -------- ----- 
-------------- ----------- ------------------------------


NX> 148 Server capacity: not reached for user: root
NX> 105 startsession  --rootless="1" --virtualdesktop="0" 
--application="/usr/bin/java%20-jar%20/plant/dx/dbcsc.jar%20192.168.1.10%20-encrypt%3Doff" 
--link="lan" --backingstore="1" --nodelay="1" --encryption="1" 
--cache="16M" --images="128M" --media="0" --session="Test 2" 
--type="unix-application" --kbload=" --kbload=pc102/en_US" --keymap=" 
--keymap=en_US" --kbtype="pc102/en_US" --keybd="1" 
--screeninfo="800x600x32+render"

NX> 1000 NXNODE - Version 1.5.0-50-SVN OS (GPL)
NX> 700 Session id: <server name 
removed>-1000-65C6B5879E2DABDE4404685ECD832298
NX> 705 Session display: 1000
NX> 703 Session type: unix-application
NX> 701 Proxy cookie: e09957b6cbfed6f88a6f4dd8e62acee3
NX> 702 Proxy IP: 127.0.0.1
NX> 706 Agent cookie: e09957b6cbfed6f88a6f4dd8e62acee3
NX> 704 Session cache: unix-application
NX> 707 SSL tunneling: 1
NX> 710 Session status: running
NX> 1002 Commit
NX> 105 /usr/bin/nxserver: line 1077: 12231 Terminated              
sleep $AGENT_STARTUP_TIMEOUT
NX> 1006 Session status: running
NX> 596 Session startup failed.
NX> 1004 Error: NX Agent exited with exit status 1.
Can't open 
/var/lib/nxserver/db/running/sessionId{65C6B5879E2DABDE4404685ECD832298}: 
No such file or directory.
mv: cannot stat 
`/var/lib/nxserver/db/running/sessionId{65C6B5879E2DABDE4404685ECD832298}': 
No such file or directory
NX> 1006 Session status: closed
NX> 1001 Bye.
Killed by signal 15.


Is there any additional logging I can turn on to find out what is 
happening?  I can open a Gnome or KDE Session and run the program with 
no problems.

Thanks,
Brent Davidson



More information about the FreeNX-kNX mailing list