---
title: "التثبيت على BusyBox / Linux المدمج | Wantastic Docs"
description: "ثبّت wantasticd على أجهزة BusyBox المصغّرة بدون systemd أو procd أو OpenRC: أمر wget واحد، وامسح رمز QR، وانقر Claim Device."
url: "https://wantastic.app/ar/docs/install-embedded-busybox"
category: "Install wantasticd"
reading_time: "4 دقائق"
---

# التثبيت على BusyBox / Linux المدمج

ثبّت wantasticd على أجهزة BusyBox المصغّرة بدون systemd أو procd أو OpenRC: أمر wget واحد، وامسح رمز QR، وانقر Claim Device.

> **Outcome:** يُبقي BusyBox init الأداة wantasticd قيد التشغيل، وتبدأ عند الإقلاع، ويظهر الجهاز بحالة Online في وحدة التحكم.

## Before you start

- صدفة root على جهاز Linux يعمل بـ BusyBox init ويحتوي على المجلد /etc/init.d.
- تعريف TUN (/dev/net/tun).
- نحو 6 MB من المساحة الفارغة للملف التنفيذي.
- هاتف أو متصفح لتسجيل الدخول إلى وحدة تحكم Wantastic.

## التثبيت السريع (دقيقتان)

أمر واحد يثبّت wantasticd ويضيفه إلى /etc/inittab، فيعيد BusyBox تشغيله كلما توقف. لا حاجة إلى رمز.

1. سجّل الدخول إلى الجهاز بحساب root. انسخ الأمر أدناه والصقه في الصدفة.
2. يطبع الجهاز Claim URL ورمز QR. امسح رمز QR بهاتفك، أو افتح Claim URL في متصفح.
3. سجّل الدخول إلى وحدة تحكم Wantastic. تُفتح نافذة Claim Wantastic Device والمفتاح معبأ مسبقًا. انقر Claim Device.
4. تطبع الطرفية "Device claimed". اضغط Ctrl+C، ثم شغّل أمر إعادة التشغيل أدناه.
5. افتح Devices في وحدة التحكم. يظهر الجهاز بحالة Online.

التثبيت والمطالبة بالجهاز:

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

بعد "Device claimed": اضغط Ctrl+C، ثم أعد تشغيل الخدمة:

```sh
killall wantasticd
```

*التثبيت والمطالبة بالجهاز: يطبع genkey رابط Claim URL ورمز QR، ثم ينتظر. بعد أن تنقر Claim Device في وحدة التحكم، يطبع "Device claimed". اضغط بعدها Ctrl+C وأعد تشغيل الخدمة.*

```
$ # 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. يملأ Claim URL ورمز QR المفتاح نيابةً عنك. كل ما عليك هو النقر على Claim Device.*

1. Claim public key معبأ مسبقًا
2. اترك Wantastic server كما هو
3. انقر Claim Device

> **Tip:** لا يوجد هاتف في متناولك؟ انسخ Claim URL من الطرفية وافتحه على أي حاسوب.

> **Operational note:** يوقف أمر إعادة التشغيل wantasticd، ويشغّله BusyBox مجددًا فورًا بالإعدادات الجديدة.

## تحقق من أنه يعمل

1. شغّل wantasticd status. يعرض Status: Connected وعنوان VPN IP.
2. افتح Devices في وحدة التحكم. يظهر الجهاز بحالة Online.

التحقق:

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

*wantasticd status: تعني Status: Connected ووجود VPN IP أن النفق يعمل.*

```
$ # 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: نافذة Devices: يظهر الجهاز الجديد باسمه ويتحول إلى Online خلال ثوانٍ.*

1. البحث بالاسم
2. الحالة Online
3. يطابق Overlay IP ما يعرضه wantasticd status
4. يستمر Last seen في التحديث

## موصى به: أوقف التحديث التلقائي

على BusyBox، قد يشغّل التحديث التلقائي نسخة ثانية من wantasticd. أوقف التحديث التلقائي بهذا الأمر.

أضف --no-auto-update:

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

> **Operational note:** للتحديث لاحقًا، اتبع تبويب BusyBox في التحديث والتراجع وإلغاء التثبيت.

## إدارة الخدمة

- إعادة التشغيل: killall wantasticd. يشغّله BusyBox مجددًا.
- الإيقاف نهائيًا: احذف سطر wantasticd من /etc/inittab، وشغّل kill -HUP 1، ثم killall wantasticd.
- السجلات: لا يوجد ملف سجل افتراضيًا. شغّل wantasticd connect --config /etc/wantastic/config.conf -v في المقدمة لعرض السجل.

## طرق أخرى للتثبيت

تحتاج إلى هذا للأتمتة أو الحالات الخاصة فقط. التثبيت السريع أعلاه هو الطريقة الأسهل.

### باستخدام رمز (أجهزة كثيرة)

استخدم رمزًا عندما تثبّت أجهزة كثيرة بسكربت، أو عندما لا يستطيع أحد مسح رمز QR. أنشئ الرمز مرة واحدة في وحدة التحكم: Account → Secrets → + New Secret → Generate. ضعه مكان <TOKEN>.

التثبيت بالرمز:

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

> تعامل مع الرمز ككلمة مرور. يستطيع أي شخص يملكه إضافة أجهزة إلى حسابك حتى تنتهي صلاحيته.

### التثبيت اليدوي

للمعالجات غير المعتادة أو الأجهزة غير المتصلة بالإنترنت أو ملفات الخدمة الخاصة بك، اتبع دليل التثبيت اليدوي من الأرشيف.

*Console: Account → Secrets → + New Secret. قيمة السر هي الرمز.*

1. افتح تبويب Secrets
2. انقر + New Secret
3. امنحه اسمًا
4. انقر Generate
5. انسخ السر الجديد

## Verify the result

- يُظهر grep wantasticd /etc/inittab السطر ::respawn:.
- يُظهر ps عملية wantasticd connect واحدة بالضبط.
- يعرض wantasticd status القيمة Status: Connected.
- يظهر الجهاز بحالة Online في Devices، وكذلك بعد إعادة الإقلاع.

## Common issues

### تعمل عمليتا wantasticd، أو تظهر واجهة wantastic1.

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

- **Where:** السجل / ps
- **Likely cause:** لا يزال genkey يعمل في الطرفية، أو شغّل تحديث تلقائي نسخة ثانية.
- **Fix:** اضغط Ctrl+C في طرفية genkey. ثم أوقف جميع النسخ؛ سيشغّل BusyBox نسخة واحدة بالضبط مجددًا. وأوقف التحديث التلقائي أيضًا (راجع أعلاه).

الحل:

```sh
killall wantasticd
```

### ينتهي المثبّت دون تشغيل أي شيء.

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

- **Where:** install.sh
- **Likely cause:** لا يحتوي الجهاز على المجلد /etc/init.d.
- **Fix:** طالب بالجهاز، ثم أضف حلقة الإبقاء على التشغيل هذه إلى سكربت بدء التشغيل في برنامجك الثابت (مثل rc.local).

حلقة الإبقاء على التشغيل:

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

### لا تبدأ الخدمة، أو تعيد التشغيل مرارًا.

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

- **Where:** التشغيل في المقدمة
- **Likely cause:** wantasticd مثبّت لكن لم تتم المطالبة بالجهاز بعد، لذا ملف إعداداته فارغ.
- **Fix:** طالب بالجهاز، ثم أعد تشغيل الخدمة.

المطالبة وإعادة التشغيل:

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

- **Verify:** يعرض wantasticd status القيمة Status: Connected.

### تبدأ الخدمة وتتوقف فورًا.

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

- **Where:** سجل الخدمة
- **Likely cause:** تعريف TUN في النواة غير محمّل.
- **Fix:** حمّل تعريف TUN، ثم أعد تشغيل الخدمة.

تحميل TUN:

```sh
modprobe tun
killall wantasticd
```

- **Verify:** يُظهر ls -l /dev/net/tun الجهاز.

### نقرت Claim Device، لكن الطرفية لا تطبع "Device claimed" أبدًا.

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

- **Where:** wantasticd genkey
- **Likely cause:** ساعة الجهاز غير صحيحة. لا تنجح المطالبة إلا إذا كانت الساعة ضمن 30 ثانية من الوقت الفعلي.
- **Fix:** اضبط الساعة. يظل genkey في الانتظار ويُكمل من تلقاء نفسه.

اضبط الوقت مرة واحدة:

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

### لا يستطيع المثبّت كتابة الملف التنفيذي.

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

- **Where:** install.sh
- **Likely cause:** البرنامج الثابت للقراءة فقط.
- **Fix:** ضع الملف التنفيذي على قسم قابل للكتابة باتباع دليل التثبيت اليدوي من الأرشيف.

### تعرض الحالة Running (tunnel down)، أو يعرض peers القيمة HANDSHAKE never لـ (server).

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

- **Where:** سجل الخدمة
- **Likely cause:** تحظر الشبكة منفذ UDP الصادر 51820 إلى المحور (wg.wantastic.app)، أو أن DNS لا يعمل.
- **Fix:** اسمح بحركة UDP 51820 الصادرة في جدار الحماية، ثم أعد تشغيل الخدمة.

اختبار DNS وإعادة التشغيل:

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

- **Verify:** يعرض wantasticd peers مصافحة حديثة (مثل "8s ago") لـ (server).

### يفشل التثبيت بالرمز مباشرةً بعد التنزيل.

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

- **Where:** install.sh / wantasticd login
- **Likely cause:** الرمز خاطئ، أو منتهي الصلاحية، أو مستنفد (بلغ Max Uses)، أو محذوف.
- **Fix:** تخطَّ الرمز. وطالب بالجهاز بدلًا من ذلك.

المطالبة بدلًا من ذلك:

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

- **Verify:** يظهر الجهاز في Devices بحالة Online.

## Continue with

- [Install on OpenWrt](https://wantastic.app/ar/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/ar/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/ar/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/ar/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/ar/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/ar/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).
