Edit the file /usr/share/lightdm/lightdm.conf.d/50-greeter-wrapper.conf
, and add the following configuration:
1 | [SeatDefaults] |
For tty1-tty6
1 | khadas@Khadas:~$ sudo sed -i "s/ExecStart=.*/ExecStart=-\/sbin\/agetty --noclear --autologin root \%I \$TERM/g" /lib/systemd/system/getty@.service |
Reboot to take effect.