doc.rustdesk.com/content/self-host/rustdesk-server-oss/synology/_index.en.md

73 lines
3.1 KiB
Markdown
Raw Normal View History

2022-04-20 21:36:57 +02:00
---
title: Synology
2022-04-20 21:36:57 +02:00
weight: 22
---
2023-08-27 20:57:17 +02:00
> An alterative up-to-date tutorial from third-party is [here](https://mariushosting.com/how-to-install-rustdesk-on-your-synology-nas/).
2023-07-27 08:08:16 +02:00
2023-07-22 23:36:10 +02:00
This tutorial is based on latest DSM v6 and v7.
2022-04-20 21:36:57 +02:00
### Install Docker
2023-08-31 22:00:34 +02:00
| Open Package Center | Install Docker |
2023-08-27 20:57:17 +02:00
| --- | --- |
2023-08-25 15:36:48 +02:00
| ![](/docs/en/self-host/rustdesk-server-oss/synology/images/package-manager.png) | ![](/docs/en/self-host/rustdesk-server-oss/synology/images/docker.png) |
2022-04-20 21:36:57 +02:00
### Install RustDesk Server
2023-07-15 22:07:38 +02:00
| Search rustdesk-server in Docker's registry and install by double click | Installed rustdesk-server image, double click to create rustdesk-server container |
2023-08-27 20:57:17 +02:00
| --- | --- |
2023-08-25 15:36:48 +02:00
| ![](/docs/en/self-host/rustdesk-server-oss/synology/images/pull-rustdesk-server.png) | ![](/docs/en/self-host/rustdesk-server-oss/synology/images/rustdesk-server-installed.png) |
2022-04-20 21:36:57 +02:00
### Create hbbs container
As mentioned above, double click on rustdesk-server image to create new container, set it name to `hbbs`.
2023-08-25 15:36:48 +02:00
![](/docs/en/self-host/rustdesk-server-oss/synology/images/hbbs.png)
2022-04-20 21:36:57 +02:00
2023-09-05 00:07:17 +02:00
Click on above `Advanced Settings`.
2022-04-20 21:36:57 +02:00
- Enable auto-restart
2023-08-25 15:36:48 +02:00
![](/docs/en/self-host/rustdesk-server-oss/synology/images/auto-restart.png)
2022-04-20 21:36:57 +02:00
2023-09-05 00:07:17 +02:00
- Enable `Use the same network as Docker Host`, for more about host net, please [check](/docs/en/self-host/rustdesk-server-oss/docker/#net-host).
2023-08-25 15:36:48 +02:00
![](/docs/en/self-host/rustdesk-server-oss/synology/images/host-net.png)
2022-04-20 21:36:57 +02:00
2023-07-22 23:36:10 +02:00
- Mount a host directory (e.g. `/home/rustdesk/`) to `/root`, hbbs will generate some files (database and `key` files) in this directory which need to be persistent over reboots.
2023-08-27 20:57:17 +02:00
2022-04-20 21:36:57 +02:00
| Mount | Files generated in the host directory |
2023-08-27 20:57:17 +02:00
| --- | --- |
2023-09-13 23:24:23 +02:00
| ![](/docs/en/self-host/rustdesk-server-oss/synology/images/mount.png) | ![](/docs/en/self-host/rustdesk-server-oss/synology/images/mounted-dir.png) |
2022-04-20 21:36:57 +02:00
- Set command
{{% notice note %}}
2023-01-16 19:48:27 +01:00
Synology's OS is Debian based, so host net (--net=host) works fine, we do not need to map ports with `-p` option.
2022-04-20 21:36:57 +02:00
2023-08-27 20:57:17 +02:00
`192.168.16.98` is an internal IP used here for demonstration only, please set it to a public IP when you deploy (or you can use your DDNS address if you have configured one in "Control Panel -> Connectivity -> DDNS") and don't forget to open ports on your router and your Synology firewall if this is enabled ("Control Panel -> Connectivity -> Firewall")!
2022-04-20 21:36:57 +02:00
{{% /notice %}}
2023-08-25 15:36:48 +02:00
![](/docs/en/self-host/rustdesk-server-oss/synology/images/hbbs-cmd.png?v2)
2022-04-20 21:36:57 +02:00
- Done
2023-07-15 22:07:38 +02:00
2023-08-25 15:36:48 +02:00
![](/docs/en/self-host/rustdesk-server-oss/synology/images/hbbs-config.png)
2022-04-20 21:36:57 +02:00
### Create hbbr container
2023-07-22 23:36:10 +02:00
Please repeat above `hbbs` steps, but name the container `hbbr` and command (for Set Command Step) should be `hbbr -k _`.
2022-04-20 21:36:57 +02:00
2023-08-25 15:36:48 +02:00
![](/docs/en/self-host/rustdesk-server-oss/synology/images/hbbr-config.png)
2022-04-20 21:36:57 +02:00
### hbbr/hbbs containers
2023-09-13 23:24:23 +02:00
![](/docs/en/self-host/rustdesk-server-oss/synology/images/containers.png)
2022-04-20 21:36:57 +02:00
| Double click on container and check log | Double confirm hbbs/hbbr using host network |
2023-08-27 20:57:17 +02:00
| --- | --- |
2023-09-13 23:24:23 +02:00
| ![](/docs/en/self-host/rustdesk-server-oss/synology/images/log.png) | ![](/docs/en/self-host/rustdesk-server-oss/synology/images/network-types.png) |
2023-07-22 23:36:10 +02:00
### Retrieve your Key
2023-08-27 20:57:17 +02:00
Browse to the folder setup before using File Station, download `id_ed25519.pub` and open with a text editor to via your key.