A simple, one-line command to install a full Debian (XFCE) desktop environment on any Android device using Termux
The goal of this project is to provide a seamless and fully automated way for users to get a powerful, feature-rich Debian desktop experience on their Android device without needing root access. It's designed for developers, students, and Linux enthusiasts who want a portable and persistent computing environment.
- 🚀 Fully Automated: The script handles everything from initial setup to user creation and software installation.
- 🖥️ Full Desktop Environment: Installs the lightweight and user-friendly XFCE desktop.
- 📚 Essential Software: Comes pre-loaded with Firefox ESR for web browsing and the complete LibreOffice suite for productivity.
- ✨ User-Friendly: Interactive prompts for username, password, and VNC screen resolution.
- ⚡ Convenient Aliases: Includes simple shortcuts for easy management.
- An Android device (phone or tablet).
- The Termux app installed.
- A VNC Viewer app (e.g., RealVNC, AVNC) installed on your Android device.
- Approximately 4-5 GB of free storage space.
Paste the one-line command below into your Termux terminal and press Enter.
bash -c "$(curl -fsSL https://raw.githubusercontent.com/erfan2255/debian-on-android/main/setup.sh)"The script will guide you through creating a username and password for your new Debian system.
After the installation is complete, a debian alias will be created in Termux. To log in, simply type:
debianOnce you are logged into your Debian environment, start the graphical desktop by typing:
startvncThe first time you run this, you will be asked to select a screen resolution and set a VNC-specific password.
Open your VNC Viewer app and create a new connection to the following address:
localhost:1Enter the VNC password you created in the previous step. You will now see your Debian desktop!
When you are finished with your session, you can stop the VNC server from inside Debian by typing:
stopvnc| Component | Description |
|---|---|
| Operating System | Debian 13 (Trixie) |
| Desktop Environment | XFCE 4 |
| Web Browser | Firefox ESR |
| Office Suite | LibreOffice (Writer, Calc, Impress, etc.) |
| VNC Server | TigerVNC |
| System Utilities | sudo, nano, adduser, and more. |
Here is a preview of the Debian 13 XFCE desktop environment you will be installing.
If you find this project useful, please give it a ⭐ to show your support!
This project is licensed under the MIT License. See the LICENSE file for details.
by CoreLand

