Knowledge Base
Searching in : Article
ID: AR03V01225
Applies to: NoMachine Server
Added on: 2024-03-27
Last Update: 2025-03-06

How to install NoMachine on Fedora Silverblue and other immutable systems

These instructions are for Fedora Silverblue, but they could be adapted to other immutable operating systems.

1) Install the Operating System.

2) Update to the latest atomic image:

    $ sudo rpm-ostree update
    $ sudo systemctl reboot

3) Install build tools (necessary to compile the nxusb module for USB forwarding):

    $ sudo rpm-ostree install make automake gcc gcc-c++ kernel-devel kernel-headers
    $ sudo systemctl reboot
    $ sudo mkdir -p /var/nomachine

4) Download the NoMachine tar.gz (X86_64) package from the NoMachine web site and extract it:

    $ cd <DOWNLOAD_DIR>
    $ tar xfz nomachine_8.11.3_4_x86_64.tar.gz
    $ cd NX

5) By default the NoMachine package installs in /usr/NX. Override the default behavior and install the package in a writable directory by using the NX_INSTALL_PREFIX variable, for example:

    $ sudo NX_INSTALL_PREFIX=/var/nomachine ./nxserver --install
    NX> 700 Starting installation at: Tue, 26 Mar 2024 09:44:51.
    NX> 700 Using installation profile: Fedora.
    NX> 700 Installation log is: /var/nomachine/NX/var/log/nxinstall.log.
    NX> 700 Installing nxrunner version: 8.11.3.
    xdg-icon-resource: No writable system icon directory found.
    NX> 700 Runner install completed with warnings.
    NX> 700 Please review the install log for details.
    NX> 700 Installing nxplayer version: 8.11.3.
    NX> 700 Installing nxnode version: 8.11.3.
    /bin/cp: cannot create regular file '/usr/share/polkit-1/actions/org.freedesktop.packagekit.system-network-proxy-configure.policy': Read-only file system
    /bin/chmod: cannot access '/usr/share/polkit-1/actions/org.freedesktop.packagekit.system-network-proxy-configure.policy': No such file or directory
    /bin/cp: cannot create regular file '/usr/share/polkit-1/actions/org.freedesktop.packagekit.policy': Read-only file system
    /bin/chmod: cannot access '/usr/share/polkit-1/actions/org.freedesktop.packagekit.policy': No such file or directory
    /bin/cp: cannot create regular file '/usr/share/polkit-1/rules.d/55-org.nomachine.rules': Read-only file system
    NX> 700 Installing nxserver version: 8.11.3.
    NX> 700 ERROR: Cannot copy: /var/nomachine/NX/scripts/systemd/nxserver.service to: /lib/systemd/system/.
    NX> 700 Cannot restore selinux context for: /lib/systemd/system/nxserver.service.
    NX> 700 ERROR: Cannot enable systemd service: nxserver.service.
    NX> 700 ERROR: Cannot enable systemd service: .
    NX> 700 Server install completed with warnings.
    NX> 700 Please review the install log for details.
    NX> 700 Installation completed with errors at: Tue, 26 Mar 2024 09:45:09.
    NX> 700 NoMachine was configured to run the following services:
    NX> 700 NX service on port: 4000

6) Installation completes with some errors, it's then necessary to copy manually the Systemd service file to the /etc/systemd/system/ folder:

    $ sudo cp /var/nomachine/NX/scripts/systemd/nxserver.service /etc/systemd/system/

7) Enable and start the nxserver service:

    $ sudo systemctl enable --now nxserver

    If your NoMachine server is not the free version and accepts connections by SSH protocol, do also the following

8) Enable and start the sshd service:

    $ sudo systemctl enable --now sshd

9) Try to connect ot this machine by the NoMachine client, you should now be able to authenticate to Fedora Silverblue and connect to the desktop.