Install Kali Linux On Non-Rooted Android Phone
Kali Nethunter Installation on a non-rooted Android device.
The procedures for installing Kali Linux on unrooted Android devices are listed below. You can read through this article if you want to set up a web server or use SSH to access your Android device from your computer.
On our Android device, we must first install Termux and Hacker’s Keyboard.
These apps are available through the Google Playstore.
2. Setting Up Our Environment
Next up, we would need some packages which we would need during the installation process.
First, update and upgrade the system with :
$ pkg update && pkg upgrade -y
Next up we need to setup our system so that we can access the files created by Termux outside of our Termux session as well. This can be done with :
Once you have granted the required Permissions, finally install the required packages with :
$ pkg install wget fish
Once done, we can proceed to the actual installation step.
3. Fetching And Executing Our Script
Next we need to fetch and execute a script which will install Kali Linux for us. To fetch the script, type:
$ wget https://gitlab.com/kalilinux/nethunter/build-scripts/kali-nethunter-project/raw/master/nethunter-rootless/install-nethunter-termux
Now, we need to make the script executable and run it with:
$ chmod +x install-nethunter-termux $ ./install-nethunter-termux
This will fetch Kali Linux files and install them for us on our Android device. The script would fetch around 1.5GB of files so naturally, it might take a lot of time depending upon your network speed. Once the script is done extracting the rootfs file, you can even delete it. You must at least have around 10GB of free space to install it.
Once the script has finished, you can run Kali Nethunter from the CLI.
To launch Kali Linux in CLI mode, type:
This would drop into a shell on Kali Linux. You can now use Kali Tools or check your OS with
$ cat /etc/os-release | grep "\bNAME=" NAME="Kali GNU/Linux"
We have now successfully finished installing Kali Linux on both our non-rooted Android and computer!