Status: Beta

What is this?

  • This script will install and convert any 'bloated' Debian/Raspbian installation, into a lightweight DietPi system.

What this script does NOT do:

  • Support converting existing installed software (eg: nextcloud, Plex Media Server) over to the DietPi system.
    All existing software (APT) and user data will be deleted.

Step 1: Ensure a Debian/Raspbian OS is running on the system

  • For best results, we recommend a fresh/clean minimal Debian/Raspbian installation
  • Native PC users: please install Debian stable before hand: https://www.debian.org/distrib/netinst
  • Desktop images should work, however, the minimal the image, the quicker the installation, as less packages will need to be removed.
  • NB: We do not support Ubuntu, or have any plans to do so.

Step 2: Pre-req packages

  • Critical packages
    These should already exist on most systems, however pure minimal images may require the following installations)
    apt-get update; apt-get install -y systemd-sysv ca-certificates sudo wget locales --reinstall

Step 3: Run DietPi installer

  • Must be run from SSH or local term
    eg: Outside of desktop environment
  • In case of SSH, to prevent connection loss, an Ethernet connection is required.

Ensure you have elevated privileges (eg: login as root, or use sudo su).

Copy and paste all into term.

wget https://raw.githubusercontent.com/MichaIng/DietPi/master/PREP_SYSTEM_FOR_DIETPI.sh -O PREP_SYSTEM_FOR_DIETPI.sh
#wget https://raw.githubusercontent.com/MichaIng/DietPi/jessie-support/PREP_SYSTEM_FOR_DIETPI.sh -O PREP_SYSTEM_FOR_DIETPI.sh
#wget https://raw.githubusercontent.com/MichaIng/DietPi/beta/PREP_SYSTEM_FOR_DIETPI.sh -O PREP_SYSTEM_FOR_DIETPI.sh
#wget https://raw.githubusercontent.com/MichaIng/DietPi/dev/PREP_SYSTEM_FOR_DIETPI.sh -O PREP_SYSTEM_FOR_DIETPI.sh
chmod +x PREP_SYSTEM_FOR_DIETPI.sh
./PREP_SYSTEM_FOR_DIETPI.sh

Follow the onscreen prompts.