Created
December 13, 2018 20:34
-
-
Save ephemient/ede65b2e848a2f246cd9412e9e7b7917 to your computer and use it in GitHub Desktop.
Chrome Remote Desktop - DISPLAY=:0 sharing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Chromoting Server for X11 | |
Requires=display-manager.service | |
Wants=network-online.target user@%i.service | |
After=display-manager.service network-online.target | |
[Service] | |
User=%I | |
Group=chrome-remote-desktop | |
PermissionsStartOnly=true | |
Environment=DISPLAY=:0 XAUTHORITY=%t/x11chromoting@%i/.Xauthority | |
ExecStartPre=/bin/sh -ec ' \ | |
su sddm -s /bin/sh -c \' \ | |
set -e; \ | |
for i in /var/run/sddm/*; do \ | |
xauth -f "$$i" -q -i nlist; \ | |
done\' | \ | |
su "$(getent passwd "%I" | awk -F: \'{print$$1}\')" -g chrome-remote-desktop -s /bin/sh -c \'xauth nmerge -\'' | |
ExecStart=/opt/google/chrome-remote-desktop/chrome-remote-desktop-host --host-config="${HOME}/.config/chrome-remote-desktop/host#????????????????????????????????.json" | |
RuntimeDirectory=x11chromoting@%i | |
Restart=always | |
StartLimitInterval=0 | |
RestartSec=1 | |
[Install] | |
WantedBy=graphical.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Notes:
host#????????????????????????????????.json
with the correct path generated after you set up the CRD host.