You are not logged in.

#1 2023-07-16 21:51:55

MAYBL8
Member
Registered: 2022-01-14
Posts: 327

[SOLVED] nomachine (AUR)

I am having a problem with getting port 4000 to be open on startup.
I have installed from the AUR and it works once I boot the server and then use this command:

sudo /etc/NX/nxserver --startup

I have followed the wiki and thought I did it correctly.

I am sure there is a simple answer for this but I can't figure it out.
Thanks

Last edited by MAYBL8 (2023-07-17 13:16:46)

Online

#2 2023-07-16 21:54:36

seth
Member
Registered: 2012-09-03
Posts: 63,428

Re: [SOLVED] nomachine (AUR)

systemctl status nxserver.service

Online

#3 2023-07-16 22:07:20

MAYBL8
Member
Registered: 2022-01-14
Posts: 327

Re: [SOLVED] nomachine (AUR)

[demo@mail ~]$ sudo systemctl status nxserver.service
[sudo] password for demo:
● nxserver.service - NoMachine Server daemon
     Loaded: loaded (/usr/lib/systemd/system/nxserver.service; enabled; preset: disabled)
     Active: active (running) since Sun 2023-07-16 17:57:56 EDT; 8min ago
   Main PID: 420 (nxserver.bin)
      Tasks: 48 (limit: 38340)
     Memory: 232.2M
        CPU: 4.279s
     CGroup: /system.slice/nxserver.service
             ├─ 420 /usr/NX/bin/nxserver.bin --daemon
             ├─2497 /usr/NX/bin/nxexec --node --user demo --priority realtime --mode 0 --pid 45
             ├─2503 /usr/NX/bin/nxnode.bin
             └─2522 /usr/NX/bin/nxrunner.bin --monitor --pid 434

Jul 16 17:57:56 mail systemd[1]: Started NoMachine Server daemon.
Jul 16 17:58:11 mail nxexec[610]: pam_unix(nx:session): session opened for user demo(uid=1000) by (>
Jul 16 17:58:41 mail nxexec[610]: pam_unix(nx:session): session closed for user demo
Jul 16 17:58:41 mail nxexec[2497]: pam_unix(nx:session): session opened for user demo(uid=1000) by >
[demo@mail ~]$ sudo nmap -sT -p- 192.168.68.21
Starting Nmap 7.94 ( https://nmap.org ) at 2023-07-16 18:06 EDT
Nmap scan report for 192.168.68.21
Host is up (0.00010s latency).
Not shown: 65525 closed tcp ports (conn-refused)
PORT     STATE SERVICE
25/tcp   open  smtp
80/tcp   open  http
110/tcp  open  pop3
143/tcp  open  imap
443/tcp  open  https
465/tcp  open  smtps
587/tcp  open  submission
993/tcp  open  imaps
995/tcp  open  pop3s
4190/tcp open  sieve

Nmap done: 1 IP address (1 host up) scanned in 2.47 seconds

Online

#4 2023-07-16 22:28:49

seth
Member
Registered: 2012-09-03
Posts: 63,428

Re: [SOLVED] nomachine (AUR)

I've a hard time finding that service in the upsrteam sources, what's the content of /usr/lib/systemd/system/nxserver.service ?
It probably does not run "/etc/NX/nxserver --startup"?

Online

#5 2023-07-16 22:59:05

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 12,744
Website

Re: [SOLVED] nomachine (AUR)

Mod note: moving to AUR Issues


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#6 2023-07-16 23:09:51

MAYBL8
Member
Registered: 2022-01-14
Posts: 327

Re: [SOLVED] nomachine (AUR)

[Unit]
Description=NoMachine Server daemon

After = syslog.target network.target network-online.target sshd.service http-daemon.target.service htd.service
Wants = network-online.target

[Service]
User=nx
Group=nx

ExecStart=-/etc/NX/nxserver --daemon

KillMode=process
SuccessExitStatus=0 SIGTERM
Restart=always

[Install]
WantedBy=multi-user.target

Online

#7 2023-07-17 06:03:29

seth
Member
Registered: 2012-09-03
Posts: 63,428

Re: [SOLVED] nomachine (AUR)

[Service]
User=nx
Group=nx

Do you get the same w/o that segment?

Can you open the nomachine port w/

sudo -u nx /etc/NX/nxserver --startup

I've no idea what those switches do, but

ExecStart=-/etc/NX/nxserver --daemon

isn't

ExecStart=-/etc/NX/nxserver --startup

, maybe the daemon is socket activated?

Online

#8 2023-07-17 12:51:44

MAYBL8
Member
Registered: 2022-01-14
Posts: 327

Re: [SOLVED] nomachine (AUR)

Commented out the [Service] section and rebooted .
No 4000 port

[demo@mail ~]$ sudo -u nx /etc/NX/nxserver --startup
[sudo] password for demo:
NX> 500 ERROR: Invalid command: '--startup'

As far as my knowledge with Arch is got me so far I don't know what to do with this statement:

, maybe the daemon is socket activated?

Online

#9 2023-07-17 13:12:22

seth
Member
Registered: 2012-09-03
Posts: 63,428

Re: [SOLVED] nomachine (AUR)

Does

sudo -u nx /etc/NX/nxserver --daemon

work?

Commented out the [Service] section and rebooted .

What exactly did you do there? You're only supposed to remove the user/group entry, the service section is kinda vital for the, err… service.

Online

#10 2023-07-17 13:16:22

MAYBL8
Member
Registered: 2022-01-14
Posts: 327

Re: [SOLVED] nomachine (AUR)

Sorry I probably did that wrong.
Regardless of that I got it figured out.

There is a GUI for nomachine that you can access from what I call the taskbar.
When I opened that it has a section called server settings.
In there is a ports section and it showed startup set to manual.
I changed it to automatic and rebooted the server and port 4000 was opened.

Thanks for helping.
I must have missed that in the instructions or maybe the wiki needs to add this instruction.

I will mark this solved.

Online

Board footer

Powered by FluxBB