New Andronix 2.0 is here: new installer, Termux:X11 desktops, Modded OS 2.0. Early bird: 4 days only Read what's new

Blog · Guide

Termux:X11: A Full-Screen Linux Desktop on Android

What Termux:X11 is, why it beats VNC for a Linux desktop on your phone, where to download it, how to open XFCE, KDE Plasma or LXQt with one command, and how to fix a black screen.

For years, the way to see a Linux desktop on an unrooted Android phone was VNC: run a VNC server in Termux, then connect to it from a VNC viewer app on the same phone. It works, but it means two apps, a password, and a picture that’s compressed and sent over a network connection, even when both ends are on the same phone.

Termux:X11 replaces that. It’s an Android app from the Termux project that is the X server: Linux apps draw straight into it, full screen, at your phone’s own resolution. Andronix 2.0 uses it as the main way to open the desktop.

XFCE in Termux:X11, full screen on a phone

Termux:X11 or VNC?

Termux:X11 VNC
Where the desktop shows Full screen on the phone In a VNC viewer app, on the phone or another device
Setup One app, one command A VNC server, a viewer app, a connection and a password
Resolution The phone’s own screen size Whatever you start the server with
Use it from a laptop or tablet No Yes
Sound with Andronix Through the phone’s speakers Through the phone’s speakers

Use Termux:X11 for the desktop on the phone itself. Keep VNC for reaching the desktop from another device. Andronix sets up both; see Other ways to connect (VNC).

Neither one uses the phone’s GPU: the desktop is drawn in software either way. Termux:X11 still feels smoother on the phone, because the picture doesn’t go through a VNC connection.

Where to get Termux:X11

Termux:X11 is published only on GitHub. It isn’t on F-Droid or the Play Store, so be careful with copies elsewhere.

  1. Open the Termux:X11 nightly release.
  2. Download termux-x11-universal-debug.apk (the universal build runs on every CPU type).
  3. Open the file and install it. Android may ask you to allow installs from your browser or file manager first.

It needs Android 7 or newer, and it works with every current Termux build: F-Droid, GitHub and Google Play.

There’s also a Termux package, termux-x11 (the server side). You don’t need to install it yourself: andronix installs it the first time you open a desktop.

Open a Linux desktop in Termux:X11

You need a distro with a desktop. If you don’t have one yet, this line installs Debian 13 with XFCE (replace debian and xfce with what you want, for example ubuntu and kde):

(curl -fsSL --retry 4 --retry-delay 3 https://dl.andronix.app/get.sh -o $PREFIX/tmp/get.sh || curl -4 -fsSL --retry 2 --retry-delay 3 https://dl.andronix.app/get.sh -o $PREFIX/tmp/get.sh) && sh $PREFIX/tmp/get.sh install debian --de xfce

Desktops you can pick: XFCE, LXQt, MATE, and KDE Plasma on Debian, Ubuntu 26.04 and Kali. See Choose a distro and desktop.

Then, in Termux (not inside the distro), run:

andronix desktop

With more than one distro, name it: andronix desktop debian. Andronix:

  1. installs the termux-x11 package in Termux if it’s missing;
  2. starts the X server and sound;
  3. switches to the Termux:X11 app;
  4. opens your desktop there, logged in as your user.
andronix desktop debian

If the Termux:X11 app isn’t installed, the command tells you, with the download link.

The first time

Keep Termux open

The desktop runs inside the Termux session that started it. Switch between Termux and Termux:X11 with Android’s app switcher; don’t close Termux. To stop the desktop, log out from the desktop menu, press Ctrl + C in that Termux session, or run andronix desktop stop from another session.

Make it comfortable

Fix common Termux:X11 problems

The desktop disappears, and Termux says “signal 9”

[Process completed (signal 9) - press Enter] means Android 12 or newer stopped your distro, because a desktop starts many processes. Turn that off once (on Android 14 and newer it’s a switch in Developer options): Process completed (signal 9).

Termux:X11 shows nothing, or “not connected”

Opening the Termux:X11 app by itself shows no desktop: it waits for one to be started from Termux. Run andronix desktop in Termux first; it brings Termux:X11 to the front when the desktop is ready.

The screen stays black

Some phones’ graphics drivers need a different drawing mode. Stop the desktop, then start it with:

ANDRONIX_X11_ARGS=-legacy-drawing andronix desktop

If red and blue look swapped, use -force-bgra instead. On phones with a kernel older than 4.8 (many Android 8 and 9 phones; check with uname -r), every desktop stays black, in Termux:X11 and VNC alike, while the command line works. See The desktop is black, slow or closes.

Only one desktop opens

You can have one Termux:X11 desktop open at a time. Stop the first one before you open another distro’s.

Common questions

Is Termux:X11 safe?

It’s open source, from the official Termux organization on GitHub, where you can read the code and the release history. Download it only from that release page.

Does Termux:X11 need root?

No. Neither does Termux or Andronix.

Can I use Termux:X11 with proot-distro or my own setup?

Yes. Termux:X11 is a general X server; its README explains how to start it by hand. Andronix’s andronix desktop does those steps for you, plus sound, logging in as your user, and a hint about signal 9 on Android 12 and newer.

Does it work on a tablet?

Yes. The desktop uses the screen size Termux:X11 is given, so a tablet gets a bigger desktop. Change the resolution in Termux:X11’s preferences if the layout looks too small or too large.

Next steps

More guides