A service of Daily Data, Inc.
Contact Form

User Tools

Site Tools


software:rust:autoconfig_client

This is an old revision of the document!


Auto Configure Clients

You can set up a repository to automate installation on your client machines.

These scripts

  1. Download and install the current version of RustDesk Client
  2. Set the ID Server, Relay Server, API Server and key
  3. Create a static password

Determine your configuration string

Client already configured

If you already have a client connected, you can get the configuration string through it

  1. Click the three dots next to your ID
  2. Select Network fro the menu on the left
  3. Select Unlock network settings
  4. Click ID/Relay Server
  5. Click the copy icon (two pieces of paper, upper right)

Your configuration is now stored in your clipboard. Save that someplace.

Manually create from command line

You will need two pieces of information; the contents of /opt/rustdesk/id_ed25519.pub and your DNS Hostname or IP Address.

In this example, I'm going to use the hostname of rustdesk.example.org, and the contents of the public key as wMloYQ1ITxrK/IMDcusccQZC0isjybRA16r9bSDhvqk=. Change that for your machine

echo '{"host":"rustdesk.example.org","key":"wMloYQ1ITxrK/IMDcusccQZC0isjybRA16r9bSDhvqk="}' | base64 -w 0 | tr -d '=' | rev | echo

This returns the following string

gC9JSPrFndoR0Uiljc2ETQSJWeqNXawMkWRN2YzV3YE1USvskc4RVSxEVWvxWT3JiOikXZrJCLicmcv5SZsBXbhhXZus2clRGdzVnciojI0N3boJye
<code>

Store it someplace; you'll need it to customize your installers

===== Download installer scripts =====




Substitute your DNS name for rustdesk.example.org and echo '{"host":"rustdesk.example.org","key":"wMloYQ1ITxrK/IMDcusccQZC0isjybRA16r9bSDhvqk="}' | base64 -w 0 | tr -d '=' | rev | echo



The first part is to 


The script that techahold wrote will ask permission, then automatically install a lightweight web server and create customized installers for Windows and Linux. I'm not going into that here, but it is pretty straightforward. Another github user, dinger1986, has install scripts for [[https://raw.githubusercontent.com/dinger1986/rustdeskinstall/master/WindowsAgentAIOInstall.ps1|Microsoft Windows]] and many flavors of [[https://raw.githubusercontent.com/dinger1986/rustdeskinstall/master/linuxclientinstall.sh|Linux]] (not Devuan, unfortunately).

Basically, you can download those scripts and run the following commands on them. Then, make them available to your users who can run them on their computer and have RustDesk Client installed on their computer, already set up for your server.

Download and edit the following file. Change your.url.or.ip to the URL or IP of your new server, and change contents_of_public_key_file_on_your_server to the contents of /opt/rustdesk/id_ed25519.pub. When done, you will have two files, //WindowsAgentAIOInstall.ps1//, which can be run with Windows Power Shell, and //linuxclientinstall.sh// which can be run from the command line on a Linux machine.

<code bash>
#!/usr/bin/env sh

WANIP=your.url.or.ip
KEY=contents_of_public_key_file_on_your_server
string="{\"host\":\"${wanip}\",\"relay\":\"${wanip}\",\"key\":\"${key}\",\"api\":\"https://${wanip}\"}"
string64=$(echo -n "$string" | base64 -w 0 | tr -d '=')
string64rev=$(echo -n "$string64" | rev)
wget https://raw.githubusercontent.com/dinger1986/rustdeskinstall/master/WindowsAgentAIOInstall.ps1
sudo sed -i "s|secure-string|${string64rev}|g" WindowsAgentAIOInstall.ps1
# Create linux install script
wget https://raw.githubusercontent.com/dinger1986/rustdeskinstall/master/linuxclientinstall.sh
sudo sed -i "s|secure-string|${string64rev}|g" linuxclientinstall.sh
software/rust/autoconfig_client.1758262072.txt.gz · Last modified: 2025/09/19 01:07 by rodolico