How to install Ubuntu Linux on Android without root

How to install Ubuntu Linux on Android without root

Are you looking for a way to install and run Ubuntu 18.04 Linux server on your Android Smartphone or tablet without rooting the phone? Then try UserLAnd.

Because Android is such a popular operating system, consumers are constantly looking for a means to effortlessly install several Linux distributions on it. Previously, running Linux OS on Android was a difficult task, but that is no longer the case. We can install Kali, Ubuntu, Arch Linux, and Debian like distros on Android in a minimal form using UserLand. For a graphical experience, it includes built-in Shell and VNC sessions. As a substitute for the popular GNURoot Debian App, UserLand was created by the same team.

We’ll demonstrate how to install and run Ubuntu 18.04 minimal server on an Android phone without having to root it. It enables you to study Linux without voiding your phone’s warranty.

Note: The procedures below also apply to Debian and Kali Linux, both of which are available in the UserLand App.

Contents

Install Ubuntu Linux on android without root

Step 1: Download UserLAnd App
Step 2: Run UserLAnd to install Linux OS on Android
Step 3: Setup Username and Password for user and VNC
Step 4: Download Ubuntu for Android
Step 5: Login to Android running Ubuntu
Step 6: Update and Upgrade Ubuntu running on Android
Step 7: Set the root password for Ubuntu
Step 8: Install Linux Desktop Environment LXDE
Step 9: Setup VNC to access Ubuntu via GUI interface
Step 10: Install the RealVNC Android App
Step 11: Connect VNC to Ubuntu LXDE Desktop

How To Install Ubuntu Linux on Android without root

Step 1: Download UserLAnd App

This software is available for download from the Google Play store;  here is the link. There are no problems in installing it; simply open the Play Store on your phone and search for UserLAnd; when it appears, touch to install it.

Step 2: Run UserLAnd to install Linux OS on Android

When the program first launches, you’ll find options for KALI Linux, Ubuntu, Alpine, Arch Linux, Debian, and lightweight Debian based desktops with the Xfce and Lxde desktop environments, as well as lightweight Debian based desktops with the Xfce and Lxde desktop environment. It also includes Linux development tools, games, and productivity software. So, we’re only going to talk about how to run Ubuntu on Android right now. Select the Ubuntu symbol.

Step 3: Setup Username and Password for user and VNC

When you touch on the Ubuntu or other Linux distros that UserLand has provided, it will prompt you to set up a username, password, and VNC password.

Fill in the blanks with whatever you wish, but keep in mind that this will make you a standard user of your Android’s Ubuntu operating system. After that, select Continue.

Step 4: Download Ubuntu for Android

The next step is to choose whether we want to connect to the installed Linux OS Ubuntu on Android via SSH or VNC. I’d like to use SSH, which is straightforward and allows me to control my Linux operating system from the UserLAnd inbuilt terminal. We’ll also teach you how to use RealVNC to connect to the existing Ubuntu, KALI, or any other OS available on this Android app later in this article.

Then it will tell that the Ubuntu files to download on Android are 80MB and that you want to download them without Wifi; tap continue if you want to download them using mobile data. It may take a few minutes to set up, depending on the speed of your internet connection.

Step 5: Login to Android running Ubuntu

A terminal window will open after the installation because we chose SSH at the start. Now, enter the password you created above for your Ubuntu image running on Android here, exactly like you would for a standard Ubuntu server.

Step 6: Update and Upgrade  Ubuntu running on Android

Apart from the small screen and lack of an init boot, this Ubuntu Linux image, emulated on an Android phone, is nearly identical to Windows 10 WSL.

As a result, we can now utilize the keyboard to enter commands into our Linux. Let’s start by updating and upgrading all of the programs. Run the command.

sudo apt-get update

sudo apt-get upgrade

Step 7: Set the root password for Ubuntu

Because there is no password for the root user by default, use the following command to set one:

sudo passwd root

Enter the Unix Password that you want to set twice, and you’re done…

Step 8: Install Linux Desktop Environment LXDE

The OS will come with simply a command line interface by default, and we’ll have to manually install it if we want it to have a graphical user interface. Here we are installing the lightweight LXDE desktop environment for Ubuntu Linux in order to run a GUI on an Android phone.

sudo apt-get install lxde

Step 9: Setup VNC to access Ubuntu via GUI interface

Note: Unless you have a high-end smartphone, running Linux GUI for Ubuntu on Android is not advised because it is laggy and can crash.

Well! Still, for the purposes of this article, I’ll show you how to access and view installed LXDE Desktop on Ubuntu on Android.

Execute the following commands on the UserLAnd Ubuntu command line shell:

We could use the XSDL Android app to access the Ubuntu GUI desktop, but it is slow, so we chose to utilize RealVNC viewer instead.

sudo apt install tightvncserver

Note: During installation, you will be prompted to create an authentication password.

sudo vncserver :1 -geometry 1920×1080

Note: I’m installing it on a OnePlus 5 with Full HD resolution, so use your resolution in the above command.

sudo export DISPLAY=:1

startlxde &

Step 10: Install the RealVNC Android App

We’ve already set up the Linux VNC server on Ubuntu in the previous stage, and now it’s time to get the RealVNC Viewer- Remote Desktop Android app.

Step 11: Connect VNC to Ubuntu LXDE Desktop

To make a new connection, click the Plus symbol in the VNC viewer. Enter 127.0.01:5901 and your installed OS’s name, which in my case was raj. Then select Create from the drop-down menu.

Because our connection is not secured, a warning will appear; ignore this and select OK.

Now, in Authentication, type the password you created before while installing TightVNC server.

Finally, you’ll see the LXDE Linux Desktop environment for Ubuntu on Android, as well as the UserLand app for Android.

If you wish to stop or kill the vncservice, run the following command:

sudo vncserver -kill

As a result, we may use this program to play about with Ubuntu and try out Linux on an Android phone or tablet.

 
Loading Facebook Comments ...