90 lines
1.6 KiB
Markdown
90 lines
1.6 KiB
Markdown
# # root_termux
|
|
|
|
Gives root shell on Termux while being able to run Termux commands as root for non-rooted deviced.
|
|
---
|
|
|
|
**Install Root in the Termux**
|
|
|
|
<img src="Screenshot_20240807_100014_Termux.png" alt="Screenshot" title="Root(sudo) in the Termux">
|
|
|
|
<br>
|
|
|
|
<img src="20240807_102225.png" alt="Screenshot" title="Root(sudo) in the Termux">
|
|
|
|
## Usage
|
|
|
|
Gives u root shell on Termux while being able to run sudo commands as root.
|
|
|
|
### Run these commands in Termux:
|
|
|
|
```bash
|
|
# install git
|
|
pkg install git -y
|
|
```
|
|
|
|
```bash
|
|
# clone from github with git
|
|
git clone https://gitea.dmz.rs/disu1950/root_termux && cd root_termux && chmod +x *
|
|
```
|
|
|
|
```bash
|
|
# install packages
|
|
pkg install wget proot -y
|
|
```
|
|
|
|
<br>
|
|
|
|
Enter the following command and go through the installation process:
|
|
|
|
```bash
|
|
# run bash script `install.sh`
|
|
yes | bash install.sh
|
|
```
|
|
|
|
<br>
|
|
|
|
After installing and creating the executable file, run the root environment with the following command:
|
|
|
|
```bash
|
|
# run bash script `start.sh`
|
|
bash start.sh # or `./start.sh`
|
|
```
|
|
|
|
<br>
|
|
|
|
> [!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:
|
|
|
|
|
|
```bash
|
|
apt update
|
|
```
|
|
|
|
```bash
|
|
apt upgrade
|
|
```
|
|
|
|
<br>
|
|
|
|
Now u can install **sudo** after installing Ubuntu:
|
|
|
|
```bash
|
|
apt install sudo
|
|
```
|
|
|
|
<br>
|
|
|
|
If evrythings goes smooth ur prompt should look lik3 this:
|
|
|
|
<mark>`root@localhost:~#`
|
|
|
|
---
|
|
|
|
# Copyright
|
|
|
|
root_termux is distributed under an WTFPL license. Refer to [LICENSE](LICENSE) for details.
|
|
|
|
---
|
|
|
|
@disu1950 What do you think about these :alien:?
|