How to Install and Run Kali Linux in Android without Root

Hello guys, In this post we are going to learn how to run Kali Linux in android using termux.

Kali Linux is a very popular Linux os, and its very featured packed with tools, softwares, codes we are helpful in cracking, detecting and solving the problems with ease. It is very popular among the Linux users who are willing in ethnical hacking, penetration, finding the vurnibilities etc. 

Kali Linux can be booted in android by the help of termux and termux acts like a supportive bridge between the android and Kali Linux.

To get the full features you would have to root the phone and by using this rooted method.

All the information related to the Kali Linux can be found in their official Kali Linux website.


Requirements:

  • Storage space: Atleast 7 GB of internal storage is Required.


Method:


Installation of Apps and other files.

  • Install all the above mentioned apps.

  • After installing the apps, Open the Nethunter store app.

  • Wait for the repositories to update.

  • Search the app named Nethunter Kex , Install it.
  • Next open the Hacker's Keyboard, and click on enable keyboard.

ã…¤

Entering the commands.

  • Open the termux app, type clear command to clear the screen.

  • Now type the following commands:

  • Command:
termux-setup-storage

Command to give storage permission to termux.

  • Command:
pkg update && pkg upgrade -y

Command to update packages.

  • Command:
pkg install wget

This command will install wget package.

  • Command:
wget -0 install-nethunter-termux https://offs.ec/2MceZwr

This command will install nethunter executable file."

  • Command:
chmod +x install-nethunter-termux

This command will give executable permission to the file.

  • Command:

./install-nethunter-termux

This command will execute the nethunter executable file.
ã…¤

Downloading Kali Linux image file from external

  • When you run above command to the nethunter executable file, just stop the execution after 2 seconds by using ctrl + c buttons.

  • You will get link of image as "https://images.kali.org/nethunter/kalifs-armhf-full.tar.xz" , copy this link.

  • Now the following command to remove the download file as it may create conflict later on.

  • Command:
rm -rf kalifs-armhf-full.tar.xz


  • Open the ADM App, paste the link and click on start button.

Note: By using this app you can pause or resume the download if you are low on internet.

ã…¤

Copy the downloaded Kali image to internal storage.

Note: This step is optional, If you have downloaded the image file inside the internal storage, you can skip this step.

  • Open the termux, type the following commands.

  • Command:
cd /

Command to go to the root directory.

  • Command:
cd sdcard

Command to go to the sdcard directory.

  • Command:
cd Download
Command to go to the download directory of sdcard.

  • Command:
cp kalifs-armhf-full.tar.xz /data/data/com.termux/files/home

This command will copy the Kali Linux file to the internal storage.

  • Wait for the file to copy as it could take around 10-15 minutes.
ã…¤

Installation of Kali Linux in android.

  • Now type the command to install Kali.

  • Command:
./install-nethunter-termux


  • Wait for the process to complete.

  • Now it will ask for existing file to delete, press n and enter.

  • Wait for the extraction to complete as it may take around 10-15 min to extract.

  • After installation it will ask for file to delete.
  • If you want the file just press y .
  • If you don’t want the file just press n .

  • Now it will open the Kali nethunter command line interface.

  • Type the following commands:

  • Command:
nethunter kex passwd

This command will configure the Kex password for Kali (This is only needed for first use).

  • Now it will ask for the password, enter the password of your choice. and verify the password.

  • Now it will ask for the view-only password, just press y and enter and verify the password again.(This will solve one of the issue).

  • Command:
nethunter kex & 

Now wait for few seconds and it will provide you with port no. for the vnc display.
ã…¤

Running of Kali Linux in android.

  • Open the Nethunter Kex app.
  • Give the name as Kali Linux .
  • Under connection settings.
  • Enter the address as localhost .
  • Enter the port as 5901 (This port number we got from the termux).
  • Enter the password which you have given while entering the command nethunter kex passwd .
  • Click on connect.
  • And the Kali Linux boot up in android.
  • You can experience all the features of Kali Linux in this image file and can also the internet and run the terminal.

  • To stop the Kali Linux, go back to termux and type the command.

  • Command:
nethunter kex stop


Note: You can also run it in, Vnc viewer app, by enter the address as localhost:5901 and name as Kali .

ã…¤

Kali Linux additional fixes.

  • Run this command after the installation of Kali Linux.

  • Command:
apt update && apt full-upgrade


  • If you have more space in your internal storage, you might want to run this command to get additional features in Kali Linux.
  • Command:
apt install kali-linux-default


  • Firefox might not work on unrooted devices so just replace it with chromium with this command.

  • Command:
apt remove firefox-esr apt install chromium


  • After entering this command, find the chromium browser in the application menu, Right click and select the Edit Application and type the following command to change the application.

  • Command:
/usr/bin/chromium --no-sandbox %U
ã…¤

Backup the Kali.

  • you can back up the Kali Linux by using the following commands.

Note: Stop all the sessions before backing up.

  • Command: For New Devices:
tar -cjf kali-arm64.tar.xz kali-arm64 && mv kali-arm64.tar.xz storage/downloads

  • Command: For Old Devices:
tar -cjf kali-armhf.tar.xz kali-armhf && mv kali-armhf.tar.xz storage/downloads
ã…¤

Conclusion:

So In this way you can run the Kali Linux in android without root and if you want to check the rooted version tutorial of kali installation, you can check from here. you might be interested in running windows xp in android or Ubuntu in android so check these out they are cool.

Check the video tutorial of this post below.

ã…¤

Tutorial: