Turn an Android phone into a lightweight Linux coding workstation with VS Code and a browser, without rooting the device.
Run GPU-accelerated Linux desktop graphics on a Snapdragon-based phone for a smoother experience than software-rendered alternatives.
Practice network security tools like Nmap and Metasploit in a Linux environment on your phone for educational purposes on systems you own.
Requires Termux installed from GitHub (not Play Store) and about 4 GB of free storage, GPU acceleration only works on Qualcomm Adreno or Samsung Exynos chips.
AndroidLinux-GPU is a shell script that sets up a full Linux desktop environment on an Android phone without requiring root access. It works through Termux, a free terminal application for Android, combined with Termux-X11, which provides a graphical display. The result is an XFCE4 desktop (a standard lightweight Linux desktop) that runs inside those two apps and appears on your phone screen. The main feature the project highlights over similar setups is GPU acceleration. Many guides for running Linux on Android use software rendering, where the CPU does all the graphics work, which results in a slow and laggy experience. This script installs open-source GPU drivers called Turnip and Mesa Zink that allow Qualcomm Adreno GPUs (found in Snapdragon-based phones) to do the rendering work directly, which the README says produces smoother performance. Phones with Samsung Exynos chips are also listed as supported, while MediaTek devices fall back to software rendering. Beyond the desktop itself, the script installs a Firefox browser, a VS Code code editor, a file manager, audio support via PulseAudio, and Wine, a compatibility layer that allows some Windows .exe programs to run on Linux. It also installs a collection of network and security tools including Nmap, Metasploit, SQLMap, Hydra, and others. The README describes these as hacking tools and frames the project as a "hacking machine," and includes a disclaimer that the tools are for educational use only on systems you own or have permission to access. Installation is a single curl or wget command that downloads and runs the install script. Requirements are Android 7.0 or higher, around 4 GB of free storage, and an internet connection. The Termux app must be downloaded from GitHub rather than the Play Store, as the Play Store version is outdated.
← abuzar-ansarii on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.