Hi, I'm having hard time with linuxterminalserver-1.5.0-client-r21. I'm trying to compile custom system using Gentoo's Portage ebuilds. All I do is standard procedure of Gentoo installation now, except I base my system on uclibc. I even drop kdrive and I'm testing full blown Xorg. Gentoo ebuild incorporates two patches: nxcomp-1.5.0-gcc4.patch nxcomp-1.5.0-pic.patch. So: I have uclibc, shell, some useful tools, initscripts, full Xorg, icewm for testing, xterm, screen and nxclient-2xterminalserver. All goes right but my nxclient doesn't work. I already tried recompiling it in various ways (different qt, openssl etc) but nothing helped. It appears that during execution of serial steps during protocol initialization the client dies because he sees no confirmation from server that this is the end of one-time information. It goes like this: I connect for a first time (here is runlog): [Sat Jul 5 02:15:10 2008]: Setting environment variable 'NX_SYSTEM' to '/usr/NX' [Sat Jul 5 02:15:10 2008]: Setting environment variable 'NX_ROOT' to '/root/.nx' [Sat Jul 5 02:15:10 2008]: Setting environment variable 'NX_HOME' to '/root' [Sat Jul 5 02:15:10 2008]: Starting 2X TerminalServer Client version 1.5.0-106 [Sat Jul 5 02:15:10 2008]: Starting font debug Setting font from nxclient.conf: 'Helvetica,12,-1,5,50,0,0,0,0,0' Font was set to: 'Helvetica' And the result is: 'Helvetica [Adobe]' End of font debug [Sat Jul 5 02:15:10 2008]: Initializing the login dialog. [Sat Jul 5 02:15:10 2008]: Config File Name set to: '/root/.nx/config/nxclient.conf'. [Sat Jul 5 02:15:10 2008]: System 2X TerminalServer Client dir set to: '/usr/NX'. [Sat Jul 5 02:15:10 2008]: Personal 2X TerminalServer Client dir set to: '/root/.nx'. [Sat Jul 5 02:15:10 2008]: creating SessionSettings='' [Sat Jul 5 02:15:10 2008]: load '' while sessionName='' [Sat Jul 5 02:15:10 2008]: LoginDialog: loadUserAndPassword [Sat Jul 5 02:15:20 2008]: creating SessionSettings='te' [Sat Jul 5 02:15:20 2008]: load '' while sessionName='te' [Sat Jul 5 02:15:29 2008]: load '/root/.nx/config/te.nxs' while sessionName='' [Sat Jul 5 02:15:29 2008]: load 'te' while sessionName='/root/.nx/config/te.nxs' [Sat Jul 5 02:15:29 2008]: LoginDialog: slotChangeSession [Sat Jul 5 02:15:29 2008]: LoginDialog: loadUserAndPassword [Sat Jul 5 02:15:29 2008]: load 'te' while sessionName='te' [Sat Jul 5 02:15:29 2008]: LoginDialog: slotChangeSession [Sat Jul 5 02:15:29 2008]: LoginDialog: loadUserAndPassword [Sat Jul 5 02:15:35 2008]: LoginDialog: login setupGui 1 [Sat Jul 5 02:15:35 2008]: Setting environment variable 'NX_HOME' to '/root' [Sat Jul 5 02:15:35 2008]: Setting environment variable 'NX_ROOT' to '/root/.nx' [Sat Jul 5 02:15:35 2008]: Setting environment variable 'NX_SYSTEM' to '/usr/NX' [Sat Jul 5 02:15:35 2008]: Trying the XAUTHORITY environment variable with value []. [Sat Jul 5 02:15:35 2008]: Trying the default value [/root/.Xauthority]. [Sat Jul 5 02:15:35 2008]: Setting environment variable 'XAUTHORITY' to '/root/.Xauthority' [Sat Jul 5 02:15:35 2008]: Setting environment variable 'LD_LIBRARY_PATH' to '/usr/NX/lib:/usr/NX/lib' [Sat Jul 5 02:15:35 2008]: Setting environment variable 'HOME' to '/root' [Sat Jul 5 02:15:35 2008]: Setting environment variable 'PATH' to '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/qt/3/bin:/usr/NX/bin' [Sat Jul 5 02:15:35 2008]: Setting environment variable 'TEMP' to '/tmp' [Sat Jul 5 02:15:35 2008]: Setting environment variable 'NX_VERSION' to '1.5.0' [Sat Jul 5 02:15:35 2008]: Trying to write the ssh key into [/root/.nx/temp/2107/keylog] [Sat Jul 5 02:15:35 2008]: SSH key file path [/root/.nx/temp/2107/keylog] [Sat Jul 5 02:15:35 2008]: LoginDialog: startProgressTimer [Sat Jul 5 02:15:35 2008]: LoginDialog::ShowConnectionStatus code=[240] str=[Setting up the X environment] error=[0] [Sat Jul 5 02:15:35 2008]: LoginDialog: startProgressTimer [Sat Jul 5 02:15:35 2008]: Showing progress dialog: Setting up the X environment [Sat Jul 5 02:15:35 2008]: Going to get the X authorization cookie on display. [Sat Jul 5 02:15:35 2008]: Trying the XAUTHORITY environment variable with value [/root/.Xauthority]. [Sat Jul 5 02:15:35 2008]: Running command [/usr/X11R6/bin/xauth -f /root/.Xauthority nextract - :0.0 | cut -f 9 -d ' ' 1>/root/.nx/temp/2107/authlog 2>/dev/null]. [Sat Jul 5 02:15:35 2008]: Command run. [Sat Jul 5 02:15:35 2008]: QString::arg(): Argument missing: (null), 1707634549 [Sat Jul 5 02:15:35 2008]: Created cookie. [Sat Jul 5 02:15:35 2008]: Trying the XAUTHORITY environment variable with value [/root/.Xauthority]. [Sat Jul 5 02:15:35 2008]: Adding the Unix domain cookie with host name [] and port [:0.0]. [Sat Jul 5 02:15:35 2008]: Running the X authorization utility. [Sat Jul 5 02:15:35 2008]: Got or created the X authorization cookie. [Sat Jul 5 02:15:35 2008]: LoginDialog::ShowConnectionStatus code=[241] str=[Connecting to 83.19.67.237] error=[0] [Sat Jul 5 02:15:35 2008]: Received line from nxssh process [NX> 203 NXSSH running with pid: 2112 ] with code [203] [Sat Jul 5 02:15:35 2008]: Received code[203] [Sat Jul 5 02:15:35 2008]: Received line from nxssh process [NX> 285 Enabling check on switch command ] with code [285] [Sat Jul 5 02:15:35 2008]: Received code[285] [Sat Jul 5 02:15:35 2008]: Received line from nxssh process [NX> 285 Enabling skip of SSH config files ] with code [285] [Sat Jul 5 02:15:35 2008]: Received code[285] [Sat Jul 5 02:16:35 2008]: printFatalError [Connection timeout] [Sat Jul 5 02:16:35 2008]: KillAllComponents 0x822a198 [Sat Jul 5 02:16:35 2008]: LoginDialog: stopAllTimers [Sat Jul 5 02:16:35 2008]: LoginDialog: stopProgressTimer [Sat Jul 5 02:16:35 2008]: LoginDialog::killAllComponents() stopping NXProtoSSH [Sat Jul 5 02:16:35 2008]: LoginDialog::killAllComponents() stopping NXssh [Sat Jul 5 02:16:35 2008]: end of killAllComponents [Sat Jul 5 02:16:35 2008]: LoginDialog::ShowConnectionStatus code=[268] str=[Connection timeout] error=[1] [Sat Jul 5 02:16:35 2008]: LoginDialog: isReconnecting() [24] [Sat Jul 5 02:16:35 2008]: LoginDialog: printFatalError: we were reconnecting and we failed - disabling automatic reconnect [Sat Jul 5 02:16:35 2008]: Logfile path [/root/.nx/temp/2107/sshlog] exists. OK, I understand it failed waiting for the server to confirm its message, what can be found here (sshlog): NX> 203 NXSSH running with pid: 2112 NX> 285 Enabling check on switch command NX> 285 Enabling skip of SSH config files NX> 200 Connected to address: 83.19.67.237 on port: 22 NX> 211 The authenticity of host '83.19.67.237 (83.19.67.237)' can't be established. RSA key fingerprint is d9:de:ed:3b:4f:80:6e:65:8f:91:f2:b5:aa:89:89:5e. Are you sure you want to continue connecting (yes/no)? Ooops, but server (nxserver-freenx) did send the confirmation (I don't know it, I suspect that it did as the client works on "normal" ;-) Gentoo perfectly). OK, I can always add this key manually as this is just plain ssh auth path. So when I did, I tried again: (runlog-second): [Sat Jul 5 02:18:27 2008]: Setting environment variable 'NX_SYSTEM' to '/usr/NX' [Sat Jul 5 02:18:27 2008]: Setting environment variable 'NX_ROOT' to '/root/.nx' [Sat Jul 5 02:18:27 2008]: Setting environment variable 'NX_HOME' to '/root' [Sat Jul 5 02:18:27 2008]: Starting 2X TerminalServer Client version 1.5.0-106 [Sat Jul 5 02:18:27 2008]: Starting font debug Setting font from nxclient.conf: 'Helvetica,12,-1,5,50,0,0,0,0,0' Font was set to: 'Helvetica' And the result is: 'Helvetica [Adobe]' End of font debug [Sat Jul 5 02:18:27 2008]: Initializing the login dialog. [Sat Jul 5 02:18:27 2008]: Config File Name set to: '/root/.nx/config/nxclient.conf'. [Sat Jul 5 02:18:27 2008]: System 2X TerminalServer Client dir set to: '/usr/NX'. [Sat Jul 5 02:18:27 2008]: Personal 2X TerminalServer Client dir set to: '/root/.nx'. [Sat Jul 5 02:18:27 2008]: creating SessionSettings='' [Sat Jul 5 02:18:27 2008]: load 'te' while sessionName='' [Sat Jul 5 02:18:27 2008]: LoginDialog: slotChangeSession [Sat Jul 5 02:18:27 2008]: LoginDialog: loadUserAndPassword [Sat Jul 5 02:18:27 2008]: load 'te' while sessionName='te' [Sat Jul 5 02:18:27 2008]: LoginDialog: slotChangeSession [Sat Jul 5 02:18:27 2008]: LoginDialog: loadUserAndPassword [Sat Jul 5 02:18:27 2008]: LoginDialog: loadUserAndPassword [Sat Jul 5 02:18:39 2008]: LoginDialog: login setupGui 1 [Sat Jul 5 02:18:39 2008]: Setting environment variable 'NX_HOME' to '/root' [Sat Jul 5 02:18:39 2008]: Setting environment variable 'NX_ROOT' to '/root/.nx' [Sat Jul 5 02:18:39 2008]: Setting environment variable 'NX_SYSTEM' to '/usr/NX' [Sat Jul 5 02:18:39 2008]: Trying the XAUTHORITY environment variable with value []. [Sat Jul 5 02:18:39 2008]: Trying the default value [/root/.Xauthority]. [Sat Jul 5 02:18:39 2008]: Setting environment variable 'XAUTHORITY' to '/root/.Xauthority' [Sat Jul 5 02:18:39 2008]: Setting environment variable 'LD_LIBRARY_PATH' to '/usr/NX/lib:/usr/NX/lib' [Sat Jul 5 02:18:39 2008]: Setting environment variable 'HOME' to '/root' [Sat Jul 5 02:18:39 2008]: Setting environment variable 'PATH' to '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/qt/3/bin:/usr/NX/bin' [Sat Jul 5 02:18:39 2008]: Setting environment variable 'TEMP' to '/tmp' [Sat Jul 5 02:18:39 2008]: Setting environment variable 'NX_VERSION' to '1.5.0' [Sat Jul 5 02:18:39 2008]: Trying to write the ssh key into [/root/.nx/temp/2121/keylog] [Sat Jul 5 02:18:39 2008]: SSH key file path [/root/.nx/temp/2121/keylog] [Sat Jul 5 02:18:39 2008]: LoginDialog: startProgressTimer [Sat Jul 5 02:18:39 2008]: LoginDialog::ShowConnectionStatus code=[240] str=[Setting up the X environment] error=[0] [Sat Jul 5 02:18:39 2008]: LoginDialog: startProgressTimer [Sat Jul 5 02:18:39 2008]: Showing progress dialog: Setting up the X environment [Sat Jul 5 02:18:39 2008]: Going to get the X authorization cookie on display. [Sat Jul 5 02:18:39 2008]: Trying the XAUTHORITY environment variable with value [/root/.Xauthority]. [Sat Jul 5 02:18:39 2008]: Running command [/usr/X11R6/bin/xauth -f /root/.Xauthority nextract - :0.0 | cut -f 9 -d ' ' 1>/root/.nx/temp/2121/authlog 2>/dev/null]. [Sat Jul 5 02:18:39 2008]: Command run. [Sat Jul 5 02:18:39 2008]: Got or created the X authorization cookie. [Sat Jul 5 02:18:39 2008]: LoginDialog::ShowConnectionStatus code=[241] str=[Connecting to 83.19.67.237] error=[0] [Sat Jul 5 02:18:39 2008]: Received line from nxssh process [NX> 203 NXSSH running with pid: 2125 ] with code [203] [Sat Jul 5 02:18:39 2008]: Received code[203] [Sat Jul 5 02:18:39 2008]: Received line from nxssh process [NX> 285 Enabling check on switch command ] with code [285] [Sat Jul 5 02:18:39 2008]: Received code[285] [Sat Jul 5 02:18:39 2008]: Received line from nxssh process [NX> 285 Enabling skip of SSH config files ] with code [285] [Sat Jul 5 02:18:39 2008]: Received code[285] [Sat Jul 5 02:18:39 2008]: Received line from nxssh process [NX> 200 Connected to address: 83.19.67.237 on port: 22 ] with code [200] [Sat Jul 5 02:18:39 2008]: Received code[200] [Sat Jul 5 02:19:39 2008]: Received SIGCHILD [Sat Jul 5 02:19:39 2008]: printFatalError [Connection timeout] [Sat Jul 5 02:19:39 2008]: KillAllComponents 0x81dcc58 [Sat Jul 5 02:19:39 2008]: LoginDialog: stopAllTimers [Sat Jul 5 02:19:39 2008]: LoginDialog: stopProgressTimer [Sat Jul 5 02:19:39 2008]: LoginDialog::killAllComponents() stopping NXProtoSSH [Sat Jul 5 02:19:39 2008]: LoginDialog::killAllComponents() stopping NXssh [Sat Jul 5 02:19:39 2008]: end of killAllComponents [Sat Jul 5 02:19:39 2008]: LoginDialog::ShowConnectionStatus code=[268] str=[Connection timeout] error=[1] [Sat Jul 5 02:19:39 2008]: LoginDialog: isReconnecting() [24] [Sat Jul 5 02:19:39 2008]: LoginDialog: printFatalError: we were reconnecting and we failed - disabling automatic reconnect [Sat Jul 5 02:19:39 2008]: Logfile path [/root/.nx/temp/2121/sshlog] exists. [Sat Jul 5 02:20:37 2008]: LoginDialog::ShowConnectionStatus code=[251] str=[Disconnecting...] error=[0] [Sat Jul 5 02:20:37 2008]: KillAllComponents 0x81dcc58 [Sat Jul 5 02:20:37 2008]: LoginDialog: stopAllTimers [Sat Jul 5 02:20:37 2008]: LoginDialog: stopProgressTimer [Sat Jul 5 02:20:37 2008]: LoginDialog::killAllComponents() stopping NXProtoSSH [Sat Jul 5 02:20:37 2008]: LoginDialog::killAllComponents() stopping NXssh [Sat Jul 5 02:20:37 2008]: end of killAllComponents [Sat Jul 5 02:20:41 2008]: LoginDialog: closeEvent received! [Sat Jul 5 02:20:41 2008]: LoginDialog: stopAllTimers [Sat Jul 5 02:20:41 2008]: LoginDialog: stopProgressTimer Hmm, apparently the communication timed out because of some stuck in protocol. There is exactly one minute lag between action and failure, so I assume this is programmed timeout. Well, this says not much more: (sshlog-second) NX> 203 NXSSH running with pid: 2125 NX> 285 Enabling check on switch command NX> 285 Enabling skip of SSH config files NX> 200 Connected to address: 83.19.67.237 on port: 22 NX> 202 Authenticating user: nx NX> 208 Using auth method: publickey HELLO NXSERVER - Version 2.1.0-72 OS (GPL, using backend: 3.2.0) NX> 105 Killed by signal 15. Any idea guys what is wrong? am I doing some obvious mistake? I got much more things to check yet (for example to compile the same setup using full glibc, omg, it will be few hours more), but maybe some of you got hints now? I got also suspicion that this is my window manager who doesn't pop window with question about key acceptance and later on about some other things, but 1. I don't know about what the client is to ask when there is no screen to resume, 2... got lost... Bit frustrating, isn't it? ;-) Thank you. Janusz.