How To Install Kali Linux On Android Without Root Offline Installation



hello guys welcome to today's article, in this article I'm going to show you how to manually install kali linux on android phone without root, which In some cases you can also refer as an offline installation

Prerequisites

Termux

nethunter kex

installation procedures :

the first thing we have to do is make sure our repositories is up to date, to do that type the command

  • apt update && apt upgrade

after that we install wget : Wget is a computer program that retrieves content from web servers. It is part of the GNU Project. Its name derives from "World Wide Web" and "get." It supports downloading via HTTP, HTTPS, and FTP. To install wget on Termux type the command below

  • pkg install wget

if you haven't granted storage permission to Termux you can do so by typing the command

  • termux-setup-storage

and if you have previously given Termux storage permission you can skip this process

the next thing we want to do is download the Kali Linux tarball source file from its original website, kali.download and you're going to make sure you download the tarball that matches your "cpu architecture",  to check your cpu architecture on Termux type the command uname -a .



The results you should get and their meaning 

  • * armv7 or armeabi = 32-bit device
  • * armv8, aarch64 or arm64 = 64-bit device
  • * x86 or x86abi = AMD and Intel devices.

Example for my Tecno spark 6 the architecture is armv7l which means that it is a 32 bit device. Just as shown in the image above.

Another way you can download the file that matches your architecture is just by clicking the link below

arm64 (64-bits) :  kalifs-arm64-full.tar.xz

armhf (32-bits) : kalifs-armhf-full.tar.xz 

X86 (Intel devices) : kalifs-i386-full.tar.xz


after the download, launch back your terminal and locate the Kali tarball you just downloaded, to do that first we navigate to storage directory with the command : 

  • cd storage

since the file is by default saved in the download folder so we navigate to the download directory using the command

  • cd downloads

after locating the file, the next thing we do is we copy the file to our home directory, to do that type the command

  • cp filename /$HOME

and that command should copy the file to our home directory, type cd to go back to home directory.


after copying the file to the home directory we are going to download an installation script officially written by the Kali Devs using the wget command to do that type the command

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

after download, we are going to give storage permission to the file by typing the command

  • chmod +x install-nethunter-termux

and the file should turn green when you type ls again



now we install kali linux by typing the command

  • ./install-nethunter-termux

⚠️ here comes the most important part

NOTE: a prompt is going to come up after typing the "./install" command above, asking if you should delete the file found in the system and download a new one, type 'n' (no), so that the script uses the file we manually downloaded for the extraction and installation, the extraction will take a while.



after installation and extraction is finished another prompt is going to come up asking if you should delete the rootfs file, type y to delete and n if you don't want to delete the file


After that the installation should be completed.

type the command nh to login to kali linux

and you can update Kali Linux by using the command

  • sudo apt update

if you're prompted for a password, the default password is kali

login to GUI

use the command kex passwd to set a vnc password for your Kali Linux

and you can use the command kex to start your Kali GUI in a localhost:port

open your vnc application and login to kali by connecting through the port number and the password you created earlier

if you have questions regarding this video you can let me know in the comments section below, Happy Hunting.

Watch the video here :




Post a Comment

Previous Post Next Post