To Installsudo apt install x11vncTo create a password filex11vnc -storepasswdThe service script : /lib/systemd/system/x11vnc.service[Unit] Description="x11vnc" Requires=display-manager.service After=lightdm.service [Service] ExecStart=/usr/bin/x11vnc -auth guess -loop -forever -safer -shared -ultrafilexfer -bg -o /var/log/x11vnc.log ExecStop=/usr/bin/killall x11vnc [Install] WantedBy=multi-user.target
Enable the service scriptsudo systemctl daemon-reload sudo systemctl enable x11vnc sudo systemctl start x11vncgreetings. NicoD
If you want to use password the correct line should be "-rfbauth /home/USERNAME/.vnc/passwd"
ExecStart=/usr/bin/x11vnc -auth guess -loop -forever -safer -rfbauth /home/USERNAME/.vnc/passwd -shared -ultrafilexfer -bg -o /var/log/x11vnc.log
USERNAME = is your own username. not "rahul"..