Base Raspberry Pi images
From within a fresh Raspian install, run the user data script. Then shutdown and image the disk.
curl -SLs https://raw.githubusercontent.com/Mystopia/raspberrypi-images/master/scripts/user-data.sh | sudo bash
Create a fresh and up-to-date Raspian + Adafruit Occidentalis. The system is hostname and WiFi configurable. Simply insert your disk into a card reader and edit occidentalis.txt
accordingly.
Note that the plain shell prefix $
denotes the host.
- Grab Raspian Jessie Lite to use as our base image.
- Write the image to disk (might need
sudo
)
$ dd if=2016-05-27-raspbian-jessie-lite.img of=/dev/rdiskX
- Once completed, safely eject and remove the disk.
- Using the fresh disk we just created, boot the pi with a wired internet connection.
- SSH into the pi
ssh [email protected]
- Survey your network for possible IPs with something like
arp -i en0 -a | grep -v incomplete
- [Optional] Once identified, install your SSH key
$ ssh-copy-id [email protected]
- Run our user data script.
pi@raspberrypi:~ $ curl -SLs https://raw.githubusercontent.com/Mystopia/raspberrypi-images/master/scripts/user-data.sh | sudo bash
- Create the disk image using a card reader
- Shutdown the pi with
sudo shutdown -h now
- Insert the disk into the host's card reader
- Create the image
$ sudo dd bs=1m if=/dev/rdiskX | gzip > raspberrypi.img.gz
- Test the image by restoring it to a different disk
$ gzip -dc raspberrypi.img.gz | sudo dd bs=1m of=/dev/rdiskX