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=console
for 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
startx
in the event a user is seated in front of it. [Yes, I could just have the user run the long 'lightdm' command, butstartx
is just so nice and convenient, not to mention legacy-friendly, and so it would be a great opportunity to educate users aboutstartx
and help them as we transition into a more linux-populated environment.]
startx unity
work, but justunity
didn't? (I've seenunity
mentioned in other answers, so I tried it - along withgnome-shell
andunity-2d-shell
(<< https://askubuntu.com/a/148721/182241) – user3.1415927 Jul 02 '18 at 18:38sudo systemctl isolate graphical.target
- but then you will need to log in again graphically. I don't think there's a mechanism to both log in directly to a user-session and start a display manager – steeldriver Jul 02 '18 at 19:26