The attached image-config will customize a Raspberry Pi OS image file (Bookworm or Bullseye) with the following:
User account/password
WiFi credentials
SSH status
Usage:
User account/password
WiFi credentials
SSH status
Usage:
Code:
pi@raspberrypi:~# sudo ./image-config 2024-03-12-raspios-bookworm-arm64-lite.imgUser account to create (optional): piEnter password for user account 'pi':Retype password:WiFi (optional) "ssid" "password" "country": "my-wifi-ssid" "my-wifi-password" "us"Enable SSH (y/n)? yUser account: piWiFi: SSID=my-wifi-ssid Password=my-wifi-password Country=USSSH: EnabledOk to configure '2024-03-12-raspios-bookworm-arm64-lite.img' (y/n)? y2024-03-12-raspios-bookworm-arm64-lite.img configured
Statistics: Posted by RonR — Mon Mar 18, 2024 10:33 pm