
On Thu, Feb 11, 2021 at 9:45 PM Adam Mizerski <adam@mizerski.pl> wrote:
I'm using x0vncserver, which is available in package xorg-x11-Xvnc.
With vncpasswd command you can create a password file ($HOME/.vnc/passwd by default).
Then I have a script in ~/.config/autostart-scripts/vnc.sh: #!/bin/bash exec x0vncserver -PasswordFile ~/.vnc/passwd
And that's it. KDE automatically executes it on startup (other DE might as well, IDK). When connecting with vncviewer you're asked for password, that was set up in the first step.
If you want no security at all (NOT RECOMMENDED!!!) you can use x0vncserver -SecurityTypes None
The vnc password is also used by x11vnc. That controls access to x11vnc itself. The part I have a problem with is access to the authorization file that allows access by x11vnc to the X11 server controlling the display. I don't really need that security in the X server. I would be ok disabling it so it is not needed. -- Roger Oberholtzer