krmanik / Manjaro-Linux-on-Android

Install Manjaro on Android
74 stars 5 forks source link

Running Manjaro through Termux:Wayland #18

Open shim80 opened 2 years ago

shim80 commented 2 years ago

Hello, Rather than VNC, I would like to run the distro through Termux Wayland. Usually, the commands for launching desktop through Wayland is : ~ $ export XDG_RUNTIME_DIR=${TMPDIR} ~ $ Xwayland :0 & ~ $ env DISPLAY=:0 xfce4-session With proot-distro, I use --shared-tmp argument to being able to open DISPLAY :0, but that doesn't seem to work with the manjaro.sh script...

krmanik commented 2 years ago

Hi, this needs some time to test. Also I don't know the approach for this. I will update after learning the process.

shim80 commented 2 years ago

Hi, this needs some time to test. Also I don't know the approach for this. I will update after learning the process.

After looking on the proot-distro.sh script, I found the line that's related to --shared-tmp: set -- "--bind=@TERMUX_PREFIX@/tmp:/tmp" "$@"

krmanik commented 2 years ago

Okay, I will check it.

shim80 commented 2 years ago

Hello. Any update?

krmanik commented 2 years ago

I have tried following to use termux wayland on termux v0.118.0 and also update manjaro.sh file (view changes https://github.com/krmanik/Manjaro-Linux-on-Android/commit/e8bd2141c12c2363c6ce92aee4bc663194a59f6a)

Setup

  1. Download and install termux wayland app app-debug.apk from here https://github.com/termux/termux-x11/releases

  2. Use termux terminal to download and install termux-x11.deb

    
    wget https://github.com/termux/termux-x11/releases/download/1.02.06/termux-x11.deb

pkg install ./termux-x11.deb

3. Set allow external app in termux properties to true. Add this line to `.termux/termux.properties`

allow-external-apps = true

5. termux commands to run wayland

export XDG_RUNTIME_DIR=${TMPDIR} termux-x11 :1 &

6. Now proot into manjaro distro, 
start `NEW SESSION`, then run in the proot

./manjaro.sh

export DISPLAY=:0 startxfce4

mengyanshou commented 9 months ago

any update? or screenshot,thanks