Installing NX Server

  • Install NX (info from this page: http://www.nomachine.com/download-package.php?Prod_Id=355 )

    CentOS 6.0 64bit

    yum install wget #must be logged on as root
    NXVER=3.5.0
    CVER=7
    NVER=9
    SVER=5
    ARCH=x86_64
    NXURL=http://64.34.173.142/download
    wget $NXURL/$NXVER/Linux/nxclient-$NXVER-$CVER.$ARCH.rpm
    wget $NXURL/$NXVER/Linux/nxnode-$NXVER-$NVER.$ARCH.rpm
    wget $NXURL/$NXVER/Linux/FE/nxserver-$NXVER-$SVER.$ARCH.rpm
    rpm -i nxclient-$NXVER-$CVER.$ARCH.rpm
    rpm -i nxnode-$NXVER-$NVER.$ARCH.rpm
    rpm -i nxserver-$NXVER-$SVER.$ARCH.rpm
    yum install xorg-x11-fonts-misc #it is probably necessary to install some fonts

    Errors in connecting to NX server can sometimes be a problem with the hostname resolving.
    If upgrading an existing installation, use -U rather than -i
    Update the port numbers if necessary:
    vi /usr/NX/etc/node.cfg & server.cfg
    change: #SSHD_Port=22 to SSHD_Port=xxxx # or whatever
    vi /etc/ssh/sshd_config
    and add Port xxxx under Port 22
    /etc/init.d/sshd restart
    /etc/init.d/nxserver restart

    You may have to add this line to /etc/sysconfig/iptables BEFORE any reject lines (e.g. after the port 22 ACCEPT)
    -A INPUT -m state --state NEW -m tcp -p tcp --dport xxxx -j ACCEPT
    service iptables restart #and then restart

  • Sometimes there can be a problem if the hosts file of the server does not contain the line: 127.0.0.1 localhost.localdomain localhost short_name_of_server

    Ubuntu


    NXVER=3.5.0
    CVER=7
    NVER=9
    SVER=11
    ARCH=i386
    #or ARCH=amd64
    NXURL=http://64.34.173.142/download
    wget $NXURL/$NXVER/Linux/nxclient_$NXVER-${CVER}_$ARCH.deb
    wget $NXURL/$NXVER/Linux/nxnode_$NXVER-${NVER}_$ARCH.deb
    wget $NXURL/$NXVER/Linux/FE/nxserver_$NXVER-${SVER}_$ARCH.deb
    apt-get install libaudiofile0 #may be necessary
    dpkg -i nxclient_$NXVER-${CVER}_$ARCH.deb
    dpkg -i nxnode_$NXVER-${NVER}_$ARCH.deb
    dpkg -i nxserver_$NXVER-${SVER}_$ARCH.deb

    If upgrading an existing installation, still use -i

    Ubuntu 15.04


    NXVER=4.4
    CVER=12
    SVER=11
    ARCH=amd64 #or i386
    NXURL=http://download.nomachine.com/download/$NXVER/Linux
    FILE=nomachine_${NXVER}.${CVER}_${SVER}_$ARCH.deb
    wget $NXURL/$FILE
    dpkg -i $FILE