sudo -iCopy the example
cp /usr/share/doc/gdm/examples/custom.conf /etc/gdm/Edit it with your favourite editor
vim /etc/gdm/custom.confAdd lines like these under [daemon]
[daemon]
AutomaticLoginEnable=true
AutomaticLogin=username
sudo -icp /usr/share/doc/gdm/examples/custom.conf /etc/gdm/vim /etc/gdm/custom.conf[daemon]
AutomaticLoginEnable=true
AutomaticLogin=username
/etc/acpi/powerbtn.sh like this:
#!/bin/sh
# /etc/acpi/powerbtn.sh
# Initiates a shutdown when the power putton has been
# pressed.
# you need to double 'click' the power button to shutdown
( if ! [ $(pidof -x powerbtn.sh | wc -w) -eq 3 ]; then
sleep .4
exit
else
poweroff
fi) &