Skip to content

Instantly share code, notes, and snippets.

@tienthanh2509
Created July 20, 2021 02:55
Show Gist options
  • Save tienthanh2509/290d8fd2cc0a9233ac90f1813189691a to your computer and use it in GitHub Desktop.
Save tienthanh2509/290d8fd2cc0a9233ac90f1813189691a to your computer and use it in GitHub Desktop.
Ubuntu console auto login
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