termux-setup-storage
termux-setup-storage
termux-setup-storage
pkg update && pkg upgrade -y
pkg update && pkg upgrade -y
pkg update && pkg upgrade -y
# Add required repos and core packages (git is installed here first!)
pkg install git curl wget x11-repo tur-repo termux-x11-nightly pulseaudio -y # Apps: browser, editor, image viewer, calculator
apt install firefox code-oss mousepad eog galculator pinentry-gnome3 -y # XFCE4 and all the good plugins
apt install xfce4 xfce4-whiskermenu-plugin xfce4-clipman-plugin \ xfce4-screenshooter xfce4-docklike-plugin xfce4-panel-profiles \ xfce4-taskmanager -y
# Add required repos and core packages (git is installed here first!)
pkg install git curl wget x11-repo tur-repo termux-x11-nightly pulseaudio -y # Apps: browser, editor, image viewer, calculator
apt install firefox code-oss mousepad eog galculator pinentry-gnome3 -y # XFCE4 and all the good plugins
apt install xfce4 xfce4-whiskermenu-plugin xfce4-clipman-plugin \ xfce4-screenshooter xfce4-docklike-plugin xfce4-panel-profiles \ xfce4-taskmanager -y
# Add required repos and core packages (git is installed here first!)
pkg install git curl wget x11-repo tur-repo termux-x11-nightly pulseaudio -y # Apps: browser, editor, image viewer, calculator
apt install firefox code-oss mousepad eog galculator pinentry-gnome3 -y # XFCE4 and all the good plugins
apt install xfce4 xfce4-whiskermenu-plugin xfce4-clipman-plugin \ xfce4-screenshooter xfce4-docklike-plugin xfce4-panel-profiles \ xfce4-taskmanager -y
git clone https://github.com/GourangaDasSamrat/dotfiles ~/dotfiles
git clone https://github.com/GourangaDasSamrat/dotfiles ~/dotfiles
git clone https://github.com/GourangaDasSamrat/dotfiles ~/dotfiles
cp ~/dotfiles/docs/termux/native-desktop-start.sh ~/start.sh
chmod +x ~/start.sh
cp ~/dotfiles/docs/termux/native-desktop-start.sh ~/start.sh
chmod +x ~/start.sh
cp ~/dotfiles/docs/termux/native-desktop-start.sh ~/start.sh
chmod +x ~/start.sh
pkg install proot-distro -y
proot-distro install debian
pkg install proot-distro -y
proot-distro install debian
pkg install proot-distro -y
proot-distro install debian
proot-distro login debian
proot-distro login debian
proot-distro login debian
# Inside Debian container
apt update && apt upgrade -y
apt install sudo git curl wget -y # Set timezone (example: Asia/Dhaka)
ln -sf /usr/share/zoneinfo/Asia/Dhaka /etc/localtime
# Inside Debian container
apt update && apt upgrade -y
apt install sudo git curl wget -y # Set timezone (example: Asia/Dhaka)
ln -sf /usr/share/zoneinfo/Asia/Dhaka /etc/localtime
# Inside Debian container
apt update && apt upgrade -y
apt install sudo git curl wget -y # Set timezone (example: Asia/Dhaka)
ln -sf /usr/share/zoneinfo/Asia/Dhaka /etc/localtime
ln -s /data/data/com.termux/files/usr/var/lib/proot-distro/installed-rootfs/debian/home/YOUR_USER ~/Developer
ln -s /data/data/com.termux/files/usr/var/lib/proot-distro/installed-rootfs/debian/home/YOUR_USER ~/Developer
ln -s /data/data/com.termux/files/usr/var/lib/proot-distro/installed-rootfs/debian/home/YOUR_USER ~/Developer
nano $PREFIX/etc/motd
nano $PREFIX/etc/motd
nano $PREFIX/etc/motd
nano ~/.gnupg/gpg-agent.conf
nano ~/.gnupg/gpg-agent.conf
nano ~/.gnupg/gpg-agent.conf
pinentry-program /data/data/com.termux/files/usr/bin/pinentry-gnome3
pinentry-program /data/data/com.termux/files/usr/bin/pinentry-gnome3
pinentry-program /data/data/com.termux/files/usr/bin/pinentry-gnome3 - XFCE4 — a fast, lightweight desktop environment
- Firefox — full desktop browser
- VS Code (code-oss) — your favourite editor, on your phone
- Rofi app launcher — blazing-fast app search with Ctrl+Space
- PulseAudio — actual working audio
- A Debian container (via proot) for running any Linux software - An Android phone (Android 7+)
- Termux — install from F-Droid (NOT the Play Store version)
- Termux:X11 — the display server app
- A stable internet connection for the initial setup
- ~3–4 GB of free storage - Start PulseAudio for audio support
- Fire up the Termux:X11 display server
- Open the Termux:X11 app automatically
- Launch a full XFCE4 desktop session - Lightweight — won't make your phone lag or overheat
- Stable — rock solid, no random crashes
- Highly customisable — themes, panels, plugins, everything
- Familiar — feels like a real desktop OS immediately - Keep Termux awake: Go to Android settings → Battery → Termux → set to "Unrestricted" to prevent the OS from killing your session.
- Use a Bluetooth keyboard & mouse for the full desktop experience — it genuinely feels like a real computer.
- External display? Some phones support video output via USB-C. Connect to a monitor and you've got a proper Linux workstation.
- Tmux inside the terminal: The dotfiles also include a full tmux config (~/.tmux.conf) with mouse support, sensible shortcuts, and a clean status bar — great for running multiple terminal sessions inside the desktop. - The native desktop startup script
- Tmux configuration
- VS Code extension list for Termux
- PRoot Debian setup guide
- GPG & Git configuration templates