/root-termux

install root(sudo) in the termux

Primary LanguageShell

root-termux

install Root in the Termux

Screenshot

Usage

have you ever wanted to run scripts but they need root access or for some reason you want to enter your commands in the real linux environment? in this tutorial, it is executed only by running a Termux script in root mode.

Run these commands in Termux:

# install git
pkg install git -y
# clone from github with git
git clone https://github.com/hctilg/root-termux.git && cd root-termux && chmod +x *
# install packages
pkg install wget proot -y

then enter the following command and go through the installation process:

# run bash script `install.sh`
yes | bash install.sh

after installing and creating the executable file, run the root environment with the following command:

# run bash script `start.sh`
bash start.sh  # or `./start.sh`

Note: after running Termux as root, you need to install all the packages from the beginning, and be sure to update the terminal with the following commands after installation so that you don't have any problems installing the packages:

apt update
apt upgrade

command to install sudo after installing Ubuntu:

apt install sudo