Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
auto login for tty logins on ArchLinux (used on my virtual machine environments)
cp /usr/lib/systemd/system/getty@.service /usr/lib/systemd/system/autologin@.service

update file: [/usr/lib/systemd/system/autologin@.service]

add in the line ExecStart= -a USERNAMe after --noclear


 ExecStart=-/sbin/agetty --noclear -a root %I 38400 linux 
systemctl disable getty@tty1
systemctl enable autologin@tty1
systemctl start autologin@tty1


okierie commented Nov 24, 2015

This is my setting:
ExecStart=-/sbin/agetty --noclear -a root %I %TERM
It does autologin to CLI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment