Hello friends, In in today's article I will show you how to install Kali Linux (Nethunter) On Android phone Without Root
What is kali linux
Kali Linux is a Debian-derived Linux distribution designed for digital forensics and penetration testing. It is maintained and funded by Offensive Security
Prerequisite :
Installation :
The First thing we have to do is to make sure our repositories are up to date, to do that type the command
apt update
it is essential to install proot-distro and wget as we will be installing Kali Linux on proot-distro for easy installation.
apt install wget proot-distro
After that we need to add Kali linux rootfs profile to proot-distro list, to do that follow the guidelines below
nano $PREFIX/etc/proot-distro/klinux.sh
paste the following code in it
# This is a default distribution plug-in.
# Do not modify this file as your changes will be overwritten on next update.
# If you want customize installation, please make a copy.
DISTRO_NAME="Kali Linux (nethunter)".
TARBALL_URL['aarch64']="https://kali.download/nethunter-images/current/rootfs/kalifs-arm64-minimal.tar.xz"
TARBALL_SHA256['aarch64']="b35534aa0dca0fdf4940836124efdb2faae2cb2e850182e82a8789da5b60b164"
TARBALL_URL['arm']="https://kali.download/nethunter-images/current/rootfs/kalifs-armhf-minimal.tar.xz"
TARBALL_SHA256['arm']="12770d83e0782a81375812c98b21f1e3df802896a00f3beae0bee1121ab097c1"
TARBALL_URL['i686']="https://kali.download/nethunter-images/current/rootfs/kalifs-i386-minimal.tar.xz"
TARBALL_SHA256['i686']="0dd4b95635b601b9516c29bee016363dd5f378f9abb104736f93f76c82c3d8b6"
TARBALL_URL['x86_64']="https://kali.download/nethunter-images/current/rootfs/kalifs-amd64-minimal.tar.xz"
TARBALL_SHA256['x86_64']="1d3fec3d761c7a397f4d6d87a323e2025fb2e880bcf09e28bc551e4fbcac627a"
The next thing we're going to do is install kali linux, to do that type or copy and paste the command:
proot-distro install klinux
After this, you can now successfully login to your Kali Linux with the command:
proot-distro login klinux
If you want to create a shortcut command to login to Kali Linux, exit the Kali CLI and head back to termux, and paste in the command below
echo "proot-distro login klinux" >> $PREFIX/bin/klinux
Give it executable permission by entering the command below
chmod +x $PREFIX/bin/klinuxNow you can always login to Kali Linux by typing the simple command below
klinux
By default, after installation, Kali Linux on android rootless phone doesn't support upgrade, and that is because of postgresql as it blocks the upgrade command from working on Kali, to fix this all we have to do is delete the postgresql file, we can delete the postgresql file with this command
rm -rf /var/lib/dpkg/info/postgresql* && dpkg --configure -a
This should fix the error and you can continue with using your Kali as usual
Now, you can update and upgrade kali repository with the command
apt update
And now you can proceed to installing the GUI by clicking here.
Tags
Android Tutorials
Debian
Debian terminal
ethical hacking
Kali
Kali Linux
Linux
Linux terminal
Linux tutorial
nethunter
penetration testing
tarminal tutorial
terminal
termux