CM3-Panel-7-basic technical documentation Buy

How to configure the CM3-PANEL-7 as a Chromium Kiosk

This how-tos explains how to create a simple Chromium Kiosk with the minimal amount of software installed

Create a Rasbian lite microSD following this article: https://www.acmesystems.it/CM3-PANEL-7-BASIC_microsd

Install the following packages:

sudo apt update
sudo apt -y install chromium-browser xorg xterm

Create a systemd file to launch Chromium at startup:

sudo nano /lib/systemd/system/chromium.service

Insert this content changing http://localhost:1880/ui with the url you want to open after the boot.

[Unit]
Description=Launch Chromium
After=systemd-user-sessions.service

[Service]
ExecStart=/usr/bin/xinit -bg black -fg black -geometry 132x36 -e "runuser pi -c 'chromium-browser --incognito  -kiosk --check-for-update-interval=300000000 --disable-pinch --overscroll-history-navigation=0 --window-position=0,0 --window-size=800,480 http://localhost:1880/ui'" -- -nocursor -s 0 -dpms
Restart=on-abort
User=root
WorkingDirectory=/home/pi

[Install]
WantedBy=multi-user.target

Enable the new service

sudo systemctl daemon-reload
sudo systemctl enable chromium

Reboot or launch the service by hand now:

sudo systemctl start chromium

Links

Sergio Tanzilli
Systems designer, webmaster of www.acmesystems.it and founder of Acme Systems srl

Personal email: tanzilli@acmesystems.it
Web pages: https://www.acmesystems.it --- https://www.acmestudio.it
Github repositories: https://github.com/tanzilli --- https://github.com/acmesystems
Telegram group dedicated to the Acme Systems boards: https://t.me/acmesystemssrl

Home page CM3-Panel-7-basic technical documentation Buy