Hello friends, welcome. In today's article I'm going to be taking a little bit dive into ubuntu and how you can install it on an android device, though in the previous article, I showed you how to install Ubuntu kin(kinetic kudu) on android manually, but in today's article you'd learn how to automatically install Ubuntu (jammy) specifically on Android, so relax and follow us along with this article as I'm going to talk about Ubuntu for as much as I can.
What is Ubuntu?
Ubuntu is a Linux distribution based on Debian and composed mostly of free and open-source software. Ubuntu is officially released in three editions: Desktop, Server, and Core for Internet of things devices and robots. All the editions can run on the computer alone, or in a virtual machine.
Can Ubuntu be installed on android?
Though Ubuntu is a Linux based software not specifically designed for Android phones, but you can install Ubuntu On Android phone through Linux applications such as userLand And Termux, but as for this tutorial I'm specifically concentrating on how you can install Ubuntu on Android using Termux
What is Termux:
Termux is an Android terminal emulator and Linux environment app that works directly with no rooting or setup required. A minimal base system is installed automatically - additional packages are available using the APT package manager.
To know more about termux And how To Install Termux You Can check this article
How To install Ubuntu using Termux?
The first thing you're going to do is to update your termux packages, to do that, you can easily use the command:
Pkg update
After updating your packages the next thing we're going to do is install proot-distro, proot-distro is a package which takes care of management of the Linux distributions inside Termux. You can install this utility by executing the command:
proot-distro install ubuntu
After Ubuntu has been successful Installed the next thing you're going to do is login to ubuntu, and you can login using the command:
proot-distro login ubuntu
After successful login to ubuntu, the next thing we're going to do is to update the APT repository of Ubuntu, to do so you can use the commandapt update
After updating repository Ubuntu is now ready to be used.How To Add Add user account on ubuntu?
In Ubuntu, there are two command-line tools that you can use to create a new user account: useradd and adduser.
useradd is a low-level utility for adding users, while the adduser a friendly interactive frontend to useradd written in Perl.
To create a new user account named username using the adduser command you would run:
adduser username
You will be asked a series of questions. The password is required, and all other fields are optional.confirm that the information is correct by entering Y.
The command will create the new user’s home directory, and copy files from /etc/skel directory to the user’s home directory. Within the home directory, the user can write, edit, and delete files and directories.
Grant sudo permission
By default on Ubuntu, members of the group sudo are granted with sudo access.
If you want the newly created user to have administrative rights, add the user to the sudo group :
echo "username ALL=(ALL:ALL) ALL" >> /etc/sudoers.d/username
Or you can automatically add user to sudoers group by using the command:usermod -aG username
And finally you can login to the new user account by using the command:su username
From now on you can login to your Ubuntu and enjoy all Ubuntu features from it on your Android phone. Thanks for reading. See y'all in the next one