A bunch of useful Android Termux scripts that have been written over the years.
-
Backup & restore all Termux packages (
packages.list) +$HOME. -
Bulk-install individual & split APKs at once (requires root).
-
Clone + serve Ollama and run
deepseek-r1:1.5b. -
Decompile an APK in Termux via APKTool 2.12.1 + OpenJDK 17. Usage:
bash apk_decomp/apk_decomp.sh <path_to_apk>. -
Manage an nginx static file server on Termux:
install|start|stop|restart|status|logs|tunnel|tunnel-stop. Config viaPORT(default 8080),DOCROOT(default~/public),BIND(default 127.0.0.1). Optionalcloudflaredtunnel +termux-apiwake-lock.
-
Installs zsh + oh-my-zsh + powerlevel10k, lsd, fastfetch, termux-style, zsh-autosuggestions.
-
Enter Termux from Waydroid/host root shell: sets Android DNS, launches Termux if needed, pre-resolves Termux mirrors/GitHub into
/etc/hosts, thennsenter + suinto Termux as bash login shell.
-
Real chroot Alpine Linux on a rooted device (tiny ~3 MB minirootfs, no debootstrap). Internal install by default, or
--sdcard PATH [--size MB]for exFAT/FAT SD cards via loop-mounted ext4 image. Enter withbash $PREFIX/bin/enter-alpine.sh, uninstall with--uninstall. -
Interactive Alpine Linux QEMU manager for Termux (idempotent menu): full install, QEMU install, ISO download, qcow2/raw disk create, boot installer / boot VM, SSH (
-p 2222), disk + VM settings (RAM/CPU/ports/firmware bios|uefi), delete ISO/disk. See also answerfile, how_to_install_docker.md, notes.md.
-
Snapdragon/Adreno GPU-accelerated XFCE4 proot-Debian manager (Termux:X11, virgl/zink, Vulkan freedreno).
-
Installs XFCE4 + Termux:X11-nightly + mesa-zink/virgl + Nerd Fonts (0xProto).
-
Installs
termux-x11+scrcpyand mirrors Android with--no-audio.