# x11vnc start on boot

Uncategorized @ 26 September 2024

This is from https://unix.stackexchange.com/questions/405185/password-problem-x11vnc

Store your password in /home/user/.vnc/passwd

Encrypted

x11vnc -storepasswd mypassword /home/user/.vnc/passwd

Clear Text

echo mypassword > /home/user/.vnc/password


Create an autostart script at /home/user/.config/autostart/x11vnc.desktop. Desktop files in this directory are executed as soon as the GUI loads.

x11vnc.desktop

[Desktop Entry]
Name=X11VNC Server
Comment=Share this desktop by VNC
Icon=computer
Type=Application
NoDisplay=false
Hidden=false
X-GNOME-Autostart-Delay=0
Exec=x11vnc -forever -shared -display :0 -rfbauth /home/user/.vnc/passwd

Look at last line

Use this if password is in Encrypted form

Exec=x11vnc -forever -shared -display :0 -rfbauth /home/user/.vnc/passwd

Clear Text saved in file

Exec=x11vnc -forever -shared -display :0 -passwdfile /home/user/.vnc/passwd

Clear Text via Command Line (not recommended)

Exec=x11vnc -forever -shared -display :0 -passwd mypassword


  • forever option is used to make x11vnc server persistent. It won’t exit after the first connection get disconnected.
  • shared options is used to allow more than 1 connections on same display

Comments are closed.