Forum Replies Created
Actually, I reinstalled nomachine, removing everything and restarting, and now it works. Sorry, was getting worried 😂😅
So, it looks like I’m back again, somehow
There was a new update for NoMachine in the package manager, so I updated to it, and…
Cannot detect any display running 🤦♀️
I checked all the services, they’re setup the same. However, now when I open the server settings application for NoMachine, then it can detect the display running. I’ve also noticed this checkbox “Share the desktop at server startup”, which no matter how many times I check, becomes unchecked as soon as I restart.
I’ll be testing for now
Oh boy do I have a solution Hahaha sorry I’m so excited
So it turns out that Mth is right in that thinking that the order of services aren’t starting up correctly. Before when I tried to delay the service, I used /bin/sleep, turns out this is not the correct way to do it, it works for some things but not in this case. Instead, I created a systemD timer service, and with some trial and error, set the delay to be 15 milliseconds after the graphical interface starts, like this
-Create the file /usr/lib/systemd/system/nxserver.timer
[Unit] Description=NoMachine Server daemon [Timer] OnStartupSec=15 [Install] WantedBy=graphical.target
and enable that. I’ve tested it 3 times in a row and it’s worked great 🙂
For some reason that’s been causing problems, most likely due to other services starting at different times ¯\_(ツ)_/¯. I’m glad that I’ve found something that works, and I thank the eagerness of everyone trying to help 🙂
Anything else that I could try?
sorry, with systemctl I meant systemD
I have attempted again to reinstall, and change some settings with systemctl, with no luck unfortunately :c
I might try manually installing the package.
Yes, one of the first things I tried was reinstalling NoMachine, I did it multiple times with no luck.
pam.d as far as I know has never been touched at all on this machine. There is a firewall running, however this shouldn’t affect things. With the nvidia graphics card, everything should be running on X, I have also manually configured GDM to ensure it does so. Other than that, it’s quite a new installation, so there isn’t much going on. There’s something that’s causing it to start-up differently when it’s started automatically, but I can’t figure out what that is, I’ve spent a lot of time trying to configure different things in systemd, can’t seem to find anything …
Are there any specific things I should be looking out for? There shouldn’t be much unconventional going on.
I’m guessing that it’s starting too early in the startup process, because when I am on SSH on the login window, if I restart nxserver, I can then connect, even though I’m still only on the login screen, therefore I don’t think it’s because of a problem with the NX user on the login screen, but I may be jumping too quickly to conclusions
I’ve tried adding a few seconds sleep to the service, which makes it so that it doesn’t prompt me when I connect that there is no display running, but rather goes into a loading screen that never ends.
I’ve done that, I can’t seem to spot anything out of the ordinary. I have also sent the output 🙂
Tomorrow I should be able to do it on another computer and send it in text format like my previous logs
It’s worth mentioning that restarting the server while the machine is on the login screen does allow me to then connect.
I restarted the machine (to ensure that nothing is different compared to when it first starts up) landing it back on its login screen, then SSHed in. As far as I can observe, /bin/ss -lnx looks normal. Here are /bin/ss -lnx, stat /tmp/.X11-unix/*, and ps awwxo ‘ppid,pid,sid,comm,args’.
I’ll do it again, here are my exact steps this time:
1. sudo /etc/NX/nxserver –logrotate
2. sudo /etc/NX/nxserver –debug –enable all
3. restart the computer, reproducing the problem
4. sudo /etc/NX/nxserver –debug –collect
5. collecting it from /usr/NX/var/log/archives