[FreeNX-kNX] Installing freenx on SLED / SLES 10.2

Spiro Stathakis spiro.stathakis at gmail.com
Wed Jul 1 09:39:53 UTC 2009


Hi there ,

I am having problems installing freenx on sles / sled 10.2 and i am
hoping someone can indicate a glaring boo boo i have
made 'cos i cannot spot it ;( . Maybe a 64bit problem maybe a key
problem not sure...we do use ssh keys as our authentication
system and it works without problems (using ssh default settings) so
hoping i can get nx user happy with ssh default settings too.

I have followed the instructions here :
http://mail.kde.org/pipermail/freenx-knx/2007-October/006041.html
Using

nxclient-3.3.0-6.x86_64.tar.gz
nxnode-3.3.0-17.x86_64.tar.gz
nxserver-3.3.0-22.x86_64.tar.gz
and
freenx-server-0.7.3.tar.gz

I then run : /usr/NX/bin/nxsetup --install --setup-nomachine-key --clean --purge


Removing special user "nx" ...no crontab for nx
done
Removing session database ...done
Removing logfile ...done
Removing configuration files ...done
Setting up /usr/NX/etc ...done
Generating public/private dsa key pair.
Your identification has been saved in /usr/NX/etc/users.id_dsa.
Your public key has been saved in /usr/NX/etc/users.id_dsa.pub.
The key fingerprint is:
0b:26:a4:d4:5c:1c:2d:dc:aa:11:a8:09:f7:c8:40:30 root at nxserver
Setting up /usr/NX/var/db ...done
Setting up /var/log/nxserver.log ...done
Setting up special user "nx" ...Cannot unlock the password for `nx'!

and then....
passwd -d nx

When I run ssh -v -i  /usr/NX/etc/users.id_dsa.pub nx at localhost

i get:

ssh -v -i  /usr/NX/etc/users.id_dsa.pub nx at localhost
OpenSSH_4.2p1, OpenSSL 0.9.8a 11 Oct 2005
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to localhost [127.0.0.1] port 22.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: identity file /usr/NX/etc/users.id_dsa.pub type 2
debug1: Remote protocol version 1.99, remote software version OpenSSH_4.2
debug1: match: OpenSSH_4.2 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_4.2
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host 'localhost' is known and matches the RSA host key.
debug1: Found key in /root/.ssh/known_hosts:2
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Offering public key: /usr/NX/etc/users.id_dsa.pub
debug1: Authentications that can continue: publickey,keyboard-interactive
debug1: Next authentication method: keyboard-interactive
Password:

Despite this entry in /etc/ssh/sshd_config:
AuthorizedKeysFile      /usr/NX/etc/users.id_dsa.pub

Another curiosity is /etc/passwd:
nx:x:107:1000::/usr/NX/home/nx:/usr/NX/bin/nxserver

The file system has a /usr/NX/home path but not
/usr/NX/home/nx

I tried creating the folder copying ssh keys into but
nothing doing...

A config check shows :  /usr/NX/bin/nxloadconfig --check


Warning: Could not find nxdesktop in /usr/NX/bin. RDP sessions won't work.
Warning: Could not find nxviewer in /usr/NX/bin. VNC sessions won't work.
Error: Invalid value "NX_HOME_DIR=/usr/NX/home/nx"
Warning: Invalid value
"APPLICATION_LIBRARY_PRELOAD=/usr/NX/lib/libX11.so.6.2:/usr/NX/lib/libXext.so.6.4:/usr/NX/lib/libXcomp.so:/usr/NX/lib/libXcompext.so:/usr/NX/lib/libXrender.so.1.2".
/usr/NX/lib/libXrender.so.1.2 could not be found. Users will not be
able to run a single application in non-rootless mode.
Warning: Invalid value "COMMAND_FOOMATIC=/usr/lib/cups/driver/foomatic-ppdfile"
         Users will not be able to use foomatic.
Warning: "/usr/lib/cups/backend/nxipp" is not executable.
         Users will not be able to enable printing.
Warning: "/usr/lib/cups/backend/smb" is not executable.
         Users will not be able to enable printing.
Warning: Invalid value "COMMAND_START_CDE=cdwm"
         Users will not be able to request a CDE session.
Warning: Invalid cupsd version of "/usr/sbin/cupsd". Need version 1.2.
         Users will not be able to enable printing.
Error: Could not find 1.5.0 or 2.[01].0 or 3.[01].0 version string in
nxagent. NX 1.5.0 or 2.[01].0 or 3.[012].0 backend is needed for this
version of FreeNX.

  Errors occured during config check.
  Please correct the configuration file.


Ideally I would like the nx keys to conform the to the rest of the
users on the system who use ssh authentication
with this entry:

 AuthorizedKeysFile    .ssh/authorized_keys


Please will you advise on what I could look at next to get it up and
running....

Cheers !



More information about the FreeNX-kNX mailing list