---
title: "Installation auf dem Raspberry Pi | Wantastic Docs"
description: "Installiere wantasticd in 2 Minuten auf einem Raspberry Pi: ein Befehl, QR-Code scannen, auf Claim Device klicken. Inklusive Hinweis zu Pi Zero / Pi 1."
url: "https://wantastic.app/de/docs/install-raspberry-pi"
category: "Install wantasticd"
reading_time: "3 Min."
---

# Installation auf dem Raspberry Pi

Installiere wantasticd in 2 Minuten auf einem Raspberry Pi: ein Befehl, QR-Code scannen, auf Claim Device klicken. Inklusive Hinweis zu Pi Zero / Pi 1.

> **Outcome:** Dein Pi führt wantasticd als Dienst aus, wird in der Konsole als Online angezeigt und ist von überall erreichbar.

## Before you start

- Raspberry Pi 2, 3, 4, 5, 400, Zero 2 W oder CM3/CM4/CM5. (Pi Zero, Zero W und Pi 1 brauchen die WireGuard-Methode unten.)
- Raspberry Pi OS, Ubuntu, DietPi oder ein anderes Betriebssystem mit systemd.
- SSH oder ein Terminal mit sudo.
- Ein Smartphone oder ein Browser, um dich in der Wantastic-Konsole anzumelden.

## Schnellinstallation (2 Minuten)

Ein Befehl installiert wantasticd und zeigt einen QR-Code an. Du ordnest den Pi über dein Smartphone zu. Es wird kein Token benötigt.

1. Kopiere den Befehl unten und füge ihn in ein Terminal auf dem Gerät ein. Gib dein Passwort ein, wenn sudo danach fragt.
2. Das Gerät gibt eine Claim URL und einen QR-Code aus. Scanne den QR-Code mit deinem Smartphone oder öffne die Claim URL in einem Browser.
3. Melde dich in der Wantastic-Konsole an. Das Fenster Claim Wantastic Device öffnet sich mit bereits ausgefülltem Key. Klicke auf Claim Device.
4. Das Terminal gibt "Device claimed" aus. Drücke Strg+C und führe dann den Neustartbefehl unten aus.
5. Öffne Devices in der Konsole. Das Gerät wird als Online angezeigt.

Installieren und zuordnen:

```bash
curl -fsSL https://get.wantastic.app/install.sh | sudo sh; sudo wantasticd genkey
```

Nach "Device claimed": Strg+C drücken, dann den Dienst neu starten:

```bash
sudo systemctl restart wantasticd
```

*Installieren und zuordnen: genkey gibt eine Claim URL und einen QR-Code aus und wartet dann. Nachdem du in der Konsole auf Claim Device geklickt hast, gibt es "Device claimed" aus. Drücke dann Strg+C und starte den Dienst neu.*

```
$ pi@raspberrypi:~ $ curl -fsSL https://get.wantastic.app/install.sh | sudo sh; sudo wantasticd genkey
…
Skipping login. Run 'wantasticd login' to authenticate.
…
Generated device claim key: /etc/wantastic/device-claim-key.json
Public key: Vd3hK1oQ7mR2sT9uW4xY6zA8bC0dE2fG4hJ6kL8mN0P=
Server URL: https://console.wantastic.app
Claim URL: https://console.wantastic.app/#desktop?claim_public_key=Vd3hK1oQ…%3D&wantastic_server=https%3A%2F%2Fconsole.wantastic.app

█▀▀▀▀▀█ ▄▀▄ ▀█▄ █▀▀▀▀▀█
█ ███ █ ▀█▄▀▄█ █ ███ █
█ ▀▀▀ █ ▄▀█ ▀▄ █ ▀▀▀ █
▀▀▀▀▀▀▀ ▀ ▀ █ ▀ ▀▀▀▀▀▀▀
▀█▄▀▄▀▀█▀▄█▀▄▀▀▄█▀▄▀█▄
█▀▀▀▀▀█ █▄▀▄▀█ ▀▄█ ▄▀
▀▀▀▀▀▀▀ ▀▀ ▀▀▀ ▀▀▀ ▀▀▀

2026/10/29 09:14:03 Waiting for claim. Press Ctrl+C to stop.
2026/10/29 09:15:12 Device claimed. Configuration saved to /etc/wantastic/config.conf
^C
$ pi@raspberrypi:~ $ sudo systemctl restart wantasticd
```

*Console: Claim Wantastic Device. Die Claim URL und der QR-Code füllen den Key für dich aus. Du klickst nur auf Claim Device.*

1. Claim public key ist bereits ausgefüllt
2. Wantastic server unverändert lassen
3. Auf Claim Device klicken

> **Warning:** Pi Zero, Pi Zero W und Pi 1 haben eine ältere CPU (ARMv6), auf der wantasticd nicht läuft. Prüfe mit uname -m: armv6l bedeutet, dass du die reine WireGuard-Methode unter Weitere Installationswege verwenden musst.

> **Tip:** Kein Smartphone zur Hand? Kopiere die Claim URL aus dem Terminal und öffne sie auf einem beliebigen Computer.

> **Operational note:** Vor dem QR-Code gibt der Installer möglicherweise "Skipping login" oder einen Dienstfehler aus. Das ist bei einem neuen Gerät normal. Der Dienst funktioniert nach der Zuordnung und dem Neustart.

## Funktion prüfen

1. Führe wantasticd status aus. Es zeigt Status: Connected und eine VPN IP an.
2. Öffne Devices in der Konsole. Das Gerät wird als Online angezeigt.

Prüfen:

```bash
wantasticd status
```

*wantasticd status: Status: Connected und eine VPN IP bedeuten, dass der Tunnel steht.*

```
$ pi@raspberrypi:~ $ wantasticd status
Status:        Connected
Version:       v1.0.54+377f3c0
Mode:          TUN (wantastic0)
VPN IPs:       10.200.0.14/32
Public key:    q7ZkV3m1yH0dTn8pXo2bLwR4sE6uJ9cA1fG5hK8iN0M=
Server:        wg.wantastic.app:51820
Exit node:     false
Local access:  false
Auto update:   true
Traffic:       ↓ 18.4 KiB  ↑ 9.2 KiB
Peers:         2 (direct 1, relay 1)
Uptime:        4m12s
```

*Console: Fenster Devices: Das neue Gerät erscheint unter seinem Namen und wird innerhalb weniger Sekunden Online.*

1. Nach Name suchen
2. Status zeigt Online
3. Overlay-IP stimmt mit wantasticd status überein
4. Last seen wird laufend aktualisiert

## Dienst verwalten

systemctl und journalctl:

```bash
sudo systemctl status wantasticd     # is it running?
sudo systemctl restart wantasticd    # restart
sudo systemctl stop wantasticd       # stop the tunnel
sudo journalctl -u wantasticd -f     # live logs
```

> **Tip:** Ein Pi hat keine Uhrenbatterie. Bootet er ohne Netzwerk, verbindet er sich, sobald Netzwerk und Uhrzeit wieder da sind.

## Weitere Installationswege

Das brauchst du nur für Automatisierung oder Sonderfälle. Die Schnellinstallation oben ist der einfachste Weg.

### Mit Token (viele Geräte)

Verwende ein Token, wenn du viele Geräte per Skript installierst oder niemand einen QR-Code scannen kann. Erstelle das Token einmal in der Konsole: Account → Secrets → + New Secret → Generate. Ersetze <TOKEN> damit.

Token-Installation:

```bash
curl -fsSL https://get.wantastic.app/install.sh | sudo sh -s -- --token <TOKEN>
```

> Behandle das Token wie ein Passwort. Jeder, der es hat, kann bis zu dessen Ablauf Geräte zu deinem Konto hinzufügen.

### Pi Zero / Pi 1 (reines WireGuard)

ARMv6-Boards können wantasticd nicht ausführen. Verwende stattdessen WireGuard mit einer Konfiguration aus der Konsole.

1. Konsole → Devices → Add Device. Gib einen Namen ein, lass 1. Standard ausgewählt und klicke auf Add Device.
2. Wähle WireGuard → Download Config. Du erhältst wantastic-overlay.conf.
3. Kopiere die Datei auf den Pi und führe dann die Befehle unten aus.

Auf dem Pi:

```bash
sudo apt install -y wireguard-tools
sudo install -m 600 wantastic-overlay.conf /etc/wireguard/wantastic.conf
sudo systemctl enable --now wg-quick@wantastic
```

### Manuelle Installation

Für ungewöhnliche CPUs, Offline-Rechner oder eigene Service-Dateien folge der Anleitung Manuelle Installation per Tarball.

*Console: Account → Secrets → + New Secret. Der Wert des Secrets ist das Token.*

1. Tab Secrets öffnen
2. Auf + New Secret klicken
3. Namen vergeben
4. Auf Generate klicken
5. Neues Secret kopieren

## Verify the result

- uname -m gibt aarch64 oder armv7l aus (nicht armv6l).
- wantasticd status zeigt Status: Connected.
- Der Pi wird unter Devices als Online angezeigt, auch nach sudo reboot.

## Common issues

### Der Installer bricht auf einem Pi Zero, Zero W oder Pi 1 ab.

```
Error: downloaded binary does not report target version v1.0.54+377f3c0
```

- **Where:** install.sh
- **Likely cause:** Der Pi hat eine ARMv6-CPU. wantasticd braucht ARMv7 oder neuer.
- **Fix:** Verwende die reine WireGuard-Methode unter Weitere Installationswege oder nimm einen Pi Zero 2 W oder neuer.

### Der Einzeiler bricht sofort mit einem Berechtigungsfehler ab.

```
Error: /usr/local/bin is not writable, but / is already read-write. Run this installer as root.
```

- **Where:** install.sh
- **Likely cause:** sudo fehlt. Der Installer braucht root.
- **Fix:** Verwende genau den Befehl unten. sudo steht vor sh, nicht vor curl.

Korrekter Befehl:

```bash
curl -fsSL https://get.wantastic.app/install.sh | sudo sh; sudo wantasticd genkey
```

### Der Dienst startet nicht oder startet immer wieder neu.

```
Failed to load configuration: validate config: private key required
```

- **Where:** journalctl -u wantasticd
- **Likely cause:** wantasticd ist installiert, aber das Gerät ist noch nicht zugeordnet, daher ist seine Konfigurationsdatei leer.
- **Fix:** Ordne das Gerät zu und starte dann den Dienst neu.

Zuordnen und neu starten:

```bash
sudo wantasticd genkey
# after "Device claimed": press Ctrl+C, then:
sudo systemctl restart wantasticd
```

- **Verify:** wantasticd status zeigt Status: Connected.

### Die Konsole zeigt das Gerät als zugeordnet an, aber der Dienst verbindet sich trotzdem nicht.

- **Where:** wantasticd genkey
- **Likely cause:** genkey lief ohne sudo. Es hat die Konfiguration in deinem Home-Verzeichnis (~/.config/wantastic) gespeichert, und der Dienst liest dieses Verzeichnis nicht.
- **Fix:** Führe genkey erneut mit sudo aus und ordne den neuen Key zu. Lösche dann den alten, ungenutzten Geräteeintrag unter Devices.

Als root zuordnen:

```bash
sudo wantasticd genkey
# after "Device claimed": press Ctrl+C, then:
sudo systemctl restart wantasticd
```

### Du hast auf Claim Device geklickt, aber das Terminal gibt nie "Device claimed" aus.

```
Claim polling not ready: claim config rejected (401): invalid signature or timestamp out of window
```

- **Where:** wantasticd genkey
- **Likely cause:** Die Uhr des Geräts geht falsch. Die Zuordnung funktioniert nur, wenn die Uhr höchstens 30 Sekunden von der echten Zeit abweicht.
- **Fix:** Korrigiere die Uhrzeit. genkey wartet weiter und schließt von selbst ab.

Netzwerkzeit aktivieren:

```bash
sudo timedatectl set-ntp true
date
```

### Ein zweites Interface (wantastic1) erscheint, oder das Log zeigt einen Portkonflikt.

```
Port 51820 in use, using random port
```

- **Where:** Dienst-Log
- **Likely cause:** genkey läuft noch im Terminal, während der Dienst ebenfalls läuft. Jetzt konkurrieren zwei Instanzen.
- **Fix:** Drücke im genkey-Terminal Strg+C und starte dann den Dienst neu.

Neu starten:

```bash
sudo systemctl restart wantasticd
```

### wantasticd status gibt Offline aus.

```
Status: Offline — daemon not running (start: sudo systemctl start wantasticd (OpenWrt: /etc/init.d/wantasticd start))
```

- **Where:** wantasticd status
- **Likely cause:** Der Hintergrunddienst ist gestoppt, abgestürzt oder startet noch. Der Statusbefehl startet ihn nicht.
- **Fix:** Starte den Dienst.

Dienst starten:

```bash
sudo systemctl start wantasticd
```

### status meldet Running (tunnel down), oder peers zeigt HANDSHAKE never für (server).

```
Device health check failed: …
```

- **Where:** Dienst-Log
- **Likely cause:** Das Netzwerk blockiert ausgehenden UDP-Port 51820 zum Hub (wg.wantastic.app), oder DNS funktioniert nicht.
- **Fix:** Erlaube ausgehendes UDP 51820 in deiner Firewall und starte dann den Dienst neu.

DNS testen und neu starten:

```bash
nslookup wg.wantastic.app
sudo systemctl restart wantasticd
```

- **Verify:** wantasticd peers zeigt für (server) einen aktuellen Handshake (zum Beispiel "8s ago").

### Du willst das Gerät in ein anderes Konto verschieben oder mit einer neuen Zuordnung von vorn beginnen.

```
Config already exists at /etc/wantastic/config.conf — skipping login.
```

- **Where:** install.sh
- **Likely cause:** Das Gerät behält seine Konfiguration, auch wenn du den Installer erneut ausführst. Du musst die alte Konfiguration zuerst entfernen.
- **Fix:** Verschiebe die alte Konfiguration beiseite und ordne das Gerät dann mit einem neuen Key erneut zu.

Von vorn beginnen:

```bash
sudo mv "/etc/wantastic/config.conf" "/etc/wantastic/config.conf.bak"
sudo wantasticd genkey --force
# after "Device claimed": press Ctrl+C, then:
sudo systemctl restart wantasticd
```

- **Verify:** Das Gerät erscheint im neuen Konto und wantasticd status zeigt Connected.

### Eine Token-Installation schlägt direkt nach dem Download fehl.

```
Login failed: registration rejected (401): invalid or expired login token
```

- **Where:** install.sh / wantasticd login
- **Likely cause:** Das Token ist falsch, abgelaufen, aufgebraucht (Max Uses erreicht) oder gelöscht.
- **Fix:** Lass das Token weg. Ordne das Gerät stattdessen zu.

Stattdessen zuordnen:

```bash
sudo wantasticd genkey
# after "Device claimed": press Ctrl+C, then:
sudo systemctl restart wantasticd
```

- **Verify:** Das Gerät erscheint unter Devices und wird als Online angezeigt.

### Die Zuordnung oder die Anmeldung wird abgelehnt.

```
Login failed: account has reached its device limit — upgrade your plan or remove an existing device
```

- **Where:** wantasticd login / Konsole
- **Likely cause:** Die Geräteanzahl deines Tarifs ist ausgeschöpft. Die Konsole zeigt "You have reached the maximum number of devices for your plan." an.
- **Fix:** Lösche unter Devices ein nicht genutztes Gerät (Zeile → Delete) oder wechsle in einen höheren Tarif. Ordne das Gerät dann erneut zu.

## Continue with

- [Choose your install method](https://wantastic.app/de/docs/install-overview): Find your device in one table and copy one command. Most devices install in 2 minutes: install, scan a QR code, click Claim Device.
- [Install on Debian and Ubuntu](https://wantastic.app/de/docs/install-debian-ubuntu): Install wantasticd on Debian, Ubuntu, Mint and Proxmox in 2 minutes: one command, scan a QR code, click Claim Device.
- [Android and iOS (WireGuard app)](https://wantastic.app/de/docs/install-mobile-wireguard): Connect an Android or iOS phone or tablet in 2 minutes: add a device in the console and scan its QR code with the official WireGuard app.
- [wantasticd CLI reference and operations](https://wantastic.app/de/docs/wantasticd): The most used wantasticd commands first, then every command and flag, environment variables, config and state paths per OS, log lines, local access, exit node, and the claim flow (genkey / --wait-claim).
- [Update, roll back and uninstall](https://wantastic.app/de/docs/update-and-uninstall): Update or uninstall wantasticd with one line per OS. Also: how auto-update works, turning it off, rolling back to the previous binary, and purging all data.
- [Installer errors (install.sh and install.ps1)](https://wantastic.app/de/docs/errors-installer): Every message the Wantastic installers print when they stop, what it means and the easiest fix.
- [WebSSH sessions](https://wantastic.app/de/docs/webssh): Open an SSH terminal in the browser through the tunnel. Port 22 stays closed to the internet.
