Salamek / chromium-kiosk

Chromium kiosk is simple package turning your Archlinux or Debian (and alike) based PC/Raspberry into simple web kiosk using chromium.
GNU General Public License v3.0
60 stars 10 forks source link

Options for remote control #79

Closed vaaski closed 10 months ago

vaaski commented 10 months ago

Hey, I've been using this project sucessfully for years for custom signage, without any keyboard or mouse attached. Sometimes I do need to interact with it tho, and the solution of hooking a keyboard up and standing outside in the cold isn't my favorite.

I am not too familiar with Linux and it's desktops (or lack thereof), is there a way to access the kiosk remotely? With something like VNC maybe?

I've tried setting the REMOTE_DEBUGGING variable to some number (6669) and rebooting, then adding the IP and port into chrome://inspect on my laptop, but it doesn't show up unfortunately. I'm not physically in the same network, but connected over Wireguard, so that might be the issue (although ssh access works fine).

Edit: I've also tried at least taking a screenshot with scrot and xwd, but both say they're unable to open a display.

Thanks.

Salamek commented 10 months ago

Hi there are 3 ways how to control chromium-kiosk now (or its browser qiosk) 1) Using chromium remote debugging to control chromium based qiosk browser 2) Using new websocket API to control qiosk that was first introduced yesterday (lol) for #46 not documented yet (will do ASAP) to change chromium-kiosk options at runtime (options that are provided in config.yml) 3) Setup VNC to check chromium kiosk display

So first would be good to know what exactly do you need to control/check to know what approach is best for you.

But if VNC fits your need, check this wiki entry i have just created https://github.com/Salamek/chromium-kiosk/blob/master/.docs/README.md#vnc (not really tested much)

vaaski commented 10 months ago

Finally got around to testing it, thank you so much! Works almost flawlessly, just had to set the correct permissions on the password file since I kept getting "wrong password" rejections when trying to connect. This fixed it:

chmod 600 /etc/x11vnc.pwd
chown chromium-kiosk:chromium-kiosk /etc/x11vnc.pwd
Salamek commented 10 months ago

Great, i added permission change in the doc.