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:

Step 1: Download the DietPi Image

First, we need to download the DietPi image from the official website. To do that, follow these steps:

  1. Go to https://dietpi.com/ and click the Download button.

  2. Select the appropriate image for your SBC. In our case, we will select the Generic AMD64 image for running on Debian Latest.

DietPi Download Page

  1. 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:

  1. Insert the USB drive into your computer and determine the device identifier by running the following command:

    sudo fdisk -l
    

    This command will list all the available disks and their partitions. Note the device identifier of your USB drive (e.g. /dev/sdb).

  2. Unmount the USB drive by running the following command:

    sudo umount /dev/sdb1
    

    Replace /dev/sdb1 with the correct device identifier of your USB drive.

  3. 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=fsync
    

    Replace <path_to_dietpi_image> with the correct path to the extracted DietPi image, and /dev/sdb with the correct device identifier of your USB drive.

  4. 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.

  5. 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:

  1. Connect your SBC to a monitor, keyboard, and network cable.

  2. 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.

  3. When prompted, select DietPi Software as the installation mode.

  4. Follow the on-screen instructions to configure your network settings, timezone, and other system preferences.

  5. 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:

  1. Log in to your DietPi system using the username root and the password you set during the initial configuration.

  2. Update the package repository by running the following command:

    apt-get update
    
  3. Install 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.

  4. 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!

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!

Alternatively, for the best virtual desktop, try Shells!