From c6e14d8394a6f09828b847fa0d31c4d7a216aa1f Mon Sep 17 00:00:00 2001 From: Jarno Rantanen Date: Sun, 24 Jan 2016 12:48:45 +0200 Subject: [PATCH] Finish Chromium config. --- dist/on-pi-startup.sh | 9 ++++++++- setup/README.md | 3 ++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/dist/on-pi-startup.sh b/dist/on-pi-startup.sh index 463049c..39c22d8 100755 --- a/dist/on-pi-startup.sh +++ b/dist/on-pi-startup.sh @@ -1,4 +1,11 @@ #!/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/ -chromium-browser --start-fullscreen "https://github.com/futurice/chilipie-kiosk" +chromium-browser --start-fullscreen diff --git a/setup/README.md b/setup/README.md index 1958e76..1bcd8ae 100644 --- a/setup/README.md +++ b/setup/README.md @@ -21,7 +21,7 @@ 1. Reboot 1. Clean up MATE's desktop cruft with `$ rm -rf ~/*` 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. 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 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