2022-04-20 21:36:57 +02:00
|
|
|
|
---
|
2024-02-29 12:53:04 +01:00
|
|
|
|
title: Synology DSM 6
|
2022-04-20 21:36:57 +02:00
|
|
|
|
weight: 22
|
|
|
|
|
---
|
|
|
|
|
|
2023-07-13 12:47:05 +02:00
|
|
|
|
本教學基於 DSM v6 最新版。
|
2022-04-20 21:36:57 +02:00
|
|
|
|
|
2023-07-13 12:47:05 +02:00
|
|
|
|
### 安裝 Docker
|
2022-04-20 21:36:57 +02:00
|
|
|
|
|
2023-07-13 12:47:05 +02:00
|
|
|
|
打開套件管理員並安裝 docker
|
2022-04-20 21:36:57 +02:00
|
|
|
|
|
|
|
|
|
| | |
|
|
|
|
|
| --------------- | -------------------------------------------------------- |
|
2024-02-29 14:21:37 +01:00
|
|
|
|
 | 
|
2022-04-20 21:36:57 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### 安裝 RustDesk Server
|
|
|
|
|
|
2023-07-13 12:47:05 +02:00
|
|
|
|
| 在 Docker 的 registery 裡搜尋 rustdesk-server 並連點兩下來安裝 | 安裝 rustdesk-server 映像後, 連點兩下映像來建立容器 |
|
2022-04-20 21:36:57 +02:00
|
|
|
|
| --------------- | -------------------------------------------------------- |
|
2024-02-29 14:21:37 +01:00
|
|
|
|
 | 
|
2022-04-20 21:36:57 +02:00
|
|
|
|
|
|
|
|
|
|
2023-07-13 12:47:05 +02:00
|
|
|
|
### 建立 hbbs 容器
|
2022-04-20 21:36:57 +02:00
|
|
|
|
|
2023-07-13 12:47:05 +02:00
|
|
|
|
如上所述,連點兩下 rustdesk-server 映像來建立新容器,並將其名稱設置為 `hbbs`。
|
2024-02-29 14:21:37 +01:00
|
|
|
|

|
2022-04-20 21:36:57 +02:00
|
|
|
|
|
2023-07-13 12:47:05 +02:00
|
|
|
|
點擊上面的 "進階設定"。
|
2022-04-20 21:36:57 +02:00
|
|
|
|
|
2023-07-13 12:47:05 +02:00
|
|
|
|
- 啟用自動重新啟動
|
2024-02-29 14:21:37 +01:00
|
|
|
|

|
2022-04-20 21:36:57 +02:00
|
|
|
|
|
2023-07-13 12:47:05 +02:00
|
|
|
|
- 啟用 "Use the same network as Docker host", 關於 host net 的更多解釋,請[查閱](/docs/zh-tw/self-host/install/#net-host)
|
2024-02-29 14:21:37 +01:00
|
|
|
|

|
2022-04-20 21:36:57 +02:00
|
|
|
|
|
2023-07-13 12:47:05 +02:00
|
|
|
|
- 將主機目錄 (比如 `Shared/test/`) 掛接到 `/root`,hbbs 將把產生的文件(包括 `key` 檔案)放在該目錄。
|
|
|
|
|
| 掛接 | 產生的檔案 |
|
2022-04-20 21:36:57 +02:00
|
|
|
|
|-- | -- |
|
2024-02-29 14:21:37 +01:00
|
|
|
|
 | 
|
2022-04-20 21:36:57 +02:00
|
|
|
|
|
2023-07-13 12:47:05 +02:00
|
|
|
|
- 設置指令
|
2022-04-20 21:36:57 +02:00
|
|
|
|
{{% notice note %}}
|
2023-07-13 12:47:05 +02:00
|
|
|
|
群暉的操作系統是基於 Debian 的,因此 host net (--net=host) 可以正常工作,我們不需要使用 `-p` 選項映射連接埠。
|
2022-04-20 21:36:57 +02:00
|
|
|
|
|
2023-07-13 12:47:05 +02:00
|
|
|
|
`192.168.16.98` 為內網 IP,此處僅作演示,部署時請設置為公網 IP。
|
2022-04-20 21:36:57 +02:00
|
|
|
|
|
|
|
|
|
{{% /notice %}}
|
|
|
|
|
|
2024-02-29 14:21:37 +01:00
|
|
|
|

|
2022-04-20 21:36:57 +02:00
|
|
|
|
|
|
|
|
|
- 搞定
|
|
|
|
|
|
2024-02-29 14:21:37 +01:00
|
|
|
|

|
2023-07-13 12:47:05 +02:00
|
|
|
|
|
|
|
|
|
### 建立 hbbr 容器
|
2022-04-20 21:36:57 +02:00
|
|
|
|
|
2023-07-13 12:47:05 +02:00
|
|
|
|
請重複上述 `hbbs` 步驟,但將容器名稱更改為 `hbbr` 並將指令更改為 `hbbr`。
|
2022-04-20 21:36:57 +02:00
|
|
|
|
|
2024-02-29 14:21:37 +01:00
|
|
|
|

|
2022-04-20 21:36:57 +02:00
|
|
|
|
|
2023-07-13 12:47:05 +02:00
|
|
|
|
### hbbr/hbbs 容器建立完成
|
2022-04-20 21:36:57 +02:00
|
|
|
|
|
2024-02-29 14:21:37 +01:00
|
|
|
|

|
2022-04-20 21:36:57 +02:00
|
|
|
|
|
|
|
|
|
|
2023-07-13 12:47:05 +02:00
|
|
|
|
| 連點兩下容器並查看日誌 | 確認 hbbs/hbbr 在使用 host net |
|
2022-04-20 21:36:57 +02:00
|
|
|
|
|-- | -- |
|
2024-02-29 14:21:37 +01:00
|
|
|
|
 | 
|