Nxserver can connect to a display but not start one

Forum / NoMachine for Linux / Nxserver can connect to a display but not start one

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #42614
    jagalactic
    Participant

    I use NoMachine at work on a corporate license, and I would like to use it at home on a Fedora 36 system. I can start a display from the F36 console (“startx”), and that works. NoMachine can connect to that display, but if no display is running it can’t start one – I get the “cannot find the default environment…” popup.

    I’ve tried the following in /usr/NX/etc/node.cfg:

    #DefaultDesktopCommand "/etc/X11/Xsession default"
    
    DefaultDesktopCommand "/etc/X11/Xsession gnome-session --session=gnome'"
    
    #DefaultDesktopCommand "/usr/bin/gnome-session"
    
    #DefaultDesktopCommand "/usr/bin/startx" 

    (the uncommented line is what works for me at work, but not at home)

    What I want is a gnome session that can be resized to fit full-screen on my monitor (which is QHD – 3440×1440) – which does not work if I’m connected to a display that is bound to an actual monitor on the Linux box.

    [jmg@fedora ~]$ sudo /etc/NX/nxserver --version

    NoMachine – Version 8.3.1

    Client is also 8.3.1, on a Mac running Ventura.

    Any tips would be appreciated!

    #42660
    Britgirl
    Keymaster

    Hi, the image didn’t upload correctly for some reason. Can you send it to forum[at]nomachine[dot]com?

    #42670
    kroy
    Contributor

    Hi.

    Are those commands are from Fedora 36? Just try this if you have gnome:

    DefaultDesktopCommand "/etc/gdm/Xsession gnome-session"

    #42688
    jagalactic
    Participant

    Are those commands are from Fedora 36? Just try this if you have gnome:

    DefaultDesktopCommand "/etc/gdm/Xsession gnome-session"

    Yes, it’s fedora 36. With this command I don’t get the same error, but the NoMachine server dies pretty quickly, and I never see a desktop.

    Thanks….

    #42703
    kroy
    Contributor

    Aren’t you using gdm? Check where is placed Xsession script.

    sudo find /etc -name "Xsession"

    and use those path in DefaultDesktopCommand. For example:

    DefaultDesktopCommand "/etc/X11/xinit/Xsession gnome-session --session=gnome"

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

Closed because the user did not provide further feedback. Please notify us if you confirm that it is resolved or open a new topic if you have the same problem.