This is an old revision of the document!
This page mainly introduces automatic login under Ubuntu.
Check Settings
→Users
→Automatic Login
.
For tty1-tty6
$ sudo sed -i "s/ExecStart=.*/ExecStart=-\/sbin\/agetty --noclear --autologin root \%I \$TERM/g" /lib/systemd/system/getty@.service
For ttyS0
$ sudo sed -i "s/ExecStart=.*/ExecStart=-\/sbin\/agetty --autologin root --keep-baud 921600,115200,38400,9600 \%I \$TERM/g" /lib/systemd/system/serial-getty@.service
Reboot to take effect.