This is an old revision of the document!


Rustdesk is a free open source self-hostable remote desktop software for Linux, MacOS and Windows.

→ To their GitHub: github.com/rustdesk

Sometime it might be necessary to edit the Rustdesk config from CLI, for example when switching between relay servers.

To do this proceed as following: (This tutorial was tested on a Systemd-based system)

  1. Firstly stop the Rustdesk service
sudo systemctl stop rustdesk.service
  1. Then navigate to /root/.config/rustdesk/, therefore change to root:
su root
cd /root/.config/rustdesk
  1. There should be three files in this directory: RustDesk.toml, RustDesk2.toml and RustDesk_hwcodec.toml. Edit the second one:
nano RustDesk2.toml
  1. The content of this file should look like this:
rendezvous_server = '<rendevouz-server-ip>'
nat_type = 1
serial = 3
 
[options]
rendezvous-servers = 'rs-ny.rustdesk.com,rs-sg.rustdesk.com,rs-cn.rustdesk.com'
key = '<key>'
custom-rendezvous-server = '<rendevouz-server-ip>'
local-ip-addr = '<local-ip>'
enable-audio = 'N'
relay-server = '<relay-server-ip>'
audio-input = 'Monitor of Built-in Audio Analog Stereo'
  1. Now you can edit the rendevous-server-ip, the <relay-server-ip> and the key. Fill in the required values and exit.
  2. Then restart the server:
sudo systemctl start rustdesk.service
  • linux/linux-tutorials/rustdesk.1712153024.txt.gz
  • Last modified: 2024/04/03 16:03
  • by Zyzonix