Tinkering with docker-chromium-armhf to use any armhf program e.g. vncviewer - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: Pinebook Pro (https://forum.pine64.org/forumdisplay.php?fid=111) +--- Forum: Pinebook Pro Tutorials (https://forum.pine64.org/forumdisplay.php?fid=117) +--- Thread: Tinkering with docker-chromium-armhf to use any armhf program e.g. vncviewer (/showthread.php?tid=11682) |
Tinkering with docker-chromium-armhf to use any armhf program e.g. vncviewer - wrzomar - 09-30-2020 I was struggling to connect to my Raspberry Pi VNC server, it's impossible without RealVNC Viewer, even with turned off encryption. There is vncviewer for Raspbian, but it's for armhf architecture (and for Debian) and is proprietary. The chromium-docker uses Chromium for armhf architecture in docker and it works perfectly on Manjaro, so I've decided to tinker with it. First you need to download code from @hthiemann docker-chromium-armhf using your favourite method. https://github.com/HenningThiemann/docker-chromium-armhf Then you will need to modify Dockerfile and dependencies folder to your needs. I would recommend to change ubuntu image to debian by changing FROM line: Code: FROM docker.io/arm32v7/debian:latest Code: openssh-client xterm qemu binfmt-support qemu-user-static Then you will need to download vncviewer deb for Raspberry Pi from RealVNC site, place it in dependencies folder and change ADD and RUN lines which installed Chromium so they'll install vncviewer deb file, instead. Lastly you will need to change 'mediaguy' to something else, e.g. 'andy' and CMD line to start "/usr/bin/xterm". Save Dockerfile, then run command to build docker container (just follow README instructions from docker-chromium-armhf but create different volume for home and use different tag). Last thing, you need to change 'chromium-armhf', copy this file to 'xterm-armhf', change volume name to the volume you have just created and change the line with DOCKER_IMAGE_ID (put your tag followed by ':latest' instead of 'hthiemann/chromium-armhf:latest'). Start xterm-armhf script, go to your home dir and start: Code: qemu-arm-static /usr/bin/vncviewer <enter ip> It's killing fly with a sledgehammer but works. Have fun. PS. If you need to access your VNC server through a SSH tunnel, you will need to adjust the -L option parameter: Code: -L 172.17.0.1:5901:localhost:5900 Code: qemu-arm-static /usr/bin/vncviewer 172.17.0.1:5901 Code: qemu-arm-static /usr/bin/vncviewer -ProxyServer socks://172.17.0.1:9050 <here put VNC server address> |