Work-in-progress. This repository contains some scripts to prepare SD card images for the raspberry Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

979 B

raspi-toolbox

A collection of scripts that help to preprare a Raspbian installation on your local Linux machine.

Usage Example

Choose a raspbian base image (this is optional):

go run raspbian-image.go list

modiy date variables in ./prepare-image.sh accordingly.

Prepare wifi configuration:

$ wpa_passphrase <ssid> <password> > wpa_supplicant.conf

Download raspbian image, mount root partition and copy wifi credentials and public SSH key.

$ ./prepare_image.sh && sudo ./mount.sh && sudo ./copy.sh $HOME/.ssh/id_kn_rsa

Copy setup related files into mounted raspbian image:

$ sudo cp -r setup.sh setup root/some/path

Switch into the ARM emulated raspbian image:

$ ./chroot.sh
# inside the chroot shell
$ cd /some/path
$ ./setup.sh
$ exit

Unmount the folder

$ ./umount.sh

Write image onto sdcard:

$ dd if=<date>-raspbian-stretch-lite.img of=/dev/<sdcard> bs=1M oflag=sync status=progress