How do I disable the Gnome welcome screen on first login?
I'm building a custom ISO for Ubuntu Server 18.04.3 LTS and then adding the ubuntu-desktop package (these builds are for developers who want a workstation version of our server build).
I need to skip the welcome stuff for the GUI. We use LDAP authentication so no local accounts need to be set up.
I've tried all three things mentioned at Disable the new ubuntu 18.04 welcome screen
remove the gnome-initial-setup package
add the "InitialSetupEnable=false" line to /etc/gdm3/custom.conf
comment the Exec line in /etc/xdg/autostart/gnome-initial-setup-first-login.desktop
In all of these cases, the machine reboots to a black screen. The OS is running (I can SSH in) and gnome appears to be running if I run ps aux | grep -i gnome but the console is black and ctrl-alt-f1 (or f2, etc) doesn't switch me to a new console.
If I undo my changes and reboot I go back to the welcome screen.
Any guidance?
I have done some noodling: With the GUI up (Welcome enabled), I can log in via SSH as a regular account with X11 forwarding on the remote machine and run /usr/lib/gnome-initial-setup/gnome-initial-setup --existing-user. Then I can go to the console (at the welcome screen), hit ctrl-alt-f2 and log in as my regular account, and THEN enter startx and I get a desktop.
I did also try completing the welcome dialog. It appears to be running "/usr/lib/gnome-initial-setup/gnome-initial-setup" without the --existing-user flag so it wants to create a new user. I entered info for a throwaway user and it kicked to some console output and hangs at: [ OK ] Started Hold until boot process finishes up.
It stays there until I reboot and then comes up with a black screen again. And this time I can't get away from the black screen. Tried uninstalling and reinstalling gnome-initial-setup with no luck. Ended up redeploying the build again.
What I need is an unattended way to skip all of this and get a new machine that's waiting for LDAP users to log in.