Knowledge Base
Searching in : Article
ID: AR01U01185
Applies to: NoMachine Technology
Added on: 2023-01-17
Last Update: 2023-01-17

Reinstalling NoMachine v7 and keeping the current configuration

This article applies to the NoMachine version 7. Pre-requisite is that the machine is the same where the current v7 is installed and backuped. For migrating v7 to a different machine by keeping the same configuration, please read here: https://www.nomachine.com/AR02T01153.

1. Shutdown the server for example from command line

    - Linux/ Mac: sudo /etc/NX/nxserver --shutdown
    - Windows: "%ProgramFiles(x86)%\NoMachine\bin\nxserver" --shutdown

2. Create backup of the following files

     2.1. Files located in the installationDirectory/etc folder
            To be copied: uuid, nxdb, server.cfg, node.cfg, htd.cfg, and keys folder

     2.2. If folders .nx and .ssh exists in the default home folder path for the user nx located on:
          
            Linux:  /var/NX/nx/
            Mac OS: "/Library/Application Support/NoMachine/var/nx/"
            Windows:   C:\Users\nx\
          
           Files to be copied: .nx/config/*.crt, .ssh/known_hosts

     2.3 In order for WebPlayer to work correcty after transfering settings to the new host we need to copy    
           configuration files from nxhtd folder located on:

            Linux:        /var/NX/nxhtd/
            Mac OS:    "/Library/Application Support/NoMachine/var/nxhtd/"
            Windows:   "%ProgramData%\NoMachine\nxhtd"    

            Files to be copied: .nx/config/*.crt, .ssh/known_hosts  

Restore files copied above on the new installation and ensure that permissions/ownership are preserved.