SDRausty / TermuxArch

You can use setupTermuxArch.bash 📲 to install Arch Linux in Amazon, Android, Chromebook and Windows. https://sdrausty.github.io/TermuxArch/docs/install
https://sdrausty.github.io/TermuxArch/
Other
1.42k stars 162 forks source link

noVNC #71

Closed SDRausty closed 5 years ago

SDRausty commented 6 years ago

@iL3D Results:

[00:15 arch ]$ export |grep 7
declare -x DISPLAY=":7"
declare -x VNC_PORT="5907"
[00:15 arch ]$ DISPLAY=:7 lwm &
[1] 32416
[00:16 arch ]$ lwm: another window manager is already runn

screenshot_20180418-001743

I used these and variants:

#!/bin/bash -e
pacman -S lxde ttf-dejavu tigervnc python python-numpy --noconfirm
gcl https://github.com/novnc/noVNC/
cd noVNC
export DISPLAY=:7
export VNC_PORT=5907
Xvnc --localhost --SecurityTypes=None $DISPLAY &
./utils/launch.sh --vnc localhost:$VNC_PORT &
startlxde
echo "To see the magic, point your favorite browser to http://127.0.0.1:6080/vnc.html"
#!/bin/bash -e
pacman -Sdd lwm --noconfirm
export DISPLAY=:7
export VNC_PORT=5907

DISPLAY=:7 lwm &
DISPLAY=:7 lxterminal &

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"

Ref https://github.com/sdrausty/TermuxArch/issues/59#issuecomment-382560269

ghost commented 5 years ago

delete multiple sessions in hide folder .vnv

SDRausty commented 5 years ago

delete multiple sessions in hide folder .vnv

Thank you @kel12345678