Environnement de travail:

Machine qui fera office de serveur nx :

root@gutsy:/var/cache/apt/archives# uname -a
Linux gutsy 2.6.27-11-generic #1 SMP Fri Dec 19 16:29:35 UTC 2008 x86_64 GNU/Linux

root@gutsy:/var/cache/apt/archives# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=8.10
DISTRIB_CODENAME=intrepid
DISTRIB_DESCRIPTION="Ubuntu 8.10"

root@gutsy:/var/cache/apt/archives# free
             total       used       free     shared    buffers     cached
Mem:        390220     328292      61928          0       5980     139936
-/+ buffers/cache:     182376     207844
Swap:       409616       3148     406468

root@gutsy:/var/cache/apt/archives# df -hT
Sys. de fich. Type    Tail. Occ. Disp. %Occ. Monté sur
/dev/sda1     ext3    7,5G  5,7G  1,5G  80% /
tmpfs        tmpfs    191M     0  191M   0% /lib/init/rw
varrun       tmpfs    191M  128K  191M   1% /var/run
varlock      tmpfs    191M     0  191M   0% /var/lock
udev         tmpfs    191M  2,7M  188M   2% /dev
tmpfs        tmpfs    191M   12K  191M   1% /dev/shm
/dev/sdb1     ext3   1012M  121M  841M  13% /var/cache


root@gutsy:/var/cache/apt/archives# ifconfig |grep 192
          inet adr:192.168.0.10  Bcast:192.168.0.255  Masque:255.255.255.0


Il faut donc récupérer 3 paquets pour installer le serveur: nxserver qui a des dépendances dans nxnode qui lui-même a des dépendances dans nxclient.

root@gutsy:/var/cache/apt/archives# wget http://64.34.161.181/download/3.3.0/Linux/nxclient_3.3.0-3_x86_64.deb (idem pour nxnode et nxserver)


root@gutsy:/var/cache/apt/archives# dpkg -i nxclient_3.3.0-3_x86_64.deb

Sélection du paquet nxclient précédemment désélectionné.
(Lecture de la base de données... 157710 fichiers et répertoires déjà installés.)
Dépaquetage de nxclient (à partir de nxclient_3.3.0-3_x86_64.deb) ...
Paramétrage de nxclient (3.3.0-3) ...
Showing file: /usr/NX/share/documents/client/cups-info

 CUPS Printing Backend

 The NX Client set-up procedure detected that your "IPP CUPS" printing
 backend doesn't allow printing from the NX session. In order to have
 printing support in your NX system, you need to set proper permissions
 on the IPP backend. Please execute:

   chmod 755 /usr/lib/cups/backend/ipp

root@gutsy:/var/cache/apt/archives# chmod 755 /usr/lib/cups/backend/ipp

root@gutsy:/var/cache/apt/archives# dpkg -i nxnode_3.3.0-3_x86_64.deb
Sélection du paquet nxnode précédemment désélectionné.
(Lecture de la base de données... 157881 fichiers et répertoires déjà installés.)
Dépaquetage de nxnode (à partir de nxnode_3.3.0-3_x86_64.deb) ...
Paramétrage de nxnode (3.3.0-3) ...
NX> 700 Starting: install node operation at: dim déc 28 16:06:04 2008.
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: 3.3.0-3 completed.
NX> 700 Bye.

root@gutsy:/var/cache/apt/archives# dpkg -i nxserver_3.3.0-8_x86_64.deb
Sélection du paquet nxserver précédemment désélectionné.
(Lecture de la base de données... 158078 fichiers et répertoires déjà installés.)
Dépaquetage de nxserver (à partir de nxserver_3.3.0-8_x86_64.deb) ...
Paramétrage de nxserver (3.3.0-8) ...
NX> 700 Installing: server at: dim déc 28 16:07:38 2008.
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 Version '3.3.0-8' installation completed.
NX> 700 Showing file: /usr/NX/share/documents/server/install-notices

Server keys

The initial login between client and server happens through a DSA key
pair, i.e. a couple of specially generated cryptographic keys, called
the private key and the public key, which allow you to establish a
secure connection, by means of SSL encryption, between NX client and
NX server.

The public part of the key-pair is provided during the installation
of the server, while the private part of the key-pair is distributed
together with the NX Client. This ensures that each NX client is able
to authenticate to the server and to start the procedure for autho-
rizing the user and negotiating the session.

If you want to create a virtual private network (VPN) instead, you
need to generate a new DSA key-pair and distribute the private part
of the key-pair to those NX clients you want authenticated to the NX
server. More information on how to generate and distribute a new DSA
key-pair is available at: 

http://www.nomachine.com/ar/view.php?ar_id=AR01C00126

Creating Users

NX is configured to allow access from any system user, as long as
valid credentials are given to the user for the SSH login. NX pro-
vides an alternative authorization method, allowing system admin-
istrators to determine which users are given access to the NX fun-
ctionalities. This works by implementing a separation between the
system password and the NX password, so that, for example, it is
possible to forbid remote access to the system by any other means
except via NX and use the NX tools to implement effective accounting
of the system resources used by the user, or to share NX passwords in
an external database.

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

Session Shadowing and Desktop Sharing

The session shadowing functionality allows you to share NX sessions
running on the node. The desktop sharing functionality instead, gives
access to the native display of the X server as if you were in front
of the monitor. By default you can access sessions in interactive mode
and upon authorization of the session owner. You can modify this beha-
viour by tuning the server configuration according to your needs, for
example by allowing access to sessions in view-only mode, or connecting
to either a suspended session or the local display via the Desktop
Manager login window.

Load Balancing

NX Advanced Server provides support for multi-node capabilities and
load balancing. In its current implementation, NX server can only
manage accounts on the host machine, so to grant access to the node
running remotely, you will need to create the user account directly
on the remote node host by issuing the NX node commands as root user.
You will also need to add the NX Server public DSA Key to the node to
allow this server to connect to the node running on the remote host.

Documentation

For further information on how to manage the configuration of your
NX system, please refer to the System Administrator's Guide available
on the NoMachine Web site at:

http://www.nomachine.com/documentation/admin-guide.php

The NoMachine Team.


NX> 700 Bye.


Je crée ensuite 2 utilisateurs dans des homes différents:

root@gutsy:/var/cache/apt/archives# /usr/NX/bin/nxnode --useradd pme
NX> 500 Cannot add user: pme.
NX> 538 ERROR: User: pme is not a system user.
NX> 538 To add user: pme on the system, please run the
NX> 538 command with option: --system.
NX> 999 Bye.
root@gutsy:/var/cache/apt/archives# /usr/NX/bin/nxnode --useradd pme --system
NX> 709 Adding user pme.
NX> 102 Password:
NX> 102 Confirm password:
NX> 304 User: pme added to the system.
NX> 137 System password changed correctly.
NX> 999 Bye.
root@gutsy:/var/cache/apt/archives#



root@gutsy:/home/pme# mkdir /opt/homesnx
root@gutsy:/home/pme# /usr/NX/bin/nxnode --useradd isabelle --system --home=/opt/homesnx
NX> 709 Adding user isabelle.
NX> 102 Password:
NX> 102 Confirm password:
NX> 304 User: isabelle added to the system.
NX> 137 System password changed correctly.
NX> 999 Bye.

root@gutsy:/home/pme# ll /opt/homesnx/
total 12
drwxr-xr-x 3 root     root     4096 2008-12-28 16:43 .
drwxr-xr-x 4 root     root     4096 2008-12-28 16:42 ..
drwxr-xr-x 3 isabelle isabelle 4096 2008-12-28 16:43 isabelle


Il est désormais possible de se connecter avec un nxclient sur cette machine.


Côté client cela se passe sur une debian-4.0

nxcli:~# uname -a
Linux nxcli 2.6.26-bpo.1-amd64 #1 SMP Wed Dec 17 12:18:36 UTC 2008 x86_64 GNU/Linux
nxcli:~# cat /etc/debian_version
4.0

J'ai juste récupéré le paquet nxclient que j'ai installé par un dpkg -i .

La suite est détaillée dans les copies d'écrans mais reste simplissime, SACHANT QUE JE N'AI PAS FAIT LE TOUR DES OPTIONS.



Copies d'écrans