Files
Installer/Batocera/MeshCentral/README.md
2025-09-28 18:03:53 +02:00

28 lines
1.5 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# MeshCentral (Batocera)
Dieser Installer unterstützt **Copy & Paste** des **Linux/BSD-Einzeilers** aus MeshCentral (_Devices → Add Agent → **Linux / BSD**_).
Du kannst also den kompletten Befehl aus dem MeshCentral-Fenster hier einfügen URL & Token werden automatisch geparst.
**RAW-URL des Installers:**
`https://git.familie-berner.de/Open/Installer/raw/branch/main/Batocera/MeshCentral/install-meshagent.sh`
---
## Option 1: Interaktiv (URL/Token werden abgefragt ODER aus deinem Linux/BSD-Einzeiler geparst)
```bash
U=https://git.familie-berner.de/Open/Installer/raw/branch/main/Batocera/MeshCentral/nstall-meshagent.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/install-meshagent.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.