This commit is contained in:
2025-09-28 17:24:41 +02:00
parent b2a8269b53
commit ae486ba4be
2 changed files with 25 additions and 0 deletions

25
Batocera/MeshCentral.md Normal file
View File

@@ -0,0 +1,25 @@
# MeshCentral
Nachfolgend zwei **Copy-&-Paste Einzeiler** für Batocera, um den MeshAgent-Installer aus diesem Repo herunterzuladen und zu starten.
**RAW-URL des Installers:**
`https://git.familie-berner.de/Open/Installer/raw/branch/main/Batocera/MeshCentral.sh`
---
## Option 1: Interaktiv (fragt URL & Token ab)
```bash
U=https://git.familie-berner.de/Open/Installer/raw/branch/main/Batocera/MeshCentral.sh ; (wget -qO /tmp/ima.sh "$U" || wget --no-proxy -qO /tmp/ima.sh "$U" || curl -fsSL "$U" -o /tmp/ima.sh) && sh /tmp/ima.sh
```
## Option 2: Non-interaktiv (URL & Token direkt mitgeben)
```bash
U=https://git.familie-berner.de/Open/Installer/raw/branch/main/Batocera/MeshCentral.sh ; MC_URL=https://meshcentral.familie-berner.de ; MC_TOKEN='HIER-DEIN-TOKEN' ; (wget -qO /tmp/ima.sh "$U" || wget --no-proxy -qO /tmp/ima.sh "$U" || curl -fsSL "$U" -o /tmp/ima.sh) && printf '%s\n%s\n' "$MC_URL" "$MC_TOKEN" | sh /tmp/ima.sh
```
> **Hinweise**
> - Auf Batocera läuft man als **root** kein `sudo` nötig.
> - Option 2 entspricht dem MeshCentral-„Einzeiler“: URL & Enrollment-Token werden direkt übergeben.
> - Das Script legt alles unter `/userdata/system/meshagent/` ab und richtet **Autostart** via `/userdata/system/custom.sh` ein.