How to Install and Run Kali Linux in Android without Root
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:
- Fx File Explorer. (Available in Play store)
- Nethunter Store. (Click here to download)
- Termux. (Click here to download)
- Hacker's Keyboard. (Available in Play store)
- ADM. (Available in Play store)
- 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:
Command to give storage permission to termux.
- Command:
Command to update packages.
- Command:
This command will install wget package.
- Command:
This command will install nethunter executable file."
- Command:
This command will give executable permission to the file.
- Command:
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:
- 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:
Command to go to the root directory.
- Command:
Command to go to the sdcard directory.
- Command:
Command to go to the download directory of sdcard.
- Command:
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:
- 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:
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:
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:
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:
- If you have more space in your internal storage, you might want to run this command to get additional features in Kali Linux.
- Command:
- Firefox might not work on unrooted devices so just replace it with chromium with this command.
- Command:
- 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:
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:
- Command: For Old Devices:
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.