From d497967e2f4436be273a041f95e886ecdbb6c9d7 Mon Sep 17 00:00:00 2001 From: Roland Date: Wed, 20 May 2026 19:15:37 -0600 Subject: [PATCH] Configuring LightDM auto-login as wrolpi for WROLPi Portable. Drops straight into the XFCE session at boot. The wrolpi password is still required for sudo and screen unlock. Co-Authored-By: Claude Opus 4.7 (1M context) --- .../config/hooks/normal/9999-wrolpi.hook.chroot | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/wrolpi-portable/config/hooks/normal/9999-wrolpi.hook.chroot b/wrolpi-portable/config/hooks/normal/9999-wrolpi.hook.chroot index 2f6b3424..75d5bdf8 100755 --- a/wrolpi-portable/config/hooks/normal/9999-wrolpi.hook.chroot +++ b/wrolpi-portable/config/hooks/normal/9999-wrolpi.hook.chroot @@ -172,6 +172,17 @@ banner-message-enable=true banner-message-text=WROLPi Portable EOF +# LightDM auto-login — drop straight into the XFCE session as wrolpi without +# a password prompt. The wrolpi password ('wrolpi') is still required for +# sudo and screen unlock. +mkdir -p /etc/lightdm/lightdm.conf.d +cat > /etc/lightdm/lightdm.conf.d/50-wrolpi-autologin.conf <<'EOF' +[Seat:*] +autologin-user=wrolpi +autologin-user-timeout=0 +autologin-session=xfce +EOF + # Drop the default Postgres cluster created by the postgresql-* package. # On first boot, the persistence partition will be bind-mounted over # /var/lib/postgresql; with the default cluster baked into the squashfs, the