DietPi Documentation

repository·dev·Indexed 42 days ago

https://github.com/michaing/dietpi-docs

Guides and instructions for the DietPi lightweight operating system, including details on the dietpi-launcher and specialized tools for software installation, system configuration, maintenance, and performance monitoring.

Tokens
80.3K
Snippets
300
Records
408
Agent score
51%

What's inside DietPi

  1. Overview of Web Development Software Stacks

    dev

    DietPi provides several pre-configured software stacks for web development, categorized by the web server, database, and scripting language used. You can choose a stack based on your performance and resource requirements:

    Database-driven Stacks (MariaDB)

    • LAMP: Apache / MariaDB / PHP
    • LEMP: Nginx / MariaDB / PHP
    • LLMP: Lighttpd / MariaDB / PHP

    Lightweight/File-based Stacks (SQLite)

    • LASP: Apache / SQLite / PHP
    • LESP: Nginx / SQLite / PHP
    • LLSP: Lighttpd / SQLite / PHP
  2. Overview of DietPi Software Installation tools

    dev

    DietPi provides several automated tools for installing and configuring network-related software:

    • DietPi Software: Automated installation of various software packages.
    • DietPi LetsEncrypt: A frontend for managing Let's Encrypt integration.
    • DietPi VPN: A GUI frontend for installing and configuring OpenVPN.
    • DietPi DDNS: A generic Dynamic DNS (DDNS) client.
  3. Overview of DietPi System Configuration tools

    dev

    Use these tools to modify the behavior and settings of your DietPi OS:

    • DietPi Config: Configure various system settings.
    • DietPi Drive Manager: Feature-rich drive management utility.
    • DietPi Autostart: Define software packages to start automatically on boot.
    • DietPi Services: Control services, tweak priority levels, and check status.
    • DietPi Display: Control console display modes and rotation via KMS/DRM.
    • DietPi LED Control: Change triggers for status LEDs on SBCs/motherboards.
    • DietPi Cron: Modify start times for specific cron job groups.
    • DietPi JustBoom: Adjust audio settings.
    • DietPi Banner: Configure the initial logon banner.
  4. Overview of DietPi System Maintenance tools

    dev

    These tools are used for keeping the system updated and managing storage:

    • DietPi Update: Update the DietPi OS version and check for available updates.
    • DietPi Backup (backup/restore): Backup and restore your DietPi system.
    • DietPi Sync: Duplicate a directory from one location to another.
    • DietPi File Explorer: Lightweight file manager and explorer.
    • DietPi Cleaner: Clean up unnecessary files to free up disk space.
    • DietPi Log Clear: Clear log files located in /var/log/.
  5. Overview of DietPi Miscellaneous tools

    dev

    Additional utilities for monitoring, benchmarking, and specialized tasks:

    • DietPi CPU Info: Displays CPU temperature, processor frequency, throttle level, etc.
    • DietPi Benchmark: Measure CPU speed, RAM, and Flash access speed.
    • DietPi Survey: Obtain general information regarding your system and installed software.
    • DietPi CloudShell: Adjust update rate, scene settings, and more.
    • DietPi Bug Report: Generate bug reports.
    • DietPi Servarr to RAM: Moves Sonarr, Radarr, Lidarr, and Prowlarr database files to RAM.
    • DietPi Morse Code: Converts a text file into morse code.
    • Useful DietPi Shell Functions: Provides helpful shell functions for DietPi users.
  6. Overview of DietPi software categories

    dev

    DietPi provides a wide range of optimized software packages categorized by use case. Key categories include:

    • Advanced Networking: WiFi HotSpots, Tor HotSpots, HAProxy, Avahi-Daemon, and frp reverse proxy.
    • BitTorrent & Download Tools: Transmission, Deluge, qBittorrent, rTorrent, Aria2, SABnzbd, and media automation tools like Sonarr, Radarr, and Lidarr.
    • Camera & Surveillance: MotionEye, mjpg-streamer, and BirdNET-Go.
    • Cloud & Backup: Nextcloud, ownCloud, Syncthing, MinIO, Vaultwarden, and Rclone.
    • Databases: MariaDB, SQLite, Redis, InfluxDB, and PostgreSQL.
    • Desktops & Utilities: Lightweight desktops like LXDE, LXQt, and Xfce, plus browsers like Chromium and Firefox.
    • Development: Python, Go, Java, Node.js, Git, and VSCodium.
    • DNS Servers: Pi-hole, Unbound, and AdGuard Home.
    • Gaming & Emulation: Minecraft servers (Cuberite, PaperMC), Amiberry, and x86 emulation (Box86, Box64).
    • Hardware Projects: GPIO libraries (RPi.GPIO, WiringPi), Node-RED, and Mosquitto (MQTT).
  7. Compare Dropbear and OpenSSH server options

    dev

    DietPi provides two main SSH server choices that can be swapped at any time using DietPi-Software:

    • Dropbear: A lightweight SSH server installed by default on DietPi systems.
    • OpenSSH: A feature-rich SSH server that includes support for SFTP and SCP.

    Default connection credentials for both:

    • Address: Your device's IP address
    • Port: 22
    • Username: root
    • Password: dietpi
  8. Available Web Servers in DietPi

    dev

    DietPi supports several web server options depending on your needs for features, performance, or resource footprint:

    • Apache: A feature-rich, highly configurable webserver.
    • Nginx: A high-performance web server that also functions as a load balancer and reverse proxy.
    • Lighttpd: An extremely lightweight webserver designed for low resource consumption.
    • Tomcat: The Apache Tomcat server (typically used for Java applications).
  9. Execute custom user scripts during automation

    dev

    You can run custom shell scripts at specific stages of the automated installation by placing them in the /boot directory and setting the AUTO_SETUP_CUSTOM_SCRIPT_EXEC option.

    Supported execution points:

    • Pre-installation: /boot/Automation_Custom_PreScript.sh (runs before networking and DietPi installation).
    • Post-installation: /boot/Automation_Custom_Script.sh (runs after networking and DietPi installation).
  10. Compare Web Servers (Apache vs Nginx vs Lighttpd)

    dev

    When choosing a web stack, select a web server based on your resource constraints and traffic expectations:

    WebserverMemory UseMultithreadedBest For
    ApacheHighYesBeginners and users following Apache-based guides.
    NginxMediumYesMedium-high traffic situations; a lightweight alternative to Apache.
    LighttpdLowOptionalLow traffic or personal use on Single Board Computers (SBCs).