This project provides a step-by-step guide to setting up a Raspberry Pi as a kiosk that automatically launches a Chromium browser in kiosk mode. The setup includes creating a systemd service to manage the Chromium browser and configuring LXDE to disable screen saving and power management features.
- Automatic Updates: Ensures your Raspberry Pi is up to date with the latest software.
- Chromium Browser: Installs and configures Chromium to run in kiosk mode.
- Systemd Service: Creates a service to manage the kiosk application.
- LXDE Configuration: Adjusts LXDE settings to prevent screen blanking and power management interruptions.
Follow these steps to set up your Raspberry Pi as a kiosk:
Update your system and install Chromium and Unclutter.
sudo apt update
sudo apt upgrade -y
sudo apt install -y chromium-browser
sudo apt install -y unclutter
Create a systemd service to manage the Chromium browser in kiosk mode.
sudo nano /etc/systemd/system/kiosk.service
Add the following code to the service file:
[Unit]
Description=Chromium Kiosk
After=graphical.target
[Service]
User=definition
Environment=XAUTHORITY=/home/user/.Xauthority
Environment=DISPLAY=:0
ExecStart=/usr/bin/chromium-browser --noerrdialogs --disable-infobars --kiosk https://your.web.com
Restart=on-abort
[Install]
WantedBy=graphical.target
Enable and start the service:
sudo systemctl enable kiosk.service
sudo systemctl start kiosk.service
Adjust LXDE settings to disable screen saving and power management.
sudo nano /etc/xdg/lxsession/LXDE-pi/autostart
Add the following lines:
@xset s off
@xset -dpms
@xset s noblank
@chromium-browser --noerrdialogs --disable-infobars --kiosk https://your.web.com
@unclutter -idle 0
If you would like to contribute to this project, please submit a pull request or open an issue for any improvements or suggestions.