FerryAr / lhroot

Linux Chroot Installer & Bootscript Magisk Module.
GNU General Public License v3.0
190 stars 20 forks source link

manjaro and debian i3wm cannot open display on termux-x11 #17

Closed Chuanhuan closed 1 year ago

Chuanhuan commented 1 year ago

Have anyone succeeded to run any desktop enviroment or windows manager on termux-X11?

Update: The XSDL is working on both distro. Just curious I follow all steps why termux-X11 failed to open display.

FerryAr commented 1 year ago

Have anyone succeeded to run any desktop enviroment or windows manager on termux-X11?

Update: The XSDL is working on both distro. Just curious I follow all steps why termux-X11 failed to open display.

I've never tested it, I am usually use Xvfb + x11vnc then access it using RealVNC for x11.

Chuanhuan commented 1 year ago

Ok, I think I figured out. In termux,

export XDG_RUNTIME_DIR=${TMPDIR}
export CHROOT_DIR=/data/manjaro
sudo busybox mount --bind $PREFIX/tmp $CHROOT_DIR/tmp

Run termux-x11 -ac


In chroot,

echo DISPLAY=:0
i3