Created
July 20, 2021 02:55
-
-
Save tienthanh2509/290d8fd2cc0a9233ac90f1813189691a to your computer and use it in GitHub Desktop.
Ubuntu console auto login
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir -p /etc/systemd/system/getty@tty1.service.d | |
# replace username to user need to auto login | |
# don't support decrypt | |
cat << EOF > /etc/systemd/system/getty@tty1.service.d/override.conf | |
[Service] | |
ExecStart= | |
ExecStart=-/sbin/agetty --noissue --autologin username %I $TERM | |
Type=idle | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment