ubuntu in termux

Install Ubuntu in Termux with Extra Features

Recently, I published an article on the basics of ubuntu, but some of you said I did not have even a PC or laptop to run, so I came up with an article in which we will see how we can install ubuntu on our Android device using termux without root access on our Android device, so let’s get into it and see how we can install it in termux.

My experience with nethunter was basically excellent👍 because I learned many things by using ubuntu & Kali Nethunter💡. Even when I was preparing for my CCC (Course on Computer Concepts) exam, I used Nethunter to run libreoffice and VS code🤓.

What is Termux?

Termux is an Android terminal emulation and Linux environment application that is used to perform nominal h4king attacks by using an Android device.

For the installation of Ubuntu, we will use Ubuntu modded by Bangladesh because I use it personally and am very impressed by the performance and extra features.


  • Fixed audio output
  • Lightweight {requires at least 4GB of storage}
  • 2 browser options (Chromium and Mozilla Firefox)
  • Supports Bangla fonts
  • VLC Media Player and MPV Media Player
  • Visual Studio Code
  • Sublime Text Editor
  • Easy for Beginners
  • It comes with some cool themes.
  • It is open source.
  • It is written in bash.

Before installing Ubuntu, we have to install the termux application from Fdroid (do not install termux from the Play Store because the Play Store does not have the latest version.

Step 1: After installing Termux, we have to give storage permission to our application. Run the below command to give storage permission.

$ termux-setup-storage

Step 2: After giving storage permission to termux, we have to update and upgrade our termux. Update and upgrade your termux by executing the following command:

$ apt update && apt upgrade
ubuntu in termux

Step 3: After that, we have to install git and wget so that you can clone the Ubuntu repository on your termux. install git and wget by executing the following command.

$ yes | pkg up
$ apt install git && apt install wget
ubuntu in termux

Step 4: Now we have to clone the Github repository. Clone the Github repository by executing the following command:

$ git clone https://github.com/modded-ubuntu/modded-ubuntu.git
ubuntu in termux

Step 5: After cloning the github repository, we have to go into the Ubuntu folder. Execute the following command to go into the folder:

$ ls 
$ cd modded-ubuntu
ubuntu in termux

Step 6: After that, execute the following command to start the Ubuntu installation:

$ bash setup.sh
ubuntu in termux

Step 7: Now restart your termux and execute the following command:

$ ubuntu 
$ bash user.sh 

After executing user.sh, type your Ubuntu root username, and the username must be lowercase with no space included.

Step 8: Now again, restart your termux and execute the give command.

$ ubuntu
$ sudo bash gui.sh
ubuntu in termux

Now your Ubuntu is successfully installed on Termux.

Step 9: After that, run vncstart to start your vncserver. While running this command, it will ask you for a vnc password, give a password, and you have to note your given vnc password.

$ vncstart
ubuntu in termux

If you want to stop your VNC server, then execute the following command:


Step 10: After doing everything we have to install RVNCViewer, you can easily install it from the Play Store.

After opening rvnc viewer, when you open it, its interface will look something like the one shown in the screenshot below.

ubuntu in termux

After opening the RVNC viewer, you now have to create a session by clicking on the ADD / plus icon.

ubuntu in termux

When you click on the Add button, the application will open a form with the heading New Connection and ask you to enter your address and the name of your computer.

For your computer name, you can fill in any number or character. But for the address, you have to be careful and fill it in the right way; otherwise, Ubuntu will not start in Gui.

To get the addess, you just have to open your termux application and execute the command [ubuntu].

ubuntu in termux

When you execute the command ubuntu, your ubuntu will start running in CLI mode.

Step 11: After executing the command ubuntu, we now have to run our ubuntu in Gui mode. To do that, run the following command:

$ vncstart

When you execute the command vncserver, our termux gives us some results, as shown in the below screenshot.

ubuntu in termux

The mark part of the screenshot represents the port number.

If your port number is 5901, the address of the vncserver will be [localhost:5901]. Port numbers may vary depending on the used session in one day, and if you get port numbers like 5902, 5903, 04, or 05, then you have to create a new connection in your RVNC viewer application, in which [localhost:] will remain the same; you just have to change the port number. For example, if I create a GUI session and the port number of this session is 5902, then I’ll get the RVNC viewer application and create a new connection in which our address will be [localhost:5902].

After successfully creating a new connection, you just have to click up on your created session, and you will see a connect button of green color on the bottom. Just click on it, and it will redirect you to the Unencrypted Connection page. You will see an OK button on the top of the corner on the right side. Just click on it.

After that, you will get an authentication page. This page will ask you to enter the password. and the fill password that you created while first executing the vncserver command, and after filling the password, just click on the continue button, and it will take you to your Ubuntu desktop screen.

Ubuntu desktop screenshot:

ubuntu in termux

Ubuntu command and uses

nethunterstart Kali NetHunter command line interface
nethunter kex passwdconfigure the KeX password (only needed before 1st use)
nethunter kex &start Kali NetHunter Desktop Experience user sessions
nethunter kex stopstop Kali NetHunter Desktop Experience
nethunter <command>run in NetHunter environment
nethunter -rstart Kali NetHunter cli as root
nethunter -r kex passwdconfigure the KeX password for root
nethunter -r kex &start Kali NetHunter Desktop Experience as root
nethunter -r kex stopstop Kali NetHunter Desktop Experience root sessions
nethunter -r kex killKill all KeX sessions
nethunter -r <command>run <command> in NetHunter environment as root


In this article, you all learned about how you can run esaily Ubuntu on your Android device with some cool addon features. That’s it for today’s article. I hope you understand everything. If some of you are facing problems, just comment me down; otherwise, come to our telegram discussion group, and me and my team will try to resolve your problem.

Leave a Reply

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