From 7a6520a9330a86f203a94440e5636ff5ca4d1f6b Mon Sep 17 00:00:00 2001 From: dinger1986 Date: Thu, 24 Aug 2023 13:40:15 +0100 Subject: [PATCH 1/9] Update _index.en.md --- content/client/Client Deployment/_index.en.md | 24 +++++++++++-------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/content/client/Client Deployment/_index.en.md b/content/client/Client Deployment/_index.en.md index 8153034..daf79ea 100644 --- a/content/client/Client Deployment/_index.en.md +++ b/content/client/Client Deployment/_index.en.md @@ -13,6 +13,9 @@ Alternatively you can use mass deployment scripts. $ErrorActionPreference= 'silentlycontinue' $rdver = ((Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\RustDesk\").Version) +$rdaddr = +$rdapi = +$rdkey = if($rdver -eq "1.2.2") { @@ -27,7 +30,7 @@ If (!(Test-Path c:\Temp)) { cd c:\Temp -powershell Invoke-WebRequest "https://github.com/rustdesk/rustdesk/releases/download/1.2.1/rustdesk-1.2.1-x86_64.exe" -Outfile "rustdesk.exe" +powershell Invoke-WebRequest "https://github.com/rustdesk/rustdesk/releases/download/1.2.2/rustdesk-1.2.2-x86_64.exe" -Outfile "rustdesk.exe" Start-Process .\rustdesk.exe --silent-install -wait $ServiceName = 'Rustdesk' @@ -49,12 +52,13 @@ net stop rustdesk $username = ((Get-WMIObject -ClassName Win32_ComputerSystem).Username).Split('\')[1] Remove-Item C:\Users\$username\AppData\Roaming\RustDesk\config\RustDesk2.toml New-Item C:\Users\$username\AppData\Roaming\RustDesk\config\RustDesk2.toml -Set-Content C:\Users\$username\AppData\Roaming\RustDesk\config\RustDesk2.toml "rendezvous_server = 'youraddress' `nnat_type = 1`nserial = 0`n`n[options]`ncustom-rendezvous-server = 'youraddress'`nkey = 'yourkey'`nrelay-server = 'youraddress'`napi-server = 'https://youraddress'" +Set-Content C:\Users\$username\AppData\Roaming\RustDesk\config\RustDesk2.toml "rendezvous_server = '$rdaddr' `nnat_type = 1`nserial = 0`n`n[options]`ncustom-rendezvous-server = '$rdaddr'`nkey = '$rdkey'`nrelay-server = '$rdaddr'`napi-server = '$rdapi'" Remove-Item C:\Windows\ServiceProfiles\LocalService\AppData\Roaming\RustDesk\config\RustDesk2.toml New-Item C:\Windows\ServiceProfiles\LocalService\AppData\Roaming\RustDesk\config\RustDesk2.toml -Set-Content C:\Windows\ServiceProfiles\LocalService\AppData\Roaming\RustDesk\config\RustDesk2.toml "rendezvous_server = 'youraddress' `nnat_type = 1`nserial = 0`n`n[options]`ncustom-rendezvous-server = 'youraddress'`nkey = 'yourkey'`nrelay-server = 'youraddress'`napi-server = 'https://youraddress'" +Set-Content C:\Windows\ServiceProfiles\LocalService\AppData\Roaming\RustDesk\config\RustDesk2.toml "rendezvous_server = '$rdaddr' `nnat_type = 1`nserial = 0`n`n[options]`ncustom-rendezvous-server = '$rdaddr'`nkey = '$rdkey'`nrelay-server = '$rdaddr'`napi-server = '$rdapi'" net start rustdesk + ``` ### Mac OS Bash @@ -62,8 +66,8 @@ net start rustdesk ```sh #!/bin/bash -# Assign the value "XYZ" to the password variable -rustdesk_password="XYZ" +# Assign the value random password to the password variable +rustdesk_password=$(openssl rand -hex 4) # Get your config string from your Web portal and Fill Below. rustdesk_config="configstring" @@ -76,11 +80,6 @@ if [[ $EUID -ne 0 ]]; then exit 1 fi -if [[ $(arch) == 'arm64' ]]; then - echo "Installing Rosetta" -/usr/sbin/softwareupdate --install-rosetta --agree-to-license -fi - # Specify the path to the rustdesk.dmg file dmg_file="/tmp/rustdesk-1.2.2-x86_64.dmg" @@ -89,7 +88,12 @@ mount_point="/Volumes/RustDesk" # Download the rustdesk.dmg file echo "Downloading RustDesk Now" + +if [[ $(arch) == 'arm64' ]]; then +curl -L https://github.com/rustdesk/rustdesk/releases/download/1.2.2/rustdesk-1.2.2-aarch64.dmg --output "$dmg_file" +else curl -L https://github.com/rustdesk/rustdesk/releases/download/1.2.2/rustdesk-1.2.2-x86_64.dmg --output "$dmg_file" +fi # Mount the DMG file to the specified mount point hdiutil attach "$dmg_file" -mountpoint "$mount_point" &> /dev/null From f7d5d3c54c942d2bc86e2863dce60b9f3ba1e0de Mon Sep 17 00:00:00 2001 From: dinger1986 Date: Thu, 24 Aug 2023 14:00:05 +0100 Subject: [PATCH 2/9] Update _index.en.md From 94901dd8744a6d17d9413b9a2db9a151cade7e8f Mon Sep 17 00:00:00 2001 From: dinger1986 Date: Thu, 24 Aug 2023 14:03:22 +0100 Subject: [PATCH 3/9] Update _index.en.md --- content/client/Client Deployment/_index.en.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/content/client/Client Deployment/_index.en.md b/content/client/Client Deployment/_index.en.md index daf79ea..f44d563 100644 --- a/content/client/Client Deployment/_index.en.md +++ b/content/client/Client Deployment/_index.en.md @@ -145,8 +145,9 @@ open -n /Applications/RustDesk.app ```sh #!/bin/bash -# Assign the value "XYZ" to the password variable -rustdesk_password="XYZ" +# Assign a random value to the password variable +rustdesk_password=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 8 | head -n 1) + # Get your config string from your Web portal and Fill Below. rustdesk_config="encryptedconfigstring" From f8c9268f1cda231ccca34e782bf464890a468b6c Mon Sep 17 00:00:00 2001 From: dinger1986 Date: Thu, 24 Aug 2023 14:32:22 +0100 Subject: [PATCH 4/9] Update _index.en.md --- content/client/Client Deployment/_index.en.md | 20 ++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/content/client/Client Deployment/_index.en.md b/content/client/Client Deployment/_index.en.md index f44d563..0f205fc 100644 --- a/content/client/Client Deployment/_index.en.md +++ b/content/client/Client Deployment/_index.en.md @@ -5,7 +5,7 @@ weight: 6 You can deploy using a number of methods, some are covered in [Client](/docs/en/client/#configuring-rustdesk) -Alternatively you can use mass deployment scripts. +Alternatively you can use mass deployment scripts with your RMM, intune etc, the ID and password is output by the script, you should collect this, or split this off into different scripts to collect the ID and password. ### Powershell @@ -59,6 +59,24 @@ Set-Content C:\Windows\ServiceProfiles\LocalService\AppData\Roaming\RustDesk\con net start rustdesk +cd $env:ProgramFiles\RustDesk\ +$rustdesk_id = (.\RustDesk.exe --get-id | out-host) + +net stop rustdesk > null +$ProcessActive = Get-Process rustdesk -ErrorAction SilentlyContinue +if($ProcessActive -ne $null) +{ +stop-process -ProcessName rustdesk -Force +} + +$rustdesk_pw = (-join ((65..90) + (97..122) | Get-Random -Count 12 | % {[char]$_})) +Start-Process "$env:ProgramFiles\RustDesk\RustDesk.exe" "--password $rustdesk_pw" -wait + +Write-Output $rustdesk_id +Write-Output $rustdesk_pw + +net start rustdesk > null + ``` ### Mac OS Bash From e572fb552207e6d8684aff81c172af03bb6caf31 Mon Sep 17 00:00:00 2001 From: dinger1986 Date: Thu, 24 Aug 2023 16:56:01 +0100 Subject: [PATCH 5/9] Update _index.en.md --- content/client/Client Deployment/_index.en.md | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/content/client/Client Deployment/_index.en.md b/content/client/Client Deployment/_index.en.md index 0f205fc..92a4707 100644 --- a/content/client/Client Deployment/_index.en.md +++ b/content/client/Client Deployment/_index.en.md @@ -7,15 +7,22 @@ You can deploy using a number of methods, some are covered in [Client](/docs/en/ Alternatively you can use mass deployment scripts with your RMM, intune etc, the ID and password is output by the script, you should collect this, or split this off into different scripts to collect the ID and password. +The permanent password can be changed from random to one you prefer using by changing the content inside () after $rustdesk_pw to your preferred password. + ### Powershell ```ps $ErrorActionPreference= 'silentlycontinue' -$rdver = ((Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\RustDesk\").Version) -$rdaddr = -$rdapi = +$rdaddr = +$rdapi = $rdkey = +$rustdesk_pw = (-join ((65..90) + (97..122) | Get-Random -Count 12 | % {[char]$_})) + + +####################################Please Do Not Edit Below This Line########################################## + +$rdver = ((Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\RustDesk\").Version) if($rdver -eq "1.2.2") { @@ -69,14 +76,12 @@ if($ProcessActive -ne $null) stop-process -ProcessName rustdesk -Force } -$rustdesk_pw = (-join ((65..90) + (97..122) | Get-Random -Count 12 | % {[char]$_})) Start-Process "$env:ProgramFiles\RustDesk\RustDesk.exe" "--password $rustdesk_pw" -wait Write-Output $rustdesk_id Write-Output $rustdesk_pw net start rustdesk > null - ``` ### Mac OS Bash From d64cc3b0b0fb29ca976ef537d9ca630c2fd2f446 Mon Sep 17 00:00:00 2001 From: dinger1986 Date: Thu, 24 Aug 2023 17:11:12 +0100 Subject: [PATCH 6/9] Update _index.en.md --- content/client/Client Deployment/_index.en.md | 60 ++++++++++--------- 1 file changed, 33 insertions(+), 27 deletions(-) diff --git a/content/client/Client Deployment/_index.en.md b/content/client/Client Deployment/_index.en.md index 92a4707..754331c 100644 --- a/content/client/Client Deployment/_index.en.md +++ b/content/client/Client Deployment/_index.en.md @@ -7,21 +7,29 @@ You can deploy using a number of methods, some are covered in [Client](/docs/en/ Alternatively you can use mass deployment scripts with your RMM, intune etc, the ID and password is output by the script, you should collect this, or split this off into different scripts to collect the ID and password. -The permanent password can be changed from random to one you prefer using by changing the content inside () after $rustdesk_pw to your preferred password. +The permanent password can be changed from random to one you prefer using by changing the content inside () after rustdesk_pw to your preferred password. ### Powershell ```ps $ErrorActionPreference= 'silentlycontinue' -$rdaddr = -$rdapi = -$rdkey = +# Assign the value random password to the password variable $rustdesk_pw = (-join ((65..90) + (97..122) | Get-Random -Count 12 | % {[char]$_})) +# Get your config string from your Web portal and Fill Below. +rustdesk_cfg="configstring" ####################################Please Do Not Edit Below This Line########################################## +#Run as administrator and stays in the current directory +if (-Not ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) { + if ([int](Get-CimInstance -Class Win32_OperatingSystem | Select-Object -ExpandProperty BuildNumber) -ge 6000) { + Start-Process PowerShell -Verb RunAs -ArgumentList "-NoProfile -ExecutionPolicy Bypass -Command `"cd '$pwd'; & '$PSCommandPath';`""; + Exit; + } +} + $rdver = ((Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\RustDesk\").Version) if($rdver -eq "1.2.2") @@ -54,22 +62,13 @@ while ($arrService.Status -ne 'Running') Start-Sleep -seconds 5 $arrService.Refresh() } -net stop rustdesk - -$username = ((Get-WMIObject -ClassName Win32_ComputerSystem).Username).Split('\')[1] -Remove-Item C:\Users\$username\AppData\Roaming\RustDesk\config\RustDesk2.toml -New-Item C:\Users\$username\AppData\Roaming\RustDesk\config\RustDesk2.toml -Set-Content C:\Users\$username\AppData\Roaming\RustDesk\config\RustDesk2.toml "rendezvous_server = '$rdaddr' `nnat_type = 1`nserial = 0`n`n[options]`ncustom-rendezvous-server = '$rdaddr'`nkey = '$rdkey'`nrelay-server = '$rdaddr'`napi-server = '$rdapi'" -Remove-Item C:\Windows\ServiceProfiles\LocalService\AppData\Roaming\RustDesk\config\RustDesk2.toml -New-Item C:\Windows\ServiceProfiles\LocalService\AppData\Roaming\RustDesk\config\RustDesk2.toml -Set-Content C:\Windows\ServiceProfiles\LocalService\AppData\Roaming\RustDesk\config\RustDesk2.toml "rendezvous_server = '$rdaddr' `nnat_type = 1`nserial = 0`n`n[options]`ncustom-rendezvous-server = '$rdaddr'`nkey = '$rdkey'`nrelay-server = '$rdaddr'`napi-server = '$rdapi'" - -net start rustdesk cd $env:ProgramFiles\RustDesk\ $rustdesk_id = (.\RustDesk.exe --get-id | out-host) net stop rustdesk > null +.\RustDesk.exe --config $rustdesk_cfg + $ProcessActive = Get-Process rustdesk -ErrorAction SilentlyContinue if($ProcessActive -ne $null) { @@ -78,22 +77,29 @@ stop-process -ProcessName rustdesk -Force Start-Process "$env:ProgramFiles\RustDesk\RustDesk.exe" "--password $rustdesk_pw" -wait -Write-Output $rustdesk_id -Write-Output $rustdesk_pw +Write-Output "..............................................." +# Show the value of the ID Variable +Write-Output "RustDesk ID: $rustdesk_id" -net start rustdesk > null +# Show the value of the Password Variable +Write-Output "Password: $rustdesk_pw" +Write-Output "..............................................." + +echo "Please complete install on GUI, launching RustDesk now." +open -n /Applications/RustDesk.app ``` + ### Mac OS Bash ```sh #!/bin/bash # Assign the value random password to the password variable -rustdesk_password=$(openssl rand -hex 4) +rustdesk_pw=$(openssl rand -hex 4) # Get your config string from your Web portal and Fill Below. -rustdesk_config="configstring" +rustdesk_cfg="configstring" ####################################Please Do Not Edit Below This Line########################################## @@ -139,9 +145,9 @@ rustdesk_id=$(./RustDesk --get-id) # Apply new password to RustDesk ./RustDesk --server & -/Applications/RustDesk.app/Contents/MacOS/RustDesk --password $rustdesk_password &> /dev/null +/Applications/RustDesk.app/Contents/MacOS/RustDesk --password $rustdesk_pw &> /dev/null -/Applications/RustDesk.app/Contents/MacOS/RustDesk --config $rustdesk_config +/Applications/RustDesk.app/Contents/MacOS/RustDesk --config $rustdesk_cfg # Kill all processes named RustDesk rdpid=$(pgrep RustDesk) @@ -156,7 +162,7 @@ else fi # Echo the value of the password variable -echo "Password: $rustdesk_password" +echo "Password: $rustdesk_pw" echo "..............................................." echo "Please complete install on GUI, launching RustDesk now." @@ -169,11 +175,11 @@ open -n /Applications/RustDesk.app #!/bin/bash # Assign a random value to the password variable -rustdesk_password=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 8 | head -n 1) +rustdesk_pw=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 8 | head -n 1) # Get your config string from your Web portal and Fill Below. -rustdesk_config="encryptedconfigstring" +rustdesk_cfg="encryptedconfigstring" ####################################Please Do Not Edit Below This Line########################################## @@ -249,9 +255,9 @@ rustdesk_id=$(rustdesk --get-id) # Apply new password to RustDesk systemctl start rustdesk -rustdesk --password $rustdesk_password &> /dev/null +rustdesk --password $rustdesk_pw &> /dev/null -rustdesk --config $rustdesk_config +rustdesk --config $rustdesk_cfg systemctl restart rustdesk From 1255d1304ef2070ae7af7dc703caa3b98448f3a9 Mon Sep 17 00:00:00 2001 From: dinger1986 Date: Fri, 25 Aug 2023 08:13:03 +0100 Subject: [PATCH 7/9] Update _index.en.md --- content/Technical Support/_index.en.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/content/Technical Support/_index.en.md b/content/Technical Support/_index.en.md index b8280bc..80b803f 100644 --- a/content/Technical Support/_index.en.md +++ b/content/Technical Support/_index.en.md @@ -18,3 +18,10 @@ Paid Support: You can [email](mailto:support@rustdesk.com) to get started. We can help with lots of problems, installations and configurations. Fully managed hosted servers are also available as well as monthly support packages. You get Priority #1 fast responses and service. + +To provide SSH access to your server for troubleshooting, please add the following key to ~/username/.ssh/authorized_keys and ensure the file has 600 permissions. + +You may refer to [this](https://www.digitalocean.com/community/tutorials/how-to-configure-ssh-key-based-authentication-on-a-linux-server) tutorial for reference + +`ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDYfY6/reXgLrtwoLiRSyBJ99bDJBe+DrqPvmqGSItF020UrKdIBARD2BtZ4tM8nCbJSghq2poNuoIDaAcsQuRqkiX/rBzCuh+6H1DB1dqB2GTDKM2skN7zE1spdvgpqSPXKRj5sr74cJ/M7oHq81yRfR3K62Qrj5LoZHSS3w2Uxbf82fkX1YNZrgDRpqt+oIpA2L9r43XquYrZYibwQZt5574Ol5y+knf8HAaA35JSHN3XnNdGVIJmA7PsUKt0sHqshsypE1abGdES6yb48DvKTpfpu+NsoR5xSqePEJnjuiT2T/aiP/ps03Azb2HLjUD5oZgVJ6QmgpeZ/Gub/Nj0J68CV7lPYkoGBqUFeHpWFoKO/MB3bUFf4vU8UhHetck+iGOG/uyyBmLewPwIuCU/gZ37d6qx40YZuPdUU2FhbPqYu1OxlwRajIvgZOvKo6n8piyaIUwBQ9Bgd9iGrbGXzqGGt9a8zkzDjzzcNg5h/sbjG44K+m0kbPcH1yrYo7mQjaIzLk7qtH4KWXMlFxFfpfGF9SKm6jATURYdUhhoZ/RCgh7HD+070IhHLJwdzPcUQg8KPhf5Ep3VigN0R/474XsyfohY5W2zKB46TunbhTq79KHv2wPzFHjkikXIVxHOnwPhXBHZSoL7+1cIE8o275KecdfIuhFj6bU99nUzyw== support@rustdesk` + From 665dd1d2cd008cc51076165f7b7c630418041466 Mon Sep 17 00:00:00 2001 From: dinger1986 Date: Fri, 25 Aug 2023 08:13:39 +0100 Subject: [PATCH 8/9] Update _index.en.md --- content/Technical Support/_index.en.md | 1 + 1 file changed, 1 insertion(+) diff --git a/content/Technical Support/_index.en.md b/content/Technical Support/_index.en.md index 80b803f..3f240ae 100644 --- a/content/Technical Support/_index.en.md +++ b/content/Technical Support/_index.en.md @@ -19,6 +19,7 @@ We can help with lots of problems, installations and configurations. Fully manag You get Priority #1 fast responses and service. +## SSH Access To provide SSH access to your server for troubleshooting, please add the following key to ~/username/.ssh/authorized_keys and ensure the file has 600 permissions. You may refer to [this](https://www.digitalocean.com/community/tutorials/how-to-configure-ssh-key-based-authentication-on-a-linux-server) tutorial for reference From aaf92ffe09e267850e6e1e9b63887970483ad87a Mon Sep 17 00:00:00 2001 From: dinger1986 Date: Fri, 25 Aug 2023 08:14:32 +0100 Subject: [PATCH 9/9] Update _index.en.md --- content/Technical Support/_index.en.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/Technical Support/_index.en.md b/content/Technical Support/_index.en.md index 3f240ae..5572cf5 100644 --- a/content/Technical Support/_index.en.md +++ b/content/Technical Support/_index.en.md @@ -19,7 +19,7 @@ We can help with lots of problems, installations and configurations. Fully manag You get Priority #1 fast responses and service. -## SSH Access +# SSH Access To provide SSH access to your server for troubleshooting, please add the following key to ~/username/.ssh/authorized_keys and ensure the file has 600 permissions. You may refer to [this](https://www.digitalocean.com/community/tutorials/how-to-configure-ssh-key-based-authentication-on-a-linux-server) tutorial for reference