software:rust:autoconfig_client
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
software:rust:autoconfig_client [2025/09/19 01:07] – created rodolico | software:rust:autoconfig_client [2025/09/19 01:57] (current) – rodolico | ||
---|---|---|---|
Line 9: | Line 9: | ||
===== Determine your configuration string ===== | ===== Determine your configuration string ===== | ||
+ | |||
+ | Choose one of the following two options, and save the result someplace. | ||
==== Client already configured ==== | ==== Client already configured ==== | ||
Line 29: | Line 31: | ||
<code bash> | <code bash> | ||
- | echo ' | + | echo ' |
</ | </ | ||
Line 35: | Line 37: | ||
< | < | ||
gC9JSPrFndoR0Uiljc2ETQSJWeqNXawMkWRN2YzV3YE1USvskc4RVSxEVWvxWT3JiOikXZrJCLicmcv5SZsBXbhhXZus2clRGdzVnciojI0N3boJye | gC9JSPrFndoR0Uiljc2ETQSJWeqNXawMkWRN2YzV3YE1USvskc4RVSxEVWvxWT3JiOikXZrJCLicmcv5SZsBXbhhXZus2clRGdzVnciojI0N3boJye | ||
- | < | + | </code> |
Store it someplace; you'll need it to customize your installers | Store it someplace; you'll need it to customize your installers | ||
Line 41: | Line 43: | ||
===== Download installer scripts ===== | ===== Download installer scripts ===== | ||
+ | Several installer scripts are available from [[https:// | ||
+ | * PowerShell script for Microsoft Windows | ||
+ | * Batch/cmd script for Microsoft Windows (use the PowerShell) | ||
+ | * Bash script for MacOS | ||
+ | * Bash script for Linux | ||
+ | * Note that this only works on systems which use SystemD as the init, but will give an error message if the distribution is unsupported | ||
+ | Download the installers you want to use. | ||
+ | ===== Customize Scripts ===== | ||
- | Substitute your DNS name for rustdesk.example.org and echo ' | + | Edit each installer script. In the script, you will find the string **configstring**, |
+ | These installers can be run on workstations which will automatically download and install RustDesk Client and do the base configuration. | ||
- | The first part is to | + | ===== Single script ===== |
+ | If you are on a Unix machine (includes MacOS), all of the steps can be done at one time. Download all of your installer scripts into one directory. Save them all with either a .sh or a .ps1 suffix (bash shell and powershell respectively), | ||
- | The script that techahold wrote will ask permission, then automatically install | + | If you already have your configuration string, create |
- | 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 | + | WARNING: All .sh and .ps1 files in the directory will be modified with no backup. |
- | 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 / | + | <code bash installers> |
- | + | #! / | |
- | <code bash> | + | |
- | # | + | |
- | WANIP=your.url.or.ip | + | if [ ! -f configstring.txt ] |
- | KEY=contents_of_public_key_file_on_your_server | + | then |
- | string=" | + | echo -n '{" |
- | string64=$(echo -n " | + | fi |
- | string64rev=$(echo -n " | + | config=`cat configstring.txt` |
- | wget https://raw.githubusercontent.com/ | + | for file in `ls *.ps1 *.sh` |
- | sudo sed -i " | + | do |
- | # Create linux install script | + | |
- | wget https:// | + | done |
- | sudo sed -i "s|secure-string|${string64rev}|g" | + | |
</ | </ | ||
+ | This will also put the configuration string into the file configstring.txt. If you can not use an installer, just open that file and copy that in the clipboard and import it into your client (same as exporting above, just using the other icon) |
software/rust/autoconfig_client.1758262072.txt.gz · Last modified: 2025/09/19 01:07 by rodolico