How To Install debian 11 bull On Android via proot-distro | No Root

Hello friends, welcome. In today's article I'm going to be taking a little bit dive into debian and how you can install it on an android device, though in the previous article, I showed you how to install Ubuntu (kinetic kudu) on android manually, but in today's article you'd learn how to automatically install debian (bullseye) specifically on Android, so relax and follow us along with this article as I'm going to talk about debian for as much as I can.

What is debian?

Debian also known as Debian GNU/Linux, is a Linux distribution composed of free and open-source software, developed by the community-supported Debian Project, which was established by Ian Murdock on August 16, 1993. The first version of Debian (0.01) was released on September 15, 1993,[7] and its first stable version (1.1) was released on June 17, 1996.[8] The Debian Stable branch is the most popular edition for personal computers and servers. Debian is also the basis for many other distributions, most notably Ubuntu.

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 debian 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:

pkg install proot-distro
After proot-distro has been installed we can now install debian through the distro, to install debian use the command:

proot-distro install debian
After debian has been successful Installed the next thing you're going to do is login to debian, and you can login using the command:

proot-distro login debian
After successful login to debian, the next thing we're going to do is to update the APT repository of debian, to do so you can use the command

apt update
After updating repository debian is now ready to be used.

How To Add Add user account on debian?

In debian, 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 debian and enjoy all debian features from it on your Android phone. Thanks for reading. See y'all in the next one

Watch the video here



Post a Comment

Previous Post Next Post