NICUP14/DebDroid
소개
DebDroid: Android용 Debian 컨테이너 런타임
시스템 및 인프라What you can do
- 🖥️ Run a server - SSH, nginx, Pi-hole, Syncthing, Gitea, a CI runner, a VPN endpoint. The battery acts as a UPS.
- 🪟 Run a desktop - XFCE4 over VNC, with Firefox, an office suite, GIMP and Wireshark.
- 🔧 Develop on it - The compilers, interpreters and debuggers from the Debian archive, unmodified.
- 📱 Keep Android - Debian runs alongside it. No dual boot, no flashing, no data loss.
측정된 스타 증가
- in 24h
- 0
- in 7 days
- +1
- in 15 days
- +2
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalDebDroid
Real Debian on a rooted Android phone.
Real Debian packages, not an emulator and not a rebuilt userland.
Android keeps working. Nothing is flashed and nothing is lost.
Get started · Gallery · Changelog · Contributing

Quick look
# Bring debian up and leave it running
sh /sdcard/debdroid/debdroid.sh start
# Start an ssh server in it, so you can work from your laptop
sh /sdcard/debdroid/debdroid.sh command sshserver
# Or get a shell on the phone itself
sh /sdcard/debdroid/debdroid.sh attach
Close the terminal and it keeps running. It can also start again after a reboot.
Rather tap than type? The app installs DebDroid and does all of the above from one screen, with a terminal built in.
![]() |
![]() |
![]() |
| Home | Terminal | Manage |
What you can do with it
| 🖥️ Run a server | SSH, nginx, Pi-hole, Syncthing, Gitea, a CI runner, a VPN endpoint. The battery acts as a UPS. |
| 🪟 Run a desktop | XFCE4 over VNC, with Firefox, an office suite, GIMP and Wireshark. |
| 🔧 Develop on it | The compilers, interpreters and debuggers from the Debian archive, unmodified. |
| 📱 Keep Android | Debian runs alongside it. No dual boot, no flashing, no data loss. |
![]() |
![]() |
![]() |
| Firefox | Visual Studio Code | GIMP |
More in the gallery.
How it compares
| DebDroid | Termux | proot-distro | Linux Deploy | |
|---|---|---|---|---|
| Needs root | Yes | No | No | Yes |
| Real glibc userland | Yes | No (bionic) | Yes | Yes |
| Debian packages run unmodified | Yes | No (rebuilt) | Yes | Yes |
| Syscall overhead | None | None | Yes (ptrace) | None |
| Android version floor | 5.0 | 7.0 | 7.0 | varies |
Hardware access (/dev, /sys) |
Yes | Limited | Limited | Yes |
| Android tools reachable from Linux | Yes | Via addon app | No | Partly |
Root is what buys the rest of that table. It gives you a real glibc userland with no emulation, so nearly the entire Debian archive works untouched. If you do not want to root your device, use Termux instead. It is a good project.
The Android 5.0 floor is the other reason DebDroid exists. Current Termux needs Android 7, which leaves the 2012-2015 devices without a good option, and those are the ones most likely to be sitting in a drawer.
Getting started
| 1. | Will it work on my phone? |
| 2. | Install it, about ten minutes, or a few taps with the app |
| 3. | First steps |
You need a rooted arm64-v8a device on Android 5.0 or later and 1.5 GB of free
space. 5 GB is comfortable.
How it works
DebDroid is a runtime layer rather than a chroot script. It builds an isolated filesystem view, holds a lock that two sessions cannot defeat, preloads compatibility libraries for what the kernel does not provide, ships its own userspace tools, and bootstraps Debian before handing over a session. That is about 2000 lines of POSIX shell, with no daemon and no app required.
Two constraints shape the design. Only a mount namespace is available on Android devices, and the image stays ext2 because old kernels reject modern ext4 features. Both came out of testing on real phones, not from a preference. The reference docs cover what follows from them.
Security
[!WARNING] Devices old enough to be spare usually stopped getting patches years ago, so their kernels have known, unfixed holes. Do not expose one to the internet, and do not keep anything sensitive on it. Use a VPN for remote access.
DebDroid gets more years out of hardware that would otherwise be landfill. It does not make that hardware safe. See security for the details.
DebDroid asks for root, so the origin, version, license and checksum of every bundled binary is written down in THIRD_PARTY.md.
Contributing
make check # syntax and shellcheck
make test # the host test suite, no device needed
make all # every check, including the app (needs a JDK 17, the Android SDK and gradle)
Start with AGENTS.md. It has the conventions, which file to change for a given task, and the gotchas that produce code which looks correct and breaks on real hardware. Open work is in TODO.md, and the test tiers are described in testing.
On a device, sh /sdcard/debdroid/tests/device.sh checks a real install and
only reads by default. Its output is what a useful bug report contains.
Credits and license
- Meefik for the android build of
busybox. - LineageOS for the android port of
e2fsprogs. - Janithcooray for the swap module that showed which approach works on android.
Copyright © 2025-2026 Nicolae Petri. MIT licensed, see LICENSE. Provided "as is", without warranty of any kind.
Some bundled binaries are GPL-2.0, see NOTICE and THIRD_PARTY.md.
관련 프로젝트 살펴보기
불러오는 중…





