Skip to content

Instantly share code, notes, and snippets.

@Sam-R
Created June 30, 2016 15:59
Show Gist options
  • Save Sam-R/a79e34b2d889b0d937c4398f5d619ad7 to your computer and use it in GitHub Desktop.
Save Sam-R/a79e34b2d889b0d937c4398f5d619ad7 to your computer and use it in GitHub Desktop.
Setup the Raspberry PI as a Web Kiosk.

Install Software

We need to install chrome (browser), x11 server (utilities) and unclutter (remove cursor)

sudo apt-get install chromium x11-xserver-utils unclutter

Enable SSH

Enable SSH access and boot to desktop in using rasp-config

sudo raspi-config

Follow on screen instructions from here.

Set a static IP address (JESSIE)

To set a static IP address on Debian Jessie on the Raspberry Pi the networking files have changed (SOURCE http://raspberrypi.stackexchange.com/questions/37920/how-do-i-set-up-networking-wifi-static-ip)

sudo nano /etc/dhcpcd.conf

     interface eth0

     static ip_address=192.168.0.10/24
     static routers=192.168.0.1
     static domain_name_servers=192.168.0.1

Disable Powersaving

Edit one of these files to set the screensaver and powersaving off.

sudo nano /etc/xdg/lxsession/LXDE/autostart sudo nano /etc/xdg/lxsession/LXDE-pi/autostart

# Disable the screensaver
#@xscreensaver -no-splash

# Disable screensaver, powersaving and screen sleep
@xset s off
@xset -dpms
@xset s noblank

# Disable errors (incase of reboot)
@sed -i 's/"exited_cleanly": false/"exited_cleanly": true/' ~/.config/chromium/Default/Preferences

# Tell chrome which page to start in kiosk mode.
@chromium --noerrdialogs --kiosk http://www.page-to.display

Reboot to test

sudo reboot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment