Skip to content

Mystopia/raspberrypi-images

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

raspberrypi-images

Base Raspberry Pi images

Creating a new base images

TL;DR

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

Guided

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.

  1. Grab Raspian Jessie Lite to use as our base image.
  2. Write the image to disk (might need sudo)
$ dd if=2016-05-27-raspbian-jessie-lite.img of=/dev/rdiskX
  1. Once completed, safely eject and remove the disk.
  2. Using the fresh disk we just created, boot the pi with a wired internet connection.
  3. SSH into the pi ssh [email protected]
  4. Survey your network for possible IPs with something like arp -i en0 -a | grep -v incomplete
  5. [Optional] Once identified, install your SSH key
$ ssh-copy-id [email protected]
  1. Run our user data script.
pi@raspberrypi:~ $ curl -SLs https://raw.githubusercontent.com/Mystopia/raspberrypi-images/master/scripts/user-data.sh | sudo bash
  1. Create the disk image using a card reader
  2. Shutdown the pi with sudo shutdown -h now
  3. Insert the disk into the host's card reader
  4. Create the image
$ sudo dd bs=1m if=/dev/rdiskX | gzip > raspberrypi.img.gz
  1. Test the image by restoring it to a different disk
$ gzip -dc raspberrypi.img.gz | sudo dd bs=1m of=/dev/rdiskX

About

Base Raspberry Pi images

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages