Files
doc.rustdesk.com/content/self-host/rustdesk-server-pro/installscript/Script/_index.en.md
rustdesk 56cfd26e35 seo/geo
2026-03-20 18:42:55 +08:00

5.5 KiB

title, weight, description, keywords
title weight description keywords
install.sh 4 Install RustDesk Server Pro on Linux with the install.sh script after obtaining a license. Use this method for a simple scripted setup of the Pro server components.
rustdesk server pro install.sh
rustdesk pro linux install
rustdesk pro script install
rustdesk self-host pro linux
rustdesk server pro setup

Use the install.sh method when you want a simple Linux-based RustDesk Server Pro installation without writing your own service setup from scratch.

{{% notice note %}} Don't forget to get your license from https://rustdesk.com/pricing/, check license page for more details.

Please read OSS installation first before doing this simple install. You can know more underlying details there. {{% /notice %}}

When should you use install.sh?

Use install.sh when you want the fastest way to deploy RustDesk Server Pro on a Linux host with systemd. It is best for a straightforward single-server setup where you want the script to install dependencies, place binaries, create services, and optionally prepare HTTPS for the web console.

install.sh quick answers

  • Use this method for a simple Linux deployment with systemd.
  • Use Docker instead if you want easier upgrades, rollback, and container-based operations.
  • Have your Pro license ready before you start.
  • If you use a domain, the script can also set up nginx and certbot for HTTPS.
  • Use update.sh for upgrades after the first installation.

Install

Copy and paste the above command into your Linux terminal to install RustDesk Server Pro.

wget -qO- https://raw.githubusercontent.com/rustdesk/rustdesk-server-pro/main/install.sh | bash

{{% notice note %}} I recommend using the Docker image; it greatly simplifies the process of deploying the solution as well as updating it. The resource consumption is very low.

And please run above under your home directory rather than a diretory you have no write permission. {{% /notice %}}

What it does:

  • Install some dependencies
  • Setup UFW firewall if available
  • Create a working directory /var/lib/rustdesk-server and a log directory /var/log/rustdesk-server
  • Installs executables into /usr/bin
  • 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)
  • 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. When the https is ready, please access with https://yourdomain.com rather than https://yourdomain.com:21114.

{{% notice note %}} How to Set up HTTPS for web console manually. {{% /notice %}}

{{% notice note %}} If the systemd service fails to start, it is probably related to SELinux, please check this. {{% /notice %}}

{{% notice note %}} If your client cannot connect to your server or you cannot access the web console, please check this. {{% /notice %}}

Upgrade

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.

wget -qO- https://raw.githubusercontent.com/rustdesk/rustdesk-server-pro/main/update.sh | bash

{{% notice note %}} If you encounter issues with this script, I would suggest you go through the script and execute the steps manually, one by one.

And please run above under your home directory rather than a diretory you have no write permission. {{% /notice %}}

What it does:

  • Checks for new versions of RustDesk Server Pro
  • If it finds a new version, it removes the API files and downloads new executables and API files

Convert from open source

Copy and paste the above command into your Linux terminal to convert from RustDesk Server to RustDesk Server Pro.

wget -qO- https://raw.githubusercontent.com/rustdesk/rustdesk-server-pro/main/convertfromos.sh | bash

{{% notice note %}} Please add 21114 TCP port to your firewall, this is additional port for web console and user login in RustDesk client. {{% /notice %}}

{{% notice note %}} I would suggest switching to a Docker installation if you encounter issues with this script. Alternatively, you can go through the script and execute the steps manually, one by one. {{% /notice %}}

What it does:

  • Disable and removes the old services
  • Install some dependencies
  • Setup UFW firewall if available
  • Create a folder /var/lib/rustdesk-server and copy the certs here
  • Delete /var/log/rustdesk and create /var/log/rustdesk-server
  • 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)
  • 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