How to install and use OpenNX in CentOS 5

First download all the necessary rpm files from :

[root@nb-namran Downloads]# ls -alh nx*
-rw-rw-r-- 1 namran namran 4.3M Mar 31 12:46 nxclient-3.4.0-7.i386.rpm
-rw-rw-r-- 1 namran namran 6.7M Mar 31 12:47 nxserver-3.4.0-12.i386.rpm

then install it with just ..

rpm -ivh nxclient-3.4.0-7.i386.rpm nxserver-3.4.0-12.i386.rpm

depend on your system it might request for further dependencies..

if everything goes right..
you shall able to configure it after that..

files provided by nxserver is as below :


[root@nb-namran Downloads]# rpm -ql nxserver

I guess just need to do this..

If executed by root:
--useradd USERNAME [--administrator]
                   [--system [--home[=homedir]|--nohome][--gid[=gid]]
  Add the user to the NX database and enable the NX login. The user  
  must already exist on the host server when the command is executed.
  If the NX Server is configured to authenticate users through its own     
  password DB, the server will prompt for a password. If the user is 
  not present in the host server, the --system parameter should be 
  specified to allow NX server to create the system account using the 
  default settings configured for the useradd system command. If the 
  UserId, UserGroup and UserHome keys are set on the server configu-
  ration file, and the --home, --gid and --uid parameters are provided, 
  the server will create the account according to the values specified 
  in the keys. If, for each of these parameters, the values are speci-
  fied in the command line, they override both the default values set 
  in the system and the values set in the related keys. If the --nohome 
  parameter is provided, the server will not create the home for the 
  user. The --administrator parameter allows the server to grant NX 
  administrator privileges to the user.

oh well…after that..
from the other machine..

just go to nxclient wizard.

enter the user credential ..
2.and SSH Port.
3. username
4. password
5. Session (can be Gnome,KDE,shadow)


if you like .. can access the advance setting for the multimedia support..


try connecting to the host ..

requesting user’s auth?

wait until it authorized..
then.. established..
if got sessions .. you can attach to it.. 🙂

.. I love the shadow part.. as it replicate the real desktop on the host machine..

so can have a view something like this..

p/s : .. this tool is based on the fundamental of SSH command “ssh -Y -l user hostname “.. which forward the display to local.. 🙂
its very useful indeed when am using two big LCD (on top of two workstation) and a laptop (which contain my personal stuff) ..

Related Post

Leave a Reply

Your email address will not be published. Required fields are marked *