DietPi: Light distribution for Raspberry Pi and other SBCs

Introduction

In the world of single-computer (SBC) plates such as the Raspberry Pi, Orange Pi or Odroid, the choice of the operating system can make the difference between a fluid project and one full of bottle necks. Many users seek a distribution that offers maximum performance with the minimum consumption of resources, without sacrificing the ease of use or expansion capacity. Here comes DietPi, a Linux distribution specifically designed to provide an ultra light, highly configurable and ready to deploy server services, light desktop or IoT projects within minutes. In this article we will explore what DietPi is, its main features, how to install and optimize it, and why it might be the best option for your next SBC-based project.

What is DietPi?

DietPi is a Debian-based distribution that has been optimized to minimize the use of CPU, RAM and storage. Its philosophy is focused on providing only the essential packages needed for the system to work, leaving the user the freedom to install exactly what he needs by a software menu called diete- software. Unlike other distributions that come with heavy desktop environments and unnecessary services, DietPi starts with a memory consumption that is usually below 100 MB in a Raspberry Pi 4, leaving wide scope for applications such as web servers, databases, Docker containers or multimedia centers. In addition, it includes a set of adjustment scripts that allow safe overclocking, swap memory adjustment and file system optimization with just a few clicks.

Main characteristics

  • Extremely low resource consumption: typical start< 100 MB RAM.
  • Based on stable Debian, ensuring compatibility with .deb packages and security updates.
  • Dietary software installation menu with more than 150 categories (web servers, databases, Docker, Pi-hole, Nextcloud, etc.).
  • Integrated optimization scripts: overlock, swap adjustment, file system tuning, log cleaning.
  • Support for a wide variety of SBC: Raspberry Pi (all models), Odroid, Orange Pi, Pine64, Rock64, and many more.
  • Light desktop options such as LXDE, XFCE or MATE, can be installed on demand.
  • Simple OTA (over-the-air) updates by diepy-update.
  • Automatic security and restoration copies with diepy-backup.

Step-by-step installation

The DietPi installation process is simple and designed for users of all levels. First, download the latest image from the official sitedieppi.comby choosing the variant corresponding to your SBC plate. Then use a tool like Balena Etcher or Raspberry Pi Imager to write the image on a microSD card of at least 8 GB. Insert the card into your device and turn it on. In the first start, DietPi runs a configuration assistant that will ask you to choose the language, keyboard, time zone and if you want to enable desktop mode or keep the console alone. After completing these steps, the system will be restarted and you will be ready to access using SSH (root user, dietary password) or directly via HDMI if you installed a desktop environment.

Optimization and customization

Once DietPi is working, you can adjust it to get the best performance according to your case of use. The commanddietpi-configopen a ncurses menu where you can:

  • Change the CPU governor to balance performance and consumption.
  • Adjust the swap memory or completely deactivate it if you work with enough RAM.
  • Activate or disable services such as SSH, VNC, Bluetooth or Wi-Fi as needed.
  • Secure overclock of CPU and GPU with integrated temperature warnings.
  • Select the file system (ext4, btrfs, f2fs) and apply journaling settings for higher speed.
  • Schedule outdated log and package cleaning tasks with diete- cleaner.

In addition, bydietpi-softwareYou can install complete batteries like LAMP, LEMP, Node.js, Python, Docker or even playing environments like RetroPie, all with a single selection and without worrying about missing dependencies.

Common cases of use

Thanks to its lightness and flexibility, DietPi is adapted to many scenarios:

  • Light web server: Install Nginx or Apache and host static sites or low-consumption PHP applications.
  • Media center: combines Samba, Plex or Jellyfin to transmit video and audio to home devices.
  • IoT Node or Domotics: runs Home Assistant, MQTT Mosquitto or Node-RED to control sensors and actuators.
  • Development platform: It has isolated environments with Docker or LXC to test applications without affecting the host.
  • Remote desk: install XRDP or VNC and access a light graphic environment from any client.
  • Ad blocking and tracking: unfolds Pi-hole as a DNS filter at network level to improve privacy and speed up navigation.

Comparison with other light distributions

While there are alternatives such as Raspbian Lite, Armbian or Ubuntu Server for SBC, DietPi stands out in several respects:

  • RAM consumption: DietPi usually starts with 70-90 MB, while Raspbian Lite is around 150-180 MB and Armbian can exceed 200 MB in similar configurations.
  • Software installation facility: the diet-software menu brings together hundreds of packages in thematic categories, which requires manual search in generic distributions.
  • Optimization scripts: DietPi includes overclock tools, swap adjustment and cleaning that in other distruses must be installed and configured separately.
  • Hardware Compatibility: supports more than 150 SBC models, far exceeding the official Raspbian list and approaching Armbian coverage, but with a more unified configuration layer.
  • Updates: diete- update simplifies the application of patches and improvements without the need to manage additional repositories.

In short, if your priority is to get the highest performance with the lowest overhead and you want a smooth installation and maintenance experience, DietPi is a difficult option to overcome.

Conclusion

DietPi represents a solution balanced between lightness, power and versatility for any enthusiast of SBC plates. Its minimalist approach does not mean a lack of functionality; on the contrary, it provides the tools necessary to convert a modest Raspberry Pi into a powerful server, a multimedia center or a light workstation as required by your project. With an active community, clear documentation and a set of scripts that automate the most tedious tasks, DietPi reduces the entry barrier and allows both beginners and experts to focus on what really matters: to build and deploy their ideas. If you have not yet tested it, download the last image, follow the installation steps and discover why so many users consider DietPi the final distribution for their embedded devices.

This work is under aCreative Commons License Attribution 4.0 International for Francesc Roig francesc @ vivaldi.net.

EnglishenEnglishEnglish