From 1d1dc611d8c28904dca718d11d17923b9ff644ad Mon Sep 17 00:00:00 2001 From: Jarno Rantanen Date: Sat, 9 Apr 2016 13:04:39 +0300 Subject: [PATCH] Move the SD card resizing to optional tweaks file. --- image-setup.md | 6 ------ optional-tweaks.md | 13 +++++++++++++ 2 files changed, 13 insertions(+), 6 deletions(-) create mode 100644 optional-tweaks.md diff --git a/image-setup.md b/image-setup.md index 4504f1f..850a95b 100644 --- a/image-setup.md +++ b/image-setup.md @@ -15,12 +15,6 @@ 1. At this point you can already SSH onto the Pi and do the rest of the setup remotely 1. `$ sudo visudo` and add `pi ALL=(ALL) NOPASSWD: ALL` to allow sudo without password prompt 1. Disable MATE's default desktop with `$ sudo graphical disable` (though later nodm will boot directly to matchbox anyway) -1. [Re-size the SD card file system](https://ubuntu-mate.org/raspberry-pi/): - 1. `$ sudo fdisk /dev/mmcblk0` - 1. Delete the second partition (d, 2), then re-create it with slightly more free space (n, p, 2, enter, +4500M, enter), then write and exit (w) - 1. Reboot - 1. `$ sudo resize2fs /dev/mmcblk0p2` - 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 mailutils nitrogen jq chromium-browser=45.0.2454.101-0ubuntu1.1201 chromium-codecs-ffmpeg=45.0.2454.101-0ubuntu1.1201` diff --git a/optional-tweaks.md b/optional-tweaks.md new file mode 100644 index 0000000..99d9036 --- /dev/null +++ b/optional-tweaks.md @@ -0,0 +1,13 @@ +# Misc tweaks + +This file lists some things you can do to customize the image. + +## Expanding the file system + +If you want to make full use of your SD card size: + +1. `$ sudo fdisk /dev/mmcblk0` +1. Delete the second partition (d, 2), then re-create it using the defaults (n, p, 2, enter, enter), then write and exit (w) +1. Reboot +1. `$ sudo resize2fs /dev/mmcblk0p2` +1. Reboot