pkg update pkg upgrade If you get repository errors, manually edit $PREFIX/etc/apt/sources.list to point to a working archive (e.g., https://packages.termux.org/apt/termux-main/ or a community mirror for API 21). 3.1 Fixing Common Android 5 Issues Problem: can't execute: Permission denied when trying to run scripts from /sdcard . Solution: Android 5 does not allow exec on external storage. Move scripts to ~/ (inside app’s private directory) or use cp /sdcard/myscript.sh ~/ && chmod +x ~/myscript.sh .

pkg install tcpdump nmap Monitor local network:

termux-sensor -s "acceleration" Install kiwix-tools (if available in CustTermux repos):

nmap -sn 192.168.1.0/24 Capture packets (requires root for some interfaces; without root, use limited mode):

pkg install termux-api Then read accelerometer data:

tcpdump -i wlan0 -c 100 Install python and start an HTTP server: