Configuration for dietpi to boot directly to Chromium in kiosk mode.
- Obtain a DietPi image for your device.
- Flash the image to an SD card as per the DietPi directions.
- Insert the SD card into a computer and note the filesystems mounted. One will be a
boot
filesystem.
- Clone this repository.
- Update the
SOFTWARE_CHROMIUM
variables indietpi.txt
as required:SOFTWARE_CHROMIUM_AUTOSTART_URL
: the kiosk URL to load on bootSOFTWARE_CHROMIUM_RES_X
: the x resolution of the kiosk screenSOFTWARE_CHROMIUM_RES_Y
: the y resolution of the kiosk screen
- Replace
dietpi.txt
on theboot
filesystem mounted in step 1.3 with the updateddietpi.txt
. - Copy
Automation_Custom_Script.sh
to theboot
filesystem.
Note: currently a wired Internet connection is required.
- Insert the SD card into a device with a wired network connection.
- Power on the device.
- The device will download and configure software required for kiosk mode.
- The device will reboot to a kiosk open at the configured URL.
To duplicate the image for distribution, use the dietpi-imager
script as per the dietpi docs:
-
Insert the SD card into a Linux host.
-
Run the
dietpi-imager
script:sudo G_GITOWNER=MichaIng G_GITBRANCH=master bash -c "$(curl -sSfL 'https://raw.githubusercontent.com/MichaIng/DietPi/master/.build/images/dietpi-imager')"
-
Follow the prompts.
-
Both
.img
(image) and.img.xz
(compressed image) files will be created.