Config Raspberry Pi for auto-login, disable Alt+F4, Ctrl+Alt+Del keys, auto-run python code

Just finished the first job on Raspberry Pi, using python code as a kiosk program, some common config you may needed:

My Raspberry Pi is running with RASPBIAN Debian Wheezy

Auto-login
After boot up the Raspbian, if you want to auto-login with username: pi, password: raspberry.
sudo nano /etc/inittab
find:
1:2345:respawn:/sbin/getty --noclear 38400 tty1
change to:
1:2345:respawn:/bin/login -f pi tty1 dev/tty1 2>&1

My job has keyboard connect, to prevent user press the unwanted keys.
Disable Ctrl+Alt+Del keys
find:
ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now
disable it by comment the above line (add # in the front of the line)
#ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now

User can also use key combine Alt+F1…Alt+F6 to switch between different consoles, to disable it and stay on one console only:
Disable multiple virtual consoles
Comment the following lines:
#2:23:respawn:/sbin/getty 38400 tty2
#3:23:respawn:/sbin/getty 38400 tty3
#4:23:respawn:/sbin/getty 38400 tty4
#5:23:respawn:/sbin/getty 38400 tty5
#6:23:respawn:/sbin/getty 38400 tty6

save it and then type:
sudo nano /etc/default/console-setup
find 1-6 and change to 1-1
ACTIVE_CONSOLES="/dev/tty[1-1]"

Auto-run python code
sudo nano /etc/profile
add the below line to the end:
sudo python /home/pi/yourcode.py

After finished all above config, reboot:
sudo reboot