x11 waydroid via x11vnc + noVNC (for webpage axx)

Post Reply
zemerdon
Site Admin
Posts: 310
Joined: Mon Jan 23, 2023 8:13 pm

x11 waydroid via x11vnc + noVNC (for webpage axx)

Post by zemerdon »

i run the noVNC proxy from my server host (192.168.1.10).
the weston-waydroid is run from a ubuntu server + kde (x11) VM with an A380 GPU passed through (192.168.1.11).

reason: GPS tracker application kept messing with my audio whenever my phone screen went off, so here's a dedicated workaround, accessible from anywhere, and looks 98% the same.

noVNC host (192.168.1.10)

clone novnc

Code: Select all

git clone https://github.com/novnc/noVNC.git
crontab

Code: Select all

@reboot sleep 60 && /home/zemerdon/noVNC/utils/novnc_proxy --listen 192.,168.1.1:60800 --vnc 192.168.1.11:5900 &
0 * * * * /home/zemerdon/noVNC/utils/novnc_proxy --listen 192.168.1.10:6080 --vnc 192.168.1.11:5900 &
waydroid host (192.168.1.11)

install kde via tasksel.

Code: Select all

sudo tasksel
install waydroid (but not run it, yet)

Code: Select all

sudo apt install curl ca-certificates -y
curl -s https://repo.waydro.id | sudo bash
sudo apt install waydroid -y
Install way_script (runs arm on waydroid)

Code: Select all

git clone https://github.com/casualsnek/waydroid_script
cd waydroid_script
python3 -m venv venv
venv/bin/pip install -r requirements.txt
sudo venv/bin/python3 main.py
run weston (from X11 terminal , not SSH)

Code: Select all

weston --backend=x11 --width=450 --height=800 &> $HOME/weston.id -- weston-terminal
run x11vnc

Code: Select all

x11vnc -forever -loop -listen 192.168.1.11 -id 58720261

get waydroid google play store number for registration.

Code: Select all

sudo waydroid shell -- sh -c "sqlite3 /data/data/*/*/gservices.db 'select * from main where name = \"android_id\";'"
install android app into waydroid.

Code: Select all

waydroid app install gps365.apk
find weston window number a different way.

Code: Select all

xwininfo
weston.sh

Code: Select all

weston --backend=x11 --width=450 --height=800 &> $HOME/weston.id -- weston-terminal
vnc_weston.sh (gets window number from weston.id)

Code: Select all

x11vnc -forever -loop -listen 192.168.1.11 -id $(awk 'NR==46 {print $7}' weston.id) &
I also disabled KDE lockscreen and as much graphical stuff as possible and junk i didn't need running. KDE was specifically for one android application only.
Post Reply