Files
Installer/Batocera/MeshCentral/README.md
2025-09-28 17:29:27 +02:00

26 lines
1.3 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
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/install-meshagent.sh`
---
## Option 1: Interaktiv (fragt URL & Token ab)
```bash
U=https://git.familie-berner.de/Open/Installer/raw/branch/main/Batocera/MeshCentral/install-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.