Ubuntu Installation & GUI Setup on Android
Introduction
Transform your Android device into a powerful development machine by installing a full Ubuntu Linux Desktop Environment. Using Termux and a script-based installation via proot-distro, you can run a complete graphical user interface (like XFCE4) alongside typical Linux applications, all without requiring root access. This is perfect for on-the-go development, testing, and learning.
Prerequisites
Ensure your device meets the following requirements before beginning the installation:
- Applications: Termux (latest F-Droid version) and a VNC Viewer app (like RealVNC).
- Android Version: Android 7.0 or above.
- Storage: Minimum 5GB of free space.
- RAM: 3GB or more is highly recommended for smooth GUI performance.
- Processor: A 64-bit CPU architecture.
- Internet & Time: A stable connection and about 30–90 minutes depending on device speed.
Installation Commands
Execute these commands sequentially in your Termux terminal to download and set up the Ubuntu subsystem:
1. Update System Packages
apt update && apt upgrade -y
2. Install Required Core Tools
apt install wget curl proot tar -y
3. Download the Ubuntu Installer Script
wget https://raw.githubusercontent.com/AndronixApp/AndronixOrigin/master/Installer/Ubuntu22/ubuntu22-xfce.sh -O ubuntu22-xfce.sh
4. Execute the Installer Script
Run the script. Note: During the installation process, you will be prompted to select your timezone and create a 6-digit VNC password. Remember this password!
chmod +x ubuntu22-xfce.sh && bash ubuntu22-xfce.sh
Desktop Environment Setup
Once the installation finishes, you will be logged into the Ubuntu environment as root@localhost. Follow these steps to start the desktop session:
1. Start Ubuntu (If not already logged in)
./start-ubuntu22.sh
2. Launch the VNC Server
This command starts the background service that manages the graphical desktop.
vncserver
VNC Viewer Connection Steps
To interact with your new desktop, you must connect to the running VNC server using an external app.
- Open your installed VNC Viewer app on Android.
- Tap the (+) icon to add a new connection profile.
- Address: Enter
127.0.0.1:5901 - Name: Give it a recognizable name like
Ubuntu Linux - Save/Create the profile, then tap Connect.
- When prompted, enter the 6-digit VNC password you created during the installation.
- Success! You should now see the Ubuntu XFCE desktop environment on your screen.