Chromium Kiosk Mode + VNC Server without Desktop-Manager?

Hello,

i did a fresh dietpi-installation on Raspberry Pi 3B+ and tried Chromium Kiosk, it all works good, it shows my website.

I want also a vnc server (tiger vnc?) or some other possibility to check what the Pi is showing, is this possible without installing LXDE or some other DM? Whats the easiest way for this? I tried installing tigervnc (which brings lxde with it) but in kiosk mode i cannot connect or it does show a Desktop and Not the chromium kiosk

when i set autostart to desktop automatic login (with root or dietpi?), what would be the best way to start chromium kiosk (without showing mouse cursor) and also to be able to connect an check what the pi is showing on hdmi output?

i know there are some questions like this, but i did not unterstood the solutions given

many thanks in advance

1 Like

Install the TigerVNC X extension:

sudo apt install tigervnc-xorg-extension

Create an xorg config file to load the extension:


sudo mkdir /etc/X11/xorg.conf.d

sudo nano /etc/X11/xorg.conf.d/10.vnc.conf

Add the following to the config file:

Section "Module"
  Load "vnc"
EndSection

Section "Screen"
  Identifier "Screen0"
  Option "Desktop" "c0mm4nd3rk33ns-pi"
  Option "SecurityTypes" "TLSPlain"
  Option "PlainUsers" "c0mm4nd3rk33n"
EndSection

Here’s what the options do:

  • Desktop gives the vncserver a name, otherwise it’s just X11. This is the name displayed in the title of the viewer window.
  • SecurityTypes controls how the viewer authenticates. TLSPlain means that only an encrypted connection is accepted, and that a username and password from the system are used to verify authentication.
  • PlainUsers is a list of users that are allowed to login to this vncserver. Note: they all get the same permissions once logged in, so if a user is logged into the rpi desktop, any action taken will be as that user.

Reboot.

This has worked well for me.

Reference

Edit: I missed your question about hiding the cursor. Add -- -nocursor to last line of Chromium autostart script. It should look like this:

exec "$STARTX" "$FP_CHROMIUM" $CHROMIUM_OPTS "${URL:-https://dietpi.com/}" -- -nocursor
2 Likes

thanks for your answer I will try it

edit: it works, thank you very much, i thought i did some mistake, because i was unable to connect with ultravnc client, but i tried with tiger vnc client an it works exactly like i wanted it to be, great :slight_smile:

1 Like