Page MenuHomeGitPull.it

Expose VNC server and other services via SSH reverse tunnel to Border Regia
Closed, ResolvedPublic2 Points

Description

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

See Border Radio Reference

Event Timeline

valerio.bozzolan triaged this task as Normal priority.
valerio.bozzolan updated the task description. (Show Details)
valerio.bozzolan renamed this task from Setup VNC server exposed via SSH tunnel to Border Regia to Expose VNC server and other services via SSH reverse tunnel to Border Regia.Nov 28 2020, 13:21
valerio.bozzolan updated the task description. (Show Details)
valerio.bozzolan set the point value for this task to 2.
valerio.bozzolan updated the task description. (Show Details)
valerio.bozzolan updated the task description. (Show Details)
valerio.bozzolan updated the task description. (Show Details)