Skip to content

XWayland in proot

Zman-1x1 edited this page Aug 25, 2021 · 10 revisions

Xwayland In proot

Termux:Xwayland app for termux is a project left by termux before release. and a fork of it is under development. as lot of it is old and less polished you may observe a lot of bugs and may experience app crashes
active maintainer: https://github.com/suhan-paradkar

Setting up apps & dependencies

Setting up termux

Official f-droid termux may not work for this so get termux from https://github.com/termux/termux-app/actions

after install do some updates and installations
Just copy the code below in termux and done!

pkg install x11-repo wget -y
wget https://github.com/suhan-paradkar/xwayland4tewmux/releases/download/xwayland/libwayland-protocols_1.17-4_$(dpkg --print-architecture).deb
wget https://github.com/suhan-paradkar/xwayland4tewmux/releases/download/xwayland/libwayland_1.19.0_$(dpkg --print-architecture).deb
wget https://github.com/suhan-paradkar/xwayland4tewmux/releases/download/xwayland/xwayland_1.20.5-6_$(dpkg --print-architecture).deb
pkg in ./libwayland-protocols_1.17-4_$(dpkg --print-architecture).deb ./libwayland_1.19.0_$(dpkg --print-architecture).deb ./xwayland_1.20.5-6_$(dpkg --print-architecture).deb

Setting termux is done ✌️

Setting up Termux:Xwayalnd app

for now, this app is available here https://github.com/suhan-paradkar/termux-wayland/releases
so download and install it

Using Termux:Xwayland to run proot-distro Linux

assuming you installed ubuntu with proot-distro with xfce4 installed

Here starts setp by step process

Open termux app the minimize it and open Termux:Xwayland app
then open termux and use

export XDG_RUNTIME_DIR=$TMPDIR
Xwayland :0 

this starts connection at port :0
Open a new session then start your prooted Linux

proot-distro login hippo --shared-tmp
# you can replace hippo
# you can use hippo --shared-tmp

export DISPLAY value to :0

export DISPLAY=:0

then invoke your de start script. for xfce4 it is startxfce4 and others may differ

startxfce4

That's all now if you open minimized Xwayland:Termux app you see xfce4 running

Show some love 💖⭐

even it's a fork @suhan-paradkar managed to make a private reboot and make it work. it would be great if you show some love by staring his GitHub repo
if you are a Wayland or Linux expert make sure to help this tiny platform where people try to do this kind of uncommon things

Further sources

https://github.com/suhan-paradkar/termux-wayland/wiki/Launching-GUI-applications

https://github.com/wayland-project/wayland

https://at.projects.genivi.org/wiki/display/DIRO/Wayland+Application+on+Android

Clone this wiki locally