Enabling and disabling the NoMachine device sharing services manually (v.5)
| Services to forward devices like disks and printers, audio, transfer file and so on can be activated and deactivated through the Server preferences GUI. Alternatively, device sharing services can be configured manually by editing the node configuration file according to instructions below. |
PREFACE
The node configuration file is located at:
BaseDirectory/NX/etc/node.cfg file on Linux
BaseDirectory/NoMachine/etc/node.cfg on Windows
BaseDirectory/NoMachine.app/Contents/Frameworks/etc/node.cfg on Mac.
To change settings, uncomment the configuration key you want to set and specify the new value. The name of the key for the specific service is reported in the correspondent configuration section below. Click on the list to reach the proper paragraph.
There is no need to restart the server, changes will be effective at next session startup with the only exception of disabling or enabling the recording of the local desktop.
NOTE FOR MULTI-NODE ENVIRONMENTS
If changes are made on a remote node being part of a multi-node environment, run the following command on the main server host to make these changes effective:
nxserver --nodeupdate
CONFIGURATIONS
| 1. Disable services to connect disks |
Disable exporting a disk from locale to remote and importing a remote disk to the local computer. Configuration key is:
EnableDiskSharing none
Disable exporting a disk from locale to remote. Configuration key is:
EnableDiskSharing server
Disable importing a remote disk to the local computer. Configuration key is:
EnableDiskSharing client
| 2. Disable services to connect printers |
Disable exporting a printer from locale to remote and importing a remote printer to the local computer. Configuration key is:
EnablePrinterSharing none
Disable exporting a printer from locale to remote. Configuration key is:
EnablePrinterSharing server
Disable importing a printer to the local computer. Configuration key is:
EnablePrinterSharing client
| 3. Disable services to connect USB devices |
Disable exporting a USB device from locale to remote and importing a remote USB device to the local computer. Configuration key is:
EnableUSBSharing none
Disable exporting a USB device from locale to remote. Configuration key is:
EnableUSBSharing server
Disable importing a remote USB device to the local computer. Configuration key is:
EnableUSBSharing client
| 4. Disable services to connect network ports |
Disable connecting a network port from locale to remote and viceversa. Configuration key is:
EnableNetworkSharing none
Disable connecting a network port from locale to remote. Configuration key is:
EnableNetworkSharing server
Disable connecting a network port from remote to the local computer. Configuration key is:
EnableNetworkSharing client
| 5. Disable services to connect a smartcard reader |
Configuration key is:
EnableSmartcardSharing 0
| 6. Disable file transfer services |
Disable transferring files from locale to remote and viceversa. Configuration key is:
EnableFileTransfer none
Disable transferring from locale to remote. Configuration key is:
EnableFileTransfer server
Disable transferring files from remote to the local computer. Configuration key is:
EnableFileTransfer client
| 7. Disable recording of the local desktop |
Configuration key is:
EnableLocalRecording 0
| 8. Disable session recording |
Configuration key is:
EnableSessionRecording 0
| 9. Disable audio and microphone |
Configuration key is:
AudioInterface disabled
| 10. Enable services to connect disks |
Enable exporting a disk from locale to remote and importing a disk to the local computer. Configuration key is:
EnableDiskSharing both
Enable exporting a disk from locale. Configuration key is:
EnableDiskSharing client
Enable importing a remote disk to the local computer. Configuration key is:
EnableDiskSharing server
| 11. Enable services to connect printers |
Enable exporting a printer from locale to remote and importing a remote printer to the local computer. Configuration key is:
EnablePrinterSharing both
Enable exporting a printer from locale to remote. Configuration key is:
EnablePrinterSharing client
Enable importing a remote printer to the local computer. Configuration key is:
EnablePrinterSharing server
| 12. Enable services to connect USB devices |
Enable exporting a USB device from locale to remote and importing a USB device to the local computer. Configuration key is:
EnableUSBSharing both
Enable exporting a USB device from locale. Configuration key is:
EnableUSBSharing client
Enable importing a remote USB device to the local computer. Configuration key is:
EnableUSBSharing server
| 13. Enable services to connect network ports |
Enable connecting a network port from locale to remote and viceversa. Configuration key is:
EnableNetworkSharing both
Enable connecting a network port from locale to remote. Configuration key is:
EnableNetworkSharing client
Enable connecting a network port from remote to the local computer. Configuration key is:
EnableNetworkSharing server
| 14. Enable services to connect a smartcard reader |
Configuration key is:
EnableSmartcardSharing 1
| 15. Enable file transfer services |
Enable transferring files from locale to remote and viceversa. Configuration key is:
EnableFileTransfer both
Enable transferring from locale to remote. Configuration key is:
EnableFileTransfer client
Enable transferring files from remote to the local computer. Configuration key is:
EnableFileTransfer server
| 16. Enable recording of the local desktop |
Configuration key is:
EnableLocalRecording 1
| 17. Enable session recording |
Configuration key is:
EnableSessionRecording 1
| 18. Enable audio and microphone |
Configuration key is:
AudioInterface
On Linux set:
AudioInterface pulseaudio or AudioInterface alsa
On Windows and Mac set:
AudioInterface nxaudio
