Termux X11 is a Termux add-on app providing Android frontend for X. The performance is better than VNC server. Although it supports touching gestures, it’s better to have your mouse and keyboard connected to the phone.
1. Install Termux X11
Termux X11 is still in alpha stage.
Install Termux
Login to your Github account. Download latest build archives from Termux-x11 Github workflows. Current version: 1.02.07
Unzip the archive and install the apk.
Launch Termux, instal x11-repo, Xvfb:
|
|
- Install Termux-x11 deb from sdcard
|
|
- Edit
~/.termux/termux.properties
with VIM:
|
|
- Uncomment
allow-external-apps=yes
. Restart Termux.
2. Run X11 apps with Termux
Open Termux X11 APP and you will see this
Start termux-x11 in Termux
|
|
- Install XFCE4 and GIMP
|
|
- Launch XFCE4 with dbus-launch
|
|
Now you should see XFCE4 runnning in Termux X11.
You could change Touchscreen input mode in Termux X11 preferences in notification bar.
If the font is too big, open System settings โ Appearance โ check Cutsom DPIใ
Press
CTRL+Z
in Termux to stop XFCE4.
3. Run X11 apps with Proot-distro
Install a proot-distro. For example Debian or Arch Linux.
Open Termux X11 app. Then go back to Termux and start Termux X11
|
|
- Login to proot-distro as a normal user with
--shared-tmp
.
|
|
- Add user to video and audio groups:
|
|
- Launch desktop environment. For example, KDE Plasma:
|
|
Now you should see DE running in Termux X11. Go to System settings โ Appearance โ Fonts and check Custom DPIใ
Install
onboard
package for the floating keyboard.
- Proot-distro have more packages than Termux. For an instance, it is possible to play Minecraft with MultiMC.
4. Starting Wayland session in Termux
Termux-x11 is a XWayland server. However it is possible to start a nested Wayland session.
Just intall weston
and launch it in the terminal:
|
|
5. GPU Acceleration
See๏ผvirglrenderer: Termux GPU Hardware Acceleration Tutorial