Setting up a kiosk on raspberry pi

Alex J V
Alex J V
May 22, 2018 · 3 min read

Auto login using user pi:

Setup auto start:

mkdir /home/pi/.config/autostart
nano /home/pi/.config/autostart/kiosk.desktop
[Desktop Entry]
Type=Application
Name=Kiosk
Exec=/home/pi/kiosk.sh
X-GNOME-Autostart-enabled=true

Setup kiosk.sh

nano /home/pi/kiosk.sh
#!/bin/bash
# Run this script in display 0 - the monitor
export DISPLAY=:0
# Hide the mouse from the display
unclutter &
# If Chrome crashes (usually due to rebooting), clear the crash flag so we don't have the annoying warning bar
sed -i 's/"exited_cleanly":false/"exited_cleanly":true/' /home/pi/.config/chromium/Default/Preferences
sed -i 's/"exit_type":"Crashed"/"exit_type":"Normal"/' /home/pi/.config/chromium/Default/Preferences
# Run Chromium and open tabs
chromium-browser --kiosk https://grafana.highlyreco.com/dashboard1
sleep 10s
chromium-browser https://grafana.highlyreco.com/dashboard2

Make kiosk.sh executable

Install revolver chrome plugin

Making changes without restarting pi

sudo killall kiosk.sh && sudo service lightdm restart

Disable screen saver:

sudo apt-get install xscreensaver
xscreensaver

Connecting to office wifi

network={
ssid=""
priority=1
proto=RSN
key_mgmt=WPA-EAP
pairwise=CCMP
auth_alg=OPEN
eap=PEAP
identity=
password=hash:
phase1="peaplabel=0"
phase2="auth=MSCHAPV2"
}
echo -n 'password_in_plaintext' | iconv -t utf16le | openssl md4 > hash.txt
sudo service networking restart

Ref:

Alex J V

Written by

Alex J V

Building a tool for maximizing self learning on the internet — https://www.highlyreco.com

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade