[FreeNX-kNX] Authentication Problem freenx on Debian Etch 4.0

Alastair Johnson alastair at solutiontrax.com
Thu Jun 12 12:24:56 UTC 2008


Thanks for the very complete log set :-)

I've not heard of anyone using the unix-xdm session type before, and I'm 
not certain freenx handles it. I can't see a specific handler for it in 
nxnode as there is for other session types like unix-kde and unix-gnome. 
  From a quick look (0.7.2 on fedora 9) it's not clear to me what will 
happen with unix-xdm. Does anybody know?

If you're reasonably comfortable with shell scripts then have a look at 
nxnode. Default variables are set in nxloadconfig and overridden by 
node.conf.

KLGMAIL wrote:
> Alastair, thank for helping, see below for "session" , regards, Karl
> 
> ks359751:/home/userpt18z97# nxserver --stop
> NX> 100 NXSERVER - Version 1.5.0-60 OS (GPL)
> NX> 123 Service stopped
> NX> 999 Bye
> ks359751:/home/userpt18z97# nxsetup --install
> ------> It is recommended that you use the NoMachine key for
>        easier setup. If you answer "y", FreeNX creates a custom
>        KeyPair and expects you to setup your clients manually.
>        "N" is default and uses the NoMachine key for installation.
> 
> Do you want to use your own custom KeyPair? [y/N] NSetting up 
> /etc/nxserver ...done
> Setting up /var/lib/nxserver/db ...done
> Setting up /var/log/nxserver.log ...done
> Setting up known_hosts and authorized_keys2 ...done
> Setting up permissions ...done
> 
> ----> Testing your nxserver configuration ...
> Warning: Could not find nxdesktop in /usr/lib/nx. RDP sessions won't work.
> Warning: Could not find nxviewer in /usr/lib/nx. VNC sessions won't work.
> Warning: Invalid value "CUPS_ETC=/etc/cups/"
>         Users will not be able to enable printing.
> Warning: Invalid value "COMMAND_START_KDE=startkde"
>         Users will not be able to request a KDE session.
> Warning: Invalid value "COMMAND_START_GNOME=gnome-session"
>         Users will not be able to request a Gnome session.
> Warning: Invalid value "COMMAND_START_CDE=cdwm"
>         Users will not be able to request a CDE session.
> Warning: Invalid value "COMMAND_SMBMOUNT=smbmount". You'll not be able 
> to use SAMBA.
> Warning: Invalid value "COMMAND_SMBUMOUNT=smbumount". You'll not be able 
> to use SAMBA.
> Warning: Invalid value "COMMAND_CUPSD=/usr/sbin/cupsd"
>         Users will not be able to enable printing.
> 
>  Warnings occured during config check.
>  To enable these features please correct the configuration file.
> 
> <---- done
> 
> ----> Testing your nxserver connection ...
> HELLO NXSERVER - Version 1.5.0-60 OS (GPL)
> <--- done
> 
> Ok, nxserver is ready.
> 
> PAM authentication enabled:
>  All users will be able to login with their normal passwords.
> 
>  PAM authentication will be done through SSH.
>  Please ensure that SSHD on localhost accepts password authentication.
> 
>  You can change this behaviour in the /etc/nxserver/node.conf file.
> Have Fun!
> ks359751:/home/userpt18z97# nxserver --status
> NX> 100 NXSERVER - Version 1.5.0-60 OS (GPL)
> NX> 110 NX Server is running
> NX> 999 Bye
> ks359751:/home/userpt18z97# nxsteup --adduser userpt18z97
> -bash: nxsteup: command not found
> ks359751:/home/userpt18z97# nxserver --adduser userpt18z97
> NX> 100 NXSERVER - Version 1.5.0-60 OS (GPL)
> NX> 1000 NXNODE - Version 1.5.0-60 OS (GPL)
> NX> 716 Public key is already present in: 
> /home/userpt18z97/.ssh/authorized_keys2
> NX> 1001 Bye.
> NX> 999 Bye
> ks359751:/home/userpt18z97# nxserver --passwd userpt18z97
> NX> 100 NXSERVER - Version 1.5.0-60 OS (GPL)
> New password:          (I set same password as login)
> Password changed.
> NX> 999 Bye
> ks359751:/home/userpt18z97# nxserver --passwd userpt18z97
> NX> 100 NXSERVER - Version 1.5.0-60 OS (GPL)
> New password:
> Password changed.
> NX> 999 Bye
> ks359751:/home/userpt18z97# cd .nx
> ks359751:/home/userpt18z97/.nx# ls
> C-ks359751.kimsufi.com-1000-B5D6DDF2D45987D54FDE45B74788C86C
> ks359751:/home/userpt18z97/.nx# cd C-ks*
> ks359751:/home/userpt18z97/.nx/C-ks359751.kimsufi.com-1000-B5D6DDF2D45987D54FDE45B74788C86C# 
> ls
> authority  errors  options  pids  scripts  session  stats
> 
> ********************************
> 
> ks359751:/home/userpt18z97/.nx/C-ks359751.kimsufi.com-1000-B5D6DDF2D45987D54FDE45B74788C86C# 
> cat errors
> ks359751:/home/userpt18z97/.nx/C-ks359751.kimsufi.com-1000-B5D6DDF2D45987D54FDE45B74788C86C 
> 
> 
> ***************************
> ************************
> 
> # cat session
> 
> NXAGENT - Version 2.1.0
> 
> Copyright (C) 2001, 2006 NoMachine.
> See http://www.nomachine.com/ for more information.
> 
> Info: Agent running with pid '20378'.
> Session: Starting session at 'Thu Jun 12 13:07:14 2008'.
> Info: Proxy running in server mode with pid '20378'.
> Info: Waiting for connection from '127.0.0.1' on port '5000'.
> Info: Aborting the procedure due to signal '15'.
> 
> Fatal server error:
> Error: Unable to open display 
> 'nx/nx,options=/home/userpt18z97/.nx/C-ks359751.kimsufi.com-1000-B5D6DDF2D45987D54FDE45B74788C86C/options:1000'. 
> 
> 
> ks359751:/home/userpt18z97/.nx/C-ks359751.kimsufi.com-1000-B5D6DDF2D45987D54FDE45B74788C86C# 
> 
> 
> *************************************************************
> ***********************************************************
> NX> 203 NXSSH running with pid: 3676
> 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: 91.121.159.94 on port: 22
> NX> 202 Authenticating user: nx
> NX> 208 Using auth method: publickey
> HELLO NXSERVER - Version 1.5.0-60 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: userpt18z97
> NX> 102 Password:
> NX> 103 Welcome to: ks359751.kimsufi.com user: userpt18z97
> NX> 105 listsession --user="userpt18z97" --status="suspended,running" 
> --geometry="1152x864x16+render" --type="unix-xdm"
> NX> 127 Sessions list of user 'userpt18z97' for reconnect:
> 
> Display Type             Session ID                       Options  Depth 
> Screen         Status      Session Name
> ------- ---------------- -------------------------------- -------- ----- 
> -------------- ----------- ------------------------------
> 
> 
> NX> 148 Server capacity: not reached for user: userpt18z97
> NX> 105 startsession  --xdm_port="-1" --link="adsl" --backingstore="1" 
> --encryption="1" --cache="16M" --images="64M" --media="0" 
> --session="Debian" --type="unix-xdm" --geometry="1152x830" 
> --kbtype="pc102/es" --screeninfo="1152x830x16+render"
> 
> NX> 1000 NXNODE - Version 1.5.0-60 OS (GPL)
> NX> 700 Session id: 
> ks359751.kimsufi.com-1000-B5D6DDF2D45987D54FDE45B74788C86C
> NX> 705 Session display: 1000
> NX> 703 Session type: unix-xdm
> NX> 701 Proxy cookie: eeddca62351e27990869b26ceb363d49
> NX> 702 Proxy IP: 127.0.0.1
> NX> 706 Agent cookie: eeddca62351e27990869b26ceb363d49
> NX> 704 Session cache: unix-xdm
> NX> 707 SSL tunneling: 1
> NX> 1009 Session status: starting
> NX> 710 Session status: running
> NX> 1002 Commit
> NX> 105 /usr/lib/nx/nxserver: line 1190: 20199 Terminado               
> 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{B5D6DDF2D45987D54FDE45B74788C86C}: 
> No existe el fichero o el directorio.
> mv: no se puede efectuar `stat' sobre 
> «/var/lib/nxserver/db/running/sessionId{B5D6DDF2D45987D54FDE45B74788C86C}»: 
> No existe el fichero o el directorio
> NX> 1006 Session status: closed
> NX> 1001 Bye.
> bye
> Bye
> NX> 999 Bye
> (UNKNOWN) [127.0.0.1] 5000 (?) : Connection refused
> NX> 280 Exiting on signal: 15
> ********************************************
> FULL /var/log/....
> -- NX SERVER START: -c /usr/lib/nx/nxserver - ORIG_COMMAND=
> HELLO NXSERVER - Version 1.5.0-60 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: userpt18z97
> NX> 102 Password:
> Info: Auth method: passdb
> NX> 103 Welcome to: ks359751.kimsufi.com user: userpt18z97
> NX> 105 listsession --user="userpt18z97" --status="suspended,running" 
> --geometry="1152x864x16+render" --type="unix-xdm"
> NX> 127 Sessions list of user 'userpt18z97' for reconnect:
> 
> Display Type             Session ID                       Options  Depth 
> Screen         Status      Session Name
> ------- ---------------- -------------------------------- -------- ----- 
> -------------- ----------- ------------------------------
> 
> 
> NX> 148 Server capacity: not reached for user: userpt18z97
> NX> 105 startsession  --xdm_port="-1" --link="adsl" --backingstore="1" 
> --encryption="1" --cache="16M" --images="64M" --media="0" 
> --session="Debian" --type="unix-xdm" --geometry="1152x830" 
> --kbtype="pc102/es" --screeninfo="1152x830x16+render"
> 
> &xdm_port=-1&link=adsl&backingstore=1&encryption=1&cache=16M&images=64M&media=0&session=Debian&type=unix-xdm&geometry=1152x830&kbtype=pc102/es&screeninfo=1152x830x16+render&clientproto=1.5.0&user=userpt18z97&userip=85.57.3.31&uniqueid=569E21E38944478977DE3A4BA281FD7A&display=1000&host=127.0.0.1 
> 
> NX> 1000 NXNODE - Version 1.5.0-60 OS (GPL)
> NX> 700 Session id: 
> ks359751.kimsufi.com-1000-569E21E38944478977DE3A4BA281FD7A
> NX> 705 Session display: 1000
> NX> 703 Session type: unix-xdm
> NX> 701 Proxy cookie: 19da9b269001eb69134c6637973e7aa0
> NX> 702 Proxy IP: 127.0.0.1
> NX> 706 Agent cookie: 19da9b269001eb69134c6637973e7aa0
> NX> 704 Session cache: unix-xdm
> NX> 707 SSL tunneling: 1
> NX> 1009 Session status: starting
> NX> 710 Session status: running
> NX> 1002 Commit
> NX> 1006 Session status: running
> NX> 105 NX> 1004 Error: NX Agent exited with exit status 1.
> NX> 1006 Session status: closed
> NX> 596 Session startup failed.
> NX> 1001 Bye.
> bye
> Bye
> NX> 999 Bye
> -- NX SERVER START: -c /usr/lib/nx/nxserver - ORIG_COMMAND=
> HELLO NXSERVER - Version 1.5.0-60 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: userpt18z97
> NX> 102 Password:
> Info: Auth method: passdb
> NX> 103 Welcome to: ks359751.kimsufi.com user: userpt18z97
> NX> 105 listsession --user="userpt18z97" --status="suspended,running" 
> --geometry="1152x864x16+render" --type="unix-xdm"
> NX> 127 Sessions list of user 'userpt18z97' for reconnect:
> 
> Display Type             Session ID                       Options  Depth 
> Screen         Status      Session Name
> ------- ---------------- -------------------------------- -------- ----- 
> -------------- ----------- ------------------------------
> 
> 
> NX> 148 Server capacity: not reached for user: userpt18z97
> NX> 105 startsession  --xdm_port="-1" --link="adsl" --backingstore="1" 
> --encryption="1" --cache="16M" --images="64M" --media="0" 
> --session="Debian" --type="unix-xdm" --geometry="1152x830" 
> --kbtype="pc102/es" --screeninfo="1152x830x16+render"
> 
> &xdm_port=-1&link=adsl&backingstore=1&encryption=1&cache=16M&images=64M&media=0&session=Debian&type=unix-xdm&geometry=1152x830&kbtype=pc102/es&screeninfo=1152x830x16+render&clientproto=1.5.0&user=userpt18z97&userip=85.57.3.31&uniqueid=F5099CADE8811216ACD2E790D1E1ACA2&display=1000&host=127.0.0.1 
> 
> NX> 1000 NXNODE - Version 1.5.0-60 OS (GPL)
> NX> 700 Session id: 
> ks359751.kimsufi.com-1000-F5099CADE8811216ACD2E790D1E1ACA2
> NX> 705 Session display: 1000
> NX> 703 Session type: unix-xdm
> NX> 701 Proxy cookie: edfb56913c9651ef640ecc7f59c196d7
> NX> 702 Proxy IP: 127.0.0.1
> NX> 706 Agent cookie: edfb56913c9651ef640ecc7f59c196d7
> NX> 704 Session cache: unix-xdm
> NX> 707 SSL tunneling: 1
> NX> 1009 Session status: starting
> NX> 710 Session status: running
> NX> 1002 Commit
> NX> 1006 Session status: running
> NX> 105 NX> 1004 Error: NX Agent exited with exit status 1.
> NX> 1006 Session status: closed
> NX> 596 Session startup failed.
> NX> 1001 Bye.
> bye
> Bye
> NX> 999 Bye
> -- NX SERVER START: -c /usr/lib/nx/nxserver - ORIG_COMMAND=
> HELLO NXSERVER - Version 1.5.0-60 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: userpt18z97
> NX> 102 Password:
> Info: Auth method: passdb
> NX> 103 Welcome to: ks359751.kimsufi.com user: userpt18z97
> NX> 105 listsession --user="userpt18z97" --status="suspended,running" 
> --geometry="1152x864x16+render" --type="unix-xdm"
> NX> 127 Sessions list of user 'userpt18z97' for reconnect:
> 
> Display Type             Session ID                       Options  Depth 
> Screen         Status      Session Name
> ------- ---------------- -------------------------------- -------- ----- 
> -------------- ----------- ------------------------------
> 
> 
> NX> 148 Server capacity: not reached for user: userpt18z97
> NX> 105 startsession  --xdm_port="-1" --link="adsl" --backingstore="1" 
> --encryption="1" --cache="16M" --images="64M" --media="0" 
> --session="Debian" --type="unix-xdm" --geometry="1152x830" 
> --kbtype="pc102/es" --screeninfo="1152x830x16+render"
> 
> &xdm_port=-1&link=adsl&backingstore=1&encryption=1&cache=16M&images=64M&media=0&session=Debian&type=unix-xdm&geometry=1152x830&kbtype=pc102/es&screeninfo=1152x830x16+render&clientproto=1.5.0&user=userpt18z97&userip=85.57.3.31&uniqueid=FE34BD565D372724A9A2AFFC836E9A8A&display=1000&host=127.0.0.1 
> 
> NX> 1000 NXNODE - Version 1.5.0-60 OS (GPL)
> NX> 700 Session id: 
> ks359751.kimsufi.com-1000-FE34BD565D372724A9A2AFFC836E9A8A
> NX> 705 Session display: 1000
> NX> 703 Session type: unix-xdm
> NX> 701 Proxy cookie: b2ff884ad9b8e0fbcf14e66297f1ad48
> NX> 702 Proxy IP: 127.0.0.1
> NX> 706 Agent cookie: b2ff884ad9b8e0fbcf14e66297f1ad48
> NX> 704 Session cache: unix-xdm
> NX> 707 SSL tunneling: 1
> NX> 1009 Session status: starting
> NX> 710 Session status: running
> NX> 1002 Commit
> NX> 1006 Session status: running
> NX> 105 NX> 1004 Error: NX Agent exited with exit status 1.
> NX> 1006 Session status: closed
> NX> 596 Session startup failed.
> NX> 1001 Bye.
> bye
> Bye
> NX> 999 Bye
> -- NX SERVER START: -c /usr/lib/nx/nxserver - ORIG_COMMAND=nxserver --check
> HELLO NXSERVER - Version 1.5.0-60 OS (GPL)
> NX> 105 quit
> -- NX SERVER START: -c /usr/lib/nx/nxserver - ORIG_COMMAND=
> HELLO NXSERVER - Version 1.5.0-60 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: userpt18z97
> NX> 102 Password:
> Info: Auth method: passdb ssh
> NX> 404 ERROR: wrong password or login
> NX> 999 Bye
> -- NX SERVER START: -c /usr/lib/nx/nxserver - ORIG_COMMAND=
> HELLO NXSERVER - Version 1.5.0-60 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: userpt18z97
> NX> 102 Password:
> Info: Auth method: passdb ssh
> NX> 103 Welcome to: ks359751.kimsufi.com user: userpt18z97
> NX> 105 listsession --user="userpt18z97" --status="suspended,running" 
> --geometry="1152x864x16+render" --type="unix-xdm"
> NX> 127 Sessions list of user 'userpt18z97' for reconnect:
> 
> Display Type             Session ID                       Options  Depth 
> Screen         Status      Session Name
> ------- ---------------- -------------------------------- -------- ----- 
> -------------- ----------- ------------------------------
> 
> 
> NX> 148 Server capacity: not reached for user: userpt18z97
> NX> 105 startsession  --xdm_port="-1" --link="adsl" --backingstore="1" 
> --encryption="1" --cache="16M" --images="64M" --media="0" 
> --session="Debian" --type="unix-xdm" --geometry="1152x830" 
> --kbtype="pc102/es" --screeninfo="1152x830x16+render"
> 
> &xdm_port=-1&link=adsl&backingstore=1&encryption=1&cache=16M&images=64M&media=0&session=Debian&type=unix-xdm&geometry=1152x830&kbtype=pc102/es&screeninfo=1152x830x16+render&clientproto=1.5.0&user=userpt18z97&userip=85.57.3.31&uniqueid=B5D6DDF2D45987D54FDE45B74788C86C&display=1000&host=127.0.0.1 
> 
> userpt18z97 at 127.0.0.1's password:
> NX> 1000 NXNODE - Version 1.5.0-60 OS (GPL)
> NX> 700 Session id: 
> ks359751.kimsufi.com-1000-B5D6DDF2D45987D54FDE45B74788C86C
> NX> 705 Session display: 1000
> NX> 703 Session type: unix-xdm
> NX> 701 Proxy cookie: eeddca62351e27990869b26ceb363d49
> NX> 702 Proxy IP: 127.0.0.1
> NX> 706 Agent cookie: eeddca62351e27990869b26ceb363d49
> NX> 704 Session cache: unix-xdm
> NX> 707 SSL tunneling: 1
> NX> 1009 Session status: starting
> NX> 710 Session status: running
> NX> 1002 Commit
> NX> 1006 Session status: running
> NX> 105 NX> 1004 Error: NX Agent exited with exit status 1.
> NX> 1006 Session status: closed
> NX> 596 Session startup failed.
> mv: target 
> «/home/userpt18z97/.nx/F-C-ks359751.kimsufi.com-1000-B5D6DDF2D45987D54FDE45B74788C86C/» 
> is not a directory: No existe el fichero o el directorio
> NX> 1001 Bye.
> bye
> Bye
> NX> 999 Bye
> ks359751:/var/log# vi nxserver.log
> 169 NX> 700 Session id: 
> ks359751.kimsufi.com-1000-B5D6DDF2D45987D54FDE45B74788C8    6C
> 170 NX> 705 Session display: 1000
> 171 NX> 703 Session type: unix-xdm
> 172 NX> 701 Proxy cookie: eeddca62351e27990869b26ceb363d49
> 173 NX> 702 Proxy IP: 127.0.0.1
> 174 NX> 706 Agent cookie: eeddca62351e27990869b26ceb363d49
> 175 NX> 704 Session cache: unix-xdm
> 176 NX> 707 SSL tunneling: 1
> 177 NX> 1009 Session status: starting
> 178 NX> 710 Session status: running
> 179 NX> 1002 Commit
> 180 NX> 1006 Session status: running
> 181 NX> 105 NX> 1004 Error: NX Agent exited with exit status 1.
> 182 NX> 1006 Session status: closed
> 183 NX> 596 Session startup failed.
> 184 mv: target 
> «/home/userpt18z97/.nx/F-C-ks359751.kimsufi.com-1000-B5D6DDF2D459 
> 87D54FDE45B74788C86C/» is not a directory: No existe el fichero o el 
> directo rio
> 185 NX> 1001 Bye.
> 186 bye
> 187 Bye
> 188 NX> 999 Bye
>                                                              188,1 Final
> 
> ****************************************
> Karl-L. Rumpf
> T. 658 986 949
> Málaga, Spain
> klrumpf at gmail.com
> www.outsourceitforless.com
> ----- Original Message ----- From: "Alastair Johnson" 
> <alastair at solutiontrax.com>
> To: "KLGMAIL" <klrumpf at gmail.com>; "User Support for FreeNX Server and 
> kNX Client" <freenx-knx at kde.org>
> Sent: Thursday, June 12, 2008 12:07 PM
> Subject: Re: [FreeNX-kNX] Authentication Problem freenx on Debian Etch 4.0
> 
> 
>> KLGMAIL wrote:
>>> Hi all,
>>>
>>> I installed freenx on a Debian Etch 4.0  remote Box (Xming runs ok 
>>> with xdm)
>>> and get the below. Any ideas? Or has anyone a clear "how to" for 
>>> Debian etch 4.0 with xdm?
>>>
>>> I installed the .deb from krnl.nl as explained in 
>>> http://www.kriptopolis.org/freenx-acceso-remoto-escritorio-linux
>>> Install went ok.
>>>
>>> Thanks, Karl
>>>
>>>
>>>
>>> Málaga, Spain
>>>
>>>
>>>
>>>
>>>
>>> NX> 105 /usr/lib/nx/nxserver: line 1190: 26826 Terminado sleep
>>> $AGENT_STARTUP_TIMEOUT
>>>
>>> NX> 1006 Session status: running
>>>
>>> NX> 596 Session startup failed.
>>>
>>> NX> 1004 Error: NX Agent exited with exit status 1.
>>
>> There are several possible reasons for nxagent exiting with status 1, 
>> but to find out why you will need to enable logging on the server as 
>> described in the FAQ:
>> http://openfacts.berlios.de/index-en.phtml?title=FreeNX_FAQ/Problem_Solving 
>>
>> The logs under the user's home directory are likely to be most useful 
>> here. 
> 




More information about the FreeNX-kNX mailing list