3.2. Updating the NX Node Installation
It is highly recommended you disable access to new NX sessions and terminate all running sessions before
proceeding with the upgrade of the node.
To disable access to new NX sessions, open an xterm or similar and run the following command. Please note
that this will not affect users' ability to login to the system by other means (f.e. ssh or telnet):
# sudo /usr/NX/bin/nxserver --stop
You might want to issue a warning to all connected users to inform them of the operation. Run:
# sudo /usr/NX/bin/nxserver --broadcast "Your message here"
Then, after the warning, terminate all running sessions:
# /usr/NX/bin/nxserver --shutdown
If the load balancing feature is enabled on your NX server, you can also proceed with the upgrade of
individual node(s) on remote machines and forbid starting new NX sessions on the specified nodes until
the operation is completed. By running:
# sudo /usr/NX/bin/nxserver --stop NODELIST
you can specify the list of the nodes you want to disable, for example:
# sudo /usr/NX/bin/nxserver --stop 111.222.333.xxx:22 111.222.333.yyy:22
Then proceed with the upgrade instructions provided below and, after the operation is complete, enable
access to the node(s) by running:
# sudo /usr/NX/bin/nxserver --start NODELIST
For example:
# /usr/NX/bin/nxserver --start 111.222.333.xxx:22 111.222.333.yyy:22
Before upgrading the installation, make a backup of your current NX installation and protect sensitive
information that may be present inside the TAR archive by making the backup readable only by the 'root'
user:
# sudo tar cvzf /root/nx-BACKUP.tar.gz /usr/NX
# sudo chmod 0600 /root/nx-BACKUP.tar.gz
The next step is to remove the previous installation, otherwise the installation will fail because only
a single instance of the package is supported at any one time on the same system:
# sudo pkgrm NXnode
Finally, expand the package archive and install it using the pkgadd utility:
# sudo gunzip nxnode-X.Y.Z-W.sparc.gz
# sudo pkgadd -d nxnode-X.Y.Z-W.sparc