---
title: "Installation manuelle depuis l’archive tar | Wantastic Docs"
description: "Installez wantasticd manuellement depuis l’archive de version sur n’importe quel CPU Linux (y compris ppc64, s390x et loong64), revendiquez-le avec genkey et ajoutez votre propre service."
url: "https://wantastic.app/fr/docs/install-manual"
category: "Install wantasticd"
reading_time: "5 min"
---

# Installation manuelle depuis l’archive tar

Installez wantasticd manuellement depuis l’archive de version sur n’importe quel CPU Linux (y compris ppc64, s390x et loong64), revendiquez-le avec genkey et ajoutez votre propre service.

> **Outcome:** wantasticd est installé depuis l’archive choisie, revendiqué, et maintenu en fonctionnement par un service que vous contrôlez.

## Before you start

- Un accès root sur une machine Linux disposant de /dev/net/tun.
- curl ou wget, ou un autre moyen de copier un fichier sur la machine.
- Un téléphone ou un navigateur pour vous connecter à la console Wantastic.

## Installation rapide (5 minutes)

Utilisez cette méthode pour les CPU non détectés par le programme d’installation, les machines hors ligne, les systèmes en lecture seule ou votre propre outillage. Remplacez <arch> par le nom de votre archive dans la matrice des versions (amd64, arm64, arm, 386, mips, mipsle, mips64, mips64le, riscv64, ppc64le, ppc64, s390x, loong64).

1. Téléchargez l’archive et installez le binaire avec le premier bloc. ./wantasticd version doit afficher une version.
2. Exécutez sudo wantasticd genkey. Scannez le QR code ou ouvrez la Claim URL, connectez-vous et cliquez sur Claim Device.
3. Quand le terminal affiche "Device claimed", appuyez sur Ctrl+C.
4. Créez le service avec le second bloc (systemd). Pour les autres systèmes d’init, consultez la section suivante.
5. Ouvrez Devices dans la console. L’appareil apparaît Online.

Télécharger, installer et revendiquer:

```bash
TAG=$(curl -fsSL https://get.wantastic.app/latest | cut -d+ -f1)
curl -fsSLO https://get.wantastic.app/$TAG/wantasticd-linux-<arch>.tar.gz
tar -xzf wantasticd-linux-<arch>.tar.gz && ./wantasticd version
sudo install -m 755 wantasticd /usr/local/bin/wantasticd
sudo wantasticd genkey
```

Après "Device claimed" : appuyez sur Ctrl+C, puis créez le service systemd:

```bash
sudo tee /etc/systemd/system/wantasticd.service >/dev/null <<'EOF'
[Unit]
Description=Wantastic Overlay Networking Daemon
After=network-online.target
Wants=network-online.target

[Service]
Type=simple
ExecStart=/usr/local/bin/wantasticd connect --config "/etc/wantastic/config.conf"
Restart=on-failure
RestartSec=5
KillMode=process

[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload && sudo systemctl enable --now wantasticd
```

*Installer et revendiquer: genkey affiche une Claim URL et un QR code, puis attend. Une fois que vous avez cliqué sur Claim Device dans la console, il affiche "Device claimed". Appuyez alors sur Ctrl+C et redémarrez le service.*

```
$ $ sudo wantasticd genkey
…
…
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
$ $ sudo systemctl daemon-reload && sudo systemctl enable --now wantasticd
```

*Console: Claim Wantastic Device. La Claim URL et le QR code remplissent la clé pour vous. Il vous suffit de cliquer sur Claim Device.*

1. Claim public key est déjà rempli
2. Laissez Wantastic server tel quel
3. Cliquez sur Claim Device

> **Tip:** Pas d’Internet sur la machine ? Téléchargez l’archive sur un autre ordinateur et copiez-la avec scp. genkey a toutefois besoin d’Internet pour finaliser la revendication.

## Autres systèmes d’init

Chaque service exécute la même commande : wantasticd connect --config /etc/wantastic/config.conf.

### OpenRC

/etc/init.d/wantasticd:

```sh
#!/sbin/openrc-run
description="Wantastic Overlay Networking Daemon"
command="/usr/local/bin/wantasticd"
command_args="connect --config /etc/wantastic/config.conf"
command_background=true
pidfile=/run/wantasticd.pid
depend() { need net; }
```

> Ensuite : chmod +x /etc/init.d/wantasticd && rc-update add wantasticd default && rc-service wantasticd start

### procd (OpenWrt)

/etc/init.d/wantasticd:

```sh
#!/bin/sh /etc/rc.common
START=99
STOP=10
USE_PROCD=1
start_service() {
  procd_open_instance
  procd_set_param command /usr/local/bin/wantasticd connect --config /etc/wantastic/config.conf
  procd_set_param respawn 3600 5 0
  procd_set_param term_timeout 15
  procd_set_param file /etc/wantastic/config.conf
  procd_set_param stdout 1
  procd_set_param stderr 1
  procd_close_instance
}
```

> Ensuite : chmod +x /etc/init.d/wantasticd && /etc/init.d/wantasticd enable && /etc/init.d/wantasticd start

### SysV

/etc/init.d/wantasticd:

```sh
#!/bin/sh
### BEGIN INIT INFO
# Provides: wantasticd
# Required-Start: $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
### END INIT INFO
PIDFILE=/var/run/wantasticd.pid
case "$1" in
  start) start-stop-daemon --start --background --make-pidfile --pidfile $PIDFILE --exec /usr/local/bin/wantasticd -- connect --config /etc/wantastic/config.conf ;;
  stop)  start-stop-daemon --stop --pidfile $PIDFILE; rm -f $PIDFILE ;;
  restart) $0 stop; sleep 1; $0 start ;;
  *) echo "Usage: $0 {start|stop|restart}"; exit 1 ;;
esac
```

> Ensuite : chmod +x, puis enregistrez-le avec update-rc.d wantasticd defaults (Debian) ou chkconfig --add wantasticd (RHEL).

> **Warning:** La mise à jour automatique redémarre l’agent via systemd, launchd, procd, OpenRC ou /etc/init.d/wantasticd restart. Si vous utilisez autre chose (supervisord, runit, s6, une boucle personnalisée), ajoutez --no-auto-update à la commande et mettez à jour manuellement.

## Vérifier le fonctionnement

1. Exécutez wantasticd status. La commande affiche Status: Connected et une VPN IP.
2. Ouvrez Devices dans la console. L’appareil apparaît Online.

Vérification:

```bash
wantasticd status
```

*wantasticd status: Status: Connected et une VPN IP indiquent que le tunnel est établi.*

```
$ $ 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: Fenêtre Devices : le nouvel appareil apparaît sous son nom et passe Online en quelques secondes.*

1. Rechercher par nom
2. Le statut indique Online
3. L’IP Overlay correspond à wantasticd status
4. Last seen se met à jour en continu

## Autres méthodes d’installation

Ceci n’est utile que pour l’automatisation ou des cas particuliers. L’installation rapide ci-dessus est la méthode la plus simple.

### Avec un jeton

Au lieu de genkey, connectez-vous avec un jeton issu d’Account → Secrets. --no-connect enregistre la configuration et quitte.

Connexion par jeton:

```bash
sudo wantasticd login --no-connect --token <TOKEN>
# self-hosted portal:
# sudo wantasticd login --no-connect --portal-url https://wantastic.example.com --token <TOKEN>
```

> Traitez le jeton comme un mot de passe. Toute personne qui le détient peut ajouter des appareils à votre compte jusqu’à son expiration.

*Console: Account → Secrets → + New Secret. La valeur du secret est le jeton.*

1. Ouvrez l’onglet Secrets
2. Cliquez sur + New Secret
3. Donnez-lui un nom
4. Cliquez sur Generate
5. Copiez le nouveau secret

## Verify the result

- wantasticd version affiche la version attendue.
- /etc/wantastic/config.conf existe et n’est pas vide.
- Votre service démarre au boot et wantasticd status affiche Connected.
- L’appareil apparaît Online dans Devices.

## Common issues

### Le binaire ne s’exécute pas.

```
cannot execute binary file: Exec format error
```

- **Where:** shell
- **Likely cause:** L’archive ne correspond pas au CPU.
- **Fix:** Vérifiez uname -m et téléchargez l’archive correspondante dans la matrice des versions.

Vérifier le CPU:

```bash
uname -m
```

### Le téléchargement renvoie une erreur 404.

```
curl: (22) The requested URL returned error: 404
```

- **Where:** curl
- **Likely cause:** Le nom de l’archive contient une faute de frappe, ou TAG contient encore la partie +sha.
- **Fix:** Copiez exactement le nom de l’archive depuis la matrice des versions, et utilisez cut -d+ -f1 comme indiqué.

### Le service ne trouve pas de configuration.

```
Config not found at /etc/wantastic/config.conf. Run `wantasticd genkey --out <key>` to create a claim key and wait for claim, or pass --wait-claim with an existing key.
```

- **Where:** wantasticd connect
- **Likely cause:** genkey a été exécuté sans sudo, la configuration a donc été placée dans ~/.config/wantastic.
- **Fix:** Exécutez genkey avec sudo et revendiquez à nouveau l’appareil.

Revendiquer en root:

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

### genkey ou login ne parvient pas à enregistrer la configuration.

```
Failed to prepare config path: parent /etc/wantastic is not a directory
```

- **Where:** wantasticd genkey / login
- **Likely cause:** Un ancien fichier plat /etc/wantastic existe. Les anciennes versions l’utilisaient comme configuration.
- **Fix:** Mettez l’ancien fichier de côté, puis revendiquez à nouveau.

Correctif:

```bash
sudo mv /etc/wantastic /etc/wantastic.old
sudo wantasticd genkey
```

### Vous avez cliqué sur Claim Device, mais le terminal n’affiche jamais "Device claimed".

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

- **Where:** wantasticd genkey
- **Likely cause:** L’horloge de l’appareil est fausse. La revendication ne fonctionne que si l’horloge est à moins de 30 secondes de l’heure réelle.
- **Fix:** Corrigez l’horloge. genkey reste en attente et se termine tout seul.

Activer l’heure réseau:

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

### Le service démarre et s’arrête immédiatement.

```
Failed to start agent: create device: create tun: CreateTUN("wantastic0") failed; /dev/net/tun does not exist
```

- **Where:** journal du service
- **Likely cause:** Le pilote TUN du noyau n’est pas chargé.
- **Fix:** Chargez le pilote TUN, puis redémarrez le service.

Charger TUN:

```bash
sudo modprobe tun
sudo systemctl restart wantasticd
```

- **Verify:** ls -l /dev/net/tun affiche le périphérique.

### Une seconde interface (wantastic1) apparaît, ou le journal signale un conflit de port.

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

- **Where:** journal du service
- **Likely cause:** genkey tourne encore dans le terminal alors que le service s’exécute aussi. Deux instances sont maintenant en concurrence.
- **Fix:** Appuyez sur Ctrl+C dans le terminal de genkey, puis redémarrez le service.

Redémarrage:

```bash
sudo systemctl restart wantasticd
```

### status indique Running (tunnel down), ou peers affiche HANDSHAKE never pour (server).

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

- **Where:** journal du service
- **Likely cause:** Le réseau bloque le port UDP 51820 sortant vers le hub (wg.wantastic.app), ou le DNS ne fonctionne pas.
- **Fix:** Autorisez l’UDP 51820 sortant dans votre pare-feu, puis redémarrez le service.

Tester le DNS et redémarrer:

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

- **Verify:** wantasticd peers affiche un handshake récent (par exemple "8s ago") pour (server).

## Continue with

- [Choose your install method](https://wantastic.app/fr/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.
- [Run in Docker (community pattern)](https://wantastic.app/fr/docs/install-docker): Run wantasticd in a Docker container built from the official release: build a small image, claim it once with genkey, then run it detached. Not an official image.
- [Install on MIPS routers](https://wantastic.app/fr/docs/install-mips-routers): Install wantasticd on MIPS routers and boards: one command tells you the CPU type, then copy the matching install block and claim the router with a QR code.
- [wantasticd CLI reference and operations](https://wantastic.app/fr/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/fr/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/fr/docs/errors-installer): Every message the Wantastic installers print when they stop, what it means and the easiest fix.
