Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running Manjaro through Termux:Wayland #18

Open
shim80 opened this issue Mar 30, 2022 · 6 comments
Open

Running Manjaro through Termux:Wayland #18

shim80 opened this issue Mar 30, 2022 · 6 comments

Comments

@shim80
Copy link

shim80 commented Mar 30, 2022

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...

@shim80 shim80 changed the title Running Manjaro through XWayland Running Manjaro through Termux:Wayland Mar 30, 2022
@krmanik
Copy link
Owner

krmanik commented Mar 31, 2022

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

@shim80
Copy link
Author

shim80 commented Apr 1, 2022

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
Copy link
Owner

krmanik commented Apr 1, 2022

Okay, I will check it.

@shim80
Copy link
Author

shim80 commented Apr 14, 2022

Hello.
Any update?

@krmanik
Copy link
Owner

krmanik commented Apr 19, 2022

I have tried following to use termux wayland on termux v0.118.0 and also update manjaro.sh file (view changes e8bd214)

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
  1. Set allow external app in termux properties to true. Add this line to .termux/termux.properties
allow-external-apps = true
  1. termux commands to run wayland
export XDG_RUNTIME_DIR=${TMPDIR}
termux-x11 :1 &
  1. Now proot into manjaro distro,
    start NEW SESSION, then run in the proot
./manjaro.sh
export DISPLAY=:0
startxfce4

@mengyanshou
Copy link

any update? or screenshot,thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants