NO.85 · Geek & System

Termux:X11

An X11 display for Termux, on the phone screen

Package · check this against the real thingcom.termux.x11
DeveloperTermux community
LicenceGPL-3.0
PlatformAndroid
PriceFree
VerdictIt puts an X server inside an Android app so X11 programs running in Termux, from a file manager to a browser, appear in a window you can actually use.

Why it stayed obscure

Getting it working means Termux, environment variables, a window manager and a resolution setting, and one mistake gives a black screen with no error, which discourages almost everyone.

What it actually does

Termux:X11 is a display server packaged as an app, and Termux talks to it through the DISPLAY variable. Point a desktop environment at it, Xfce or LXQt for instance, and you get a working X session inside a window; point a single program at it and you get that program alone. Touch input maps to a pointer, an external keyboard and mouse are supported, and resolution and scaling can be adjusted. The display is only one part of the setup, and the surrounding environment is where it usually goes wrong.

Core features

  • X11 display server running as an Android app
  • Lightweight desktops such as Xfce and LXQt
  • External keyboard, mouse and touch mapping
  • Adjustable resolution and display scaling

Who it is for

  • A Linux GUI program must run on the phone itself
  • You already use Termux and want windows
  • You test Linux builds while travelling

Before you install

NoteSetup involves manual package installation and environment configuration, and a mistake yields a black screen rather than a message; performance and battery life are poor. It is not a route to running desktop software at desktop speed.

Download

This edition links to F-Droid where the app is published there, and to the developer's own page otherwise. Nothing is mirrored here. If an app is offered through several channels, keep one: the signatures differ and the system will refuse to update across them.

The package name com.termux.x11 is the most reliable way to check authenticity: confirm it in the system installer before installing, then compare the developer name with the table above.

Questions

Can it run Photoshop?

No. It runs Linux software built for ARM, and heavy proprietary desktop applications are not available or not practical. Command-line tools, text editors and lightweight GTK programs are the realistic target.

Why do I get a black screen?

Usually DISPLAY is unset, the X server is not running, or the program needs a library the environment lacks. Start with a single small client such as xeyes, confirm that it draws, then add the desktop.