How to create a DietPi image for Raspberry Pi - MichaIng/DietPi GitHub Wiki

Download Raspbian Lite: https://www.raspberrypi.org/downloads/raspbian/

Flash onto SD card using: dd (Linux), Rufus (Windows) or Etcher (multi platform)

(Optional)

  • Enable SSH by creating an empty file named ssh in partition 1 beside config.txt.
  • Edit cmdline.txt and config.txt to your needs. The latter will be overwritten by DietPi-PREP.

Plug the SD card into the RPi, boot and login with pi:raspberry

  • The default hostname is raspberrypi which you can usually use to get the local IP for SSH: ping raspberrypi

DietPi-PREP

  • sudo bash -c "$(curl -sSfL https://raw.githubusercontent.com/MichaIng/DietPi/master/.build/images/dietpi-installer)"
  • Git branch: master
  • Enter your name
  • Pre-image name: Raspbian Lite
  • Device: 0 : Raspberry Pi (all models)
  • WiFi: 1 : I require WiFi
  • Distro: 5 : Buster
  • sudo shutdown now

Image creation

  • Plug the SD card into an external Linux system.
  • Run DietPi-Imager
bash -c "$(curl -sSfL https://raw.githubusercontent.com/MichaIng/DietPi/master/.build/images/dietpi-imager)"