Forum / NoMachine for Linux / Systemd service does not work
- This topic has 1 reply, 2 voices, and was last updated 2 years, 1 month ago by Britgirl.
-
AuthorPosts
-
September 14, 2022 at 16:32 #40133jrespetoParticipant
Issue:
With a new installation and starting the service with systemd, the nxd service is not loading and requires a –restart to get it working:
—
# showing nxserver is off
[root@malware-eqNPc ~]# netstat -ntlp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 300/sshd: /usr/bin/
tcp 0 0 127.0.0.54:53 0.0.0.0:* LISTEN 267/systemd-resolve
tcp 0 0 0.0.0.0:5355 0.0.0.0:* LISTEN 267/systemd-resolve
tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN 267/systemd-resolve
tcp6 0 0 :::22 :::* LISTEN 300/sshd: /usr/bin/
tcp6 0 0 :::5355 :::* LISTEN 267/systemd-resolve—
# Starting nxserver – nxd not running
[root@malware-eqNPc ~]# systemctl start nxserver
[root@malware-eqNPc ~]# netstat -ntlp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 300/sshd: /usr/bin/
tcp 0 0 127.0.0.1:23655 0.0.0.0:* LISTEN 31560/nxserver.bin
tcp 0 0 127.0.0.54:53 0.0.0.0:* LISTEN 267/systemd-resolve
tcp 0 0 0.0.0.0:5355 0.0.0.0:* LISTEN 267/systemd-resolve
tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN 267/systemd-resolve
tcp6 0 0 :::22 :::* LISTEN 300/sshd: /usr/bin/
tcp6 0 0 :::5355 :::* LISTEN 267/systemd-resolve—
# restarting nxserver – nxd started and working
[root@malware-eqNPc ~]# /etc/NX/nxserver –restart
NX> 162 Disabled service: nxserver.
NX> 162 Service: nxnode already disabled.
NX> 162 Service: nxd already disabled.
NX> 111 New connections to NoMachine server are enabled.
NX> 161 Enabled service: nxserver.
NX> 162 WARNING: Cannot find X servers running on this machine.
NX> 162 WARNING: A new virtual display will be created on demand.
NX> 161 Enabled service: nxd.
[root@malware-eqNPc ~]# netstat -ntlp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 300/sshd: /usr/bin/
tcp 0 0 127.0.0.1:23670 0.0.0.0:* LISTEN 31613/nxserver.bin
tcp 0 0 127.0.0.54:53 0.0.0.0:* LISTEN 267/systemd-resolve
tcp 0 0 0.0.0.0:5355 0.0.0.0:* LISTEN 267/systemd-resolve
tcp 0 0 0.0.0.0:4000 0.0.0.0:* LISTEN 31644/nxd
tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN 267/systemd-resolve
tcp6 0 0 :::22 :::* LISTEN 300/sshd: /usr/bin/
tcp6 0 0 :::5355 :::* LISTEN 267/systemd-resolve
tcp6 0 0 :::4000 :::* LISTEN 31644/nxd—
[Unit]
Description=NoMachine Server daemonAfter = syslog.target network.target network-online.target sshd.service http-daemon.target.service htd.service
Wants = network-online.target[Service]
User=nx
Group=nxExecStart=-/etc/NX/nxserver –daemon
KillMode=process
SuccessExitStatus=0 SIGTERM
Restart=always[Install]
WantedBy=multi-user.targetSeptember 23, 2022 at 09:17 #40305BritgirlKeymasterHi, something similar to this has been dealt with before in the forums already. Please take a look at https://forums.nomachine.com/topic/enabling-a-user-does-not-enable-it. Does it help?
-
AuthorPosts
This topic was marked as solved, you can't post.