Turn your old Android phone into a Linux desktop with just Termux
AI-generated summary of reporting by GitHub Opensource Projects. Read the original for the full story.
Why it matters
Two shell scripts let anyone convert a dusty Android phone into a usable Linux desktop or Home Assistant hub without root, buying hardware, or flashing ROMs.
A developer released two free scripts for the Termux terminal app that turn an old Android phone into a small Linux computer. One installs a full desktop with menus and windows you can see in the Termux-X11 app; the other installs Home Assistant, software for controlling smart lights and plugs. You need a 64-bit phone with 3 GB of memory and no technical hacking of the phone itself.
This is a hobbyist project, not a product: two scripts on GitHub (github.com/mayukh4/linux-android) that repurpose spare phones as Linux desktops or smart home controllers, undercutting the typical Raspberry Pi purchase. Requirements are modest, arm64 CPU, 3 GB RAM, 5-10 GB storage, and no root is needed, but it runs on phone hardware and won't replace a main desktop. Cost is zero; support is whatever the README offers.
termux-linux-setup.sh provisions XFCE4 (default), LXQt, MATE or KDE Plasma inside Termux-X11, with GPU acceleration via Turnip/Adreno drivers on Snapdragon and fallback support for Mali. It pre-empts a known libpcre/libandroid-selinux crash and logs to ~/termux-setup.log; installation takes 10-30 minutes. setup-homeassistant.sh installs Home Assistant Core independently. Tested on a OnePlus 5T running LineageOS; Wine is optional.
Read the original
This summary exists to save you time, not to replace the source.
Key terms
Termux Termux-X11 Home Assistant XFCE4 KDE Plasma OnePlus 5T F-Droid
Was this summary useful?
One click, anonymous. It tells us which summaries to re-run.
Related reading
Code-driven AI illustrations are more useful than images from dedicated image models
Code-driven AI illustrations let designers edit assets directly in code, saving time on iteration and ensuring consistency, which is a game-changer for teams that need rapid, reusable visual content.
A hierarchical note-taking app for building large personal knowledge bases
Trilium lets users build and navigate massive personal knowledge bases without duplicating content, saving time on organization and retrieval.
Desktop apps in Go with native UI or web frontend
Go developers can now ship cross-platform desktop and mobile apps in a single small binary without cgo or heavy runtimes, cutting build complexity and deployment size.
OpenBitFun: an agent workspace with four harness modes and phone remote control
OpenBitFun lets agents run on any machine and be controlled from a phone, eliminating the need to choose between local power and remote access, saving developers time switching contexts.
Intel One Mono: a monospaced font designed with low-vision developers
Developers with low vision or eye fatigue can read code more clearly, reducing errors and improving productivity.