I’m trying to connect from one Linux machine (Arch Linux) to another Linux machine (Ubuntu 20.04 with XMonad as the window manager). When I try to connect I get the error “Cannot detect any display running. Do you want NoMachine to create a new display and proceed to connect to the desktop?”
But as far as I’m aware, X server *is* running on the Ubuntu machine. If I click “yes” to the option to create a new display, then it logs into Gnome on the target machine, so I’m running two disconnected X servers. But obviously I want it to connect to the X instance which is already running, where Xmonad is running.
If I run Gnome on the target machine instead of XMonad, then the NoMachine client can detect the display running and connect with no problems. Xmonad is just a window manager, not a fully-fledged desktop environment, so I’m wondering if there’s something provided by Gnome which is required for the NoMachine client to connect that I’m not getting in XMonad. If so, what?
Or is there some other issue? All help gratefully received.