NoMachine Support

Your questions answered

Knowledge Base

Searching in: Documents
Filter the search results
Version:
Last update:
Searching in: Documents
ID: DT10O00151
Version: NoMachine 6
Added on: 2017-11-15
Last update: 2017-12-01
Enabling and disabling the NoMachine device sharing services manually
Table of Contents
Introduction
1. Device Sharing, Audio and Other Facilities
How to disable device sharing, audio and others
2. Disks
3. Printers
4. USB Devices
5. Network Ports
6. Smartcard Readers
7. File Transfer
8. Recording of the Local Desktop
9. Session Recording
10. Audio and Microphone
How to enable device sharing, audio and others
11. Disks
12. Printers
13. USB Devices
14. Network Ports
15. Smartcard Readers
16. File Transfer
17. Recording of the Local Desktop
18. Session Recording
19. Audio and Microphone
How to disable Copy&Paste
20. Copy and Paste


Introduction
1. Device Sharing, Audio and Other Facilities

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, administrators can configure them manually by editing the node configuration file on the NoMachine host where sessions willbe be run.

The node configuration file is:
/usr/NX/etc/node.cfg on Linux
/Applications/NoMachine.app/Contents/Frameworks/etc/node.cfg on Mac
installationDirectory/NoMachine/etc/node.cfg on Windows.

To change settings, uncomment in node.cfg the configuration key and specify the new value. The name of the key for the specific service and the value to be set are reported in the correspondent configuration section.

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.

TIP
In multi-node environments (i.e. Enterprise Terminal Server + Terminal Server Nodes), if changes are made on remote nodes, run the following command on the Enterprise Terminal Server host to make changes on the nodes effective:
/etc/NX/nxserver --nodeupdate


How to disable device sharing, audio and others
2. Disks

To disable exporting a disk from locale to remote and importing a remote disk to the local computer:
EnableDiskSharing none

To disable exporting a disk from locale to remote:
EnableDiskSharing server

To disable importing a remote disk to the local computer:
EnableDiskSharing client



3. Printers

To disable exporting a printer from locale to remote and importing a remote printer to the local computer:
EnablePrinterSharing none

To disable exporting a printer from locale to remote:
EnablePrinterSharing server

To disable importing a printer to the local computer:
EnablePrinterSharing client



4. USB Devices

To disable exporting a USB device from locale to remote and importing a remote USB device to the local computer:
EnableUSBSharing none

To disable exporting a USB device from locale to remote:
EnableUSBSharing server

To disable importing a remote USB device to the local computer:
EnableUSBSharing client



5. Network Ports

To disable connecting a network port from locale to remote and viceversa:
EnableNetworkSharing none

To disable connecting a network port from locale to remote:
EnableNetworkSharing server

To disable connecting a network port from remote to the local computer:
EnableNetworkSharing client



6. Smartcard Readers

To disable connecting a smartcard reader:
EnableSmartcardSharing 0



7. File Transfer

To disable transferring files from locale to remote and viceversa:
EnableFileTransfer none

To disable transferring files from locale to remote:
EnableFileTransfer server

To disable transferring files from remote to the local computer:
EnableFileTransfer client



8. Recording of the Local Desktop

To disable recording of the local desktop:
EnableLocalRecording 0



9. Session Recording

To disable recording of NoMachine session:
EnableSessionRecording 0



10. Audio and Microphone

To disable both audio and microphone:
AudioInterface disabled



How to enable device sharing, audio and others
11. Disks

To enable exporting a disk from locale to remote and importing a disk to the local computer:
EnableDiskSharing both

To enable exporting a disk from locale:
EnableDiskSharing client

To enable importing a remote disk to the local computer:
EnableDiskSharing server



12. Printers

To enable exporting a printer from locale to remote and importing a remote printer to the local computer:
EnablePrinterSharing both

To enable exporting a printer from locale to remote:
EnablePrinterSharing client

To enable importing a remote printer to the local computer:
EnablePrinterSharing server



13. USB Devices

To enable exporting a USB device from locale to remote and importing a USB device to the local computer:
EnableUSBSharing both

To enable exporting a USB device from locale to remote:
EnableUSBSharing client

To enable importing a remote USB device to the local computer:
EnableUSBSharing server



14. Network Ports

To enable connecting a network port from locale to remote and viceversa:
EnableNetworkSharing both

To enable connecting a network port from locale to remote:
EnableNetworkSharing client

To enable connecting a network port from remote to the local computer:
EnableNetworkSharing server



15. Smartcard Readers

To enable connecting a smartcard reader:
EnableSmartcardSharing 1



16. File Transfer

To enable transferring files from locale to remote and viceversa:
EnableFileTransfer both

To enable transferring files from locale to remote:
EnableFileTransfer client

To enable transferring files from remote to the local computer:
EnableFileTransfer server



17. Recording of the Local Desktop

To enable recording of the local desktop:
EnableLocalRecording 1



18. Session Recording

To enable recording of the NoMachine session:
EnableSessionRecording 1



19. Audio and Microphone

The configuration key to enable audio and microphone is:
AudioInterface

On Linux set:
AudioInterface pulseaudio
or: AudioInterface alsa

On Mac and Windows:
AudioInterface nxaudio



How to disable Copy&Paste
20. Copy and Paste

Copy and paste operations can be limited or fully disabled in the server configuration file:
/usr/NX/etc/server.cfg on Linux
/Applications/NoMachine.app/Contents/Frameworks/etc/server.cfg on Mac
installationDirectory/NoMachine/etc/server.cfg on Windows.

To change settings, uncomment in server.cfg the configuration key and specify the new value.

To disable copying from locale and paste to remote and viceversa:
EnableClipboard none

To disable copying from locale and paste to remote:
EnableClipboard server

To disable copying from remote and paste to the local computer:
EnableClipboard client

To enable copying from locale and paste to remote and viceversa:
EnableClipboard both

To enable copying from locale and paste to remote:
EnableClipboard client

To enable copying files from remote and paste to the local computer:
EnableClipboard server



NoMachine Terminal Server and Enterprise Terminal Server permit to configure copy and paste operations also via profile rules. This means that you can apply settings for all users or on a per-user or a per-group basis.

The general format of the command to set the profile rule for the clipboard is:

nxserver --ruleadd --class feature --type server-clipboard|client-clipboard --value yes|no [--user USER|--group GROUP]
Forbid copy&paste operations for user 'nxtest01':
/etc/NX/nxserver --ruleadd --class feature --type client-clipboard --value no --user nxtest01 (user must already exist):
/etc/NX/nxserver --ruleadd --class feature --type server-clipboard --value no --user nxtest
Disable copy&paste operations from the local computer to the NoMachine session for group 'students' (group must already exist):
/etc/NX/nxserver --ruleadd --class feature --type client-clipboard --value no --group students
Disable copy&paste operations from within the NoMachine session to local for all users:
/etc/NX/nxserver --ruleadd --class feature --type server-clipboard --value no