doc.rustdesk.com/content/self-host/rustdesk-server-pro/installscript/_index.en.md

71 lines
3.3 KiB
Markdown
Raw Normal View History

2023-07-04 11:14:36 +02:00
---
2023-07-09 15:15:49 +02:00
title: Simple Install
2023-07-04 11:14:36 +02:00
weight: 10
---
2023-07-10 08:06:29 +02:00
{{% notice note %}}
2023-10-21 21:57:31 +02:00
Don't forget to get your license from [https://rustdesk.com/pricing.html](https://rustdesk.com/pricing.html), check [license](https://rustdesk.com/docs/en/self-host/rustdesk-server-pro/license/) page for more details.
2023-12-06 17:20:23 +01:00
2024-03-09 22:49:45 +01:00
Please read [OSS installation](https://rustdesk.com/docs/en/self-host/rustdesk-server-oss/install/) first before doing this simple install. You can know more underlying details there.
2023-07-10 08:06:29 +02:00
{{% /notice %}}
2023-07-09 15:15:49 +02:00
2023-10-21 21:57:31 +02:00
### Install
2023-07-14 15:08:47 +02:00
Copy and paste the above command into your Linux terminal to install RustDesk Server Pro.
2023-07-09 15:15:49 +02:00
`bash <(wget -qO- https://raw.githubusercontent.com/rustdesk/rustdesk-server-pro/main/install.sh)`
2023-07-04 13:20:16 +02:00
2023-07-04 11:14:36 +02:00
What it does:
2023-07-13 13:06:05 +02:00
- Install some dependencies
2023-07-14 15:08:47 +02:00
- Setup UFW firewall if available
2023-10-23 22:11:01 +02:00
- Create a working directory `/var/lib/rustdesk-server` and a log directory `/var/log/rustdesk-server`
- Installs executables into `/usr/bin`
2023-07-16 18:56:00 +02:00
- Download and extract RustDesk Pro Services to the above folder
- Create systemd services for hbbs and hbbr (service names are rustdesk-hbbs.service and rustdesk-hbbr.service)
2023-09-05 00:20:30 +02:00
- If you choose Domain, it will install Nginx and Certbot, allowing the API to be available on port 443 (HTTPS) and get an SSL certificate over port 80, it is automatically renewed
2023-07-04 13:20:16 +02:00
{{% notice note %}}
2024-05-21 22:06:22 +02:00
How to [Set up HTTPS for web console manually](https://rustdesk.com/docs/en/self-host/rustdesk-server-pro/faq/#set-up-https-for-web-console-manually).
{{% /notice %}}
{{% notice note %}}
2024-05-21 22:06:22 +02:00
If the systemd service fails to start, it is probably related to SELinux, please check [this](https://rustdesk.com/docs/en/self-host/rustdesk-server-pro/faq/#selinux).
{{% /notice %}}
{{% notice note %}}
2024-05-21 22:06:22 +02:00
If your client cannot connect to your server or you cannot access the web console, please check [this](https://rustdesk.com/docs/en/self-host/rustdesk-server-pro/faq/#firewall).
{{% /notice %}}
2023-10-21 21:57:31 +02:00
### Upgrade
2023-07-14 15:08:47 +02:00
2024-03-09 22:49:45 +01:00
Copy and paste the above command into your Linux terminal to upgrade your existing RustDesk Server Pro installation, this could also be saved locally and scheduled with cron.
2023-07-09 15:15:49 +02:00
`bash <(wget -qO- https://raw.githubusercontent.com/rustdesk/rustdesk-server-pro/main/update.sh)`
2023-07-04 13:20:16 +02:00
What it does:
2023-07-14 15:08:47 +02:00
- Checks for new versions of RustDesk Server Pro
2023-07-13 13:06:05 +02:00
- If it finds a new version, it removes the API files and downloads new executables and API files
2023-07-04 13:20:16 +02:00
2023-10-21 21:57:31 +02:00
### Convert from open source
2023-07-09 15:15:49 +02:00
2023-07-14 15:08:47 +02:00
Copy and paste the above command into your Linux terminal to convert from RustDesk Server to RustDesk Server Pro.
2023-07-09 15:15:49 +02:00
`bash <(wget -qO- https://raw.githubusercontent.com/rustdesk/rustdesk-server-pro/main/convertfromos.sh)`
2023-07-04 13:20:16 +02:00
2024-05-05 06:26:55 +02:00
{{% notice note %}}
2024-05-21 22:06:22 +02:00
Please add `21114` TCP port to your firewall, this is additional port for web console and user login in RustDesk client.
2024-05-05 06:26:55 +02:00
{{% /notice %}}
2023-07-13 13:06:05 +02:00
What it does:
2023-07-04 13:20:16 +02:00
- Disable and removes the old services
2023-07-13 13:06:05 +02:00
- Install some dependencies
2023-07-14 15:08:47 +02:00
- Setup UFW firewall if available
2023-10-23 22:11:01 +02:00
- Create a folder `/var/lib/rustdesk-server` and copy the certs here
- Delete `/var/log/rustdesk` and create `/var/log/rustdesk-server`
2023-07-04 13:20:16 +02:00
- Download and extract RustDesk Pro Services to the above folder
2023-07-16 18:56:00 +02:00
- Create systemd services for hbbs and hbbr (service names are rustdesk-hbbs.service and rustdesk-hbbr.service)
2023-09-05 00:20:30 +02:00
- If you choose Domain, it will install Nginx and Certbot, allowing the API to be available on port 443 (HTTPS) and get an SSL certificate over port 80, it is automatically renewed