pauls page

for music, code and the internet of things.

Raspberry Pi Kiosk Cheat Sheet

# Tested on Raspberry Pi model 4B
# Updated Apr21 - Tested on Buster Lite

Image your SD card with Raspberry Pi OS Lite

Configure Network & SSH

Install LXDE and Chromium

sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt-get update

sudo apt-get install chromium-browser unclutter lxde

Configure Boot

Change the boot configuration to autologin to desktop as ‘pi’ user (see below to change the password)

sudo raspi-config
sudo reboot

Set chrome to autostart and turn off screensaver

sudo nano ~/.config/lxsession/LXDE/autostart

Remove anything there, it should look like this…

@xset -dpms off
@unclutter -idle 0
@sed -i 's/"exited_cleanly": false/"exited_cleanly": true/' ~/.config/chromium-browser Default/Preferences
@chromium-browser --noerrdialogs --kiosk http://localhost --incognito --disable-translate --check-for-update-interval=1 --simulate-critical-update

⚠ If there was nothing there, or the file didn’t exist, it’s because you didn’t reboot in the previous step.

Localhost Web Server

Perhaps you want a local webserver to host your kiosk/webpage…

sudo apt-get install apache2
sudo apt-get install php php-gd php-snmp php-ldap
sudo reboot

Hide Under-voltage Warning

sudo nano /boot/config.txt

add to the bottom…
avoid_warnings=1
disable_splash=1

Remove Raspberry Logo

sudo nano /boot/cmdline.txt

add to the end of the first line…
logo.nologo

Ethernet Only

sudo nano /etc/network/interfaces

auto eth0
iface eth0 inet dhcp

sudo systemctl disable dhcpcd

Turn off Screen Blanking

sudo nano /etc/lightdm/lightdm.conf

[Seat:*]
xserver-command=X -s 0 -p 0 -dpms

Remove Overscan

sudo nano /boot/config.txt

disable_overscan = 1

Change hostname

sudo nano /etc/hostname

Change Password

passwd