PDA

View Full Version : HOWTO install NXServer - NXClient Knoppix 5.1



JormaH
02-13-2007, 11:07 AM
System
Knoppix version 5.1.1
Linux 2.6.19 (Debian)
OpenSSH_4.3p2 Debian-8, OpenSSL 0.9.8c 05 Sep 2006


ATTENTION!
DO NOT install FreeNX ANY version!!
Instead of that, download packets from http://www.nomachine.com and install them.


Make sure that you are doing CLEAN installation.
#apt-get remove --purge freenx nxserver nxnode nxclient
Remove directories like:
#rm -fR /usr/NX/ and /etc/nxserver/


Start installation:

dpkg --install nxclient_2.1.0-11_i386.deb

dpkg --install nxnode_2.1.0-15_i386.deb
Setting up nxnode (2.1.0-15) ...
NX> 700 Starting: install node operation at: Tue Feb 13 10:11:43 2007.
NX> 700 Autodetected system 'debian'.
NX> 700 Install log is '/usr/NX/var/log/install'.
NX> 700 Creating configuration in /usr/NX/etc/node.cfg.
NX> 700 Inspecting local CUPS environment.
NX> 700 Generating CUPS entries in: /usr/NX/etc/node.cfg.
NX> 700 Installation of version: 2.1.0-15 completed.
NX> 700 Bye.

dpkg --install nxserver_2.1.0-18_i386.deb
Setting up nxserver (2.1.0-18) ...
NX> 700 Installing: server at: Tue Feb 13 10:12:58 2007.
NX> 700 Autodetected system: debian.
NX> 700 Install log is: /usr/NX/var/log/install.
NX> 700 Creating configuration file: /usr/NX/etc/server.cfg.
NX> 723 Cannot start NX statistics:
NX> 709 NX statistics are disabled for this server.
NX> 700 WARNING: Error when trying to connect to NX server, error is:
NX> 700 WARNING: NX> 203 NXSSH running with pid: 10451
NX> 200 Connected to address: 127.0.0.1 on port: 22
NX> 202 Authenticating user: nx
NX> 208 Using auth method: publickey
NX> 204 Authentication failed..
NX> 700 WARNING: nxsetup cannot validate the sanity of the current installation:
NX> 700 WARNING: the current system or NX configuration could be broken.
NX> 700 WARNING: If difficulties arise (for example sessions cannot be started),
NX> 700 WARNING: it is advisable that you try to uninstall the NX server and the
NX> 700 WARNING: NX client packages then install them again.
NX> 700 WARNING: Search also the NoMachine Knowledge Base at the URL below:
NX> 700 WARNING: http://www.nomachine.com/kb
NX> 700 WARNING: for common errors encountered when performing a software update
NX> 700 WARNING: and the related hints on how to solve them..
NX> 700 Installation of NX server was completed with warnings.
NX> 700 Please review the install log '/usr/NX/var/log/install'
NX> 700 for further details.
NX> 700 Showing file '/usr/NX/share/documents/server/install-notices':

To activate the NX user and password DBs, you will have to edit the
NX server configuration file by hand or use the NX Server Manager
web tool available for download on the NoMachine Web site at:

http://www.nomachine.com/download-manager.php


root@knoppix-lnx:/usr/NX/home/nx/.ssh# ssh-keygen -t dsa -f nx_dsa -C "nx@knoppix-lnx"
Generating public/private dsa key pair.
Enter passphrase (empty for no passphrase): <empty for nx user>
Enter same passphrase again:
Your identification has been saved in nx_dsa.
Your public key has been saved in nx_dsa.pub.
The key fingerprint is:
78:fd:99:94:f5:15:47:4c:50:e6:15:18:86:5f:95:dc nx@knoppix-lnx

So,
* nx_dsa = PRIVATE KEY (for clients)
* nx_dsa.pub = PUBLIC KEY

cat nx_dsa.pub >> /home/jormah/.ssh/authorized_keys

Modified my /etc/ssh/sshd_config on the server to use
AllowUsers nx jormah
AuthorizedKeysFile %h/.ssh/authorized_keys # Important: use %h/...
X11Forwarding yes
PubkeyAuthentication yes
PermitEmptyPasswords yes
PasswordAuthentication yes
UsePAM no


passwd -u nx # Unlock account
passwd -d nx # delete passwd

/etc/init.d/ssh restart
/usr/NX/bin/nxserver --restart

TEST:
ssh -i nx_dsa nx@knoppix-lnx

HELLO NXSERVER - Version 2.1.0-18 - LFE
NX> 105 login
Login
NX> 101 User: jormah
NX> 102 Password: ********
NX> 103 Welcome to: knoppix-lnx user: jormah
NX> 105 exit
Exit
NX> 999 Bye.
Connection to knoppix-lnx closed.

So far, everything is ok!

== Client side ==

Download and install nxclient-2.1.0-16.exe (I use Windows XP version)
start NX Connection Wizard
apply configuration settings (name, host, post, type of connection)
enable SSH encryption of all traffix
show the advanced configuration dialog
press "Key" button
import DSA PRIVATE KEY == "nx_dsa" file created ssh-keygen in server side
save settings and login with your server user name and password


Good luck!
JormaH

----------------------------
The hardest part of solving a problem is often formulating the right question.
The answer is out there, somewhere.
-- By Espen Andersen

lunios
05-25-2007, 07:04 PM
hi im running NXSERVER - Version 1.4.0-45-SVN and and windows client 2.1.0-17

i pass the authentication part but when start the windows with the !M logo the window is closed and say that the server was shutdown

i get an error. No response received from the server, the connection with the remote server was shutdown please check the state connection

do you know or can any expect nomachine fan help/?