autologin
Automatic Login
Edit /etc/systemd/system/getty@tty1.service.d/override.conf
by typing:
1sudo systemctl edit getty@tty1
The put in the following, changing [ USER ]
to your username.
1
2[Service]
3ExecStart=
4ExecStart=-/usr/bin/agetty --autologin [ USER ] -s %I 115200,38400,9600 vt102
Automatically Start X
In .bashrc
.
1 if [ -z "$DISPLAY" ] && [ "$(fgconsole)" -eq 1 ]; then
2 exec startx
3 fi