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

76 lines
2.7 KiB
Markdown
Raw Normal View History

2024-02-29 11:15:47 +01:00
---
title: Synology DSM 6
weight: 22
---
2024-03-09 22:45:15 +01:00
> An alternative up-to-date tutorial from third-party is [here](https://mariushosting.com/how-to-install-rustdesk-on-your-synology-nas/).
2024-02-29 11:15:47 +01:00
This tutorial is based on latest DSM v6 and v7.
2024-03-09 22:45:15 +01:00
2024-02-29 11:15:47 +01:00
{{% notice note %}}
2024-03-09 22:45:15 +01:00
After DSM 7.2 update, the Docker is upgraded to new "Container Manager", please check [this article](/docs/en/self-host/rustdesk-server-oss/synology/dsm-7) instead.
2024-02-29 11:15:47 +01:00
{{% /notice %}}
### Install Docker
| Open Package Center | Install Docker |
| --- | --- |
| ![](images/package-manager.png) | ![](images/docker.png) |
2024-02-29 11:15:47 +01:00
### Install RustDesk Server
| Search rustdesk-server in Docker's registry and install by double click | Installed rustdesk-server image, double click to create rustdesk-server container |
| --- | --- |
| ![](images/pull-rustdesk-server.png) | ![](images/rustdesk-server-installed.png) |
2024-02-29 11:15:47 +01:00
### Create hbbs container
As mentioned above, double click on rustdesk-server image to create new container, set it name to `hbbs`.
![](images/hbbs.png)
2024-02-29 11:15:47 +01:00
Click on above `Advanced Settings`.
2024-03-09 22:45:15 +01:00
- Enable `Enable auto-restart`.
![](images/auto-restart.png)
2024-02-29 11:15:47 +01:00
2024-03-09 22:45:15 +01:00
- Enable `Use the same network as Docker Host`. For more about host net, please [check](https://rustdesk.com/docs/en/self-host/rustdesk-server-oss/docker/#net-host).
![](images/host-net.png)
2024-02-29 11:15:47 +01: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.
| Mount | Files generated in the host directory |
| --- | --- |
| ![](images/mount.png) | ![](images/mounted-dir.png) |
2024-02-29 11:15:47 +01:00
- Set command
{{% notice note %}}
Synology's OS is Debian based, so host net (--net=host) works fine, we do not need to map ports with `-p` option.
`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")!
{{% /notice %}}
![](images/hbbs-cmd.png?v2)
2024-02-29 11:15:47 +01:00
- Done
![](images/hbbs-config.png)
2024-02-29 11:15:47 +01:00
### Create hbbr container
Please repeat above `hbbs` steps, but name the container `hbbr` and command (for Set Command Step) should be `hbbr -k _`.
![](images/hbbr-config.png)
2024-02-29 11:15:47 +01:00
### hbbr/hbbs containers
![](images/containers.png)
2024-02-29 11:15:47 +01:00
| Double click on container and check log | Double confirm hbbs/hbbr using host network |
| --- | --- |
| ![](images/log.png) | ![](images/network-types.png) |
2024-02-29 11:15:47 +01:00
### Retrieve your Key
Browse to the folder setup before using File Station, download `id_ed25519.pub` and open with a text editor to via your key.