Answer the question
In order to leave comments, you need to log in
How to set x11vnc to start before user password is entered in Kubuntu 18.04?
Hello.
Can't get x11vnc to start normally before entering password to get access to current session and zero screen.
I set it up according to this instruction , restarted the computer, everything worked, connected from the phone. Today I turned on the computer and could not connect. I did not enter the user's password, I logged in via ssh, the x11vnc service is running, but it says in the logs that it was not possible to connect to display : 0 (as I understand it). x11vnc daemon autostart enabled.
start on login-session-start
script
/usr/bin/x11vnc -display :0 -snapfb -rfbport 5900 -forever -rfbauth -loop /etc/x11vnc.pass -o /var/log/x11vnc.log
end script
Answer the question
In order to leave comments, you need to log in
Managed to solve the problem.
Placed the daemon elsewhere /etc/systemd/system/x11vnc.service and changed it a bit:
[Unit]
Description="x11vnc"
Requires=display-manager.service
After=display-manager.service
[Service]
ExecStart=/usr/bin/x11vnc -display :0 -snapfb -rfbport 5900 -forever -rfbauth /etc/x11vnc.pass -o /var/log/x11vnc.log
ExecStop=/usr/bin/killall x11vnc
Restart=on-failure
Restartsec=2
[Install]
WantedBy=multi-user.target
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question