Skip to content

Instantly share code, notes, and snippets.

@adapowers
Created July 26, 2023 16:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adapowers/cd44d8d749f240dc32d262d002b645cb to your computer and use it in GitHub Desktop.
Save adapowers/cd44d8d749f240dc32d262d002b645cb to your computer and use it in GitHub Desktop.
OrangePi Zero 2 Debian Bullseye to DietPi

Prerequisites

  • Card flashed and working
  • Logged in on SSH with root / orangepi

Replace sources

Factory image ships using http://mirrors.tuna.tsinghua.edu.cn, which gives 404s and is slow for US customers besides.

cat > /etc/apt/sources.list << EOF
deb https://deb.debian.org/debian/ bullseye main contrib non-free
deb https://deb.debian.org/debian/ bullseye-updates main contrib non-free
deb https://deb.debian.org/debian-security/ bullseye-security main contrib non-free
deb https://deb.debian.org/debian/ bullseye-backports main contrib non-free
EOF

Update

apt update | apt upgrade -y | apt autoremove -y

Install DietPi

(Using DietPi's DIY method)

bash -c "$(curl -sSfL 'https://raw.githubusercontent.com/MichaIng/DietPi/master/.build/images/dietpi-installer')"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment