Your cellphone already does loads. It takes calls, sends messages, helps you to browse the web, and nearly every thing else. However trendy Android telephones are blurring the traces between what a smartphone and a correct pc can do, so in the event you’re feeling your cellphone is slightly restricted for what you wish to do, there is a answer.
I put in a full Linux desktop on my Pixel 9a, and never solely is it buttery clean, nevertheless it’s additionally fairly succesful. I ended up turning my Pixel right into a pocket workstation, and the end result was a tool far more succesful than I gave it credit score for.
Why trouble placing Linux on a Pixel?
Generally, Android simply isn’t sufficient anymore
Desktop-class ARM boards have been within the information for some time now. The hype bought me pondering; if these boards can run full Linux distros, why not my cellphone? Trendy Pixels have already got loads of RAM, quick storage, and stable GPUs. What they do not have is a standard desktop atmosphere or the same old Linux tooling specified by a manner builders are used to.
As an alternative of flashing a customized ROM or sacrificing the wonderful Pixel UI, the purpose was to layer a full Linux atmosphere alongside Android and see how far I may push my cellphone as each a cellphone and a transportable workstation.
Getting Linux operating is surprisingly easy
A fast setup that feels virtually too simple
Picture taken by Yadullah Abidi | No attribution required.
As talked about earlier than, you need not do something flashy or unlock the bootloader in your Pixel to put in desktop Linux. Android 16 now natively helps a Linux terminal, however if you need the complete desktop expertise, help is shaky.
For a full desktop expertise, the best manner is to make use of the Termux and Termux X11 apps mixed with proot-distro to put in a full Debian or Ubuntu distro. Organising is not laborious, nevertheless it’s not simple both. For those who’ve by no means handled a Linux terminal or put in Linux from scratch on a system, the set up is usually a little tough. It is not difficult per se, however it’s a must to set up a bunch of instruments and dependencies in simply the precise order, in any other case you will not attain the graphical desktop.
OS
Android
Value mannequin
Free, Open-source
Fortunately, tons of set up scripts obtainable on GitHub automate this course of for you, so as an alternative of putting in particular person instruments, the distribution, and the XFCE desktop, you simply run an set up script to put in every thing robotically. I used the Cellular 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 reasonably pleasant terminal interface that tells you precisely what is going on on.
OS
Android
Value 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 instantly on Android without having VNC.
Turning your cellphone into an actual workstation
Terminals, apps, and precise productiveness on a cellphone
Picture taken by Yadullah Abidi | No attribution required.
A Linux desktop on a 6 or 7-inch show is extra of a proof-of-concept than an precise workstation. It really works, however you want some peripherals to have the ability to do some precise work.
The subsequent logical step is to plug in a keyboard, mouse, and an exterior show. You should use nearly any USB-C hub with an HDMI port and a few USB ports to realize this, and earlier than you recognize it, your Pixel has became a pc.
As soon as linked, Android’s desktop or casting mode and the Linux GUI mix into one thing that feels very near a small thin-and-light laptop computer, particularly when the shell, editor, browser, and file supervisor are operating contained in the Linux session as an alternative of separate Android apps. It is completely affordable to run a full code editor like VS Code (or equal), Python servers, Git, and even a terminal multiplexer on this setup. The cellphone’s storage acts because the backing disk for every thing, so you have bought loads of storage for a brief workstation.
Picture taken by Yadullah Abidi | No attribution required.
As a result of the Linux atmosphere has entry to hardware-accelerated graphics, scrolling, window dragging, and video playback are smoother than VNC over Android equivalents that get a Linux desktop to indicate up in your cellphone.
For each day work, you possibly can simply write and check scripts, edit Markdown paperwork, handle Git repositories, and even do gentle internet improvement work instantly from the Pixel, utilizing the cellphone’s information connection and Wi-Fi like several regular pc.
When the periods want to maneuver, disconnecting the monitor strikes every thing again onto the cellphone display with out killing the Linux desktop, so a half-written article or a half-debugged script can go wherever you are headed subsequent.
It’s highly effective—however not good
The place efficiency shines and the place it falls aside
As enjoyable as it’s to see a Linux desktop operating in your Pixel, there are nonetheless limits you must account for. There are tweaks you may make to enhance the Pixel desktop expertise, nevertheless it’s not an entire alternative for a devoted laptop computer, and heavy workloads like massive compiles, container-heavy deployments, and multi-tab shopping will shortly remind you that you just want precise compute energy.
Storage, though plentiful, can also be extra constrained than on a standard desktop. Allocating tens of gigabytes to a number of distros or large datasets will erode away your cellphone’s storage, that means you will not have sufficient left for the cellphone to perform as common.
There are additionally the same old sandboxing quirks: file sharing between Android and Linux is not all the time seamless, and a few {hardware} options stay locked away behind Android’s permission system. That mentioned, the setup is much extra stable than old-school VNC hacks, and the no-root requirement means getting began is as simple as punching a number of instructions in Termux. There is no danger of bricking your Pixel in the event you do that, which makes all the course of effectively price a shot.
This setup makes extra sense than it ought to
Why a pocket workstation isn’t as loopy because it sounds
This sort of pocket workstation shines in particular eventualities like emergency fixes, on-the-go improvement, some writing, or documentation work. If a Git repo wants a fast patch and I am away from my desk, I need not carry my laptop computer round with me. The identical applies to operating small servers like Copyparty on Android, cellular IDEs, or internet editors.
Associated
4 issues you are able to do with a Linux terminal on Android that no common app can match
Your cellphone is extra succesful than Android lets on.
Even for non-developers, the setup is surprisingly sensible: a distraction-free, gentle writing atmosphere, a well-known Linux desktop with admin instruments, or a non-public shopping profile that stays contained in the Linux VM as an alternative of the primary Android atmosphere.
Keep in mind, it is not about changing a desktop PC, however about shrinking an honest Linux machine to suit into your pocket. Everytime you want one, it is able to go together with a USB-C cable and some equipment.
