2.1 KiB
-
Flash your SD card (assuming OS X):
- Get Ubuntu MATE 15.10.1 and decompress into an
.imgfile $ diskutil listto check correct device$ diskutil unmountDisk /dev/disk2to prepare it for imaging$ sudo dd bs=1m if=ubuntu-mate-15.10.1-desktop-armhf-raspberry-pi-2.img of=/dev/disk2(may take up to an hour)
- Get Ubuntu MATE 15.10.1 and decompress into an
-
Boot your Raspberry Pi using the SD card
-
Answer basic questions (timezone, keyboard layout, default user, etc)
- Set hostname to
chilipie-kiosk - Set username/password to
pi:raspberry(or whatever you want) - Log in automatically after boot
- Set hostname to
-
At this point you can already SSH onto the Pi and do the rest of the setup remotely
-
$ sudo visudoand addpi ALL=(ALL) NOPASSWD: ALLto allow sudo without password prompt -
Disable MATE's default desktop with
$ sudo graphical disable(though later nodm will boot directly to matchbox anyway) -
Re-size the SD card file system:
$ sudo fdisk /dev/mmcblk0- Delete the second partition (d, 2), then re-create it using the defaults (n, p, 2, enter, enter), then write and exit (w)
- Reboot
$ sudo resize2fs /dev/mmcblk0p2- Reboot
-
Clean up MATE's desktop cruft with
$ rm -rf ~/* -
Install some packages we'll need:
$ sudo apt-get update && sudo apt-get install -y vim nodm matchbox-window-manager unclutter chromium-browser mailutils nitrogen- When mailutils prompts about its setup, "local only" is fine
-
Make sure automatic software updates are disabled, in
/etc/apt/apt.conf.d/10periodic:APT::Periodic::Unattended-Upgrade "0"; APT::Periodic::Update-Package-Lists "0"; APT::Periodic::Download-Upgradeable-Packages "0"; APT::Periodic::AutocleanInterval "0"; -
In
/etc/default/nodm, set:NODM_ENABLED=true NODM_USER=pi -
Get default scripts with
$ wget https://github.com/futurice/chilipie-kiosk/archive/master.zip && cp chilipie-kiosk-master/dist/{*,.*} . && rm -rf chilipie-kiosk-master/ master.zip