Finish Chromium config.
This commit is contained in:
parent
53f282d7cd
commit
c6e14d8394
9
dist/on-pi-startup.sh
vendored
9
dist/on-pi-startup.sh
vendored
@ -1,4 +1,11 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Make sure Chromium profile is marked clean, even if it crashed
|
||||||
|
# https://stedolan.github.io/jq/manual/
|
||||||
|
cat .config/chromium/Default/Preferences \
|
||||||
|
| jq '.profile.exit_type = "SessionEnded" | .profile.exited_cleanly = true' \
|
||||||
|
> .config/chromium/Default/Preferences-clean
|
||||||
|
mv .config/chromium/Default/Preferences{-clean,}
|
||||||
|
|
||||||
# http://peter.sh/experiments/chromium-command-line-switches/
|
# http://peter.sh/experiments/chromium-command-line-switches/
|
||||||
chromium-browser --start-fullscreen "https://github.com/futurice/chilipie-kiosk"
|
chromium-browser --start-fullscreen
|
||||||
|
|||||||
@ -21,7 +21,7 @@
|
|||||||
1. Reboot
|
1. Reboot
|
||||||
1. Clean up MATE's desktop cruft with `$ rm -rf ~/*`
|
1. Clean up MATE's desktop cruft with `$ rm -rf ~/*`
|
||||||
1. Install some packages we'll need:
|
1. Install some packages we'll need:
|
||||||
1. `$ sudo apt-get update && sudo apt-get install -y vim nodm matchbox-window-manager unclutter chromium-browser mailutils nitrogen`
|
1. `$ sudo apt-get update && sudo apt-get install -y vim nodm matchbox-window-manager unclutter chromium-browser mailutils nitrogen jq`
|
||||||
1. When mailutils prompts about its setup, "local only" is fine
|
1. When mailutils prompts about its setup, "local only" is fine
|
||||||
1. Make sure [automatic software updates are disabled](http://ask.xmodulo.com/disable-automatic-updates-ubuntu.html), in `/etc/apt/apt.conf.d/10periodic`:
|
1. Make sure [automatic software updates are disabled](http://ask.xmodulo.com/disable-automatic-updates-ubuntu.html), in `/etc/apt/apt.conf.d/10periodic`:
|
||||||
|
|
||||||
@ -36,6 +36,7 @@
|
|||||||
NODM_USER=pi
|
NODM_USER=pi
|
||||||
|
|
||||||
1. Get default scripts with `$ wget "https://github.com/futurice/chilipie-kiosk/archive/master.zip" && unzip master.zip && cp -v $(find chilipie-kiosk-master/dist/ -type f) . && rm -rf chilipie-kiosk-master/ master.zip`
|
1. Get default scripts with `$ wget "https://github.com/futurice/chilipie-kiosk/archive/master.zip" && unzip master.zip && cp -v $(find chilipie-kiosk-master/dist/ -type f) . && rm -rf chilipie-kiosk-master/ master.zip`
|
||||||
|
1. Configure Chromium to start from "where you left off", and navigate to https://github.com/futurice/chilipie-kiosk
|
||||||
|
|
||||||
# Optional: WLAN
|
# Optional: WLAN
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user