feat: add host setup scripts + configs for Intel Alder Lake-N

- scripts/host/setup-host-rustdesk.sh: protect RustDesk ID on host
- scripts/host/README-host.md: instructions for manual apply
- configs/rustdesk2-host.toml.template: config template
- configs/systemd/: systemd units for both VPS and host
This commit is contained in:
Orchestrator
2026-05-16 00:16:14 +01:00
parent 32451eb0f8
commit 43e7b30f41
6 changed files with 425 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
[Unit]
Description=RustDesk Client (local hbbs)
After=xorg-dummy.service network.target
[Service]
Type=simple
User=root
Environment="DISPLAY=:0"
Environment="XAUTHORITY=/root/.Xauthority"
ExecStartPre=/root/write-rustdesk-config.sh
ExecStartPre=/bin/sleep 2
ExecStart=/usr/share/rustdesk/rustdesk --server
Restart=always
RestartSec=10
[Install]
WantedBy=multi-user.target

View File

@@ -0,0 +1,23 @@
[Unit]
Description=RustDesk Server (hbbr — relay)
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
ExecStart=/usr/local/bin/hbbr
WorkingDirectory=/var/lib/rustdesk-server
Restart=on-failure
RestartSec=5s
NoNewPrivileges=true
ProtectSystem=strict
ProtectHome=true
ReadWritePaths=/var/lib/rustdesk-server
StandardOutput=journal
StandardError=journal
SyslogIdentifier=rustdesk-hbbr
[Install]
WantedBy=multi-user.target

View File

@@ -0,0 +1,23 @@
[Unit]
Description=RustDesk Server (hbbs — ID / NAT relay)
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
ExecStart=/usr/local/bin/hbbs
WorkingDirectory=/var/lib/rustdesk-server
Restart=on-failure
RestartSec=5s
NoNewPrivileges=true
ProtectSystem=strict
ProtectHome=true
ReadWritePaths=/var/lib/rustdesk-server
StandardOutput=journal
StandardError=journal
SyslogIdentifier=rustdesk-hbbs
[Install]
WantedBy=multi-user.target