You can use setupTermuxArch.bash 📲 to install Arch Linux in Amazon, Android, Chromebook and Windows. https://sdrausty.github.io/TermuxArch/docs/install
To use these as BASH scripts, they should be sourced.
====
Reply from @iL3D
lwm: another window manager is already runn
@sdrausty Since a window manager is already running, skip lwm and run only "DISPLAY=:7 any_gui_app".
Also, use 127.0.0.1 instead of localhost if the tip of noVNC is used and android has no wifi/network connection. (bug?) Using localhost will work if v1.0.0 is checked out before launching noVNC. noVNC's tip, and even LXDE, can pose problems unrelated to the current context. So here's a script that reduces the obstacles to simply getting linux windows to pop up.
#!/bin/bash -e
pacman -S tigervnc ttf-dejavu xorg-xclock xorg-xeyes --noconfirm
pacman -Sdd lwm --noconfirm
gcl https://github.com/novnc/noVNC && cd novnc && git checkout v1.0.0
export DISPLAY=:7
export VNC_PORT=5907
Xvnc --localhost --SecurityTypes=None $DISPLAY &
./utils/launch.sh --vnc localhost:$VNC_PORT &
lwm &
xclock &
xeyes &
echo "To see the magic, point your favorite browser to http://127.0.0.1:6080/vnc.html"
@iL3D Results:
I used these and variants:
To use these as BASH scripts, they should be sourced.
====
Reply from @iL3D
@sdrausty Since a window manager is already running, skip lwm and run only "DISPLAY=:7 any_gui_app".
Also, use 127.0.0.1 instead of localhost if the tip of noVNC is used and android has no wifi/network connection. (bug?) Using localhost will work if v1.0.0 is checked out before launching noVNC. noVNC's tip, and even LXDE, can pose problems unrelated to the current context. So here's a script that reduces the obstacles to simply getting linux windows to pop up.
Ref https://github.com/sdrausty/TermuxArch/issues/59#issuecomment-382560269