Im using X11VNC service (installed from packages) and debian 9 with gdm3.
I created systemd file:
root@PCA55:/home/suser# cat /lib/systemd/system/x11vnc.service
[Unit]
Description=VNC
Requires=display-manager.service
After=display-manager.service
[Service]
Type=simple
ExecStart=/usr/bin/x11vnc -xkb -env FD_XDM=1 -auth guess -noxrecord -noxfixes -noxdamage -rfbauth /etc/vnc_passwd -forever -bg -rfbport 5900 -o /var/log/x11vnc.log
ExecStop=/usr/bin/killall x11vnc
[Install]
WantedBy=multi-user.target
But X11VNC still wont work fine. When i connect - i have error:
unable connect to socket: Connection refused
I understand that there are some news in GDM3 and VNC, but cant find workable issue.
P.S I saw that question. But it helpless.
Could you help to find info how works?