# Chromium Kiosk

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

Create a Raspberry Pi OS microSD following this article: @article='cmpanel-basic_microsd'

###Install the following packages:

	sudo apt update
	sudo apt -y install chromium xorg xterm

###Create a systemd file to launch automaticaly the Chromium browser at startup:

	sudo nano /lib/systemd/system/chromium.service
	
Save this lines changing the url <code>http://www.acmesystems.it</code> 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 --incognito  -kiosk --check-for-update-interval=300000000 --disable-pinch --overscroll-history-navigation=0 --window-position=0,0 --window-size=800,480 https://www.acmesystems.it'" -- -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 

* [List of Chromium Command Line Switches](https://peter.sh/experiments/chromium-command-line-switches/#load-extension)
* @article='systemd'

<hr/>
@include='adv_cmpanel'
