Disabling the automatic start-up of NoMachine at boot time
Disabling the automatic start-up of NoMachine at boot time doesn't stop all NoMachine services, unless the machine is rebooted.
To stop immediately all services it's necessary to shutdown NoMachine.
If you're using NoMachine v. 6, see also: https://www.nomachine.com/AR11P01005
How to shutdown NoMachine and disable the automatic startup at the next boot
This will stop all the server side services and prevent connections to your computer:
- Click on the Monitor (the !M icon) in the system tray to open the menu.
- Click on 'Show the service status' ( 'Show the connection status' or 'Show the server status' for v. 5 and 4)
- Choose 'Shut down the server'
Note that in v. 5 and 4, click on 'Show the connection status' for the free edition of NoMachine or on 'Show the server status'.
- You will be asked whether you want to restart the server or not at the next boot.
- Click on 'No'.
|
|||
|
|||
|
I - You will still be able to use the NoMachine as a client to connect to other NoMachine-enabled computers and desktops. II - you can start NoMachine manually at any moment, via UI: in the 'Show the service status' choose 'Restart the server' III- Starting from v. 6, you can also disable access to your computer without stopping all services by toggling the 'Accepting connection is enabled/disabled' option in the !M menu. See also: https://www.nomachine.com/disabling-access-to-your-local-desktop |
|||
For more experienced users, it's also possible to shutdown NoMachine and disable the automatic start at next boot via command line.
On Linux:
sudo /etc/NX/nxserver --shutdown
sudo /etc/NX/nxserver --startmode manual
On Mac:
sudo /etc/NX/nxserver --shutdown
sudo /etc/NX/nxserver --startmode manual
On Windows:
Open the CMD console as administrator and move to the bin folder under the NoMachine installation directory and run:
nxserver --shutdown
nxserver --startmode manual
Alternatively, a manual procedure is possible as explained below.
On Linux
Comment the start, stop and restart commands in the nxserver init script placed in the /etc/init.d/ directory:
start()
# $ETC_DIR/nxserver --startup
stop()
# $ETC_DIR/nxserver --shutdown --silence
restart()
# $ETC_DIR/nxserver --restart
or remove the nxserver init and rc scripts. For example on Ubuntu 12.04 such scripts are:
/etc/init.d/nxserver
/etc/rc3.d/S99nxserver
/etc/rc2.d/S99nxserver
/etc/rc4.d/S99nxserver
/etc/rc5.d/S99nxserver
/etc/rc6.d/K01nxserver
/etc/rc0.d/K01nxserver
/etc/rc1.d/K01nxserver
On Mac
Edit the /Library/LaunchDaemons/com.nomachine.server.plist file and set:
<key>SuccessfulExit</key>
<false/>
<key>RunAtLoad</key>
<false/>
Then edit the /Library/LaunchAgents/com.nomachine.localnxserver.plist and set:
<key>RunAtLoad</key>
<false/>
If your server supports web sessions, edit also /Library/LaunchDaemons/com.nomachine.nxhtd.plist and set:
<key>RunAtLoad</key>
<false/>
or remove the following files:
/Library/LaunchDaemons/com.nomachine.nxhtd.plist
/Library/LaunchAgents/com.nomachine.localnxserver.plist
/Library/LaunchDaemons/com.nomachine.server.plist
On Windows
Run a CMD shell as administrator and use the 'sc.exe config NAME start= demand' command to disable the automatic start of services one by one:
> sc.exe config nxservice start= demand
> sc.exe config nxdisplay start= demand
> sc.exe config nxfsd start= demand
> sc.exe config nxfs start= demand
> sc.exe config nxusbf start= demand
> sc.exe config nxusbh start= demand
> sc.exe config nxusbs start= demand
> sc.exe config nxusbd start= demand
and (not necessary for the free edition of NoMachine):
> sc.exe config nxsshd start= demand
If your server supports sessions on the web, you also have to run:
> sc.exe config nxhtd start= demand
