Update _index.en.md

This commit is contained in:
Mr-Update 2023-08-27 20:43:15 +02:00 committed by GitHub
parent dcfc87cab0
commit 2b354eb5d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,11 +5,11 @@ weight: 6
You can deploy using a number of methods, some are covered in [Client](/docs/en/client/#configuring-rustdesk) 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 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. 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 ### PowerShell
```ps ```ps
$ErrorActionPreference= 'silentlycontinue' $ErrorActionPreference= 'silentlycontinue'
@ -17,12 +17,12 @@ $ErrorActionPreference= 'silentlycontinue'
# Assign the value random password to the password variable # Assign the value random password to the password variable
$rustdesk_pw = (-join ((65..90) + (97..122) | Get-Random -Count 12 | % {[char]$_})) $rustdesk_pw = (-join ((65..90) + (97..122) | Get-Random -Count 12 | % {[char]$_}))
# Get your config string from your Web portal and Fill Below. # Get your config string from your Web portal and Fill Below
rustdesk_cfg="configstring" rustdesk_cfg="configstring"
####################################Please Do Not Edit Below This Line########################################## ################################### Please Do Not Edit Below This Line #########################################
#Run as administrator and stays in the current directory # Run as administrator and stays in the current directory
if (-Not ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) { 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) { 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';`""; Start-Process PowerShell -Verb RunAs -ArgumentList "-NoProfile -ExecutionPolicy Bypass -Command `"cd '$pwd'; & '$PSCommandPath';`"";
@ -90,7 +90,7 @@ open -n /Applications/RustDesk.app
``` ```
### Mac OS Bash ### macOS Bash
```sh ```sh
#!/bin/bash #!/bin/bash
@ -98,10 +98,10 @@ open -n /Applications/RustDesk.app
# Assign the value random password to the password variable # Assign the value random password to the password variable
rustdesk_pw=$(openssl rand -hex 4) rustdesk_pw=$(openssl rand -hex 4)
# Get your config string from your Web portal and Fill Below. # Get your config string from your Web portal and Fill Below
rustdesk_cfg="configstring" rustdesk_cfg="configstring"
####################################Please Do Not Edit Below This Line########################################## ################################### Please Do Not Edit Below This Line #########################################
# Check if the script is being run as root # Check if the script is being run as root
if [[ $EUID -ne 0 ]]; then if [[ $EUID -ne 0 ]]; then
@ -177,11 +177,10 @@ open -n /Applications/RustDesk.app
# Assign a random value to the password variable # Assign a random value to the password variable
rustdesk_pw=$(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
# Get your config string from your Web portal and Fill Below.
rustdesk_cfg="encryptedconfigstring" rustdesk_cfg="encryptedconfigstring"
####################################Please Do Not Edit Below This Line########################################## ################################### Please Do Not Edit Below This Line #########################################
# Check if the script is being run as root # Check if the script is being run as root
if [[ $EUID -ne 0 ]]; then if [[ $EUID -ne 0 ]]; then
@ -189,7 +188,7 @@ if [[ $EUID -ne 0 ]]; then
exit 1 exit 1
fi fi
# identify OS # Identify OS
if [ -f /etc/os-release ]; then if [ -f /etc/os-release ]; then
# freedesktop.org and systemd # freedesktop.org and systemd
. /etc/os-release . /etc/os-release
@ -214,13 +213,13 @@ elif [ -f /etc/lsb-release ]; then
OS=$DISTRIB_ID OS=$DISTRIB_ID
VER=$DISTRIB_RELEASE VER=$DISTRIB_RELEASE
elif [ -f /etc/debian_version ]; then elif [ -f /etc/debian_version ]; then
# Older Debian/Ubuntu/etc. # Older Debian, Ubuntu, etc.
OS=Debian OS=Debian
VER=$(cat /etc/debian_version) VER=$(cat /etc/debian_version)
elif [ -f /etc/SuSe-release ]; then elif [ -f /etc/SuSE-release ]; then
# Older SuSE/etc. # Older SuSE etc.
OS=SuSE OS=SuSE
VER=$(cat /etc/SuSe-release) VER=$(cat /etc/SuSE-release)
elif [ -f /etc/redhat-release ]; then elif [ -f /etc/redhat-release ]; then
# Older Red Hat, CentOS, etc. # Older Red Hat, CentOS, etc.
OS=RedHat OS=RedHat
@ -231,9 +230,9 @@ else
VER=$(uname -r) VER=$(uname -r)
fi fi
# Install Rustdesk # Install RustDesk
echo "Installing Rustdesk" echo "Installing RustDesk"
if [ "${ID}" = "debian" ] || [ "$OS" = "Ubuntu" ] || [ "$OS" = "Debian" ] || [ "${UPSTREAM_ID}" = "ubuntu" ] || [ "${UPSTREAM_ID}" = "debian" ]; then if [ "${ID}" = "debian" ] || [ "$OS" = "Ubuntu" ] || [ "$OS" = "Debian" ] || [ "${UPSTREAM_ID}" = "ubuntu" ] || [ "${UPSTREAM_ID}" = "debian" ]; then
wget https://github.com/rustdesk/rustdesk/releases/download/1.2.2/rustdesk-1.2.2-x86_64.deb wget https://github.com/rustdesk/rustdesk/releases/download/1.2.2/rustdesk-1.2.2-x86_64.deb
apt-get install -fy ./rustdesk-1.2.2-x86_64.deb > null apt-get install -fy ./rustdesk-1.2.2-x86_64.deb > null