How to Install Ubuntu in Android Without Root

Did you know that you can install Ubuntu on Android without root? Well, you can do it just by following some simple steps. In this article, I will share some simple steps to install and use Ubuntu on an Android phone without root.

Ubuntu on Android without root
Ubuntu on Android without root

What is Ubuntu?

Ubuntu is a powerful Linux-based computer operating system like Kali Linux. It’s free and open-source software that provides a simple and powerful platform to use cybersecurity, penetration testing, and Linux tools.

Ubuntu was officially released in 2004 by Mark Shuttleworth and a small team of Debian developers. Now Ubuntu is maintained by a British company named Canonical Ltd.

Ubuntu is used in computers and laptops, but with some tricks and using Android apps like Termux, you can also use it on your Android phone without even rooting.

As we will use the Termux app to install Ubuntu, let’s first understand what Termux is.

What is Termux?

Termux is an Android application that provides a terminal where you can use Linux commands and tools. It’s like having a small mini Linux system on your phone. You can install and use many types of Linux tools on your Android phone using Termux.

Now, let’s see the requirements to install Ubuntu on an Android phone using Termux.

Requirements to Install Ubuntu

Before you can install Ubuntu on your phone, make sure that you have these requirements:

  1. Android Phone: You need a smartphone running Android 7.0 or above. Newer versions like Android 10, 11, 12, or 13 are even better.
  2. Enough RAM: Your phone should have at least 2 GB RAM. If your phone has 4 GB or more, Ubuntu will run faster and smoother.
  3. Free Storage: You need at least 5 GB of free space in your phone. Ubuntu needs space to save files and apps inside Termux.
  4. Good Internet: Make sure you have a stable internet connection, because Ubuntu files are big and you have to download them. Around 1–2 GB of internet data will be used.
  5. Installed Termux App: Termux is the main app we use to install Ubuntu. You can install Termux from F-Droid or from GitHub.
  6. VNC Viewer: Optional, but if you want to use Ubuntu GUI mode like a desktop interface, then install the VNC Viewer application from the Google Play Store.

How to install Ubuntu in Android

It sounds hard to install Ubuntu on an Android phone without even rooting, but you can do it using some simple steps. Below I have provided some simple steps to install Ubuntu on Android without root.

Step 1: Install Termux

First of all, you need to download and install the latest version of Termux APK from GitHub or from F-droid.

Step 2: Update Termux

Now open Termux, and you will see a black command line screen, here you need to run commands.

Termux Terminal
Termux Terminal

The first command you need to run is to update and upgrade Termux’s built-in packages.

apt update && apt upgrade -y

This command will update and upgrade Termux built-in packages. You can simply copy these commands and paste them into Termux.

Step 3: Install Required Packages

Now we will install some Linux packages that will help to install Ubuntu smoothly.

pkg install wget curl proot tar -y

This command will install some Linux packages to install Ubuntu in Termux.

Step 4: Download Ubuntu Installation Script

Now, download the Ubuntu Installation Script in Termux by running this command:

wget https://raw.githubusercontent.com/AndronixApp/AndronixOrigin/master/Installer/Ubuntu22/ubuntu22-xfce.sh -O ubuntu22-xfce.sh

This command will download the Ubuntu Installation Script.

Step 5: Run Ubuntu Installation Script

Now run the Ubuntu Installation Script with this command:

chmod +x ubuntu22-xfce.sh && bash ubuntu22-xfce.sh

This command will start the Ubuntu installation process, and it may take up to half an hour, depending on your internet speed.

Just enter the “press” button whenever it asks for set language or set timezone.

During the installation process, it will ask you to set a password for the VNC server, which is required to use Ubuntu in a GUI mode like a desktop. You can set any 6-digit password that you can easily remember.

Set Vnc password
Set Vnc password

Note: If the script gets stuck or stops during the installation process, then check our internet connection and run the installation script again.

Once the installation process is successfully complete, you will see a new screen starting with [root@localhost:~#].

Ubuntu is successfully installed
Ubuntu is successfully installed

This means you’re inside the Ubuntu environment, and Ubuntu is successfully installed on your Android phone. You can now use Ubuntu tools and commands.

Start Ubuntu Again (Next Time)

If you want to start Ubuntu next time then open Termux and type:

./start-ubuntu22.sh

This command will start Ubuntu again.

How to Use Ubuntu GUI on Android

We have successfully installed Ubuntu on an Android phone, but in a command-line interface (CLI), which you can use by typing commands.

If you are comfortable with commands, you can use Ubuntu in CLI, but if you want to use Ubuntu in a graphical user interface where you can use Ubuntu like in a computer with buttons, graphics, and a mouse pointer, then you can follow these steps.

Step 1: Start Ubuntu

Open your Termux and run this command:

./start-ubuntu22.sh

This command will start Ubuntu CLI mode.

Step 2: Start the VNC Server

Now run the following command to start VNC server for Ubuntu graphical interface:

vncserver

This command will start the VNC server to use Ubuntu graphical user interface.

Step 3: Install VNC Viewer App

Now go to the Google Play Store and install VNC viewer application.

VNC viewer app
VNC viewer app

Step 4: Start Ubuntu GUI

Open the VNC viewer app and tap “+” icon on the right bottom to add a new connection.

  • Set Address: localhost:5901
  • Set Name: Ubuntu
Vnc Viewer setup
Vnc Viewer setup

Now click on the “Create” button, tap “Connect“. It will ask for the password — Enter the password that you set during the Ubuntu Installation process and then click “Continue“.

Ubuntu GUI on Android
Ubuntu GUI on Android

Here you can see a desktop-like screen of Ubuntu on your Android phone.

How to stop Ubuntu GUI

If you are done using Ubuntu GUI and want to stop the VNC server, then open Termux and run this command:

vncserver -kill :1

This command will stop the vnc server.

Exit Ubuntu (Optional)

If you want to completely stop Ubuntu, then run this command:

exit

This command will take you from the Ubuntu CLI back to Termux.

How to start Ubuntu GUI next time

Next time you want to use Ubuntu with the desktop (GUI), just follow these 4 steps:

  • Open Termux
  • Start Ubuntu with this command:
./start-ubuntu22.sh
  • Now start GUI mode
vncserver
  • Open vnc viewer app and connect.

How to Uninstall Ubuntu from Android

If you want to uninstall Ubuntu and delete every file related to Ubuntu from your Android phone, then open Termux and run the following command:

rm -rf ubuntu22-fs ubuntu22-binds start-ubuntu22.sh ubuntu22-xfce.sh

This command will delete everything related to Ubuntu from your phone.

Conclusion

Ubuntu on an Android phone Sounds tricky, but you can easily install and use it even without rooting your Android phone just by following some steps.

In this article, I have explained step-by-step how to install and use Ubuntu on Android without root. I have also provided some simple steps to use Ubuntu GUI on Android like a desktop.

SHARE THIS POST:

Leave a Reply

Your email address will not be published. Required fields are marked *