[FreeNX-kNX] nxlibs 1.5.0 and FreeNX 0.4.x

Terje Andersen terander at guard.zapto.org
Sun Jul 10 22:52:56 UTC 2005


I'm trying again to compile and install the latest nxlibs and FreeNX, 
after a long brake.
I've compiled the nxlibs on one debian box, copied everything according 
to the INSTALL file (and did the gentoo-diff), and then copied 
everything over to a clean installed debian sarge installation.

There I extracted the files into /usr/NX/ and ran 'nxsetup --install'

I've changed the setting 'SET_LD_LIBRARY_PATH="1"' in 
/usr/NX/etc/node.conf file, and checked the installation/configuration 
with 'nxloadconfig --check' and everything seems ok.

I then added a user, set a password, and finally I restartet nxserver.

I then copied the client.id_dsa.key to my windows client (1.4.0-92), and 
created a session with SSL enabled.

When I try to connect to nxserver, everything seems fine;

1) connecting ok
2) authentication ok
3) I get the !M logo, and after 30 seconds I get the dialog that there 
was 'No response recieved from the remote server. Do you want to 
terminate the current session?'.

If I choose No, then after about 2 minutes, the client drops the session.

OK, I then check the server:

nx-srv:~# nxserver --list
NX> 100 NXSERVER - Version 1.4.0-04-CVS OS (GPL)
NX> 127 Sessions list:

Display Username        Remote IP       Session ID
------- --------------- --------------- --------------------------------
1003    test    85.165.184.159  5FD74400EC3FB057970B22D2E1A0ED61
NX> 999 Bye

Some logs from the user's .nx-directory
nx-srv:/home/test/.nx# cat 
C-nx-srv-1003-5FD74400EC3FB057970B22D2E1A0ED61/authority
1003MIT-MAGIC-COOKIE-1  kÍF!ÓsÊÞN&'´önx-srv1003MIT-MAGIC-COOKIE-1       
kÍF!ÓsÊÞN&'´öLoop: WARNING! Connected to remote NXPROXY version 1.4.0 
with local version 1.5.0.

nx-srv:/home/test/.nx# cat 
C-nx-srv-1003-5FD74400EC3FB057970B22D2E1A0ED61/errors
Proxy: FLUSH! Immediate with blocked 0 length 0 new 3 flushable 0 tokens 
8 frames 1 bytes 3.
Proxy: FLUSH! Immediate flush to proxy FD#8 of 3 bytes at 
00:35:27:678.907 with priority 1.
Proxy: FLUSH! Current bitrate is 0 with 0 in the long frame and top 0.
Proxy: ADJUST! Propagating bitrate of 0 B/S  at 00:35:27:679.646.
Proxy: ADJUST! Decreased split timeout to 25 Ms.
Proxy: FLUSH! Reset last frame and flush timestamps at 00:35:27:679.749.
Proxy: FLUSH! Initial timeouts are frame 5 flush 25 split 50.
Proxy: FLUSH! Setting last frame timestamp at 00:35:27:699.572.
Proxy: FLUSH! Setting last flush timestamp at 00:35:27:699.572.
Proxy: ADJUST! Propagating bitrate of 11 B/S  at 00:35:27:699.826.
Proxy: ADJUST! Decreased split timeout to 25 Ms.
Proxy: SYNC! Sending a ping request to flush the accumulated data.
Proxy: FLUSH! Immediate with blocked 0 length 0 new 3 flushable 52 
tokens 8 frames 2 bytes 55.
Proxy: FLUSH! Immediate flush to proxy FD#8 of 3 bytes at 
00:35:27:699.982 with priority 1.
Proxy: FLUSH! Current bitrate is 11 with 1 in the long frame and top 11.
Proxy: ADJUST! Propagating bitrate of 11 B/S  at 00:35:27:700.552.
Proxy: ADJUST! Decreased split timeout to 25 Ms.
Proxy: FLUSH! Reset last frame and flush timestamps at 00:35:27:700.673.
Proxy: FLUSH! Initial timeouts are frame 5 flush 25 split 50.
Proxy: PANIC! Token overflow handling messages.

nx-srv:/home/test/.nx# cat 
C-nx-srv-1003-5FD74400EC3FB057970B22D2E1A0ED61/options
kbtype=pc102/us,cache=32M,images=64M,link=adsl,type=unix-cde,cleanup=0,accept=127.0.0.1,cookie=01c32ca6723fac40b0be1cd82887d091,id=nx-srv-1003-5FD74400EC3FB057970B22D2E1A0ED61,samba=0,media=0:1003

nx-srv:/home/test/.nx# cat 
C-nx-srv-1003-5FD74400EC3FB057970B22D2E1A0ED61/session

NXAGENT - Version 1.5.0

Copyright (C) 2001, 2004 NoMachine.
See http://www.nomachine.com/ for more information.

Info: Agent running with pid '4860'.
nxagentProcessOptionFile: Option file is 
[/home/test/.nx/C-nx-srv-1003-5FD74400EC3FB057970B22D2E1A0ED61/options].
nxagentProcessOptionFile: Option file is 197 bytes long.
nxagentParseOption: processing option 'kbtype' = 'pc102/us'.
nxagentParseOption: processing option 'cache' = '32M'.
nxagentParseOptionString: Warning ignored option 'cache' = '32M'.
nxagentParseOption: processing option 'images' = '64M'.
nxagentParseOptionString: Warning ignored option 'images' = '64M'.
nxagentParseOption: processing option 'link' = 'adsl'.
nxagentParseOptionString: Warning ignored option 'link' = 'adsl'.
nxagentParseOption: processing option 'type' = 'unix-cde'.
nxagentParseOptionString: Warning ignored option 'type' = 'unix-cde'.
nxagentParseOption: processing option 'cleanup' = '0'.
nxagentParseOptionString: Warning ignored option 'cleanup' = '0'.
nxagentParseOption: processing option 'accept' = '127.0.0.1'.
nxagentParseOptionString: Warning ignored option 'accept' = '127.0.0.1'.
nxagentParseOption: processing option 'cookie' = 
'01c32ca6723fac40b0be1cd82887d091'.
nxagentParseOptionString: Warning ignored option 'cookie' = 
'01c32ca6723fac40b0be1cd82887d091'.
nxagentParseOption: processing option 'id' = 
'nx-srv-1003-5FD74400EC3FB057970B22D2E1A0ED61'.
nxagentParseOption: processing option 'samba' = '0'.
nxagentParseOptionString: Warning ignored option 'samba' = '0'.
nxagentParseOption: processing option 'media' = '0'.
nxagentParseOptionString: Warning ignored option 'media' = '0'.
nxagentInitReconnector: Initializing the SIGHUP handler.
Info: Proxy running in server mode with pid '4860'.
Info: Waiting for connection from '127.0.0.1' on port '5003'.
Info: Accepted connection from '127.0.0.1' on port '32779'.
Info: Connection with remote proxy established.
Warning: Connected to remote NXPROXY version 1.4.0 with local version 1.5.0.
Info: Synchronizing local and remote caches.
Info: Handshaking with remote proxy completed.
Info: Using cache parameters 4/262144/32768KB/32768KB.
Info: Using image cache parameters 1/1/65536KB.
Info: Using split parameters 100/16384/6144/1024KB.
Info: Using adsl link parameters 8192/8/10/50.
Info: Using agent parameters 49152/0/0.
Info: Using pack method '16m-jpeg-7' with session 'unix-cde'.
Info: Using ZLIB data compression level 3.
Info: Using ZLIB data threshold set to 32.
Info: Using ZLIB stream compression level 6.
Info: Using remote ZLIB data compression level 3.
Info: Using remote ZLIB stream compression level 6.
Info: Not using processor load limit.
Info: No suitable cache file found.
Info: Starting X protocol compression.
Error: Token overflow handling messages.

Fatal server error:
NXAGENT: Fatal IO error on display 
"nx/nx,options=/home/test/.nx/C-nx-srv-1003-5FD74400EC3FB057970B22D2E1A0ED61/options:1003".

XIO:  fatal IO error 104 (Connection reset by peer) on X server 
"unix:1003.0"
      after 0 requests (0 known processed) with 0 events remaining.

This is the /var/log/nxserver.log

-- NX SERVER START: -c /usr/NX/bin/nxserver
HELLO NXSERVER - Version 1.4.0-04-CVS OS (GPL)
NX> 105 hello NXCLIENT - Version 1.4.0
NX> 134 Accepted protocol: 1.4.0
NX> 105 SET SHELL_MODE SHELL
NX> 105 SET AUTH_MODE PASSWORD
NX> 105 login
NX> 101 User: test
NX> 102 Password:
Info: Auth method: passdb
NX> 103 Welcome to: nx-srv user: test
NX> 105 listsession --user="test" --status="Suspended","Running" 
--geometry="1400x1050x32+render+fullscreen" --type="unix-cde"
NX> 127 Sessions list of user 'test' for reconnect:

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


NX> 148 Server capacity: not reached for user: test
NX> 105 startsession --session="NX-SRV-ny" --type="unix-cde" 
--cache="32M" --images="64M" --cookie="098f6bcd4621d373cade4e832627b4f6" 
--link="adsl" --kbtype="pc102/us" --no
delay="1" --encryption="1" --backingstore="never" 
--geometry="fullscreen" --media="0" --agent_server="" --agent_user="" 
--agent_password=""  --screeninfo="1400x1050x32+rend
er+fullscreen"

user=test&userip=85.165.184.159&uniqueid=5FD74400EC3FB057970B22D2E1A0ED61&display=1003&&session=NX-SRV-ny&type=unix-cde&cache=32M&images=64M&cookie=098f6bcd4621d373cade4e83
2627b4f6&link=adsl&kbtype=pc102/us&nodelay=1&encryption=1&backingstore=never&geometry=fullscreen&media=0&agent_server=&agent_user=&agent_password=&screeninfo=1400x1050x32+r
ender+fullscreen
NX> 1000 NXNODE - Version 1.4.0-04-CVS OS (GPL)
NX> 700 Session id: nx-srv-1003-5FD74400EC3FB057970B22D2E1A0ED61
NX> 705 Session display: 1003
NX> 703 Session type: unix-cde
NX> 701 Proxy cookie: 01c32ca6723fac40b0be1cd82887d091
NX> 702 Proxy IP: 127.0.0.1
NX> 706 Agent cookie: 098f6bcd4621d373cade4e832627b4f6
NX> 704 Session cache: unix-cde
NX> 707 SSL tunneling: 1
NX> 710 Session status: running
NX> 1002 Commit
NX> 1006 Session status: running
NX> 105 bye
Bye
NX> 999 Bye


On the client side (Windows XP), in the .nx-directory:
S-[session-id]/errors:
Loop: WARNING! Connected to remote NXPROXY version 1.5.0 with local 
version 1.4.0.

S-[session-id]/session:

NXPROXY - Version 1.4.0

Copyright (C) 2001, 2004 NoMachine.
See http://www.nomachine.com/ for more information.

Info: Proxy running in client mode with pid '3160'.
Info: Waiting for connection from any host on port '4354'.
Info: Accepted connection from '127.0.0.1' on port '4448'.
Info: Connection with remote proxy established.
Warning: Connected to remote NXPROXY version 1.5.0 with local version 1.4.0.
Warning: Consider checking http://www.nomachine.com/ for updates.
Info: Handshaking with remote proxy ':5003' completed.
Info: Synchronizing local and remote caches.
Info: Using cache parameters 4/262144/32768KB/32768KB.
Info: Using image cache parameters 1/1/65536KB.
Info: Using adsl link parameters 8192/80/16/4096.
Info: Using pack method '16m-jpeg-7' with session 'unix-cde'.
Info: Using ZLIB data compression level 3.
Info: Using ZLIB data threshold set to 32.
Info: Using ZLIB stream compression level 6.
Info: Using remote ZLIB data compression level 3.
Info: Using remote ZLIB stream compression level 6.
Info: No suitable cache file found.
Info: Using remote server connected on port '4354'.
Info: Starting X protocol compression.
Info: Established X server connection.
Warning: No data received from remote proxy within 30 seconds.
Info: End of session requested by signal '15' 'SIGTERM'.
Info: Shutting down the link and exiting.

Anyone got any clues to what I can do to get this fixed ? This is my 
n'th time trying to get this to work, and so far it's not been my 
year.... :-(

I've googled, and googled, but nothing I've found have helped.... - I'm 
stuck.

The nxlibs sources is the latest development sources, downloaded 
yesterday, and the FreeNX server is 0.4.1.

/Terje




More information about the FreeNX-kNX mailing list