Wednesday, September 21, 2011

enable lightdm autologin debian wheezy


alter /etc/lightdm/lightdm.conf to be

[SeatDefaults]
autologin-user={YOUR USER NAME}
autologin-user-timeout=0
pam-service=lightdm-autologin


create /etc/pam.d/lightdm-autologin (if not exist)
#%PAM-1.0
auth requisite pam_nologin.so
auth required pam_env.so readenv=1
auth required pam_env.so readenv=1 envfile=/etc/default/locale
auth required pam_succeed_if.so user != root quiet_success
auth required pam_permit.so
@include common-account
session required pam_limits.so
@include common-session
@include common-password


thanks
=======
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=636104
http://ubuntuforums.org/showthread.php?t=1801335


my environment
==============
lightdm (0.9.2-3)
xfce4 (4.8.0.3)

# I in fact apt-get install --no-install-recommends gdm3
to see the content of /etc/pam.d/gdm3-autologin

2 comments: