NoMachine (NX) is a propietary remote desktop system, supporting multiple hosts and keypair-based log-ins.
There are three parts to a NX system:
There are three packages available to download from NoMachine. All clients must have installed the client package, whereas all three packages must be installed on servers and nodes. This is because parts of the client package is used by the node, parts of which are used by the server.
/usr
to create /usr/NX
directory.
The automated commands are not compatible with BusyBox and the SliTaz configuration, so the installation commands need to be edited:
/etc/rc.d/rc#.d/
all pointing to /etc/init.d/
. This can be easily achieved with the following command performed as the root user:for NUM in 0 1 2 3 4 5 6 ; do cp /etc/rc.d/init.d /etc/rc.d/rc$NUM.d; done
/usr/NX/scripts/setup/nxserver
by:sudo /usr/NX/scripts/setup/nxserver –install fedora
/usr/NX/etc/server.cfg
(line 31, 36 & 236)/usr/NX/etc/server.cfg
The automated commands are not compatible with BusyBox and the SliTaz configuration, so the installation commands need to be edited:
/usr/NX/scripts/setup/nxnode
by:local.sh
on line 1305sudo /usr/NX/scripts/setup/nxnode –install fedora
/usr/NX/etc/node.cfg
(line 32, 342)
sudo passwd -u nx
sudo /usr/NX/bin/nxserver –usercheck username
NX> 900 Verifying public key authentication for NX user: //username//. NX> 900 Adding public key for user: //username// to the authorized keys file. NX> 716 Public key added to: /home/ //username// /.ssh/authorized_keys2. NX> 900 Verifying public key authentication for NX user: //username//. NX> 900 Public key authentication succeeded. NX> 999 Bye.
You should now be able to log-in to the server/node using a normal username and password.
When the default key pair authenticates correctly, they should be regenerated for security reasons. Issue the following command to create a new key pair:
sudo /usr/NX/bin/nxserver –keygen
New keys should be created. Distribute the secret key /usr/NX/share/keys/default.id_dsa.key
to clients and import it in the client GUI (Configure > General > Server > Key… > Import).
Restart the server (sudo /usr/NX/bin/nxserver –restart
) to complete the changes.
PasswordAuthentication no AllowUsers nx other usernames
NX> 203 NXSSH running with pid: //PID// 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: //IP address// on port: //SSH port// NX> 202 Authenticating user: nx NX> 208 Using auth method: publickey NX> 204 Authentication failed.
then the /usr/nx/home/nx/.ssh/authorized_keys2
file is likely at fault.