Skip to content

Commit 86a877b

Browse files
committed
Update Readme and server_linux_install.sh
1 parent b4c1913 commit 86a877b

File tree

4 files changed

+67
-7
lines changed

4 files changed

+67
-7
lines changed

README.MD

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,25 @@ You can run this project in two ways:
9191
1. Use the prebuilt binaries
9292
2. Build and run directly from the **Go** source
9393

94-
### Step 2.1: Use the Prebuilt Binaries (Recommended ✅)
94+
### Step 2.1: Quick Linux Server Setup 🐧
95+
96+
If you want to set up the server on a Linux machine, the easiest way is using the automated installation script. Run the following command in your server terminal:
97+
98+
```bash
99+
bash <(curl -Ls https://raw.githubusercontent.com/masterking32/MasterDnsVPN/main/server_linux_install.sh)
100+
```
101+
102+
This command downloads the installer from GitHub and performs the server installation and configuration automatically. When the setup finishes, the server starts and prints the **Encryption Key** in the terminal logs. Copy this key, because you will need it on the client side. It is also stored in `encrypt_key.txt` next to the server executable.
103+
104+
> ⚠️ **Important Note 1:** Before running this script, you must own a domain and complete the DNS setup from Section 1.
105+
>
106+
> ⚠️ **Important Note 2:** This script installs the Linux server only. To run the client on your own machine, use Step 2.2 below.
107+
>
108+
> ⚠️ **Important Note 3:** You can also use this script for updates. Running it again after a new release will update the server automatically.
109+
110+
---
111+
112+
### Step 2.2: Use the Prebuilt Binaries (Recommended ✅)
95113

96114
For convenience, the client and server binaries are published in the release page. Download the correct build for your operating system and extract it.
97115

@@ -109,6 +127,8 @@ For convenience, the client and server binaries are published in the release pag
109127

110128
#### Server Download Links 📤
111129

130+
*(Use these builds when you do not want to use the automated Linux installer.)*
131+
112132
| Operating System | Architecture | Suitable For | Direct Download |
113133
| :--- | :--- | :--- | :--- |
114134
| Windows 🪟 | `AMD64` (64-bit) | Windows Server, Windows 10 and 11 | [Download Windows Server ⬇️](https://github.com/masterking32/MasterDnsVPN/releases/latest/download/MasterDnsVPN_Server_Windows_AMD64.zip) |
@@ -119,7 +139,7 @@ For convenience, the client and server binaries are published in the release pag
119139

120140
---
121141

122-
### Step 2.2: Prepare and Run on Linux 🗂️
142+
### Step 2.2.1: Prepare and Run on Linux 🗂️
123143

124144
After downloading the ZIP file on Linux:
125145

README_ES.MD

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,25 @@ Podés usar este proyecto de dos maneras:
9191
1. Usar binarios precompilados
9292
2. Compilar y ejecutar directamente desde el código fuente en **Go**
9393

94-
### Paso 2.1: Usar binarios precompilados (recomendado ✅)
94+
### Paso 2.1: Configuración rápida del servidor en Linux 🐧
95+
96+
Si querés configurar el servidor en una máquina Linux, la forma más simple es usar el script de instalación automática. Ejecutá este comando en la terminal de tu servidor:
97+
98+
```bash
99+
bash <(curl -Ls https://raw.githubusercontent.com/masterking32/MasterDnsVPN/main/server_linux_install.sh)
100+
```
101+
102+
Este comando descarga el instalador desde GitHub y hace automáticamente la instalación y configuración del servidor. Cuando termina, el servidor arranca y muestra la **clave de cifrado** en los logs de la terminal. Copiala, porque la vas a necesitar en el cliente. También queda guardada en `encrypt_key.txt` junto al ejecutable del servidor.
103+
104+
> ⚠️ **Nota importante 1:** Antes de ejecutar este script, debés tener un dominio propio y haber completado la configuración DNS de la Sección 1.
105+
>
106+
> ⚠️ **Nota importante 2:** Este script instala solo el servidor Linux. Para ejecutar el cliente en tu equipo, usá el Paso 2.2.
107+
>
108+
> ⚠️ **Nota importante 3:** También podés usar este script para actualizar el servidor. Si sale una versión nueva, volver a ejecutarlo actualiza la instalación.
109+
110+
---
111+
112+
### Paso 2.2: Usar binarios precompilados (recomendado ✅)
95113

96114
Para mayor comodidad, los binarios del cliente y del servidor se publican en la página de releases. Descargá la versión correcta para tu sistema operativo y extraela.
97115

@@ -109,6 +127,8 @@ Para mayor comodidad, los binarios del cliente y del servidor se publican en la
109127

110128
#### Enlaces de descarga del servidor 📤
111129

130+
*(Usá estos binarios si no querés usar el instalador automático de Linux.)*
131+
112132
| Sistema operativo | Arquitectura | Adecuado para | Descarga directa |
113133
| :--- | :--- | :--- | :--- |
114134
| Windows 🪟 | `AMD64` (64-bit) | Windows Server, Windows 10 y 11 | [Descargar servidor Windows ⬇️](https://github.com/masterking32/MasterDnsVPN/releases/latest/download/MasterDnsVPN_Server_Windows_AMD64.zip) |
@@ -119,7 +139,7 @@ Para mayor comodidad, los binarios del cliente y del servidor se publican en la
119139

120140
---
121141

122-
### Paso 2.2: Preparar y ejecutar en Linux 🗂️
142+
### Paso 2.2.1: Preparar y ejecutar en Linux 🗂️
123143

124144
Después de descargar el ZIP en Linux:
125145

README_FA.MD

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,25 @@ TRC20 chain: `TLApdY8APWkFHHoxebxGY8JhMeChiETqFH`
9191
1. استفاده از فایل‌های کامپایل‌شدهٔ آماده
9292
2. اجرای مستقیم از روی سورس با **Go**
9393

94-
### گام ۲.۱: استفاده از نسخه‌های کامپایل‌شده (روش پیشنهادی ✅)
94+
### گام ۲.۱: نصب و راه‌اندازی سریع سرور لینوکس 🐧
95+
96+
اگر قصد دارید سرور را روی یک سیستم لینوکسی راه‌اندازی کنید، ساده‌ترین راه استفاده از اسکریپت نصب خودکار است. کافی است دستور زیر را در ترمینال سرور وارد کنید:
97+
98+
```bash
99+
bash <(curl -Ls https://raw.githubusercontent.com/masterking32/MasterDnsVPN/main/server_linux_install.sh)
100+
```
101+
102+
این دستور اسکریپت نصب را از گیت‌هاب دانلود کرده و مراحل نصب و پیکربندی سرور را به‌صورت خودکار انجام می‌دهد. بعد از پایان نصب، سرور اجرا می‌شود و **کلید رمزنگاری** در لاگ ترمینال نمایش داده می‌شود. این کلید را حتماً کپی کنید، چون در سمت کلاینت به آن نیاز دارید. این کلید همچنین در فایل `encrypt_key.txt` کنار فایل اجرایی سرور ذخیره می‌شود.
103+
104+
> ⚠️ **نکتهٔ مهم ۱:** قبل از اجرای این اسکریپت، باید مالک دامنه باشید و تنظیمات DNS بخش ۱ را کامل کرده باشید.
105+
>
106+
> ⚠️ **نکتهٔ مهم ۲:** این اسکریپت فقط سرور لینوکس را نصب می‌کند. برای اجرای کلاینت روی سیستم خودتان، از گام ۲.۲ استفاده کنید.
107+
>
108+
> ⚠️ **نکتهٔ مهم ۳:** از همین اسکریپت می‌توانید برای به‌روزرسانی سرور هم استفاده کنید. اجرای دوباره‌ی آن بعد از انتشار نسخه جدید، سرور را آپدیت می‌کند.
109+
110+
---
111+
112+
### گام ۲.۲: استفاده از نسخه‌های کامپایل‌شده (روش پیشنهادی ✅)
95113

96114
برای راحتی شما، فایل‌های اجرایی کلاینت و سرور از قبل در releaseها منتشر می‌شوند. کافی است نسخه مناسب سیستم‌عامل خود را دانلود و از حالت فشرده خارج کنید.
97115

@@ -109,6 +127,8 @@ TRC20 chain: `TLApdY8APWkFHHoxebxGY8JhMeChiETqFH`
109127

110128
#### لینک‌های دانلود سرور (Server) 📤
111129

130+
*(اگر نمی‌خواهید از اسکریپت نصب خودکار لینوکس استفاده کنید.)*
131+
112132
| سیستم‌عامل (OS) | پردازنده (Architecture) | مناسب برای سیستم‌های... | لینک دانلود مستقیم |
113133
| :--- | :--- | :--- | :--- |
114134
| ویندوز (Windows) 🪟 | `AMD64` (64-bit) | ویندوز سرور، ویندوز ۱۰ و ۱۱ | [دانلود سرور ویندوز ⬇️](https://github.com/masterking32/MasterDnsVPN/releases/latest/download/MasterDnsVPN_Server_Windows_AMD64.zip) |
@@ -119,7 +139,7 @@ TRC20 chain: `TLApdY8APWkFHHoxebxGY8JhMeChiETqFH`
119139

120140
---
121141

122-
### گام ۲.۲: آماده‌سازی و اجرا در لینوکس 🗂️
142+
### گام ۲.۲: آماده‌سازی و اجرا در لینوکس 🗂️
123143

124144
در لینوکس، پس از دانلود فایل ZIP:
125145

server_linux_install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ log_info "Starting server once to generate encryption key..."
315315
APP_PID=$!
316316
READY=false
317317
for _ in {1..10}; do
318-
if grep -q "Using encryption key" "$TMP_LOG" 2>/dev/null; then
318+
if grep -q "Encryption Key Loaded" "$TMP_LOG" 2>/dev/null; then
319319
READY=true
320320
break
321321
fi

0 commit comments

Comments
 (0)