[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: automatic login for a live user doesn't work



This is my solution:

LIVE_USERNAME="name User"
        
echo "
[SeatDefaults]
session-wrapper=/etc/X11/Xsession
greeter-session=lightdm-greeter
autologin-user=${LIVE_USERNAME}
autologin-user-timeout=0
pam-service=lightdm-autologin
" > /etc/lightdm/lightdm.conf

echo "
[SeatDefaults]
session-wrapper=/etc/X11/Xsession
greeter-session=lightdm-greeter
autologin-user=${LIVE_USERNAME}
autologin-user-timeout=0
pam-service=lightdm-autologin
" > /etc/lightdm.conf

echo "
#%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
" > /etc/pam.d/lightdm-autologin


    # Avoid xinit
    _X11="true"
    export _X11

    # Creating state file
    touch /var/lib/live/config/lightdm
}

Lightdm

010-lightdm

it's working for me.

On 09/06/12 10:18, upiter77@lycos.com wrote:
hi

I have created a live wheezy hdd:

# lb config --mode debian -d wheezy -b hdd -p lxde

using this autologin script:

# cp  /lib/live/config/010-lightdm /home/live/config/includes.chroot/lib/live/config

but it doesn't work.

It hangs at the login mask with the massage "Debin Live user autologin", but nothing happens.

greetings
Piotr -- To UNSUBSCRIBE, email to debian-live-request@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org Archive: http://lists.debian.org/378618900.66246.1339247915924.JavaMail.mail@webmail06

Reply to: