0

I am using Ubuntu 20.04 and have done the following setup:

sudo systemctl set-default multi-user.target
sudo systemctl add-wants multi-user getty@tty1

and /etc/securetty has been created.

However, tty1 does not show after boot, unless Ctrl+Alt+F1 is pressed.

Although getty@tty1 wants multi-user.target, I saw getty@tty1 before multi-user.target in systemd-analyze results. Is it correct?

Eric Wang
  • 101

1 Answers1

0

I'm not sure whether you should add getty in add-wants, because it seems to make getty one of multi-user.target's dependencies.

I also met similar problems of no login screen showed when switching to multi-user.target. It could be related to GRUB configuration, as mentioned in these two posts:

Ubuntu running only graphics mode and I cant change to text mode

Cannot boot after sudo systemctl set-default multi-user.target

So basically GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" in /etc/default/grub forces the kernel to display a splash screen, so there seems to be no output. You could just change it to: GRUB_CMDLINE_LINUX_DEFAULT="" without modifying getty to show the login console.

Then run update-grub to update GRUB