|
2 years ago | |
---|---|---|
setup | 2 years ago | |
.gitignore | 2 years ago | |
README.md | 2 years ago | |
chroot.sh | 2 years ago | |
copy.sh | 2 years ago | |
go.mod | 2 years ago | |
go.sum | 2 years ago | |
mount.sh | 2 years ago | |
prepare_image.sh | 2 years ago | |
raspbian-image.go | 2 years ago | |
setup.sh | 2 years ago | |
umount.sh | 2 years ago |
A collection of scripts that help to preprare a Raspbian installation on your local Linux machine.
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