Skip to content

Instantly share code, notes, and snippets.

@N1H1L0
Forked from thomasnorris/Raspberry Pi Kiosk Setup.md
Last active October 9, 2021 21:50
Show Gist options
  • Select an option

  • Save N1H1L0/67b720885995555ea3e6d5a1210f8acd to your computer and use it in GitHub Desktop.

Select an option

Save N1H1L0/67b720885995555ea3e6d5a1210f8acd to your computer and use it in GitHub Desktop.
Instructions for installing a fresh image of Raspbian and turning the Pi into a kiosk (for google slides, google photos, etc)

Raspberry Pi Kiosk Setup

  • Install a fresh image of Raspbian and boot the Pi
  • Go through the prompts to finish initial setup
  • Open a Termial window
    • Type sudo apt-get install unclutter
    • Type sudo raspi-config
      • Select System Options with Enter
        • Select Network at Boot with Enter
        • Select Yes with Enter
        • Press Enter again
      • Press Enter again
      • Press Esc
    • Type sudo vim /etc/xdg/lxsession/LXDE-pi/autostart
      • In this file:
        • Comment this line by putting a # in front of it to disable the screen saver
          • @xscreensaver -no-splash
        • Disable power saving of the attached monitor
          • @xset s off -dpms
        • Remove the mouse cursor from the screen
          • @unclutter -idle 0
        • Start Chromium in full screen at the desired URL
          • @chromium-browser --kiosk --incognito http://site-to-launch.com
            • The --kiosk flag starts Chromium in full screen
            • The --incognito flag hides any message about Chromium not cleanly exiting/crashing
            • If you wish to present a google slides publish to the web and use that link
        • Save the file
    • Type sudo vim /boot/config.txt
      • In this file:
        • Uncomment this line by removing the # in front of it to disable screen overscan
          • disable_overscan=1
        • If your monitor is in a portrait orientation add this line
          • display_rotate=3
        • Add this line to increase GPU memory
          • gpu_mem=128
        • Save the file
          • Press Ctrl+X
          • Press Y
          • Press Enter
    • Type crontab -e
      • In this file:
        • Add this line to reboot the Pi every day at 12 am via a Cron
          • 0 0 * * * sudo reboot
        • Save the file
          • Press Ctrl+X
          • Press Y
          • Press Enter
    • Type sudo reboot
      • The Pi will reboot
  • On reboot, Chromium should open the specified URL in full screen mode and the Pi will automatically reboot according to the schedule set above
    • Exit to the Raspbian desktop with Alt+F4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment