Hello everyone,
I've had a Rustdesk server installed for quite some time now, and I've seen that agent deployment is now possible with a WAPT package.
Currently, I'm using it on demand with the information in the binary name.
I suspect I need to enter the server information in the "rustdesk.cfg" file within the template, but in what format?
Thank you.
[SOLVED] tis-rustdesk-config-template
Forum Rules
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is available on this forum
* Please prefix the topic title with [RESOLVED] if it is resolved.
* Please do not edit a topic that is tagged [RESOLVED]. Open a new topic referencing the old one.
* Specify the installed WAPT version, full version, and build number (2.2.1.11957 / 2.2.2.12337 / etc.) as well as the Enterprise/Discovery edition.
* Versions 1.8.2 and earlier are no longer supported. The only questions accepted regarding version 1.8.2 are related to upgrading to a supported version (2.1, 2.2, etc.).
* Specify the server OS (Linux/Windows) and version (Debian Buster/Bullseye - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine and the machine with the problematic agent, if applicable (Windows 7/10/11/Debian 11/etc.).
* Avoid asking multiple questions when opening a topic, otherwise it may be ignored. If there are multiple topics, open separate topics, preferably one after the other and not all at the same time (i.e., do not spam the forum).
* Include code snippets, screenshots, and other images directly in the post. Links to Pastebin, Bitly, and other third-party sites will be systematically removed.
* As with any community forum, support is provided voluntarily by members. If you require commercial support, you can contact Tranquil IT's sales department at 02.40.97.57.55
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is available on this forum
* Please prefix the topic title with [RESOLVED] if it is resolved.
* Please do not edit a topic that is tagged [RESOLVED]. Open a new topic referencing the old one.
* Specify the installed WAPT version, full version, and build number (2.2.1.11957 / 2.2.2.12337 / etc.) as well as the Enterprise/Discovery edition.
* Versions 1.8.2 and earlier are no longer supported. The only questions accepted regarding version 1.8.2 are related to upgrading to a supported version (2.1, 2.2, etc.).
* Specify the server OS (Linux/Windows) and version (Debian Buster/Bullseye - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine and the machine with the problematic agent, if applicable (Windows 7/10/11/Debian 11/etc.).
* Avoid asking multiple questions when opening a topic, otherwise it may be ignored. If there are multiple topics, open separate topics, preferably one after the other and not all at the same time (i.e., do not spam the forum).
* Include code snippets, screenshots, and other images directly in the post. Links to Pastebin, Bitly, and other third-party sites will be systematically removed.
* As with any community forum, support is provided voluntarily by members. If you require commercial support, you can contact Tranquil IT's sales department at 02.40.97.57.55
- sfonteneau
- WAPT Expert
- Messages: 2318
- Registered: July 10, 2014 - 11:52 PM
- Contact :
I used the example from the documentation to create the cfg, here https://github.com/techahold/rustdeskin ... ll.sh#L276
Rustdesk accepts the cfg format like this:
Code: Select all
hostname = '192.168.1.1'
apiurl = ''
pubkey = glob.glob('/opt/rustdesk/*.pub')[0]
key = open(pubkey,'r').read()
config = {"host":hostname,"relay":hostname,"key":key,"api":apiurl}
rustdesk_list = list(base64.b64encode(json.dumps(config,separators=(',', ':')).encode('utf-8')).decode('utf-8').replace('=',''))
rustdesk_list.reverse()
rustdesk_cfg = ''.join(rustdesk_list)
print(rustdesk_cfg)
Code: Select all
rustdesk.exe --config JIDEZOD79ZED?- sfonteneau
- WAPT Expert
- Messages: 2318
- Registered: July 10, 2014 - 11:52 PM
- Contact :
The cfg file actually contains the server's public key, yes. 
The code here is fundamentally executed on the server, yes.
The code here is fundamentally executed on the server, yes.
So, this code needs to be executed server-side, which will generate the configuration ID?
Then, this ID needs to be added to the rustdesk.cfg file of the template?
To deploy the configuration to the clients?
Sorry, I'm trying to understand how it works.
Then, this ID needs to be added to the rustdesk.cfg file of the template?
To deploy the configuration to the clients?
Sorry, I'm trying to understand how it works.
- sfonteneau
- WAPT Expert
- Messages: 2318
- Registered: July 10, 2014 - 11:52 PM
- Contact :
To put it simply
On your own machine, in a Python script, you can run this:
Simply replace "ABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCD" with the content of your Rustedesk server's advertisement
and replace 192.168.1.1 with the IP address of your Rustdesk server
The print command will display the cfg
On your own machine, in a Python script, you can run this:
Code: Select all
import base64
import json
# read from /opt/rustdesk/*.pub
key = "ABCDABCDABCDABCDABCDABCDABCDABCDABCDABCDABCD"
hostname = '192.168.1.1'
apiurl = ''
config = {"host":hostname,"relay":hostname,"key":key,"api":apiurl}
rustdesk_list = list(base64.b64encode(json.dumps(config,separators=(',', ':')).encode('utf-8')).decode('utf-8').replace('=',''))
rustdesk_list.reverse()
rustdesk_cfg = ''.join(rustdesk_list)
print('CFG:')
print(rustdesk_cfg)
and replace 192.168.1.1 with the IP address of your Rustdesk server
The print command will display the cfg
- sfonteneau
- WAPT Expert
- Messages: 2318
- Registered: July 10, 2014 - 11:52 PM
- Contact :
Launch the update_package command (from the console).
The GUI will ask you for the cfg file.
The GUI will ask you for the cfg file.
- sfonteneau
- WAPT Expert
- Messages: 2318
- Registered: July 10, 2014 - 11:52 PM
- Contact :
