# 安裝、綁定 QLauncher-Synology

## **Synology 設定**

### **安裝 Docker**

{% hint style="info" %}

#### 支援 QLauncher 的Docker版本 Docker Version 19.03.6

{% endhint %}

打開你的 Synology DSM 套件中心 → 搜&#x5C0B;**「**&#x44;ocker」→ 點選「安裝套件」

![](/files/-MGE9Z9xHFCLewRoi_oB)

### 開啟SSH存取權限

{% hint style="info" %}
Synology 不提供從網頁存取終端機的服務，因此你需要透過打開SSH連線，從其他台裝置連線到你的Synology終端機
{% endhint %}

&#x20;**步驟 1-**\
請至「控制台」→「外部存取」開啟SSH設定

![](/files/-MGEA7UKa-WZP0KrzUgO)

**步驟 2-**\
開啟「終端機\&SNMP」並選取「啟動SSH功能」。

連接埠 22 為較多人使用之數字，可選用其他數字避免網路機器人嘗試登入

![](/files/-MGELtSWQnNPGVdvL9xN)

## QLauncher 安裝與啟動

### 下載及安裝 QLauncher

```
### 下載 QLauncher
sudo wget https://github.com/poseidon-network/qlauncher-linux/releases/latest/download/ql-linux.tar.gz -O app.tar.gz

### 建立資料夾
mkdir qlauncher

### 安裝檔案
sudo tar -vxzf app.tar.gz -C ~/qlauncher/
sudo mount --make-rshared /
sudo mount --make-rshared /volume1/
```

### 啟動 QLauncher

成功安裝後需要啟動QLauncher，讓你的裝置開始運作、共享資源

**步驟 1-**

```
cd ~/qlauncher
sudo ./qlauncher.sh start
```

**步驟 2-**\
會得到以下訊息

```
2020-08-20-11-27-15 Start QLauncherK
2020-08-20-11-27-15 Detect sudo/root user
OK
2020-08-20-11-27-15 Detect docker
OK
2020-08-20-11-27-15 Stop edgecore service
2020-08-20-11-27-15 Start edgecore service
cat: /etc/qlauncher: No such file or directory
2020-08-20-11-27-15 GET HWSN FROM SYSTEM
2020-08-20-11-27-15 Request ID from server: {"hwsn":"19A0PCN607012","os":"synology","machine_type":"x86_64","format":"json"}
```

## 驗證安裝成功

**步驟 1-**\
輸入以下指令

```
cd ~/qlauncher
sudo ./qlauncher.sh check
```

**步驟 2-**\
若QLauncher安裝成功，你會得到以下訊息。

```
{"UTC_TIME":"202004191321",
"hwsn":"bebxxxxxxxxxxxxx99",
"qlk_app_version":"0.2.2.0",
"ota_vmer_user":"coderkk"}
```

## 掃描QL QR code綁定裝置

{% hint style="info" %}
下連結之教學進行操作，下載 QQQ App並註冊帳號
{% endhint %}

{% content-ref url="/pages/-MDOrmehMfTuucIY3L0e" %}
[QQQ APP 下載方式](/poseidon-network/qqq-app-1/an-zhuang-yu-zhu-ce-app.md)
{% endcontent-ref %}

**步驟 1-**\
獲取綁定裝置的QR Code

```
cd ~/qlauncher
sudo ./qlauncher.sh bind
```

**步驟 2-**\
你會得到如以下的專屬「裝置綁定頁面連結」，請複製連結並貼到「瀏覽器地址列」

```
Please copy and paste URL to your browser: https://poseidon.network/qlauncher/?sn=beb217fbb4324b7d9959f78c279e6599
```

**步驟 3-**\
使用 QQQ App 掃描頁面上的 QR Code

![](/files/-MGET0jVcbkMKo9Nz5zp)


---

# 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://poseidon-network.gitbook.io/poseidon-network/qlauncher-1/synology-qun-hui-cao-zuo-shui-ming/an-zhuang-bang-ding-qlaunchersynology.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.
