Back to Blog
tutorialBeginner5 min read

Rustdesk Server [Helper Script]

A guide to setting up Rustdesk Server on Proxmox using Helper Scripts.

Proxmox - Installing Rustdesk Server [Helper Script]

Overview

This wiki covers how to install Rustdesk Server on Proxmox using Helper Scripts. Rustdesk is a remote desktop software that allows you to access and control your devices from anywhere. It is an open-source alternative to TeamViewer and AnyDesk, providing a secure and private way to connect to your devices.

Helper Scripts: Always be cautious when running scripts from the internet. Review the code and understand what it does before executing it on your system. That being said, ProxmoxVE Helper Scripts are widely used and trusted by the community.

Installation

Navigate to ProxmoxVE Helper Scripts Rustdesk page and copy the script to your clipboard.

ProxmoxVE Helper Scripts page showing the Rustdesk Server LXC install command with a copy button highlighted in red
ProxmoxVE Helper Scripts Rustdesk Install Command

Then open up the Proxmox web interface, and with your Proxmox server selected click the Shell button on the top right corner.

Proxmox Virtual Environment sidebar showing Server View with Datacenter expanded and the hhw server node selected
Proxmox Server View Selection

Proxmox web interface toolbar showing the Shell button highlighted with a red box
Proxmox Shell Button

Now paste in the script and hit Enter. This will download and launch the script on your Proxmox server.

Proxmox shell terminal showing the Rustdesk Server helper script bash command pasted and ready to execute
Rustdesk Helper Script Pasted in Proxmox Shell

When prompted, select Yes to proceed with the installation.

Dialog box asking to confirm creation of a new RustDesk Server LXC with Yes and No buttons, Yes highlighted in red
Rustdesk Server LXC Creation Confirmation

I usually select the Default Settings option, but if you prefer to manually set the resources assigned to the container, select the option for Advanced Settings. The defaults will create an LXC with the following settings:

  • Operating System: debian
  • Version: 12
  • Container Type: Unprivileged
  • CPU Cores: 1
  • RAM Size: 512MB
  • Disk Size: 2GB

Pressing Tab will move the selection to the OK button, then hit Enter to proceed.

Helper script settings menu showing five options: Default Settings (selected), Default Settings with verbose, Advanced Settings, Diagnostic Settings, and Exit
Helper Script Default Settings Menu

When completed, the script will provide you with the IP address of the Rustdesk server.

Terminal output showing RustDesk Server setup successfully initialized with the access URL 192.168.69.26 displayed
Rustdesk Server Installation Complete with IP

Setting up Rustdesk Server & Clients

In order to connect to the Rustdesk server with your client, you must have the public key from the server. This can be found in the /var/lib/rustdesk-server/ directory. You can use the following command to view the public key:

cat /root/.config/rustdesk/id_ed25519.pub; echo

Terminal showing the cat command to display the Rustdesk server public key from /var/lib/rustdesk-server/id_ed25519.pub with the key output visible
Rustdesk Server Public Key Output

Now you can copy the public key and paste it into the Rustdesk client. Open the Rustdesk client and go to the settings.

Rustdesk client application showing the home screen with ID 175 842 621, one-time password c93ivg, and a three-dot menu button highlighted with a red box
Rustdesk Client Home Screen with Settings Menu

In the settings, select Network and then ID/Relay server.

Rustdesk client Settings page with Network selected in the left sidebar (highlighted in red) and ID/Relay server option highlighted in the right panel
Rustdesk Network Settings Navigation

Enter the IP address of your Rustdesk server for both the ID server and Relay server. Then paste in the key that was just copied from the server. Then click OK to save the settings.

Rustdesk ID/Relay server configuration dialog with ID server and Relay server both set to 192.168.69.26, and the public key pasted in the Key field, with OK button highlighted
Rustdesk ID/Relay Server Configuration

I like to set up passwords on each of my clients that I intend to connect to. This can be done by going into the Settings on the clients you plan to connect to and selecting Security.

Rustdesk client Settings menu showing General and Security options, with Security highlighted by a red box
Rustdesk Security Settings

Then select Use permanent password and enter a password. This will allow you to connect to the client without needing to accept the connection on the client side. Then click OK to save the settings.

Rustdesk Set password dialog with Password and Confirmation fields filled in, showing a Strong password strength indicator in green, with OK button highlighted
Rustdesk Set Permanent Password Dialog

You should now see the Use permanent password option selected.

Rustdesk Password settings showing Accept sessions via both dropdown, with Use permanent password radio button selected and Set permanent password button highlighted in blue
Rustdesk Use Permanent Password Selected

Connecting to the Client

Make sure all clients are connected to the Rustdesk server, then grab the ID of the client you want to connect to and enter it into the Control Remote Desktop input, then click connect.

Rustdesk Control Remote Desktop input field with a remote device ID 495 492 730 entered, Connect button highlighted in blue, and Transfer file option below
Rustdesk Control Remote Desktop Input

Now enter the password you set for the client, optionally select Remember password and then click OK.

Rustdesk Password required dialog prompting to verify the RustDesk password with a password field, Remember password checkbox checked, and OK button highlighted
Rustdesk Password Required Dialog

Set resolution

Depending on the resolution of the client, I like to set to the resolution to Scale adaptive.

Rustdesk remote session toolbar showing display scaling options with Scale adaptive selected, alongside Scale original and Image quality settings
Rustdesk Scale Adaptive Display Option

This will allow you to see the entire screen of the client without having to scroll around.

Conclusion

That's it! You have successfully installed Rustdesk Server on Proxmox using Helper Scripts. You can now connect to your devices remotely using the Rustdesk client.