run kali linux on your old android phone (no root needed)

February 15, 2026

🐉 Kali Linux on Android: The Pocket Pentest Lab

Most people think you need a $2,000 laptop or a VPS to run Kali Linux. This guide shows you how to run the full penetration testing suite with desktop GUI directly on Android using Termux.

No root. No warranty void. Just a working hacking lab in your pocket.


📺 Video Guide

Watch on YouTube if the player doesn't load

🛠️ Prerequisites

  • Android Device: Any stock, unmodified Android phone (Android 7+)
  • Storage: At least 4-5GB free space
  • Time: 10 minutes

That's it. No technical expertise required.


1. Install Termux

Download Termux from the NetHunter Store (NOT the Play Store version—it's outdated and broken).

While you're there, also grab:

  • NetHunter KeX (VNC client for the desktop)
  • Hacker's Keyboard (optional but useful)

Open Termux. If it seems stuck on "installing" during first launch, just hit Enter.


2. Update the Environment

Run this to update all packages:

pkg update && pkg upgrade -y

Accept any prompts. This takes 2-3 minutes depending on your connection.


3. Install wget

We need wget to download the NetHunter installer:

pkg install wget

4. Download & Run the Installer

Now for the main event. Run these commands:

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

When prompted, select "Full" installation to get all the penetration testing tools.

The installer will download and configure the entire Kali Linux environment. This takes 5-10 minutes. Go grab coffee.


5. Set Your Desktop Password

Once installation finishes, set a password for the GUI desktop:

nethunter kex passwd

Choose something you'll remember. You'll need this every time you connect.


6. Launch the Desktop

Start the Kali desktop environment:

nethunter kex &

The & runs it in the background. You'll see output showing the VNC server starting on localhost:1.


7. Troubleshooting: "Process Killed" or Connection Issues

If you get errors like "process killed" or can't connect to the VNC server, Android's phantom process restrictions are likely killing the background processes. Here's how to fix it:

Option 1: For Android 14 (The Easiest Way)

If you're on Android 14, Google added a hidden setting to fix this:

  1. Go to Settings > Developer Options
  2. Look for "Disable child process restrictions"
  3. Toggle it ON
  4. Restart Termux and try running nethunter kex & again

Option 2: Using ADB (Android 12, 13, and 14)

If you have a PC or can use Wireless Debugging, run these three commands via ADB to remove the process limit:

adb shell "/system/bin/device_config set_sync_disabled_for_tests persistent"
adb shell "/system/bin/device_config put activity_manager max_phantom_processes 2147483647"
adb shell settings put global settings_enable_monitor_phantom_procs false

This method works reliably across Android versions and is the most effective fix.

Option 3: No PC? (Using Shizuku)

If you don't have a computer, you can install the Shizuku app from the Play Store.

  1. Set up Shizuku using Wireless Debugging (plenty of tutorials on YouTube for this)
  2. Use a terminal app that supports Shizuku (like Rish) to run the ADB commands above directly on your phone

8. Connect via VNC

Open RealVNC Viewer (or the NetHunter KeX app you installed earlier).

Create a new connection:

  • Address: localhost:1
  • Name: Whatever you want (I use "Kali Pocket")

Tap connect. Enter your password.

BOOM. Full Kali Linux desktop with GUI. On your phone.


🎯 What You Just Unlocked

You now have access to:

  • Metasploit Framework — Exploitation and pentesting
  • Nmap — Network scanning
  • Wireshark — Packet analysis
  • Burp Suite — Web app security testing
  • Aircrack-ng — Wireless security auditing
  • John the Ripper — Password cracking
  • And 600+ other security tools

Open a terminal in Kali and run:

sudo apt update && sudo apt full-upgrade -y

Want the full tool collection? Install the default package:

sudo apt install -y kali-linux-default

Warning: This is a large download (2GB+).


📋 Quick Command Reference

| Command | What It Does | |---------|-------------| | nethunter | Start Kali CLI | | nethunter kex passwd | Set/change desktop password | | nethunter kex & | Start desktop (background) | | nethunter kex stop | Stop desktop session | | nethunter -r | Start Kali CLI as root | | nh | Shortcut for nethunter |


Pro-Tips

Keep Sessions Alive: Android kills background apps aggressively. Run this in a separate Termux session:

termux-wake-lock

Also disable "Battery Optimization" for Termux in your Android settings.

Backup Your Setup: Your entire Kali installation lives in kali-arm64 (or kali-armhf on 32-bit devices). Back it up:

tar -cJf kali-backup.tar.xz kali-arm64
mv kali-backup.tar.xz ~/storage/downloads

Root Access in Kali: Need root inside the Kali environment? Use:

nethunter -r

This gives you root in Kali (not on your Android system).

Better Display: In RealVNC Viewer, go to Advanced Settings and set a custom resolution like 1920x1080 for a cleaner desktop experience.


🔗 Resources


Why This Changes Everything

This phone was collecting dust in a drawer. Now it's running the same tools cybersecurity professionals use to make $150K+ a year.

No expensive laptop. No cloud bills. Just three commands and 10 minutes.

The barrier to learning penetration testing just disappeared.

Now go break stuff (ethically).