خرید بک لینک

Hello,

I'm experiencing an issue with /etc/systemd/service/x11vnc.service:

Code:

[Unit]Description=Start x11vnc at startup.
Requires=gdm.service
After=gdm.service


[Service]
Type=simple
ExecStart=/usr/bin/x11vnc -auth /run/user/1000/gdm/Xauthority -rfbauth /home/ubuntu/.vnc/passwd -rfbport 5900 -noxdamage -forever


[Install]
WantedBy=graphical.target
The useame is "ubuntu".
The service has been enabled with:

Code:

systemctl enable x11vnc
However, at each startup, the service is not started:

Code:

systemctl -l status x11vncu25cf x11vnc.service - Start x11vnc at startup.
   Loaded: loaded (/etc/systemd/system/x11vnc.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Fri 2016-04-15 12:38:25 CEST; 55s ago
  Process: 2392 ExecStart=/usr/bin/x11vnc -auth /run/user/1000/gdm/Xauthority -rfbauth /home/ubuntu/.vnc/passwd -rfbport 5900 -noxdamage -forever (code=exited, status=1/FAILURE)
 Main PID: 2392 (code=exited, status=1/FAILURE)
In the /var/log/syslog:

Code:

x11vnc[2392]: 15/04/2016 12:38:21 *** 1 2 3 4
x11vnc[2392]: No protocol specified
x11vnc[2392]: 15/04/2016 12:38:25 XOpenDisplay(":0") failed.
However, if I run the exact same command from the CLI, it works perfectly: the daemon is launched correctly and I can coect through a VNC client from outside.

Does anyone knows what is going on? I really need to be able to launch the service when the system is unattended, i.e without being able to launch the daemon manually when the system boots up.

برچسب: نویسنده: استخدام کار تاريخ: جمعه 27 فروردين 1395 ساعت: 19:21

صفحه بندی