Automated Login In Arch Linux
Now that I'm using Arch Linux + i3-gaps everywhere with encrypted installs logging in after typing my encryption password has become slow and annoying. With the following steps you'll only have to type your encryption password during boot and the rest of the system will start up as normal.
This works well for my setup where I run
startximmediately after logging in with this script in my
.zshrcfile on an encrypted partition. I do not recommend doing this if you don't encrypt your stuff!
Create a directory named
firstname.lastname@example.org/ inside the systemd system unit
sudo mkdir -p /email@example.com/
Create a file in this folder called
override.conf with the following content:
# /firstname.lastname@example.org/override.conf [Service] ExecStart= ExecStart=-/usr/bin/agetty --autologin YOUR_USERNAME_HERE --noclear %I $TERM
That's it! On next reboot, it will skip the tty1 login step and go straight to your window manager.