🔥 How to Install Ubuntu on Android with Desktop Environment | Termux + Udroid Setup Tutorial 💥
In this complete step-by-step tutorial, you’ll learn how to install Ubuntu (XFCE Desktop) on any Android device using Termux + Udroid — all without root access. You’ll also see how to fix common issues and run the full Ubuntu GUI using a VNC viewer.
📺 Watch the Videos:
Installation Guide:
Review & Performance Test:
🧩 What You’ll Learn:
- Install and configure Termux for Ubuntu installation
- Setup Udroid and download Ubuntu filesystem
- Fix common issues like missing VNC, Signal 9 errors, and GUI crashes
- Access Ubuntu XFCE desktop environment via VNC Viewer
- Bonus: Automate startup with one simple script
⚙️ Requirements:
- Android phone (4GB RAM or more recommended)
- Termux (latest version from F-Droid)
- Stable Internet connection
- VNC Viewer app
🪄 Step-by-Step Commands:
pkg update && pkg upgrade -y
pkg install root-repo x11-repo -y
pkg install git wget proot pulseaudio openssl clang make libuuid jq iproute2 tigervnc -y
. <(curl -Ls https://bit.ly/udroid-installer)
udroid login jammy:xfce4
vncserver :1 -geometry 1280x720 -depth 24 -localhost no
Then connect your VNC Viewer app to:
- Address: 127.0.0.1:5901
- Password: secret
💡 Fix: Session Startup or Signal 9 Error
If your desktop doesn’t load or you get “session exited too early” or “signal 9” errors, recreate the xstartup file:
cat > ~/.vnc/xstartup <<'EOF'
#!/bin/sh
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
export XKL_XMODMAP_DISABLE=1
export DISPLAY=:1
xrdb $HOME/.Xresources 2>/dev/null || true
xsetroot -solid grey
dbus-launch --exit-with-session startxfce4 &
EOF
chmod +x ~/.vnc/xstartup
vncserver -kill :1 || true
vncserver :1 -geometry 1280x720 -depth 24 -localhost no
🚀 Optional: Auto Startup Script
You can also create a quick launch script to start Ubuntu and VNC automatically:
nano ~/start-ubuntu-vnc.sh
# Paste script content (explained in video)
chmod +x ~/start-ubuntu-vnc.sh
bash ~/start-ubuntu-vnc.sh
#UbuntuOnAndroid #TermuxTutorial #Udroid #LinuxOnAndroid #TechKaran
Tags
How To
