4月 14 16:36:08 server x11vnc[14256]: 14/04/2021 16:36:08 x11vnc version: 0.9.13 lastmod: 2011-08-10 pid: 14256
4月 14 16:36:09 server x11vnc[14256]: xauth: unable to generate an authority file name
4月 14 16:36:09 server x11vnc[14256]: 14/04/2021 16:36:09 -auth guess: failed for display=':0'
4月 14 16:36:09 server x11vnc[14256]: 14/04/2021 16:36:09 -auth guess: since we are root, retrying with FD_XDM=1
4月 14 16:36:09 server x11vnc[14256]: 14/04/2021 16:36:09 -auth guess: failed for display=':0'
4月 14 16:36:09 server systemd[1]: x11vnc.service: Main process exited, code=exited, status=1/FAILURE
4月 14 16:36:09 server killall[14462]: x11vnc:no operation found
4月 14 16:36:09 server systemd[1]: x11vnc.service: Control process exited, code=exited status=1
4月 14 16:36:09 server systemd[1]: x11vnc.service: Unit entered failed state.
4月 14 16:36:09 server systemd[1]: x11vnc.service: Failed with result 'exit-code'.
hello , my system ubuntu is 16.04
when i use sudo apt-get install x11vnc on ubuntu to install x11vnc, i config the file
sudo vi /lib/systemd/system/x11vnc.service
[Unit] Description=x11vnc service After=display-manager.service network.target syslog.target
[Service] Type=simple ExecStart=/usr/bin/x11vnc -forever -display :0 -auth guess -passwd password ExecStop=/usr/bin/killall x11vnc Restart=on-failure
[Install] WantedBy=multi-user.target
and run
systemctl daemon-reload ststemctl enable x11vnc.service systemctl start x11vnc.service systemctl status x11vnc.service
and the error info is as blow:
● x11vnc.service - x11vnc service Loaded: loaded (/lib/systemd/system/x11vnc.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since 三 2021-04-14 16:36:09 CST; 11min ago Process: 14462 ExecStop=/usr/bin/killall x11vnc (code=exited, status=1/FAILURE) Process: 14256 ExecStart=/usr/bin/x11vnc -forever -display :0 -auth guess -passwd **** (code=exited, status=1/FAILURE) Main PID: 14256 (code=exited, status=1/FAILURE)
4月 14 16:36:08 server x11vnc[14256]: 14/04/2021 16:36:08 x11vnc version: 0.9.13 lastmod: 2011-08-10 pid: 14256 4月 14 16:36:09 server x11vnc[14256]: xauth: unable to generate an authority file name 4月 14 16:36:09 server x11vnc[14256]: 14/04/2021 16:36:09 -auth guess: failed for display=':0' 4月 14 16:36:09 server x11vnc[14256]: 14/04/2021 16:36:09 -auth guess: since we are root, retrying with FD_XDM=1 4月 14 16:36:09 server x11vnc[14256]: 14/04/2021 16:36:09 -auth guess: failed for display=':0' 4月 14 16:36:09 server systemd[1]: x11vnc.service: Main process exited, code=exited, status=1/FAILURE 4月 14 16:36:09 server killall[14462]: x11vnc:no operation found 4月 14 16:36:09 server systemd[1]: x11vnc.service: Control process exited, code=exited status=1 4月 14 16:36:09 server systemd[1]: x11vnc.service: Unit entered failed state. 4月 14 16:36:09 server systemd[1]: x11vnc.service: Failed with result 'exit-code'.
how should i fix this? thanks a lot