Starting x11vnc: # rc-service x11vnc.init.d start * Caching service dependencies ... [ ok ] * Bringing up interface eno4 * X.X.X.X ... [ ok ] * VNC Password not set, please set one by running: `x11vnc -storepasswd /etc/x11vnc.pass` * ERROR: x11vnc.init.d failed to start Fails because it requires to have x11vnc.pass file. Even as the location of file can be configured in "/etc/conf.d/x11vnc.init.d"-file. Like this: X11VNC_RFBAUTH="/.passwd.notreallyinroot" Reproducible: Always Steps to Reproduce: 1. Configure X11VCN_RFBAUTH in /etc/conf.d/x11vnc.init.d file 2. Start x11vnc: "rc-service x11vnc start" 3. Actual Results: x11vnc did not use the configured settings in configuration file. Expected Results: x11vnc should use the configurations set in the configuration file. Other settings from configuration file are also ignored, because I also set RFB port, but it did not use that either: 06/03/2017 13:41:47 passing arg to libvncserver: -rfbauth 06/03/2017 13:41:47 passing arg to libvncserver: /etc/x11vnc.pass 06/03/2017 13:41:47 passing arg to libvncserver: -rfbport 06/03/2017 13:41:47 passing arg to libvncserver: 5900 -auth guess did not work for me (and never hasnt with x11vnc), so its probably going to be hard to use that startup script/configuration file anyway. My fix to this has been a startup script, that reads a correct file name of XAUTH file and inputs that to -auth argument of x11vnc when starting it. Like this: XA_FILE=`ls /var/run/sddm| grep "-"`; export XA_FILE; x11vnc -rfbauth /path-to-vnc-passwd-file -rfbport portto-of-rfb -allow ${VNC_ALLOWED_LIST} -ncache_cr -noxdamage -display :0 -auth /var/run/sddm/${XA_FILE} -forever -bg;
Oh, it seems that configuration file was named wrong (conf file seemed to install as "/etc/conf.d/x11vnc.conf.d", instead of "/etc/conf.d/x11vnc.init.d". I think I didn't make this myself, as I don't recall making that conf file at all. But changing the name of the file fixed the configuration file reading.
Made this change to startup script: XA_DIR="/var/run/sddm"; XA_FILE=`ls ${XA_DIR}| grep "-"`; X11VNC_AUTH=${XA_DIR}/${XA_FILE}; X11VNC_AUTH_OPTS="-auth ${X11VNC_AUTH}"; (after if to "Attempt to find X-Auth file".) I didn't know where I could read the DM as a variable, but XA_DIR could be set to /etc/conf.d/x11vnc.init.d file, so it should work from there too. This is not elegant but works and same has worked "in the old days" with KDM.
probably fixed in bug 611662, seems proxy-maint email alias is broken, only use github
*** This bug has been marked as a duplicate of bug 610356 ***