Connect only if the user is logged Ubuntu 26 NX 9.4.14

Forum / NoMachine for Linux / Connect only if the user is logged Ubuntu 26 NX 9.4.14

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #55934
    froZZen
    Participant

    Ubuntu 26.04 NoMachine 9.4.14

    The connection occurs only if the user is logged in and the screen is not locked.

    How to set this up correctly?

    #55952
    Britgirl
    Keymaster

    Can you tell us what desktop environment you are connecting to? Logs from the Ubuntu machine would be useful as well. Go to the NoMachine settings on the Ubtunu server, security -> log level debug, restart, reproduce the problem, collect the logs (Take logs from the same Security panel) and share them with us. You can attach here or send directly to forum[at]nomachine[dot]com. In the case of the latter, please use the title of this topic as the subject of your email. Thanks.

    #55953
    froZZen
    Participant

    Ubuntu 26.04 – desktop – only Wayland

    I sent three server log archives by email:
    1. Before user login – error
    2. After user login, screen locked – error
    3. Screen unlocked – successful

     

    Thanks.

    #55964
    Britgirl
    Keymaster

    Hi,

    thanks for submitting the logs. It appears there is something wrong with the ‘gdm-greeter’ system user that is used for the login. The debug --collect that is in our logs procedure did not find your home directory and so we have no logs from there. You will need to gather them manually.

    By default on Ubuntu 26.04 the home directory should be in /run/gdm3/home/gdm-greeter/. But since something is wrong they might be in another place. The command:

    echo ~gdm-greeter

    should point to them. We need the whole .nx directory that you find there. Zip that up and send as before 🙂

    Can you also tell us if this is a fresh install or is it an update from another version. If it’s the latter, what version were you updating from? Also useful is any journalctl output from the last boot:

    journalctl -b -1 > journal.log

    #55965
    froZZen
    Participant

    Hi,

    Ubuntu 26.04 – fresh install

    The system user ‘gdm-greeter’ is missing

     

     

    #56013
    Britgirl
    Keymaster

    It sounds more like something is broken on the system OS. There are references in logs to ‘/run/user/60578/’ so this directory has to be present. Maybe you could investigate the user with uid 60578?

    #56014
    froZZen
    Participant

    Hi,

    It sounds strange, but a user with such an uid 605787 does not exist, and the specified directory(‘/run/user/60578/’ ) does not exist either. Completely clean installation Ubuntu 26.04.

    #56035
    Britgirl
    Keymaster

    To make sure the NoMachine logs are preserved is to edit the node.cfg file and set the key ‘UsersDirectoryPath’ to a directory that can be accessed by everyone e.g. to the main NoMachine log directory:

    UsersDirectoryPath "/usr/NX/var/log/users"

    then ensure the directory is available for everyone:

    sudo mkdir /usr/NX/var/log/users
    sudo chmod 777 /usr/NX/var/log/users

    then please restart NoMachine:

    sudo /etc/NX/nxserver --restart

    and try to connect to Login Window again and collecting logs using

    sudo /etc/NX/nxserver --debug --collect

     

    #56036
    froZZen
    Participant

    Hi,

    I did everything described above, and also updated HX to version 9.5.7, and… everything worked!

    Thanks, Britgirl!

    #56042
    Britgirl
    Keymaster

    So you can now connect without any problems? Good to know.

    #56051
    froZZen
    Participant

    It seems to be working as expected.

Viewing 11 posts - 1 through 11 (of 11 total)

You must be logged in to reply to this topic. Please login .