How to Install Kali Linux on Android without Root?

Jeevithaa
BeyondX
Published in
4 min readOct 3, 2020

Kali Linux is one of the best-operating systems to work on, especially for Hackers and Programmers. Installing Linux on an Android device unlocks a variety of features which include running web-based applications on your Android device, install and use Linux applications, rather you can run a graphical desktop environment on it.

Linux has the capability to turn an Android device into a portable network troubleshooting or pen-testing device. Install Kali Linux on your unrooted Android device using the steps listed below.

Requirements :

1.Open the Termux App in the Google Play Store or click the above link.

2. Download and install a VNC viewer application from Google Play Store or from the above link.

What are the requirements for Termux installation?

  • Download Hacker Keyboard For Termux-Hacker’s keyboard.

Installation of Kali Linux on Android :

1. First, open the Termux application.

Update and Upgrade the packages that are pre-installed in the Termux by using this command :

apt update && apt upgrade -y

Press Enter.

2. Now the packages are updated. Next, install Fish packages on your Termux application.

pkg install fish -y

It’ll take some time to install. Try to keep your internet/wi-fi connectivity at maximum speed for quick installations.

3. After package installation, enter this command to enable the fish mode terminal.

fish

4. Now you are in fish mode. Next step is, enabling your phone storage access in Termux.

By default, all files created by Termux are only available through the Termux session. To access files outside Termux, we should provide storage access permission using the command :

termux-setup-storage

After executing this command, it’ll ask for storage permission. Click allow.

5. Next, install wget on your termux.

pkg install wget -y

6. The next step is to install Kali Linux on Android.

wget -O install-nethunter-termux https://offs.ec/2MceZWr

7. After installation of Nethunter, you’ll find an “install-nethunter-termux” file.

To access the file, first change it’s mode by using this command :

chmod +x install-nethunter-termux

Now the permissions are changed.

8. Now with all the permissions changed, the file is ready to download the Kali Linux file from the source.

./install-nethunter-termux

It will download and store the kali Linux file into your phone storage. The file size is around 1.5 GB. It will take about 20–30 minutes for complete download. Try to keep your internet/wi-fi connectivity at maximum speed for quick installation.

So wait and download. Don’t exit the Termux session.

After installation is completed, the rootfs file will get extracted. It's kind of a booting mechanism. This may take around 10 minutes. After that, the terminal will prompt this question: Delete downloaded rootfs file? [y/N]. Enter y to delete the extracted files.

Immediately the Nethunter will get configured and the session is started.

Kali Linux is installed successfully

9. After downloading the kali Linux file, Now you need to set a kex or vnc password by using the following command :

nethunter kex passwd

Set your password with at least 8 characters. Again enter your password to verify your password. After verification, your VNC password is set successfully.

10. Now your kali Linux is configured successfully on your Android phone.

Next, you need to start the kex (VNC) server.

nethunter kex &

The VNC server will start. And you can see your assigned port number (5901). Note down this number since it’s required to connect with the desktop view using the VNC viewer.

11. The next step is to connect the Kali Linux desktop version with the help of VNC Viewer. Just minimize your Termux app, Don’t exit the session.

Open the VNC viewer application. Click on the plus icon to create a profile. It will ask for an IP address and machine name.

Enter as localhost:port number (5901) in the place of address and enter any name for your machine. Then save the connection.

Once you try to connect with the machine, the authentication panel will prompt for a password. There you enter your terminal password and click on continue.

It will automatically connect your Kali Linux desktop with your VNC viewer software.

Now you can run & install any packages with Desktop Environment on your Android Phone.

Kali Linux in VNC viewer

--

--