Raspi-config's mostly undocumented non-interactive mode
Introduction If you’ve ever used a Raspberry Pi, you’ve probably used the raspi-config configuration tool. This text-based user interface (TUI) is great for changing 99% of basic settings on the Raspberry Pi, such as the hostname, WiFi country, locale, memory split, etc… However, if you’re managing a fleet of Raspberry Pi devices, or just really like configuration management tools, you’re probably looking for a way to automate setting these items from the command line. I’m not sure how I’ve never come across this, but I just learned that raspi-config has a mostly undocumented non-interactive mode that will do precisely that. ...