apt install x11vnc x11vnc -storepasswd /etc/x11vnc.pass
/etc/systemd/system/x11vnc.service
[Unit] Description="x11vnc" Requires=display-manager.service Documentation=https://gitpull.it/T489 After=display-manager.service [Service] ExecStart=/usr/bin/x11vnc -ncache 10 -xkb -noxrecord -noxfixes -noxdamage -display :0 -auth guess -rfbauth /etc/x11vnc.pass ExecStop=/usr/bin/killall x11vnc Restart=on-failure RestartSec=2 [Install] WantedBy=multi-user.target
/etc/systemd/system/autossh-reyboz.service
[Unit] Description=Expose some Border Radio services to Reyboz infrastructure After=network.target Documentation=https://gitpull.it/T489 [Service] #ExecStart=/usr/bin/autossh -M 0 -N -q -o "ServerAliveInterval 45" -o "ServerAliveCountMax 1" -o "ExitOnForwardFailure=yes" -R 2224:localhost:22 -R 0.0.0.0:10500:localhost:5900 -p 2222 border-radio-regia@reyboz.it # https://gitpull.it/w/reyboz/ports/ ExecStart=/usr/bin/autossh -M 0 -N -q -o "ServerAliveInterval 45" -o "ServerAliveCountMax 1" -o "ExitOnForwardFailure=yes" -R 2224:localhost:22 -R 0.0.0.0:10500:localhost:5900 -R 8083:localhost:8882 -R 8001:localhost:8001 -p 2222 border-radio-regia@reyboz.it # If AUTOSSH_GATETIME is set to 0 autossh will restart even if ssh fails on the first run with an exit status of 1 Environment="AUTOSSH_GATETIME=0" # restart autossh if something goes wrong Restart=on-failure # wait some seconds before retrying RestartSec=3 # disable any kind of restart rate limiting # not supported in our version #StartLimitIntervalSec=0 [Install] WantedBy=multi-user.target