On 16.04.4, I changed grub to boot into CLI instead of GUI by changing GRUB_CMDLINE_LINUX=”quiet_splash" to GRUB_CMDLINE_LINUX=”text”. I also ran a multi-user.target systemctl command (like this answer), but I am not appending this setting to the kernel as suggested here.
Now if I run startx, I get a blank desktop background with the X cursor (as another user shared in this comment). The response is to run sudo systemctl start lightdm, which will start the default desktop, but this loads as though I had just started the computer in GUI mode (and prompts me for a login). Is it possible to configure startx to run such that it loads the normal desktop GUI as if I'm already logged in, since I'm already logged in?
Notes in case it helps:
- I haven't run the
GRUB_TERMINAL=consolefor the black & white screen printing because it's not a priority to sterilize the startup that much yet. - The goal is to run a desktop OS on a 'mostly headless' system, but keep the option to run
startxin the event a user is seated in front of it. [Yes, I could just have the user run the long 'lightdm' command, butstartxis just so nice and convenient, not to mention legacy-friendly, and so it would be a great opportunity to educate users aboutstartxand help them as we transition into a more linux-populated environment.]