Client configuration for self hosted server #966
-
|
For Windows you are able to configure the host and the public key via the filename, which looks very suspicious.
It would be much more comfortable for a user to be able to use a configuration instead of this cryptic file name. Possible solutions:
Best regards |
Beta Was this translation helpful? Give feedback.
Replies: 14 comments 32 replies
-
|
I second this, good idea. The documented way with the host and public key in the filename just doesn't work for me :-( It seems to ignore it! |
Beta Was this translation helpful? Give feedback.
-
|
I am also looking for a way to provide clients for all the supported platforms with my own server settings. Probably the only feasible way is to compile the clients for all the platforms by myself. Is someone here interested on working with me on this? |
Beta Was this translation helpful? Give feedback.
-
|
Second this. My selfhosted server used non-standard port and I can't write it in the filename since ":" is not usable for filename in Windows. PubKey will have similar problem if non-usable characters are used in the key. -h/-k parameters are common implementation. Though I think "config in the filename" is a very useful feature in cases a single executable is more preferred. I would suggest using an escaped/encoded string to avoid the non-usable character problem. |
Beta Was this translation helpful? Give feedback.
-
|
IMHO a config file (config.txt) at the same place as the .exe or under /etc shouldn't be that hard to implement and can easily be deployed to Clients via Ansible, SCCM or OS tools like scp/rsync/PowerShell. My Rust isn't that good (to be fair, it's sysengineer-hacky-just-bend-it-until-it-works-horrible), but a quick google-fu and searching the Rust docs returned that lines can be iterated by read_lines from a file, which theoretically only needs to be run once when the Client starts. Another simple method would be to read ENV variables, which theoretically is even more os agnostic than a config file. Wouldn't be that hard to implement, as the current Version already reads env variables for all kind of stuff like DISPLAY, XDG_CURRENT_DESKTOP, SystemDrive or ProgramFiles. |
Beta Was this translation helpful? Give feedback.
-
|
This is just what I suggested in #1873 (comment) [the (3) point]. |
Beta Was this translation helpful? Give feedback.
-
Was there any progress with this? I took the installer and changed it's name. |
Beta Was this translation helpful? Give feedback.
-
|
Is there a way to to solve same problem in mac client? Solution with file naming with win. client looks strange but works fine. Maybe it's possible to do the same with mac version? The goal is to have one file for each platform, that can be downloaded with one click from own server and had integrated settings of this server. |
Beta Was this translation helpful? Give feedback.
-
|
More issues with using file name for configuration parameters: When link to download such file is sent via email or other service, link is not properlz recognized. Other side cannot just click it to download. Antivirus programs scream on this. Some do scan and find it is not harmful, others simply block it recognizing spyware or other kind of malware. |
Beta Was this translation helpful? Give feedback.
-
|
How can setting host and key be achieved parametrically for linux and Mac? |
Beta Was this translation helpful? Give feedback.
-
|
Personally, for a network distributions, more in a corporate network or a true Self-hosted Network 😃 i would suggest using DNS for automatic configuration: |
Beta Was this translation helpful? Give feedback.
-
|
I don't understand why I have to enter the server public-key at all. btw. How to find the key for the public servers? |
Beta Was this translation helpful? Give feedback.
-
|
/etc/systemd/system/rustdeskrelay.service /etc/systemd/system/rustdesksignal.service Client binary .EXE rename as sample Text keys public and private got from /opt/rustdesk This is 100% working solution on current day |
Beta Was this translation helpful? Give feedback.
-
|
https://rustdesk.com/docs/en/self-host/client-configuration/ |
Beta Was this translation helpful? Give feedback.
-
|
Passing the server ID and key via filename no longer works for me since version 1.3.9. |
Beta Was this translation helpful? Give feedback.
https://rustdesk.com/docs/en/self-host/client-configuration/