---
title: "التثبيت اليدوي من الأرشيف | Wantastic Docs"
description: "ثبّت wantasticd يدويًا من أرشيف الإصدار على أي معالج Linux (بما في ذلك ppc64 وs390x وloong64)، وطالب به باستخدام genkey، وأضف خدمتك الخاصة."
url: "https://wantastic.app/ar/docs/install-manual"
category: "Install wantasticd"
reading_time: "5 دقائق"
---

# التثبيت اليدوي من الأرشيف

ثبّت wantasticd يدويًا من أرشيف الإصدار على أي معالج Linux (بما في ذلك ppc64 وs390x وloong64)، وطالب به باستخدام genkey، وأضف خدمتك الخاصة.

> **Outcome:** يُثبَّت wantasticd من الأرشيف الذي اخترته، وتتم المطالبة به، وتُبقيه قيد التشغيل خدمةٌ تتحكم بها.

## Before you start

- صلاحيات root على جهاز Linux يحتوي على /dev/net/tun.
- curl أو wget، أو طريقة أخرى لنسخ ملف إلى الجهاز.
- هاتف أو متصفح لتسجيل الدخول إلى وحدة تحكم Wantastic.

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

استخدم هذا للمعالجات التي لا يكتشفها المثبّت، أو الأجهزة غير المتصلة بالإنترنت، أو الأنظمة للقراءة فقط، أو أدواتك الخاصة. ضع مكان <arch> اسم أرشيفك من مصفوفة الإصدارات (amd64، arm64، arm، 386، mips، mipsle، mips64، mips64le، riscv64، ppc64le، ppc64، s390x، loong64).

1. نزّل الأرشيف وثبّت الملف التنفيذي بالكتلة الأولى. يجب أن يطبع ./wantasticd version رقم إصدار.
2. شغّل sudo wantasticd genkey. امسح رمز QR أو افتح Claim URL، وسجّل الدخول، وانقر Claim Device.
3. عندما تطبع الطرفية "Device claimed"، اضغط Ctrl+C.
4. أنشئ الخدمة بالكتلة الثانية (systemd). لأنظمة التهيئة الأخرى، راجع القسم التالي.
5. افتح Devices في وحدة التحكم. يظهر الجهاز بحالة Online.

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

```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
```

بعد "Device claimed": اضغط Ctrl+C، ثم أنشئ خدمة 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
```

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

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

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

> **Tip:** لا يوجد إنترنت على الجهاز؟ نزّل الأرشيف على حاسوب آخر وانسخه باستخدام scp. لا يزال genkey يحتاج إلى الإنترنت لإكمال المطالبة.

## أنظمة التهيئة الأخرى

تشغّل كل خدمة الأمر نفسه: 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; }
```

> ثم: 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
}
```

> ثم: 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
```

> ثم: chmod +x، وسجّله باستخدام update-rc.d wantasticd defaults (Debian) أو chkconfig --add wantasticd (RHEL).

> **Warning:** يعيد التحديث التلقائي تشغيل الوكيل عبر systemd أو launchd أو procd أو OpenRC أو /etc/init.d/wantasticd restart. إذا كنت تستخدم شيئًا آخر (supervisord أو runit أو s6 أو حلقة مخصصة)، فأضف --no-auto-update إلى الأمر وحدّث يدويًا.

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

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

التحقق:

```bash
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 في التحديث

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

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

### باستخدام رمز

بدلًا من genkey، سجّل الدخول برمز من Account → Secrets. يحفظ --no-connect الإعدادات ثم يخرج.

تسجيل الدخول بالرمز:

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

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

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

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

## Verify the result

- يطبع wantasticd version الإصدار المتوقع.
- الملف /etc/wantastic/config.conf موجود وغير فارغ.
- تبدأ خدمتك عند الإقلاع ويعرض wantasticd status القيمة Connected.
- يظهر الجهاز بحالة Online في Devices.

## Common issues

### لا يعمل الملف التنفيذي.

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

- **Where:** الصدفة
- **Likely cause:** الأرشيف لا يطابق المعالج.
- **Fix:** تحقق من uname -m ونزّل الأرشيف المطابق من مصفوفة الإصدارات.

التحقق من المعالج:

```bash
uname -m
```

### يُرجع التنزيل 404.

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

- **Where:** curl
- **Likely cause:** يحتوي اسم الأرشيف على خطأ مطبعي، أو لا يزال TAG يتضمن الجزء +sha.
- **Fix:** انسخ اسم الأرشيف كما هو تمامًا من مصفوفة الإصدارات، واستخدم cut -d+ -f1 كما هو موضح.

### لا تجد الخدمة ملف إعدادات.

```
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 بدون sudo، فذهبت الإعدادات إلى ~/.config/wantastic.
- **Fix:** شغّل genkey باستخدام sudo وطالب بالجهاز مجددًا.

المطالبة بصلاحيات root:

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

### لا يستطيع genkey أو login حفظ الإعدادات.

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

- **Where:** wantasticd genkey / login
- **Likely cause:** يوجد ملف مسطّح قديم /etc/wantastic. كانت الإصدارات القديمة تستخدمه كملف إعدادات.
- **Fix:** انقل الملف القديم جانبًا، ثم طالب بالجهاز مجددًا.

الحل:

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

### نقرت 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 في الانتظار ويُكمل من تلقاء نفسه.

فعّل وقت الشبكة:

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

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

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

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

تحميل TUN:

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

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

### تظهر واجهة ثانية (wantastic1)، أو يُظهر السجل تعارضًا في المنفذ.

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

- **Where:** سجل الخدمة
- **Likely cause:** لا يزال genkey يعمل في الطرفية بينما تعمل الخدمة أيضًا. تتنافس الآن نسختان.
- **Fix:** اضغط Ctrl+C في طرفية genkey، ثم أعد تشغيل الخدمة.

إعادة التشغيل:

```bash
sudo systemctl restart wantasticd
```

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

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

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

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

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

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

## Continue with

- [Choose your install method](https://wantastic.app/ar/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/ar/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/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.
- [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).
- [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.
- [Installer errors (install.sh and install.ps1)](https://wantastic.app/ar/docs/errors-installer): Every message the Wantastic installers print when they stop, what it means and the easiest fix.
