XWayland in proot

INTRO

Termux started working back on their archived project termux-wayland. and its working fast enough even with DE’s is proot like KDE plasma
here is my guide for setting up fastest linux GUI environment for termux ( faster that VNC ).


This content originally appeared on DEV Community and was authored by Zman-1x1

INTRO

Termux started working back on their archived project termux-wayland. and its working fast enough even with DE's is proot like KDE plasma
here is my guide for setting up fastest linux GUI environment for termux ( faster that VNC ).

Setting up termux

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

xwayland ( binaries for wayland ) & termux-x11 ( scripts to start termux-x11 app from termux ) are in x11-repo

pkg install x11-repo -y
pkg install xwayland termux-x11

Setting termux is done ✌️

Installing Termux:Xwayalnd app

for now, this app is available here

Using Termux:Xwayland to run proot-distro Linux

assuming you installed ubuntu with proot-distro with xfce4 installed

in your termux execute

termux-x11

this starts termux-x11 with all the required ENV variables

  1. now back to termux and login to distro you like ( for this tutorial let's say it is udroid proot-distro ) with --shared-tmp option. by default Wayland socket in stored in termux $TMPDIR so using --shared-tmp bind /tmp in proot linux to $TMPDIR of termux app
proot-distro login udroid --shared-tmp
  1. Now export DISPLAY environment variable with value :0, termux-x11 starts display at :0 ( default )
export DISPLAY=:0
  1. finally start your Desktop Environment ( xfce4 works better )
dbus-launch --exit-with-session startxfce4

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

Further sources

https://github.com/RandomCoderOrg/ubuntu-on-android
ubuntu-on-android ( udroid )

https://github.com/termux/termux-x11
Official termux-x11 repo

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

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


This content originally appeared on DEV Community and was authored by Zman-1x1


Print Share Comment Cite Upload Translate Updates
APA

Zman-1x1 | Sciencx (2021-11-30T03:36:50+00:00) XWayland in proot. Retrieved from https://www.scien.cx/2021/11/30/xwayland-in-proot/

MLA
" » XWayland in proot." Zman-1x1 | Sciencx - Tuesday November 30, 2021, https://www.scien.cx/2021/11/30/xwayland-in-proot/
HARVARD
Zman-1x1 | Sciencx Tuesday November 30, 2021 » XWayland in proot., viewed ,<https://www.scien.cx/2021/11/30/xwayland-in-proot/>
VANCOUVER
Zman-1x1 | Sciencx - » XWayland in proot. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/11/30/xwayland-in-proot/
CHICAGO
" » XWayland in proot." Zman-1x1 | Sciencx - Accessed . https://www.scien.cx/2021/11/30/xwayland-in-proot/
IEEE
" » XWayland in proot." Zman-1x1 | Sciencx [Online]. Available: https://www.scien.cx/2021/11/30/xwayland-in-proot/. [Accessed: ]
rf:citation
» XWayland in proot | Zman-1x1 | Sciencx | https://www.scien.cx/2021/11/30/xwayland-in-proot/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.