|
|
@@ -67,6 +67,71 @@ With `/opt/splash.png`
|
|
|
|
|
|
Might need to kill `fbi` when starting the kiosk.
|
|
|
|
|
|
+---
|
|
|
+
|
|
|
+#### update
|
|
|
+
|
|
|
+using this [guide](https://scribles.net/customizing-boot-up-screen-on-raspberry-pi/) instead, you can change the splash screen in:
|
|
|
+
|
|
|
+```
|
|
|
+/usr/share/plymouth/themes/pix/splash.png
|
|
|
+```
|
|
|
+
|
|
|
+to something custom.
|
|
|
+
|
|
|
+### Custumizing X
|
|
|
+
|
|
|
+[src](https://www.ketzler.de/2017/12/installing-chromium-on-raspberry-pi-without-desktop/) and [src](https://www.matteomattei.com/web-kiosk-with-raspberry-pi-and-read-only-sd/)
|
|
|
+
|
|
|
+```
|
|
|
+apt-get install matchbox-window-manager
|
|
|
+
|
|
|
+```
|
|
|
+
|
|
|
+into somthing like `start-kiosk.sh`
|
|
|
+```
|
|
|
+#!/bin/sh
|
|
|
+
|
|
|
+export BASEDIR=/home/pi
|
|
|
+
|
|
|
+/usr/bin/matchbox-window-manager -use_cursor no -use_titlebar no &
|
|
|
+
|
|
|
+#/usr/bin/chromium-browser --no-sandbox
|
|
|
+
|
|
|
+# clear out warning bar on chromium
|
|
|
+#
|
|
|
+tmpfn=`mktemp`
|
|
|
+jq '.profile.exited_cleanly = true' $BASEDIR/.config/chromium/Preferences | jq '.profile.exit_type = "Normal"' > $tmpfn
|
|
|
+mv $tmpfn $BASEDIR/.config/chromium/Preferences
|
|
|
+
|
|
|
+# start chromium in kiosk mode
|
|
|
+#
|
|
|
+
|
|
|
+xset s noblank
|
|
|
+xset s off
|
|
|
+xset -dpms
|
|
|
+unclutter -idle 0.05 -root &
|
|
|
+
|
|
|
+#/usr/bin/chromium-browser --noerrdialogs --disable-infobars --kiosk ./html/index.html
|
|
|
+#
|
|
|
+# --no-sandbox \
|
|
|
+# --disable-application-cache \
|
|
|
+/usr/bin/chromium-browser \
|
|
|
+ --test-type \
|
|
|
+ --no-sandbox \
|
|
|
+ --noerrdialogs \
|
|
|
+ --disable-infobars \
|
|
|
+ --aggressive-cache-discard \
|
|
|
+ --incognito \
|
|
|
+ --disable-pinch \
|
|
|
+ --overscroll-history-navigation=0 \
|
|
|
+ --kiosk \
|
|
|
+ 'http://localhost:60535'
|
|
|
+```
|
|
|
+
|
|
|
+`--test-type` is needed to get rid of the `--no-sandbox` warning and the `--no-sandbox` is needed
|
|
|
+or else chromium crashes when being used by `xinit` (see [here](https://groups.google.com/a/chromium.org/forum/#!topic/chromium-discuss/O4WpwWvGz4A)).
|
|
|
+
|
|
|
### Packages
|
|
|
|
|
|
```
|