I have been messing round with Android for years, however seeing the processor that is utilized in small Linux bins operating Android saved nagging me with a query: what if I set up a full Linux desktop on my Android telephone?
Android has taken some steps on this course and there is now a brand new, built-in Linux terminal on Android. Nevertheless, it is nonetheless in early growth and never fairly as helpful as a full desktop atmosphere. So I made a decision to put in a full Linux desktop on my Android, and it performs higher than I anticipated.
What’s really operating in your telephone?
You’re not changing Android, you’re piggybacking on it
Picture taken by Yadullah Abidi | No attribution required.
First, let’s set some expectations. You are not dual-booting, you are not flashing a ROM, and you are not rooting your telephone. Fashionable Android telephones already ship with a Linux kernel underneath the hood, and instruments like Termux mixed with proot-distro can set up a full Debian or Ubuntu distro on high of that. You add Termux X11 to the combination, which provides an actual X server on Android, you are in enterprise.
On supported units, you should use the native Linux digital machine that Android 16 exposes via the Android Virtualization Framework. This offers you an precise Debian VM with its personal kernel and {hardware} isolation. As spectacular as that’s, it is restricted to a small set of telephones (principally Pixels) for the time being, whereas the Termux technique will work on nearly any half-decent Android telephone.
Setting it up isn’t onerous—however it isn’t easy both
Persistence issues greater than talent right here
I am not going to sugarcoat this, however if you happen to’ve by no means handled a Linux terminal or put in Linux from scratch on a system, the set up could be a little difficult. It isn’t difficult per se, however it’s a must to set up a bunch of instruments and dependencies in simply the fitting order in any other case you will not attain the graphical desktop.
Fortunately, there are tons of set up scripts accessible on GitHub that automate this course of for you, so as a substitute of putting in particular person instruments, the distribution, and the XFCE desktop, you simply run an set up script to put in every thing routinely. I used the Cell HackLab script from jarvesusaram99 on GitHub. It installs every thing you want, plus a bunch of additional utilities like Firefox, Wget, cURL, VS Code, and even Wine to get you began. It additionally has a moderately pleasant terminal interface that tells you precisely what is going on on.
Step one is to put in Termux and Termux X11 from their official GitHub repositories. Termux is the terminal we’ll be utilizing to put in our Linux distro and Termux X11 is the X server that may show the Linux GUI. Utilizing an X server avoids the additional headroom required to run a VNC server, which ends up in higher efficiency and fewer lag.
OS
Android
Worth mannequin
Free, Open-source
Termux is an Android app that brings a full Linux terminal atmosphere to your telephone, letting you run command-line instruments and packages natively.
As soon as put in, you will have to disable Android’s phantom course of killer. This feature is obtainable in Android developer settings, typically as a Disable youngster course of restrictions toggle. As soon as you have enabled it, restart your telephone and also you’re good to go.
After your telephone restarts, open Termux, and run the next command:
curl -sL https://uncooked.githubusercontent.com/jarvesusaram99/termux-hacklab/major/set up.sh | bash
The command can take anyplace from 15 to half-hour, as claimed by the set up script, relying in your telephone’s processor and web velocity. Your complete set up course of took lower than 10 minutes on my Pixel 9a, with some safety instruments unable to put in.
Subsequent, you’ll want to run the Termux X11 app. Simply open the app, decrease it, and head again to the Termux terminal. As soon as there, run the next command to begin the desktop. Then, swap to the Termux X11 app and you need to see the Linux desktop.
The second the desktop lastly seems
It is extra useable than you’d most likely think about
The primary time XFCE popped up inside Termux X11, it feels extra native than you’d assume. There is a taskbar alongside the highest, a whisker menu, a file supervisor, and every thing else you’d count on from Linux simply usually operating because it does.
This is not some streaming hack from one other machine, that is your telephone itself operating a Debian desktop. Window dragging is fluid, panel animations do not stutter, and opening the terminal and dealing in it feels identical to it will on a laptop computer.
I used to be in a position to run the total desktop construct of Firefox on my telephone with a few tabs with none slowdowns. When you open htop in a terminal window, you will rapidly see that whereas the telephone is working onerous, it is not overworked, particularly given the low {hardware} ceiling you are working with.
Why this feels ridiculously easy on a telephone
No virtualization, no overhead, simply an X server
The explanation Linux would not flip right into a slideshow the second you begin it’s since you’re not pushing pixels via VNC. Termux X11 is drawing domestically, and you’ll even lean on the GPU. On Snapdragon telephones, enabling the Turnip driver for Adreno means OpenGL workloads might be accelerated as a substitute of falling again on software program rendering.
Even on telephones with customized processors, like my Pixel 9a which has a Tensor G4 SoC from Google, the rendering was close to good. The script didn’t detect my telephone’s GPU and fell again on software program rendering, however I did not expertise any main efficiency hiccups in my testing.
OS
Android
Worth mannequin
Free, Open-source
Termux X11 is a companion app for Termux that gives a local X11 show server, letting you run full Linux GUI desktops and apps immediately on Android without having VNC.
Is Linux on Android really helpful or simply nerd bait?
Linux on Android exposes an entire new aspect of your telephone
The brief reply is sure. Plug your telephone right into a USB-C hub, add a keyboard, mouse, and exterior show, and you have got your self a helpful little Linux machine. At this cut-off date, you are solely restricted by your telephone’s {hardware} capabilities, which admittedly, aren’t as nice as desktop-grade {hardware}. Regardless, something you are able to do on a desktop Linux machine, you are able to do right here. It is also an important motive to begin utilizing Samsung DeX if in case you have a appropriate telephone.
Associated
4 issues you are able to do with a Linux terminal on Android that no common app can match
Your telephone is extra succesful than Android lets on.
This does not exchange a correct laptop computer or desktop, and it will not make sense for everybody. However the truth that a mid-range Android telephone can host a full, fairly easy Linux desktop with out rooting or putting in a customized ROM is proof to the truth that your telephone is massively underused. All you want is a few persistence and a Termux periods.

