|
1 | 1 | # pocket-kali |
2 | 2 |
|
| 3 | +<p align="center"> |
| 4 | + <a href="https://github.com/highoncomputers/pocket-kali/releases"><img alt="GitHub release" src="https://img.shields.io/github/v/release/highoncomputers/pocket-kali?style=flat-square"></a> |
| 5 | + <a href="LICENSE"><img alt="License: GPL-3.0" src="https://img.shields.io/badge/license-GPL--3.0-blue.svg?style=flat-square"></a> |
| 6 | + <a href="https://github.com/highoncomputers/pocket-kali/actions/workflows/ci.yml"><img alt="CI" src="https://img.shields.io/github/actions/workflow/status/highoncomputers/pocket-kali/ci.yml?branch=main&style=flat-square&label=CI"></a> |
| 7 | + <a href="https://github.com/highoncomputers/pocket-kali"><img alt="Platform" src="https://img.shields.io/badge/platform-Android%20%7C%20Termux-brightgreen?style=flat-square"></a> |
| 8 | + <a href="https://github.com/highoncomputers/pocket-kali/stargazers"><img alt="Stars" src="https://img.shields.io/github/stars/highoncomputers/pocket-kali?style=flat-square"></a> |
| 9 | +</p> |
| 10 | + |
3 | 11 | **One-command Kali Linux + XFCE4 desktop for Termux — Zero configuration, fully automated.** |
4 | 12 |
|
| 13 | +## Screenshot |
| 14 | + |
| 15 | +> *Screenshot coming soon — submit one via PR!* |
| 16 | +
|
5 | 17 | ## Quick Start |
6 | 18 |
|
7 | 19 | Open Termux and run: |
@@ -86,6 +98,87 @@ Launches a full XFCE4 desktop via Termux X11 with the Kali dragon wallpaper. |
86 | 98 | - **Single workspace** — reduces XFCE4 memory overhead |
87 | 99 | - **Battery optimization**: Go to Settings > Apps > Termux > Battery > Unrestricted to prevent Android from killing the background session |
88 | 100 |
|
| 101 | +## FAQ |
| 102 | + |
| 103 | +**Q: Do I need root (su) to run this?** |
| 104 | + |
| 105 | +A: No. pocket-kali runs entirely inside Termux's sandboxed environment. |
| 106 | + |
| 107 | +**Q: Why does the installer use F-Droid Termux and not Google Play?** |
| 108 | + |
| 109 | +A: The Google Play version of Termux is outdated and lacks features like `termux-x11`. Always use F-Droid. |
| 110 | + |
| 111 | +**Q: Can I install additional tools after the setup?** |
| 112 | + |
| 113 | +A: Yes — run `kali` and then `apt-get install <package>` as usual. |
| 114 | + |
| 115 | +**Q: What if the download fails?** |
| 116 | + |
| 117 | +A: The installer retries up to 3 times with `axel`. If it still fails, check your internet connection and try again. |
| 118 | + |
| 119 | +**Q: How do I uninstall pocket-kali?** |
| 120 | + |
| 121 | +A: Remove the Kali proot container with `proot-distro remove kali` and delete `~/.pocket-kali/`. |
| 122 | + |
| 123 | +**Q: Does this work on 32-bit (armv7l) devices?** |
| 124 | + |
| 125 | +A: The Kali Nethunter rootfs is ARM64 only. 32-bit devices are not supported. |
| 126 | + |
| 127 | +**Q: Will this work on non-Android Linux (e.g., ChromeOS Linux container)?** |
| 128 | + |
| 129 | +A: No — the installer checks for Termux's `/data/data/com.termux` directory and will exit if not found. |
| 130 | + |
| 131 | +## Troubleshooting |
| 132 | + |
| 133 | +### "kali: command not found" |
| 134 | + |
| 135 | +Run `source ~/.bashrc` or restart Termux. If it persists, check `~/bin/` was created: |
| 136 | + |
| 137 | +```bash |
| 138 | +ls -la ~/bin/kali |
| 139 | +``` |
| 140 | + |
| 141 | +### GUI doesn't start / X11 blank screen |
| 142 | + |
| 143 | +1. Make sure **Termux-X11 APK** is installed — download from the [releases page](https://github.com/termux/termux-x11/releases). |
| 144 | +2. Set **Termux battery to Unrestricted** — `Settings > Apps > Termux > Battery > Unrestricted`. |
| 145 | +3. Run `killall termux-x11 2>/dev/null; killall pulseaudio 2>/dev/null` then try `kali-gui` again. |
| 146 | +4. If still broken, check the log: `cat ~/pocket-kali.log | tail -50`. |
| 147 | + |
| 148 | +### Installation stuck at "Installing Kali Linux Rootfs" |
| 149 | + |
| 150 | +The rootfs tarball is ~300 MB. On slow connections this can take 10+ minutes. Check `~/pocket-kali.log` for download progress. If it truly hangs, cancel (Ctrl+C) and re-run — the installer is idempotent. |
| 151 | + |
| 152 | +### Audio not working |
| 153 | + |
| 154 | +Restart PulseAudio: |
| 155 | + |
| 156 | +```bash |
| 157 | +pulseaudio --kill 2>/dev/null; pulseaudio --start |
| 158 | +``` |
| 159 | + |
| 160 | +Then do `kali-gui` again. Inside the Kali session, verify PulseAudio is connecting: |
| 161 | + |
| 162 | +```bash |
| 163 | +pactl info |
| 164 | +``` |
| 165 | + |
| 166 | +### Out of space |
| 167 | + |
| 168 | +Kali rootfs + XFCE4 takes ~1.5 GB after installation. Run `kali` then `apt-get clean` to clear package cache. |
| 169 | + |
| 170 | +## Contributing |
| 171 | + |
| 172 | +See [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines on reporting bugs, suggesting features, and submitting pull requests. |
| 173 | + |
| 174 | +## Security |
| 175 | + |
| 176 | +See [SECURITY.md](SECURITY.md) for our security policy and vulnerability reporting process. |
| 177 | + |
| 178 | +## Changelog |
| 179 | + |
| 180 | +See [CHANGELOG.md](CHANGELOG.md) for release history. |
| 181 | + |
89 | 182 | ## Credits |
90 | 183 |
|
91 | 184 | Built on the [Kali Nethunter rootfs](https://www.kali.org/docs/nethunter/) — the official Kali Linux distribution for mobile devices. |
|
0 commit comments