Skip to content
Advertisement

How can I auto-login with the latest Raspbian Stretch Lite?

I have read many questions regarding this, but none that I have seen had helped me. I want to sign on to an account on boot automatically, for example, username: user; password: password. How can I do this?

Advertisement

Answer

I made this file: /etc/systemd/system/getty@tty1.service.d/autologin.conf And put this in it:

[Service]
ExecStart=
ExecStart=-/sbin/agetty --autologin <user> --noclear %I 38400 linux

Give your username there without <> After that, I executed this:

sudo systemctl enable getty@tty1.service

Just reboot and see

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement