Embedded Software & Hardware


allpcb.com - World's Fastest PCB Manufacturing allpcb_logo

Linux autologin

$ systemctl cat getty@tty2 | grep Exec
ExecStart=-/sbin/agetty --noclear %I $TERM


$systemctl edit getty@tty1

And add for user "anok":

[Service]
ExecStart=
ExecStart=-/sbin/agetty -a anok --noclear %I $TERM


$cat /etc/systemd/system/getty@tty1.service.d/override.conf


© 2003-2017 Andrzej Okrutny, Krakow POLSKA