This commit is contained in:
Christoph 2023-04-13 02:07:58 +02:00
parent 1546d9e5c5
commit 09ddb17aa0
4 changed files with 14 additions and 2 deletions

View File

@ -49,7 +49,7 @@
- name: "(ubuntu-x11vnc-1804-amd64.yml) Transfer x11vnc.service.j2 to /lib/systemd/system/x11vnc.service"
template:
src: lib/systemd/system/x11vnc-gdm3.service.j2
src: lib/systemd/system/x11vnc-gdm3.service-ALT.j2
dest: /lib/systemd/system/x11vnc.service
- name: "(ubuntu-x11vnc-1804-amd64.yml) Enable service"

View File

@ -52,7 +52,7 @@
- name: "(ubuntu-x11vnc-2004-amd64.yml) Transfer x11vnc.service.j2 to /lib/systemd/system/x11vnc.service"
template:
src: lib/systemd/system/x11vnc-gdm3.service.j2
src: lib/systemd/system/x11vnc-gdm3.service-ALT.j2
dest: /lib/systemd/system/x11vnc.service
- name: "(ubuntu-x11vnc-2004-amd64.yml) Enable service"

View File

@ -0,0 +1,11 @@
# {{ ansible_managed }}
[Unit]
Description=Start x11vnc at startup.
After=multi-user.target
[Service]
Type=simple
ExecStart=/usr/bin/x11vnc -loop -forever -bg -rfbport 5900 -xkb -noxrecord -noxfixes -noxdamage -shared -norc -auth /run/user/{{ grp_id_gdm.stdout }}/gdm/Xauthority -rfbauth /etc/x11vnc.pass
[Install]
WantedBy=multi-user.target

View File

@ -4,6 +4,7 @@ Description=Start x11vnc at startup.
After=multi-user.target
[Service]
User=gdm
Type=simple
ExecStart=/usr/bin/x11vnc -loop -forever -bg -rfbport 5900 -xkb -noxrecord -noxfixes -noxdamage -shared -norc -auth /run/user/{{ grp_id_gdm.stdout }}/gdm/Xauthority -rfbauth /etc/x11vnc.pass