mirror of
https://github.com/rustdesk/doc.rustdesk.com.git
synced 2025-06-25 12:12:16 +02:00
Merge pull request #350 from xlionjuan/master
Add translation for zh-tw
This commit is contained in:
commit
0778917da2
@ -1,7 +1,24 @@
|
||||
---
|
||||
title: "RustDesk 說明文件"
|
||||
weight: 1
|
||||
---
|
||||
|
||||
# RustDesk
|
||||
# RustDesk說明文件
|
||||
|
||||
RustDesk 是一個功能齊全的開源遠端控制替代方案,您可以自行架設以確保安全性,且設置簡單。您可以對於您的數據具有完整的掌控權,無需擔心安全問題。客戶端是開源的,您可以在我們的網站上選擇購買功能完善的專業版伺服器,或者使用基於我們專業版伺服器的免費和開源伺服器。
|
||||
|
||||
### 特色
|
||||
- 支援 Windows、macOS、Linux、iOS、Android、Web 平台。
|
||||
- 支援 VP8 / VP9 / AV1 軟體編解碼器,以及 H264 / H265 硬體編解碼器。
|
||||
- 掌控您的數據,輕鬆在您的設備自行架設。
|
||||
- 基於 NaCl 的點對點(P2P)連線,提供端到端加密。
|
||||
- 對於Windows,無需管理員權限或安裝,可按需提升權限。
|
||||
- 我們喜歡保持事物簡單,並會盡可能使其更加簡單化。
|
||||
|
||||
### GitHub 代碼庫
|
||||
主要客戶端代碼庫:https://github.com/rustdesk/rustdesk</br>
|
||||
開源伺服器代碼庫:https://github.com/rustdesk/rustdesk-server</br>
|
||||
專業版伺服器代碼庫:https://github.com/rustdesk/rustdesk-server-pro</br>
|
||||
說明文件代碼庫:https://github.com/rustdesk/doc.rustdesk.com</br>
|
||||
|
||||
{{% children depth="3" showhidden="true" %}}
|
||||
|
@ -5,4 +5,134 @@ pre: "<b>1. </b>"
|
||||
chapter: true
|
||||
---
|
||||
|
||||
[English](/docs/en/client/)
|
||||
### 簡介
|
||||
RustDesk 客戶端可用於透過我們的 RustDesk 伺服器(無論是開源還是專業版)連接設備,可從 [GitHub](https://github.com/rustdesk/rustdesk/releases/latest) 下載。
|
||||
|
||||
### 支援平台
|
||||
- Microsoft Windows
|
||||
- macOS
|
||||
- Debian 衍生版(Ubuntu ≥ 16、Linux Mint 等)
|
||||
- Red Hat 衍生版(CentOS、Fedora ≥ 18、Rocky Linux 等)
|
||||
- Arch Linux/Manjaro
|
||||
- openSUSE
|
||||
- NixOS
|
||||
- AppImage / Flatpak
|
||||
- Android
|
||||
- iOS(不支援被控制)
|
||||
- Web
|
||||
|
||||
### 安裝
|
||||
|
||||
#### Windows
|
||||
|
||||
從 GitHub 下載 exe 檔案並安裝。
|
||||
|
||||
要靜默安裝,請使用 `--silent-install` 參數執行安裝程序。
|
||||
|
||||
#### macOS
|
||||
|
||||
從 GitHub 下載 dmg 檔案,更多資訊可在 [macOS 頁面](https://rustdesk.com/docs/zh-tw/client/mac/)找到。
|
||||
|
||||
打開 dmg 檔案並將 `RustDesk` 拖到 `應用程式`。
|
||||
|
||||
允許 RustDesk 運行。
|
||||
|
||||
啟用所需的權限並按照 RustDesk 左側的提示完成設置。
|
||||
|
||||
#### Linux
|
||||
|
||||
請參照以下指南安裝各種 Linux "口味" 的 RustDesk(安裝程序可在 GitHub 或發行版的代碼庫中找到)。
|
||||
|
||||
##### Debian 衍生版
|
||||
|
||||
```sh
|
||||
# 請忽略錯誤的磁碟占用率報告
|
||||
sudo apt install -fy ./rustdesk-<version>.deb
|
||||
```
|
||||
|
||||
##### Red Hat 衍生版
|
||||
|
||||
```sh
|
||||
sudo yum localinstall ./rustdesk-<version>.rpm
|
||||
```
|
||||
|
||||
##### Arch Linux/Manjaro
|
||||
|
||||
```sh
|
||||
sudo pacman -U ./rustdesk-<version>.pkg.tar.zst
|
||||
```
|
||||
|
||||
##### openSUSE(≥ Leap 15.0)
|
||||
|
||||
```sh
|
||||
sudo zypper install --allow-unsigned-rpm ./rustdesk-<version>-suse.rpm
|
||||
```
|
||||
|
||||
##### Nix / NixOS(≥ 22.05)
|
||||
|
||||
臨時進入一個帶有 `rustdesk` 的 shell:
|
||||
|
||||
```sh
|
||||
nix shell nixpkgs#rustdesk
|
||||
```
|
||||
|
||||
在當前用戶配置文件中安裝:
|
||||
|
||||
```sh
|
||||
nix profile install nixpkgs#rustdesk
|
||||
```
|
||||
|
||||
要安裝在 NixOS 的系統中,請在編輯 `configuration.nix` 後執行 `nixos-rebuild switch --flake /etc/nixos`:
|
||||
|
||||
```
|
||||
environment.systemPackages = with pkgs; [
|
||||
...
|
||||
rustdesk
|
||||
];
|
||||
```
|
||||
|
||||
#### Android
|
||||
從我們的 GitHub 安裝 apk,更多資訊可在 [Android 頁面](https://rustdesk.com/docs/zh-tw/client/android/)找到。
|
||||
|
||||
#### iOS(iPhone、iPad)
|
||||
從 [App Store](https://apps.apple.com/us/app/rustdesk-remote-desktop/id1581225015) 下載。
|
||||
|
||||
### 使用
|
||||
安裝後(或作為臨時可執行文件執行),RustDesk 將連接到公共伺服器。您將在底部看到消息 (1) "準備就緒,若您需要更快的連線速度,您可以選擇自行建立伺服器"。在左上角您會看到您的 (2) ID,(3) 一次性密碼,以及在右側的 (4) 方框,用於連接到另一台電腦(如果您知道他們的 ID)。
|
||||
|
||||

|
||||
|
||||
要訪問設置,請點擊 ID 右側的 (5) 選單按鈕 [ ⋮ ]。
|
||||
|
||||
在設置中您會找到:
|
||||
- 一般 - 服務控制、主題、硬體編解碼器、音訊、錄製和語言
|
||||
- 安全 - 控制權限、密碼、更改 ID 和進階安全設定
|
||||
- 網絡 - 在此處設置您自己的伺服器設置和代理伺服器
|
||||
- 顯示 - 控制遠端工作階段的顯示設置和其他預設選項,同步剪貼板等
|
||||
- 帳戶 - 可與專業版伺服器一起使用,以登入 API
|
||||
- 關於 - 顯示有關軟體的資訊。
|
||||
|
||||
### 配置 RustDesk
|
||||
有多種方法可以配置 RustDesk。
|
||||
|
||||
最簡單的方法是使用 RustDesk 伺服器專業版,您可以獲得一個加密的配置字符串,這可以與 `--config` 一起使用來導入設置。要做到這一點:
|
||||
1. 在您使用的任何作業系統上打開終端機,到 RustDesk 安裝的文件夾,如 Windows 上的 `C:\Program Files\RustDesk`,Linux 上的 `/usr/bin`。
|
||||
2. 使用命令 `rustdesk.exe --config your-encrypted-string`,例如 `rustdesk.exe --config 9JSPSvJzNrBDasJjNSdXOVVBlERDlleoNWZzIHcOJiOikXZr8mcw5yazVGZ0NXdy5CdyciojI0N3boJye`。
|
||||
|
||||
您也可以手動設定客戶端。要做到這一點:
|
||||
1. 點擊設定。
|
||||
2. 點擊網絡。
|
||||
3. 點擊解鎖網絡設定。
|
||||
4. 輸入您的 ID、中繼、API(如果使用專業版伺服器)和您的 Key。
|
||||
|
||||

|
||||
|
||||
如果您手動設定了客戶端,您可以搜尋 `RustDesk2.toml` 文件(在用戶文件夾中),並使用 `--import-config` 以類似於上面的範例。
|
||||
|
||||
### 命令行參數
|
||||
- `--password` 可用於設置固定密碼。
|
||||
- `--get-id` 可用於取得 ID。
|
||||
- `--set-id` 可用於設置 ID,請注意 ID 應以字母開頭。
|
||||
- `--silent-install` 可用於在 Windows 上靜默安裝 RustDesk。
|
||||
|
||||
更多高級參數可在 [此處](https://github.com/rustdesk/rustdesk/blob/bdc5cded221af9697eb29aa30babce75e987fcc9/src/core_main.rs#L242) 找到。
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
title: 安卓
|
||||
title: Android
|
||||
weight: 22
|
||||
---
|
||||
|
||||
|
@ -2,13 +2,33 @@
|
||||
title: 自架伺服器
|
||||
weight: 5
|
||||
pre: "<b>2. </b>"
|
||||
chapter: true
|
||||
---
|
||||
|
||||
### 章節 2
|
||||
|
||||
# 自架伺服器
|
||||
|
||||
如果您想要和我們聊聊關於[自架 RustDesk 伺服器](https://github.com/rustdesk/rustdesk-server)的事,請加入我們的 [Discord](https://discord.com/invite/nDceKgxnkV) 伺服器。
|
||||
|
||||
支援服務可透過我們的 [Discord](https://discord.com/invite/nDceKgxnkV) 獲得開源版本的協助,以及透過[Email](mailto:support@rustdesk.com)獲得專業版支援。
|
||||
|
||||
### 基本設置
|
||||
|
||||
https://rustdesk.com/docs/zh-tw/self-host/rustdesk-server-oss/install/#set-up-your-own-server-instance-manually
|
||||
|
||||
### 所需的連結埠
|
||||
|
||||
自行架設的 RustDesk 伺服器所需的連結埠主要取決於您的環境以及您想要使用 RustDesk 做什麼。在文件中展示的範例通常會建議打開所有埠號。
|
||||
|
||||
核心連結埠:\
|
||||
TCP `21115-21117` \
|
||||
UDP `21116`
|
||||
|
||||
上述是 RustDesk 運作所需的最小埠號,這些連結埠處理訊號和中繼,以及 NAT 穿透。
|
||||
|
||||
此外,如果您想使用 [RustDesk 網頁客戶端](https://rustdesk.com/docs/en/dev/build/web/),可以開放 TCP 埠號 `21118` 和 `21119`。
|
||||
|
||||
對於沒有 SSL Proxy 的專業用戶,您將需要開放 TCP 埠號 `21114` 以使 API 能夠運作,或者使用 SSL Proxy 則開放 TCP 連結埠 `443`。
|
||||
|
||||
### 測試連結埠是否開放
|
||||
|
||||
要檢查連結埠是否已開放且運作正常,您可以使用 PowerShell 的 `test-netconnection domain.com -p 21115` 指令或者使用 [CanYouSeeMe.org](https://canyouseeme.org/) 網站。
|
||||
|
||||
|
||||
{{% children depth="3" showhidden="true" %}}
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
title: 群暉
|
||||
title: Synology 群暉
|
||||
weight: 22
|
||||
---
|
||||
|
||||
|
@ -2,91 +2,85 @@
|
||||
title: Windows & pm2
|
||||
weight: 20
|
||||
---
|
||||
{{% notice note %}}
|
||||
Windows 安全政策較為複雜,如果這份教程對您不適用,或您遇到連線不穩定的情況,請考慮轉移到 `Linux` 伺服器。
|
||||
{{% /notice %}}
|
||||
|
||||
## 十字路口
|
||||
|
||||
您現在有兩個選擇,您可以使用 pm2 (較簡單) 或 NSSM (稍難) 來啟動 rustdesk 伺服器
|
||||
您現在有兩個選擇,您可以使用 pm2 (較簡單) 或 NSSM (稍難) 來啟動 RustDesk 伺服器
|
||||
使用 NSSM 的好處:
|
||||
- Backwards compatibility with older windows (Windows Server 2008R2/Windows 7 and earlier although untested).
|
||||
- Ideal for Windows Server
|
||||
- Auto start on boot without login (The user who created the startup entry does not need to log on for it to start).
|
||||
- Running both binaries as Services.
|
||||
- Standalone (no dependency on nodejs)
|
||||
- 與舊版 Windows(Windows Server 2008 R2/Windows 7 及更早版本,雖未經測試)的向下兼容。
|
||||
- 適合 Windows 伺服器使用
|
||||
- 開機自動啟動,無需登入(建立啟動項目的用戶無需登入即可啟動)。
|
||||
- 將兩個執行檔作為服務運行。
|
||||
- 獨立運行(不依賴於 nodejs)。
|
||||
|
||||
使用 pm2 的好處:
|
||||
- Good idea if you run the server on the same computer as your main work computer
|
||||
- You logon regularly to the user that created the rustdesk startup entry
|
||||
- 使用者友好
|
||||
- 如果您在主要工作的電腦上運行伺服器,這是一個好主意。
|
||||
- 您會定期登入創建 RustDesk 啟動項目的使用者帳戶。
|
||||
- 對使用者友好
|
||||
|
||||
## 使用 NSSM 安裝
|
||||
### 使用 NSSM 安裝
|
||||
|
||||
### 安裝 NSSM
|
||||
Please [download](https://nssm.cc/release/nssm-2.24.zip) and extract NSSM select the appropriate
|
||||
architecture to your windows system (if x86 use the contents of the win32 folder, if x64 use the
|
||||
contents of win64 folder). It is also best practice to move the binary of NSSM into the
|
||||
`Program Files\NSSM` (NSSM once started as a service, it cannot be moved from the directory it was placed in.
|
||||
thus it is best to tuck it away in Program files) directory of your Installation drive (Usually the C drive).
|
||||
It is also advisable to add the path (such as `C:\Program Files\NSSM`) to the path variable.
|
||||
#### 安裝 NSSM
|
||||
請[下載](https://nssm.cc/release/nssm-2.24.zip)並解壓縮 NSSM,選擇適合您的 Windows 系統架構的版本(如果是 x86,使用 win32 資料夾內的檔案;如果是 x64,則使用 win64 資料夾)。最佳做法是將 NSSM 的執行檔移動到 `Program Files\NSSM` 目錄(一旦作為服務啟動,NSSM 不能從其放置的目錄中移動,因此最好放在 `Program Files` 中)。建議將路徑(如 `C:\Program Files\NSSM`)添加到環境變數中。
|
||||
|
||||
#### 檢查 NSSM 是否正確安裝
|
||||
如果一切正確,`C:\Program Files\NSSM` 資料夾(在這個例子中使用 C: 磁碟,但您可以使用安裝 Windows 的任何磁碟或所需的任何路徑)應該只包含 `nssm.exe` 檔案。
|
||||
|
||||
### Checking if NSSM is installed properly
|
||||
If you've done everything correctly the folder `C:\Program Files\NSSM` (in this example I use the C:
|
||||
drive but you can use whatever drive you installed windows to or whatever path you desire) should
|
||||
only contain the file `nssm.exe`.
|
||||
我們將在範例中使用 `C:\Program Files\NSSM`。
|
||||
|
||||
在此範例中,我們將使用 `C:\Program Files\NSSM`
|
||||
打開命令提示字元並運行 `nssm`,如果您看到幫助頁面,則可以進行下一步。
|
||||
|
||||
Open Command prompt and run `nssm` if you see a help page you are ready to move onto the next step
|
||||
#### 運行 hbbr 和 hbbs
|
||||
下載 [RustDesk 伺服器](https://github.com/rustdesk/rustdesk-server/releases)的 Windows 版本。解壓縮至 `C:\Program Files\RustDesk Server`(或任何您想要的地方,只要確保在服務安裝後不會改變)。現在回到命令提示字元。
|
||||
|
||||
### 執行 hbbr 和 hbbs
|
||||
Download the Windows version of [server program](https://github.com/rustdesk/rustdesk-server/releases).
|
||||
Unzip the program to the `C:\Program Files\RustDesk Server` (or anywhere you desire just make sure it
|
||||
doesn't change after the service is installed). now get back to Command prompt
|
||||
|
||||
在此範例中,我們將使用 `C:\Program Files\RustDesk Server`
|
||||
我們將在範例中使用 `C:\Program Files\RustDesk Server`。
|
||||
```cmd
|
||||
nssm install "RustDesk hbbs service" "C:\Program Files\RustDesk Server\hbbs.exe" -r 0.0.0.0 -k _
|
||||
nssm install "RustDesk hbbr Service" "C:\Program Files\RustDesk Server\hbbr.exe" -k _
|
||||
nssm install "RustDesk hbbs service" "C:\Program Files\RustDesk Server\hbbs.exe" -k _
|
||||
nssm install "RustDesk hbbr service" "C:\Program Files\RustDesk Server\hbbr.exe" -k _
|
||||
```
|
||||
**Note:**
|
||||
- You can change `RustDesk hbbs service` to whatever you desire to name hbbs the service
|
||||
- You can change `RustDesk hbbr service` to whatever you desire to name hbbr the service
|
||||
- You can change `C:\Program Files\RustDesk Server\hbbs.exe` to wherever you placed the rustdesk binaries
|
||||
- You can change `C:\Program Files\RustDesk Server\hbbr.exe` to wherever you placed the rustdesk binaries
|
||||
- You do not need the `-k _` option which is optional, it's just for better security
|
||||
**注意:**
|
||||
- 您可以將 `RustDesk hbbs service` 改為任何您希望命名 hbbs 的服務名稱。
|
||||
- 您可以將 `RustDesk hbbr service` 改為任何您希望命名 hbbr 的服務名稱。
|
||||
- 您可以將 `C:\Program Files\RustDesk Server\hbbs.exe` 改為 RustDesk 執行檔所在的位置。
|
||||
- 您可以將 `C:\Program Files\RustDesk Server\hbbr.exe` 改為 RustDesk 執行檔所在的位置。
|
||||
- 您不需要使用 `-k _` 選項,這是可選的,只是為了更好的安全性。在 `Pro` 版本中,請忽略 `-k _`,它是隱含應用的。
|
||||
|
||||
**Command templates:**
|
||||
**指令範例:**
|
||||
|
||||
The command template in case you just want to copy and paste and edit.
|
||||
如果您只想複製並貼上並編輯,這是指令的範例。
|
||||
|
||||
```cmd
|
||||
nssm install <Desired hbbs servicename> <RustDesk hbbs binary path> <RustDesk hbbs arguments>
|
||||
nssm install <Desired hbbr servicename> <RustDesk hbbr binary path> <RustDesk hbbr arguments>
|
||||
nssm install <所需的 hbbs 服務名稱> <RustDesk hbbs 執行檔路徑> <RustDesk hbbs 參數>
|
||||
nssm install <所需的 hbbr 服務名稱> <RustDesk hbbr 執行檔路徑> <RustDesk hbbr 參數>
|
||||
```
|
||||
|
||||
**啟動服務**
|
||||
成功安裝服務後,需要將其重新啟動。
|
||||
|
||||
成功安裝服務後,需要啟動它們。
|
||||
```cmd
|
||||
nssm start <Desired hbbs servicename>
|
||||
nssm start <Desired hbbr servicename>
|
||||
nssm start <所需的 hbbs 服務名稱>
|
||||
nssm start <所需的 hbbr 服務名稱>
|
||||
```
|
||||
|
||||
**大功告成!**
|
||||
**完成!**
|
||||
|
||||
(上述方法已在 Windows Server Core 2022 Standard 上測試)。
|
||||
(以上方法已在 Windows Server Core 2022 標準版上測試。)
|
||||
|
||||
## 或
|
||||
### 或者
|
||||
|
||||
## 使用 pm2 安裝
|
||||
### 使用 PM2 安裝
|
||||
|
||||
### 安裝 NodeJs
|
||||
請[下載](https://nodejs.org/dist/v16.14.2/node-v16.14.2-x86.msi)並安裝 NodeJs。
|
||||
NodeJs 是 pm2 的執行環境,所以要先安裝 NodeJs。
|
||||
#### 安裝 Node.js
|
||||
|
||||
### 安裝 pm2
|
||||
請[下載](https://nodejs.org/dist/v16.14.2/node-v16.14.2-x86.msi)並安裝 Node.js。
|
||||
Node.js 是 PM2 的運行環境,所以您需要先安裝 Node.js。
|
||||
|
||||
在 `cmd.exe` 中輸入下面三行指令,每一行都要按 <kbd>Enter</kbd> 鍵,並逐行執行。
|
||||
#### 安裝 PM2
|
||||
|
||||
在 `cmd.exe` 中輸入以下內容,每行輸入後按 <kbd>Enter</kbd> 鍵,逐行運行。
|
||||
|
||||
```cmd
|
||||
npm install -g pm2
|
||||
@ -94,19 +88,20 @@ npm install pm2-windows-startup -g
|
||||
pm2-startup install
|
||||
```
|
||||
|
||||
### 執行 hbbr 和 hbbs
|
||||
下載 [伺服器程式](https://gitee.com/rustdesk/rustdesk-server/releases)的 Windows 版本,解壓縮到 C: 下。並執行下面四行指令 (記得編輯 `-r` 參數):
|
||||
#### 運行 hbbr 和 hbbs
|
||||
|
||||
下載 [RustDesk 伺服器](https://github.com/rustdesk/rustdesk-server/releases)的 Windows 版本。將程序解壓縮到 C: 磁碟。執行以下四個命令:
|
||||
|
||||
```cmd
|
||||
cd c:\rustdesk-server-windows-x64
|
||||
pm2 start hbbs.exe -- -r <hbbr 運行所在主機的地址>
|
||||
cd C:\rustdesk-server-windows-x64
|
||||
pm2 start hbbs.exe
|
||||
pm2 start hbbr.exe
|
||||
pm2 save
|
||||
```
|
||||
|
||||
### 查看記錄
|
||||
#### 查看日誌
|
||||
|
||||
```
|
||||
```cmd
|
||||
pm2 log hbbr
|
||||
pm2 log hbbs
|
||||
```
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user