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

GDM autologin



Hi
    the GDM autologin don't work.


15autologin in casper

the pattern(e.g : s/^AutomaticLoginEnable=.*\$/)
in the SED script don't exist in the original gdm.conf
so the SED S(Substitule)function don't excute
the SED a(Append) function work for this purpose.

//////////////////////////////////////////
if chroot /root [ -f ${GDMCONF} ]; then
    # Configure GDM autologin
    chroot /root sed -i \
        -e "s/^AutomaticLoginEnable=.*\$/AutomaticLoginEnable=true/" \
        -e "s/^AutomaticLogin=.*\$/AutomaticLogin=$USERNAME/" \
        -e "s/^TimedLoginEnable=.*\$/TimedLoginEnable=true/" \
        -e "s/^TimedLogin=.*\$/TimedLogin=$USERNAME/" \
        -e "s/^TimedLoginDelay=.*\$/TimedLoginDelay=10/" \
        ${GDMCONF}
fi


/////////////////////////////////
##but I don't know how to modify the below script run in chroot jail

if [ -f /etc/gdm/gdm.conf ]
then
 cp /etc/gdm/gdm.conf /etc/gdm/gdm.conf.org
 sed -e '/\[daemon\]/a\
AutomaticLoginEnable=true\
AutomaticLogin=$USENAME\
TimedLoginEnable=true\
Timedlogin=$USENAME\
TimeLogindelay=10\
' /etc/gdm/gdm.conf.org > /etc/gdm/gdm.conf

fi



Best Regards

Wufu Chen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.debian-unofficial.org/pipermail/live/attachments/20060624/ad0a2416/attachment.htm

Reply to: