Hi everyone, I'm trying to set up bspwm WM on Arch Linux in proot-distro on Termux (Android phone). I have Termux-X11 app installed and running, but when I try to launch bspwm or even simple apps like xterm, I get errors like 'Can't open display :0' and 'The server closed the connection: socket, pipe or stream error'.
Here's what I've done:
- Installed Termux and Termux:X11 from GitHub
- Ran pkg install x11-repo termux-x11-nightly proot-distro in Termux.
- Installed Arch: proot-distro install archlinux.
- In Arch: pacman -Syu (updated with some warnings but completed).
- Installed packages: pacman -S bspwm sxhkd picom polybar rofi thunar xorg xorg-xinit xorg-xauth mesa dbus xorg-xhost xterm xorg-xclock.
- Configured bspwmrc, sxhkdrc, picom.conf (basic configs from online guides).
- In main Termux: termux-x11 :0 &.
- In Arch: export DISPLAY=:0, xhost +, then bspwm & or startx or dbus-launch --exit-with-session bspwm.
- Termux:X11 app shows black screen with cursor, but no window opens, and errors in terminal.
Attached screenshot of errors. My Android version is 12 Any fix for this 'no screens found' or connection refused? Thanks!