Skip to content

An automated script to generate custom Raspberry Pi OS image.

Notifications You must be signed in to change notification settings

deshannalinda/rpi-configurator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Raspberry Pi Configurator

Here, we'll discuss how to create a new custom image from the latest Raspbian OS and copy it into a SD card.

Creating Base Image

STEP 1

Spin-up & SSH into the Vagrant box if you are not using Linux.

vagrant up && vagrant ssh
cd base_image

STEP 2

Run the script with sudo.

sudo ./init-base.sh

This will perform the following

  1. Creates a downloads
  2. Download the latest raspios_armhf image
  3. Enable SSH on image
  4. Create new username & password for the default user
  5. Generate the new 'custom' image - xxx-armf-ssh-enabled.img

Copy (dd) it into the SD card.

  1. Exit from vagrant SSH.
  2. Insert the SD card.
  3. Run the following command to unmount it.
diskutil unmountDisk /dev/disk2
  1. Copy generated image to SD card - something similar to this.
sudo dd bs=4M status=progress if=base_image/downloads/2022-09-22-raspios-bullseye-armhf-ssh-enabled.img of=/dev/disk2

About

An automated script to generate custom Raspberry Pi OS image.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages