Auto Login and Auto Start in Raspberry Pi

Auto Login:

sudo nano /etc/inittab

Find line

1:2345:respawn:/sbin/getty 115200 tty1

Comment it out

#1:2345:respawn:/sbin/getty 115200 tty1

Add the following line just below the commented line

1:2345:respawn:/bin/login -f pi tty1 /dev/tty1 2>&1

Auto start something:

sudo nano /etc/profile

Add the following line to the end of the file

. /home/pi/