Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 611888 - x11-misc/x11vnc-0.9.14_p20161013 startup does not respect/use configuration set in conf.d/x11vnc.init.d
Summary: x11-misc/x11vnc-0.9.14_p20161013 startup does not respect/use configuration s...
Status: RESOLVED DUPLICATE of bug 610356
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on: 611662
Blocks:
  Show dependency tree
 
Reported: 2017-03-06 13:02 UTC by Arackhaen
Modified: 2019-01-20 10:48 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arackhaen 2017-03-06 13:02:34 UTC
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;
Comment 1 Arackhaen 2017-03-06 13:28:19 UTC
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.
Comment 2 Arackhaen 2017-03-06 14:27:55 UTC
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.
Comment 3 Alex Xu (Hello71) 2017-06-08 18:28:23 UTC
probably fixed in bug 611662, seems proxy-maint email alias is broken, only use github
Comment 4 Pacho Ramos gentoo-dev 2019-01-20 10:48:06 UTC

*** This bug has been marked as a duplicate of bug 610356 ***