How to Install DietPi on Debian Latest
DietPi is a lightweight operating system designed for running on single-board computers (SBCs) such as Raspberry Pi or ODroid. It comes with a minimal set of pre-installed software and tools, making it an ideal choice for those who want to build a custom system tailored to their specific needs. In this tutorial, we will guide you through the process of installing DietPi on Debian Latest.
Prerequisites
Before getting started with the installation, make sure to have the following prerequisites:
- A computer running Debian Latest
- A USB flash drive with at least 4GB of free space
- An SD card or eMMC module with at least 4GB of free space (if you are installing DietPi on an SBC)
Step 1: Download the DietPi Image
First, we need to download the DietPi image from the official website. To do that, follow these steps:
Go to https://dietpi.com/ and click the Download button.
Select the appropriate image for your SBC. In our case, we will select the Generic AMD64 image for running on Debian Latest.

- Once the image is downloaded, extract the contents of the compressed archive to a directory of your choice.
Step 2: Create Bootable USB Drive
Next, we need to create a bootable USB drive with the DietPi image. To do that, follow these steps:
Insert the USB drive into your computer and determine the device identifier by running the following command:
sudo fdisk -lThis command will list all the available disks and their partitions. Note the device identifier of your USB drive (e.g.
/dev/sdb).Unmount the USB drive by running the following command:
sudo umount /dev/sdb1Replace
/dev/sdb1with the correct device identifier of your USB drive.Write the DietPi image to the USB drive by running the following command:
sudo dd bs=4M if=<path_to_dietpi_image> of=/dev/sdb status=progress conv=fsyncReplace
<path_to_dietpi_image>with the correct path to the extracted DietPi image, and/dev/sdbwith the correct device identifier of your USB drive.Wait for the write process to complete. This may take a few minutes depending on the size of the image and the speed of your USB drive.
Once the write process is complete, eject the USB drive and insert it into your SBC.
Step 3: Initial Configuration
Before booting into DietPi for the first time, we need to configure a few settings. To do that, follow these steps:
Connect your SBC to a monitor, keyboard, and network cable.
Boot into the USB drive by pressing the appropriate key on your keyboard during the boot process. The key may vary depending on the SBC model, so consult the documentation for your device.
When prompted, select DietPi Software as the installation mode.
Follow the on-screen instructions to configure your network settings, timezone, and other system preferences.
Once the initial configuration is complete, you will be prompted to install additional software packages. You can either choose the suggested software packages or skip this step and install them later.
Step 4: Install Additional Software Packages
If you skipped the software package installation process during the initial configuration, you can install them later by following these steps:
Log in to your DietPi system using the username
rootand the password you set during the initial configuration.Update the package repository by running the following command:
apt-get updateInstall any software package you need by running the following command:
apt-get install <package_name>Replace
<package_name>with the name of the package you want to install.Wait for the installation process to complete. Once done, you can use the installed software packages as needed.
Conclusion
Congratulations! You have successfully installed DietPi on Debian Latest. You can now start building a custom system that suits your needs using the wide variety of software packages available for the DietPi platform. Happy computing!