Skip to content

How to create a DietPi image for Raspberry Pi

MichaIng edited this page May 14, 2020 · 10 revisions

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

(Optional)

  • Enable SSH by creating a 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 SDcard into the RPi, boot and login with pi:raspberry

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

DietPi-PREP

  • sudo bash -c "$(curl -sSfL https://raw.githubusercontent.com/MichaIng/DietPi/master/PREP_SYSTEM_FOR_DIETPI.sh)"
  • 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 SDcard into an external Linux system.
  • Run DietPi-Imager
bash -c "$(curl -sSL https://raw.githubusercontent.com/MichaIng/DietPi/master/.meta/dietpi-imager)"