Instructions from Technical Bot Xwayland on Android without Root | Termux-X11
- Install
F-Droid
- Install
Termux
fromF-Droid
- Update
Termux
apt update && apt upgrade -y
- Set up Termux storage
termux-setup-storage
- Install X11-repo, wget and xfce
pkg install x11-repo wget
pkg install xfce4 xfce4-goodies xorg-xrandr xorg-xhost
- Edit termux.properties, uncomment allow-external-apps
nano .termux/termux.properties
allow-external-apps = true
- Download Termux-X11
- https://github.com/termux/termux-x11
- Go to Actions, then Build, then select the latest run, then scrolldown to the Artifacts, and download the zip file.
- Inside it will contain the
.apk
and.deb
files.
mv storage/downloads/termux-x11.zip $HOME
unzip termux-x11.zip
apt install xwayland
apt --fix-broken install
dpkg --install termux-x11.deb
cp app-debug.apk storage/downloads
- Go back to Downloads folder and install
app-debug.apk
- Run the app Termux-X11 and allow permissions.
- Pull the top bar to show Termux-X11 notifications. Unfold the notification to show more options, select Preferences.
- In the preferences you may want to check
Show additional keyboard
, inTouchscreen input mode
I preferEmulate touchpad
- Force close the app.
- This command below will open Termux-X11 but with black screen.
export XDG_RUNTIME_DIR=${TMPDIR}
termux-x11 :1 &
- Run this to start XFCE session
env DISPLAY=:1 xfce4-session
- Go back to Termux-X11 to see the environment.
- While in Termux-X11, click with two fingers to perform a right-click. Select your phone's back button to open virtual keyboard.