I’ve been working on getting NoMachine and FreeNX working together … and they’re both working well, listening on different ports (guess I should write a howto).
At some point I decided to write an init script to control FreeNX behaviour (start, stop, status, setup), since the Ubuntu version has one (called freenx-server) and openSUSE doesn’t, but I noticed that it was not necessary, as FreeNX got started automatically… but how ? I could not find any init.d script or command which would start the FreeNX server. Indeed it wasn’t actually running :
neelix:~ # /usr/bin/nxserver --status
NX> 100 NXSERVER - Version 3.2.0-73 OS (GPL, using backend: 3.2.0)
NX> 110 NX Server is stopped
NX> 999 Bye
However I can start NX sessions on that machine and I just opened 3 from 3 different clients (2 under the same user).
neelix:~ # /usr/bin/nxserver --list
NX> 100 NXSERVER - Version 3.2.0-73 OS (GPL, using backend: 3.2.0)
NX> 127 Sessions list:
Server Display Username Remote IP Session ID
------ ------- --------------- --------------- --------------------------------
127.0.0.1 1002 jenny xxx.xxx.xxx.x 2AA3B7D0B23C160C971F76A5AAE1F35C
127.0.0.1 1001 agnelo xxx.xxx.xxx.x CF8F9F2A999C30311058519075225979
127.0.0.1 1000 agnelo xxx.xxx.xxx.x ED1CD199D43663F71682DB0F744383F2
NX> 999 Bye
It seems that starting or stopping the server with nxserver --start and nxserver --stop has no effect … except reporting accordingly that the server is running or not running (nxserver --status). But whether the server appears to be running or not doesn’t make any difference: clients can connect !
What sense does it make ?
I’ve been trying version 0.7.2 from RemoteDesktop repo, version 0.7.3 from somebody’s home repo and finally self compiled 0.7.3. Same behaviour.
BTW NoMachine nxserver is currently stopped and disabled at all runlevels (I wouldn’t have let me open 3 sessions anyway and it’s enough to look at some environment variables to distinguish FreeNX sessions from Nomachine ones.) So an interaction with the NoNachine server is excluded here.
neelix:~ # chkconfig --list nxserver
nxserver 0:off 1:off 2:off 3:off 4:off 5:off 6:off