Forum Replies Created
-
AuthorPosts
-
loulou921222Participant
Actually, I reinstalled nomachine, removing everything and restarting, and now it works. Sorry, was getting worried 😂😅
loulou921222ParticipantSo, 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
loulou921222ParticipantOh 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
-Disable nxserver.service
-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 🙂
loulou921222ParticipantAnything else that I could try?
loulou921222Participantsorry, with systemctl I meant systemD
loulou921222ParticipantI have attempted again to reinstall, and change some settings with systemctl, with no luck unfortunately :c
loulou921222ParticipantI might try manually installing the package.
loulou921222ParticipantYes, 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.
loulou921222ParticipantI’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
loulou921222ParticipantI’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.
loulou921222ParticipantI’ve done that, I can’t seem to spot anything out of the ordinary. I have also sent the output 🙂
loulou921222ParticipantTomorrow I should be able to do it on another computer and send it in text format like my previous logs
loulou921222ParticipantIt’s worth mentioning that restarting the server while the machine is on the login screen does allow me to then connect.
loulou921222ParticipantI 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’.
Attachments:
loulou921222ParticipantI’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
-
AuthorPosts