Score:0

Starting KDE instead of Gnome on headless Ubuntu 20.04 nomachine setup

eg flag

I have Kubuntu 20.04.5 LTS installed on this Intel box with the latest update. I had a cheap monitor in there and although its resolution was only 1080, I was able to write an xrand script and bypass the issue. However due to datacenter constraints I have now to remove the monitor, which leaves the computer headless.

Without the monitor I can actually connect and change the resolution much easier. It asks to start a new X session though, which is not an issue at all.

However it now always start with Gnome instead of KDE. The issue with that is although Gnome is not bad I need KDE for several professional reasons.

I have attempted to change /usr/NX/etc/server.cfg ConnectPolicy to several combinations of values, enabling and disabling features to no avail.

ConnectPolicy autocreate=1,autoconnect=1,automigrate=1,desktop=1,dialog=1,xsessions=1,udp=1
DefaultDesktopCommand "dbus-launch --exit-with-session startkde"

I also created ~/.xinitrc and ~/.xsession files with these commands

exec startkde

Every time I reconnect it jumps straight into Gnome as it can be seen in the picture below. Is there any way to make it start KDE instead?

$ sudo nano /usr/NX/etc/server.cfg
$ sudo /etc/NX/nxserver --restart
NX> 162 Disabled service: nxserver.
NX> 162 Service: nxnode already disabled.
NX> 162 Disabled service: nxd.
NX> 111 New connections to NoMachine server are enabled.
NX> 161 Enabled service: nxserver.
NX> 162 WARNING: Cannot find X servers running on this machine.
NX> 162 WARNING: A new virtual display will be created on demand.
NX> 161 Enabled service: nxd.

Thank you!!!

enter image description here

darth_epoxy avatar
nl flag
Try this `sudo systemctl set-default multi-user.target` then reboot.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.