0

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

Something Something
  • 3,999
  • 1
  • 6
  • 21

0 Answers0