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.
Andreas Linz 7a4c242bbe
wpa_supplicant → wpa_passphrase
7 months ago
setup Move package installation into setup/ 9 months ago
.gitignore Implement an image downloader in Go 10 months ago
README.md wpa_supplicant → wpa_passphrase 7 months ago
chroot.sh Proof of concept for utility scripts 10 months ago
copy.sh wpa_supplicant → wpa_passphrase 7 months ago
go.mod go mod tidy 9 months ago
go.sum go mod tidy 9 months ago
mount.sh Update to image from 13th of November 9 months ago
prepare_image.sh Update to image from 13th of November 9 months ago
raspbian-image.go Add missing carriage return before printing 100% 9 months ago
setup.sh Move package installation into setup/ 9 months ago
umount.sh Proof of concept for utility scripts 10 months ago

README.md

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