# إعداد الخادم البعيد

## مواصفات الجهاز

{% tabs %}
{% tab title="الحد الأدنى" %}
4 أنوية، 8GB RAM، 1TB تخزين، 8MBit/sec عرض نطاق الشبكة

Ubuntu، x86\_64، 1 TB SSD
{% endtab %}

{% tab title="الموصى به" %}
8 أنوية، 16GB RAM، 1 TB SSD، 25 MBit/sec عرض نطاق الشبكة

Ubuntu، x86\_64، 1 TB SSD
{% endtab %}
{% endtabs %}

## أضف مفتاح GPG الرسمي لـ Docker

```bash
sudo apt-get update
sudo apt-get install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
```

## أضف المستودع إلى مصادر APT

```bash
echo \
  "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \",
  $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
  sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
```

```bash
sudo apt-get install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin

# غير مطلوب، لكنه فقط للتحقق مما إذا كان Docker يعمل
sudo docker run hello-world
```

## ثبّت docker-compose

```bash
sudo snap install docker
sudo apt install -y docker-compose
```

## ثبّت Solana

```bash
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
source $HOME/.cargo/env
sh -c "$(curl -sSfL https://release.anza.xyz/stable/install)"
export PATH="/home/ubuntu/.local/share/solana/install/active_release/bin:$PATH"
```

## تحديث أذونات Docker

```bash
sudo groupadd docker
sudo usermod -aG docker $USER
sudo chown root:docker /var/run/docker.sock
sudo chmod 660 /var/run/docker.sock
```

## سجّل الخروج من جلسة SSH

```bash
logout
```

سيؤدي هذا إلى تسجيل خروجك من جلسة SSH. وهو مطلوب لإعادة تطبيق تحديثات الأذونات.

## افتح منافذ EC2 أدناه

استخدم مجموعة أمان EC2 لفتح المنافذ أدناه.

* HTTP: 80
* HTTPS: 443
* واجهة مستخدم الإيداع: 3000
* مستكشف الكتل: 1000


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.rome.builders/ar/legacy/rome-l2-setup/setup-your-l2/prep-remote-server/setup-remote-server.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
