From 94a0c24346bd5099747efa0bd798bacc4f203c31 Mon Sep 17 00:00:00 2001 From: Jarno Rantanen Date: Sun, 24 Jan 2016 20:26:49 +0200 Subject: [PATCH] Update image prep docs. --- first-boot.md | 2 +- image-setup.md | 15 ++++++++++++++- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/first-boot.md b/first-boot.md index 71de12d..c0824e9 100644 --- a/first-boot.md +++ b/first-boot.md @@ -1,4 +1,4 @@ -# Welcome to `chilipie-kiosk` +# Welcome to chilipie-kiosk Looks like this might be your first boot! This document lists some things you can do to customize your kiosk. You'll want to plug in a keyboard at this point. diff --git a/image-setup.md b/image-setup.md index df088ac..f83a359 100644 --- a/image-setup.md +++ b/image-setup.md @@ -38,6 +38,14 @@ 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/home/ -type f) . && rm -rf chilipie-kiosk-master/ master.zip` +1. Put in the example crontab with `$ crontab -e`: + + # m h dom mon dow command + + # 0 7 * * 1-5 ~/display-on.sh # turn display on weekdays at 7 AM + # 0 19 * * 1-5 ~/display-off.sh # turn display off weekdays at 7 PM + +1. Reboot (should land you in Chromium) 1. Configure Chromium to start from "where you left off", and navigate to https://github.com/futurice/chilipie-kiosk/blob/master/first-boot.md ## Optional: WLAN @@ -62,4 +70,9 @@ ## Preparing the image 1. Disable SSH access (because the default credentials aren't very secure): `$ sudo systemctl disable ssh.service` -1. TODO: Dump image +1. Shut down the Raspberry Pi +1. Dump the image to disk (assuming OS X): + 1. `$ diskutil list` to check correct device + 1. `$ diskutil unmountDisk /dev/disk2` to prepare it for imaging + 1. `$ sudo dd bs=1m if=/dev/disk2 of=chilipie-kiosk-TAG.img` + 1. `$ zip chilipie-kiosk-TAG.zip chilipie-kiosk-TAG.img`