And, like some (many?) of you, I have accumulated a set of scripts over time to set up a new system. I just finished a tooling overhaul, which resulted in sdm, an SD Card Image Manager tool.
sdm lets you:
- Easily build and maintain a Raspbian "golden image" (.IMG file) with all of your customizations, keymaps, locales, timezones, and favorite apps installed in it.
- Write that shiny golden image to an SD Card with the host name of your choice in it such that it's ready to go.
- Do these things quickly and easily with minimal think or wait time.
- Easily include your own configuration scripts
With sdm you'll spend a lot less time rebuilding SD cards, configuring your system, and installing packages, and more time on the things you really want to do with your Pi.
As a special bonus, sdm includes a configuration script for apt-cacher-ng (client and server). apt-cacher-ng enables you to update all your Pis quickly by caching local packages. This reduces install and update time, and can greatly reduce network consumption. And, it's cooler than a ginsu knife.
sdm only runs on Raspbian, and requires a USB SD Card reader for writing a new SD Card. No, you cannot use sdm to rewrite the running system's SD Card.
I know that there are several other tools like this around. I opted to write my own in the process of upgrading my tooling. It's super-simple to install and use, and has no external dependencies, other than systemd-nspawn, which you must install via
Code: Select all
sudo apt install systemd-container
Hope you find it useful. Feedback welcome, of course.