How to install NoMachine from the command line on Linux
This article only applies to NoMachine 4 and later versions. If you wish to install any of the NoMachine packages from command line, for example because you are installing from remote by SSH, you can use instructions below.
Commands below use the sudo utility, if you don't have it installed, log on as superuser ("root") and run commands without sudo.
Installing the RPM package
$ sudo rpm -ivh pkgName_pkgVersion_arch.rpm
For example:
$ sudo rpm -ivh nomachine_7.5.2_1_x86_64.rpm
Installing the DEB package
$ sudo dpkg -i pkgName_pkgVersion_arch.deb
For example:
$ sudo dpkg -i nomachine_7.5.2_1_amd64.deb
Installing the TAR.GZ package
$ cd /usr
$ sudo tar xvzf pkgName_pkgVersion_arch.tar.gz
$ sudo /usr/NX/nxserver --install
For example:
$ cd /usr
$ sudo tar xvzf nomachine_7.5.2_1_x86_64.tar.gz
$ sudo /usr/NX/nxserver --install
If you are installing the NoMachine Enterprise Client or the Terminal Server Node package, run respectively:
$ sudo /usr/NX/nxclient --install
$ sudo /usr/NX/nxnode --install
If you want to uninstall NoMachine from the command line, choose the command suitable for your installation.
For RPM installations:
$ sudo rpm -e nomachine
For DEB installations:
$ sudo dpkg -r nomachine
For TAR.GZ installazions:
$ sudo /usr/NX/scripts/setup/nxserver --uninstall
If you are uninstalling the NoMachine Enterprise Client or the Terminal Server Node, run respectively:
$ sudo /usr/NX/scripts/setup/nxclient --uninstall
$ sudo /usr/NX/scripts/setup/nxnode --uninstall
