---
title: "Instalar en BusyBox / Linux embebido | Wantastic Docs"
description: "Instala wantasticd en dispositivos BusyBox mínimos sin systemd, procd ni OpenRC: un comando wget, escanea un código QR y haz clic en Claim Device."
url: "https://wantastic.app/es/docs/install-embedded-busybox"
category: "Install wantasticd"
reading_time: "4 min"
---

# Instalar en BusyBox / Linux embebido

Instala wantasticd en dispositivos BusyBox mínimos sin systemd, procd ni OpenRC: un comando wget, escanea un código QR y haz clic en Claim Device.

> **Outcome:** El init de BusyBox mantiene wantasticd en ejecución, arranca con el sistema y el dispositivo aparece como Online en la consola.

## Before you start

- Una shell de root en un dispositivo Linux con init de BusyBox y una carpeta /etc/init.d.
- El controlador TUN (/dev/net/tun).
- Unos 6 MB libres para el binario.
- Un teléfono o un navegador para iniciar sesión en la consola de Wantastic.

## Instalación rápida (2 minutos)

Un solo comando instala wantasticd y lo añade a /etc/inittab, para que BusyBox lo reinicie cada vez que se detenga. No necesitas token.

1. Inicia sesión en el dispositivo como root. Copia el comando de abajo y pégalo en la shell.
2. El dispositivo muestra una Claim URL y un código QR. Escanea el código QR con tu teléfono o abre la Claim URL en un navegador.
3. Inicia sesión en la consola de Wantastic. Se abre la ventana Claim Wantastic Device con la clave ya rellenada. Haz clic en Claim Device.
4. La terminal muestra "Device claimed". Pulsa Ctrl+C y ejecuta el comando de reinicio de abajo.
5. Abre Devices en la consola. El dispositivo aparece como Online.

Instalar y reclamar:

```sh
wget -qO- https://get.wantastic.app/install.sh | sh; wantasticd genkey
```

Tras "Device claimed": pulsa Ctrl+C y reinicia el servicio:

```sh
killall wantasticd
```

*Instalar y reclamar: genkey muestra una Claim URL y un código QR, y luego espera. Cuando haces clic en Claim Device en la consola, muestra "Device claimed". Entonces pulsa Ctrl+C y reinicia el servicio.*

```
$ # wget -qO- https://get.wantastic.app/install.sh | sh; wantasticd genkey
…
Skipping login. Run 'wantasticd login' to authenticate.
Added respawn entry to /etc/inittab.
…
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
$ # killall wantasticd
```

*Console: Claim Wantastic Device. La Claim URL y el código QR rellenan la clave por ti. Solo tienes que hacer clic en Claim Device.*

1. Claim public key ya está rellenado
2. Deja Wantastic server como aparece
3. Haz clic en Claim Device

> **Tip:** ¿No tienes el teléfono a mano? Copia la Claim URL de la terminal y ábrela en cualquier ordenador.

> **Operational note:** El comando de reinicio detiene wantasticd y BusyBox lo vuelve a iniciar al momento con la nueva configuración.

## Comprueba que funciona

1. Ejecuta wantasticd status. Muestra Status: Connected y una VPN IP.
2. Abre Devices en la consola. El dispositivo aparece como Online.

Comprobación:

```sh
ps | grep '[w]antasticd'      # exactly one connect process
wantasticd status
```

*wantasticd status: Status: Connected y una VPN IP indican que el túnel está activo.*

```
$ # 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: Ventana Devices: el nuevo dispositivo aparece con su nombre y pasa a Online en pocos segundos.*

1. Buscar por nombre
2. Status muestra Online
3. La IP de Overlay coincide con wantasticd status
4. Last seen se sigue actualizando

## Recomendado: desactiva la actualización automática

En BusyBox, una actualización automática puede iniciar una segunda copia de wantasticd. Desactiva la actualización automática con este comando.

Añadir --no-auto-update:

```sh
sed -i 's| connect --config \(.*\)$| connect --config \1 --no-auto-update|' /etc/init.d/wantasticd
killall wantasticd
```

> **Operational note:** Para actualizar más adelante, sigue la pestaña BusyBox de Actualizar, revertir y desinstalar.

## Gestionar el servicio

- Reinicio: killall wantasticd. BusyBox lo vuelve a iniciar.
- Detenerlo definitivamente: elimina la línea de wantasticd de /etc/inittab, ejecuta kill -HUP 1 y luego killall wantasticd.
- Registros: por defecto no hay archivo de registro. Ejecuta wantasticd connect --config /etc/wantastic/config.conf -v en primer plano para ver el registro.

## Otras formas de instalar

Solo lo necesitas para automatización o casos especiales. La instalación rápida de arriba es la forma más sencilla.

### Con un token (muchos dispositivos)

Usa un token cuando instales muchos dispositivos con un script o cuando nadie pueda escanear un código QR. Crea el token una vez en la consola: Account → Secrets → + New Secret → Generate. Sustituye <TOKEN> por él.

Instalación con token:

```sh
wget -qO- https://get.wantastic.app/install.sh | sh -s -- --token <TOKEN>
```

> Trata el token como una contraseña. Quien lo tenga puede añadir dispositivos a tu cuenta hasta que caduque.

### Instalación manual

Para CPU poco comunes, equipos sin conexión o tus propios archivos de servicio, sigue la guía Instalación manual con tarball.

*Console: Account → Secrets → + New Secret. El valor del secreto es el token.*

1. Abre la pestaña Secrets
2. Haz clic en + New Secret
3. Ponle un nombre
4. Haz clic en Generate
5. Copia el nuevo secreto

## Verify the result

- grep wantasticd /etc/inittab muestra la línea ::respawn:.
- ps muestra exactamente un proceso wantasticd connect.
- wantasticd status muestra Status: Connected.
- El dispositivo aparece como Online en Devices, también tras un reinicio.

## Common issues

### Se ejecutan dos procesos wantasticd o aparece una interfaz wantastic1.

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

- **Where:** registro / ps
- **Likely cause:** genkey sigue ejecutándose en la terminal o una actualización automática inició una segunda copia.
- **Fix:** Pulsa Ctrl+C en la terminal de genkey. Luego detén todas las copias; BusyBox volverá a iniciar exactamente una. Desactiva también la actualización automática (ver arriba).

Solución:

```sh
killall wantasticd
```

### El instalador termina sin iniciar nada.

```
Unknown init system — start manually: wantasticd connect --config /etc/wantastic/config.conf
```

- **Where:** install.sh
- **Likely cause:** El dispositivo no tiene carpeta /etc/init.d.
- **Fix:** Reclama el dispositivo y añade este bucle keep-alive al script de arranque de tu firmware (por ejemplo, rc.local).

Bucle keep-alive:

```sh
( while true; do /usr/bin/wantasticd connect --config /etc/wantastic/config.conf --no-auto-update; sleep 5; done ) >/tmp/wantasticd.log 2>&1 &
```

### El servicio no arranca o se reinicia una y otra vez.

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

- **Where:** ejecución en primer plano
- **Likely cause:** wantasticd está instalado pero el dispositivo aún no se ha reclamado, así que su archivo de configuración está vacío.
- **Fix:** Reclama el dispositivo y luego reinicia el servicio.

Reclamar y reiniciar:

```sh
wantasticd genkey
# after "Device claimed": press Ctrl+C, then:
killall wantasticd
```

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

### El servicio arranca y se detiene de inmediato.

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

- **Where:** registro del servicio
- **Likely cause:** El controlador TUN del kernel no está cargado.
- **Fix:** Carga el controlador TUN y luego reinicia el servicio.

Cargar TUN:

```sh
modprobe tun
killall wantasticd
```

- **Verify:** ls -l /dev/net/tun muestra el dispositivo.

### Hiciste clic en Claim Device, pero la terminal nunca muestra "Device claimed".

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

- **Where:** wantasticd genkey
- **Likely cause:** El reloj del dispositivo no está en hora. La reclamación solo funciona si el reloj tiene un desfase inferior a 30 segundos respecto a la hora real.
- **Fix:** Corrige el reloj. genkey sigue esperando y termina por sí solo.

Ajustar la hora una vez:

```sh
ntpd -q -p pool.ntp.org
date
```

### El instalador no puede escribir el binario.

```
Error: could not remount / read-write. Run as root or unlock the filesystem.
```

- **Where:** install.sh
- **Likely cause:** El firmware es de solo lectura.
- **Fix:** Coloca el binario en una partición con escritura con la guía Instalación manual con tarball.

### status indica Running (tunnel down), o peers muestra HANDSHAKE never para (server).

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

- **Where:** registro del servicio
- **Likely cause:** La red bloquea el puerto UDP 51820 saliente hacia el hub (wg.wantastic.app), o el DNS no funciona.
- **Fix:** Permite UDP 51820 saliente en tu firewall y luego reinicia el servicio.

Probar DNS y reiniciar:

```sh
nslookup wg.wantastic.app
killall wantasticd
```

- **Verify:** wantasticd peers muestra un handshake reciente (por ejemplo "8s ago") para (server).

### Una instalación con token falla justo después de la descarga.

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

- **Where:** install.sh / wantasticd login
- **Likely cause:** El token es incorrecto, ha caducado, se ha agotado (se alcanzó Max Uses) o se ha eliminado.
- **Fix:** Prescinde del token. Reclama el dispositivo en su lugar.

Reclamar en su lugar:

```sh
wantasticd genkey
# after "Device claimed": press Ctrl+C, then:
killall wantasticd
```

- **Verify:** El dispositivo aparece en Devices y se muestra Online.

## Continue with

- [Install on OpenWrt](https://wantastic.app/es/docs/install-openwrt): Install wantasticd on an OpenWrt router in 2 minutes over SSH: add the TUN driver, run one wget command, scan a QR code, click Claim Device.
- [Install on MIPS routers](https://wantastic.app/es/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.
- [Manual tarball install](https://wantastic.app/es/docs/install-manual): Install wantasticd by hand from the release archive on any Linux CPU (including ppc64, s390x and loong64), claim it with genkey, and add your own service.
- [Update, roll back and uninstall](https://wantastic.app/es/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.
- [OpenWrt and embedded device errors](https://wantastic.app/es/docs/errors-openwrt-embedded): kmod-tun, read-only flash, procd, full flash, wrong clocks and BusyBox issues on routers and modules.
- [wantasticd CLI reference and operations](https://wantastic.app/es/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).
