Debian Linux is a popular Linux distribution that can also run on Android devices using the Termux application. It allows you to use Linux commands, install applications, and setup a full desktop environment directly on your phone without root access. You can use it for programming, learning Linux, running desktop apps, and practicing different development or cybersecurity tasks. Here’s what you can do with Debian Linux on Android:
- Use a full Linux desktop on Android.
- Install Linux applications and tools.
- Practice Linux commands and development.
- Run coding and cybersecurity tools.
- Learn Linux directly from a mobile device.
- Use graphical desktop applications.
What is Termux?
Termux is a terminal emulator application for Android that provides a Linux command-line environment. It allows installation of Linux packages, execution of terminal commands, and setup of Linux distributions directly on Android without root access.
Requirements
Before starting the Debian Linux installation process on Android, make sure your device has enough storage space, internet data, and the required applications for completing the desktop setup properly.
- Android device with Android 7 or above.
- Latest version of the Termux application.
- VNC Viewer application for desktop access.
- Minimum 5GB free storage space.
- Around 500MB to 800MB internet data.
- At least 4GB RAM recommended for smoother desktop performance.
Install Debian Linux on Android
Below are the simple steps to install and set up Debian Linux desktop on Android using Termux. Open Termux and run the commands one by one to complete the installation and prepare the desktop environment.
Update Termux packages first:
pkg update && pkg upgrade -yInstall proot-distro package in Termux:
pkg install proot-distro -yInstall Debian Linux distro:
proot-distro install debianStart Debian Linux environment:
proot-distro login debianUpdate Debian packages inside Debian Linux:
apt update && apt upgrade -yInstall XFCE desktop environment and required packages:
apt install xfce4 xfce4-goodies dbus-x11 tightvncserver fonts-noto-color-emoji desktop-file-utils -yCreate VNC directory:
mkdir -p ~/.vncCreate XFCE startup configuration:
cat > ~/.vnc/xstartup << 'EOF'
#!/bin/sh
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
startxfce4 &
EOFGive executable permission to startup file:
chmod +x ~/.vnc/xstartupStart Debian Desktop
Start VNC server for Debian desktop, run this command inside the Ubuntu:
vncserverDuring first startup, it will ask you to create a VNC password for desktop login. You can enter any 6 digit password.
Connect Debian Desktop
- Open the VNC Viewer application on your Android device.
- Tap on the (+) icon from the bottom right side.
- Enter the address: localhost:5901
- Enter the Name: Debian Linux
- Tap on Create and connect to the server.
- Enter the VNC password created during Debian setup.
- Debian XFCE desktop environment will open on your Android device.
You can now use Debian Linux desktop on Android and run Linux applications, desktop tools, and terminal commands directly from your mobile device.
Start Debian Again
Open Termux and login to Debian again:
proot-distro login debianStop old VNC sessions if already running:
vncserver -kill :1Remove old VNC lock files:
rm -rf /tmp/.X1-lock /tmp/.X11-unix/X1Start desktop environment again:
vncserverOpen VNC Viewer and connect using:
localhost:5901Basic Debian Terminal Commands
Below are some useful basic Debian Linux terminal commands that you can use inside the Debian environment for package management, file handling, and system tasks.
Update Debian packages:
apt update && apt upgrade -yInstall new packages or applications:
apt install package-nameRemove installed packages:
apt remove package-nameList files and folders:
lsCheck current directory location:
pwdMove into another directory:
cd folder-nameCreate a new folder:
mkdir myfolderDelete a file:
rm filenameClear the terminal screen:
clearExit Debian Linux environment.
exitEnd Note
Debian Linux on Android is a simple way to experience a full Linux desktop directly from a mobile device. It helps you learn Linux commands, run desktop applications, practice development tasks, and explore different Linux tools without needing a computer or root access.

