Skip to content

Instantly share code, notes, and snippets.

@rany2
Created November 30, 2025 17:52
Show Gist options
  • Select an option

  • Save rany2/7f6787913c1f52265907503cb3255648 to your computer and use it in GitHub Desktop.

Select an option

Save rany2/7f6787913c1f52265907503cb3255648 to your computer and use it in GitHub Desktop.
LXC AutoLogin
[Service]
ExecStart=
ExecStart=-/sbin/agetty -o '-p -f -- \\u' --noclear --keep-baud --autologin root - 115200,38400,9600 $TERM
@rany2
Copy link
Author

rany2 commented Nov 30, 2025

mkdir -p /etc/systemd/system/[email protected]
wget -O /etc/systemd/system/[email protected]/autologin.conf https://gist.github.com/rany2/7f6787913c1f52265907503cb3255648/raw/69a5bb0a431f7302cb16477baafb78023b4ceaa9/[email protected]%2520autologin.conf
systemctl daemon-reload
systemctl restart container-getty@1 container-getty@2

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