Kiosk Mode of Raspberry Pi

This is for OS Raspbian.

  1. rotate the screen before each boot
    Go to /boot/config.txt, set

    display_rotate=0 //normal 
    display_rotate=1 //rotate 90 degrees clock-wise
    
  2. set to full screen
    Go to /boot/config.txt, set

    disable_overscan = 1 //restart your pi 
    
  3. auto login
    Go to /etc/inittab, then comment out

    1:2345:respawn:/sbin/getty --noclear 38400 tty1
    

    and add

    1:2345:respawn:/bin/login -f pi tty1 </dev/tty1 >/dev/tty1 2>&1
    
  4. auto startx
    Go to /etc/rc.local, add below code before exit 0

    su -l pi -c starx
    
  5. auto full screen browser.
    Go to /etc/xdg/lxsession/LXDE/autostart, add

    @chromium --kiosk --incognito www.google.com
    

    or if you want to use midori as the browser

    @midori -i 120 -e Fullscreen -a google.com -p
    

Reboot your Pi to see it'd go to the site you just set automatically in the fullscreen mode of the browser.