mirror of
https://github.com/rustdesk/doc.rustdesk.com.git
synced 2026-04-13 19:26:23 +00:00
fix style
This commit is contained in:
@@ -10,7 +10,7 @@ Alternativ können Sie Skripte für die Massenbereitstellung mit Ihrem RMM, Intu
|
||||
|
||||
Das permanente Passwort kann von einem Zufallspasswort in ein von Ihnen bevorzugtes Passwort geändert werden, indem Sie den Inhalt in `()` nach `rustdesk_pw` in Ihr bevorzugtes Passwort für PowerShell und die entsprechende Zeile für jede andere Plattform ändern.
|
||||
|
||||
### PowerShell
|
||||
## PowerShell
|
||||
|
||||
```ps
|
||||
$ErrorActionPreference= 'silentlycontinue'
|
||||
@@ -21,7 +21,7 @@ $rustdesk_pw=(-join ((65..90) + (97..122) | Get-Random -Count 12 | % {[char]$_})
|
||||
# Die Konfigurationszeichenkette von Ihrem Webportal abrufen und unten ausfüllen
|
||||
$rustdesk_cfg="configstring"
|
||||
|
||||
############################## Bitte nicht unterhalb dieser Zeile bearbeiten ###################################
|
||||
############################# Bitte nicht unterhalb dieser Zeile bearbeiten ###################################
|
||||
|
||||
# Als Administrator ausführen und im gleichen Verzeichnis bleiben
|
||||
if (-Not ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator))
|
||||
@@ -131,7 +131,7 @@ Write-Output "Passwort: $rustdesk_pw"
|
||||
Write-Output "..............................................."
|
||||
```
|
||||
|
||||
### Windows Batch/CMD
|
||||
## Windows Batch/CMD
|
||||
|
||||
```bat
|
||||
@echo off
|
||||
@@ -181,7 +181,7 @@ echo Passwort: %rustdesk_pw%
|
||||
echo ...............................................
|
||||
```
|
||||
|
||||
### macOS Bash
|
||||
## macOS Bash
|
||||
|
||||
```sh
|
||||
#!/bin/bash
|
||||
@@ -192,7 +192,7 @@ rustdesk_pw=$(openssl rand -hex 4)
|
||||
# Die Konfigurationszeichenkette von Ihrem Webportal abrufen und unten ausfüllen
|
||||
rustdesk_cfg="configstring"
|
||||
|
||||
############################## Bitte nicht unterhalb dieser Zeile bearbeiten ###################################
|
||||
############################# Bitte nicht unterhalb dieser Zeile bearbeiten ###################################
|
||||
|
||||
# Prüfen, ob das Skript als root ausgeführt wird
|
||||
if [[ $EUID -ne 0 ]]; then
|
||||
@@ -260,7 +260,7 @@ echo "Bitte schließen Sie die Installation auf der GUI ab und starten Sie RustD
|
||||
open -n /Applications/RustDesk.app
|
||||
```
|
||||
|
||||
### Linux
|
||||
## Linux
|
||||
|
||||
```sh
|
||||
#!/bin/bash
|
||||
@@ -271,7 +271,7 @@ rustdesk_pw=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 8 | head -n 1)
|
||||
# Die Konfigurationszeichenkette von Ihrem Webportal abrufen und unten ausfüllen
|
||||
rustdesk_cfg="configstring"
|
||||
|
||||
############################## Bitte nicht unterhalb dieser Zeile bearbeiten ###################################
|
||||
############################# Bitte nicht unterhalb dieser Zeile bearbeiten ###################################
|
||||
|
||||
# Prüfen, ob das Skript als root ausgeführt wird
|
||||
if [[ $EUID -ne 0 ]]; then
|
||||
|
||||
@@ -12,7 +12,7 @@ Alternatively you can use mass deployment scripts with your RMM, Intune, etc. Th
|
||||
|
||||
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 for PowerShell and the corresponding line for any other platform.
|
||||
|
||||
### PowerShell
|
||||
## PowerShell
|
||||
|
||||
```powershell
|
||||
$ErrorActionPreference= 'silentlycontinue'
|
||||
@@ -23,7 +23,7 @@ $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 #########################################
|
||||
################################## 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))
|
||||
@@ -133,7 +133,7 @@ Write-Output "Password: $rustdesk_pw"
|
||||
Write-Output "..............................................."
|
||||
```
|
||||
|
||||
### Windows batch/cmd
|
||||
## Windows batch/cmd
|
||||
|
||||
```bat
|
||||
@echo off
|
||||
@@ -181,14 +181,14 @@ echo Password: %rustdesk_pw%
|
||||
echo ...............................................
|
||||
```
|
||||
|
||||
### MSI
|
||||
## MSI
|
||||
|
||||
You can also use msi instead of `rustdesk.exe --silent-install`.
|
||||
|
||||
https://rustdesk.com/docs/en/client/windows/msi/
|
||||
|
||||
|
||||
### Winget
|
||||
## Winget
|
||||
|
||||
you can deploy via powershell with winget as well (this installs via microsofts version of apt - part of most recent windows installs)
|
||||
|
||||
@@ -198,7 +198,7 @@ from a powershell window or via script (for example via GPO)
|
||||
winget install --id=RustDesk.RustDesk -e
|
||||
```
|
||||
|
||||
### macOS Bash
|
||||
## macOS Bash
|
||||
|
||||
```sh
|
||||
#!/bin/bash
|
||||
@@ -209,7 +209,7 @@ rustdesk_pw=$(openssl rand -hex 4)
|
||||
# Get your config string from your Web portal and Fill Below
|
||||
rustdesk_cfg="configstring"
|
||||
|
||||
################################### Please Do Not Edit Below This Line #########################################
|
||||
################################## Please Do Not Edit Below This Line #########################################
|
||||
|
||||
# Root password request for privilege escalation
|
||||
[ "$UID" -eq 0 ] || exec sudo bash "$0" "$@"
|
||||
@@ -275,7 +275,7 @@ echo "Please complete install on GUI, launching RustDesk now."
|
||||
open -n /Applications/RustDesk.app
|
||||
```
|
||||
|
||||
### Linux
|
||||
## Linux
|
||||
|
||||
```sh
|
||||
#!/bin/bash
|
||||
@@ -286,7 +286,7 @@ 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_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
|
||||
if [[ $EUID -ne 0 ]]; then
|
||||
|
||||
@@ -12,7 +12,7 @@ Alternativamente, puedes usar scripts de despliegue masivo con tu RMM, Intune, e
|
||||
|
||||
La contraseña permanente puede cambiarse de aleatoria a una que prefieras modificando el contenido dentro de `()` después de `rustdesk_pw` a tu contraseña preferida para PowerShell y la línea correspondiente para cualquier otra plataforma.
|
||||
|
||||
### PowerShell
|
||||
## PowerShell
|
||||
|
||||
```powershell
|
||||
$ErrorActionPreference= 'silentlycontinue'
|
||||
@@ -23,7 +23,7 @@ $rustdesk_pw=(-join ((65..90) + (97..122) | Get-Random -Count 12 | % {[char]$_})
|
||||
# Obtener tu cadena de configuración desde tu portal Web y rellenar abajo
|
||||
$rustdesk_cfg="configstring"
|
||||
|
||||
################################### Por favor no edites debajo de esta línea #########################################
|
||||
################################## Por favor no edites debajo de esta línea #########################################
|
||||
|
||||
# Ejecutar como administrador y permanecer en el directorio actual
|
||||
if (-Not ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator))
|
||||
@@ -133,7 +133,7 @@ Write-Output "Contraseña: $rustdesk_pw"
|
||||
Write-Output "..............................................."
|
||||
```
|
||||
|
||||
### Windows batch/cmd
|
||||
## Windows batch/cmd
|
||||
|
||||
```bat
|
||||
@echo off
|
||||
@@ -181,14 +181,14 @@ echo Contraseña: %rustdesk_pw%
|
||||
echo ...............................................
|
||||
```
|
||||
|
||||
### MSI
|
||||
## MSI
|
||||
|
||||
También puedes usar msi en lugar de `rustdesk.exe --silent-install`.
|
||||
|
||||
https://rustdesk.com/docs/en/client/windows/msi/
|
||||
|
||||
|
||||
### Winget
|
||||
## Winget
|
||||
|
||||
puedes desplegar vía powershell con winget también (esto instala vía la versión de Microsoft de apt - parte de las instalaciones de Windows más recientes)
|
||||
|
||||
@@ -198,7 +198,7 @@ desde una ventana de powershell o vía script (por ejemplo vía GPO)
|
||||
winget install --id=RustDesk.RustDesk -e
|
||||
```
|
||||
|
||||
### macOS Bash
|
||||
## macOS Bash
|
||||
|
||||
```sh
|
||||
#!/bin/bash
|
||||
@@ -209,7 +209,7 @@ rustdesk_pw=$(openssl rand -hex 4)
|
||||
# Obtener tu cadena de configuración desde tu portal Web y rellenar abajo
|
||||
rustdesk_cfg="configstring"
|
||||
|
||||
################################### Por favor no edites debajo de esta línea #########################################
|
||||
################################## Por favor no edites debajo de esta línea #########################################
|
||||
|
||||
# Solicitud de contraseña de root para elevación de privilegios
|
||||
[ "$UID" -eq 0 ] || exec sudo bash "$0" "$@"
|
||||
@@ -275,7 +275,7 @@ echo "Por favor completa la instalación en GUI, lanzando RustDesk ahora."
|
||||
open -n /Applications/RustDesk.app
|
||||
```
|
||||
|
||||
### Linux
|
||||
## Linux
|
||||
|
||||
```sh
|
||||
#!/bin/bash
|
||||
@@ -286,7 +286,7 @@ rustdesk_pw=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 8 | head -n 1)
|
||||
# Obtener tu cadena de configuración desde tu portal Web y rellenar abajo
|
||||
rustdesk_cfg="configstring"
|
||||
|
||||
################################### Por favor no edites debajo de esta línea #########################################
|
||||
################################## Por favor no edites debajo de esta línea #########################################
|
||||
|
||||
# Verificar si el script se está ejecutando como root
|
||||
if [[ $EUID -ne 0 ]]; then
|
||||
|
||||
@@ -12,7 +12,7 @@ Alternativement, vous pouvez utiliser des scripts de déploiement de masse avec
|
||||
|
||||
Le mot de passe permanent peut être changé d'aléatoire à celui que vous préférez en modifiant le contenu entre `()` après `rustdesk_pw` vers votre mot de passe préféré pour PowerShell et la ligne correspondante pour toute autre plateforme.
|
||||
|
||||
### PowerShell
|
||||
## PowerShell
|
||||
|
||||
```powershell
|
||||
$ErrorActionPreference= 'silentlycontinue'
|
||||
@@ -23,7 +23,7 @@ $rustdesk_pw=(-join ((65..90) + (97..122) | Get-Random -Count 12 | % {[char]$_})
|
||||
# Obtenez votre chaîne de config depuis votre portail Web et remplissez ci-dessous
|
||||
$rustdesk_cfg="configstring"
|
||||
|
||||
################################### Veuillez ne pas modifier en dessous de cette ligne #########################################
|
||||
################################## Veuillez ne pas modifier en dessous de cette ligne #########################################
|
||||
|
||||
# Exécuter en tant qu'administrateur et rester dans le répertoire courant
|
||||
if (-Not ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator))
|
||||
@@ -133,7 +133,7 @@ Write-Output "Mot de passe : $rustdesk_pw"
|
||||
Write-Output "..............................................."
|
||||
```
|
||||
|
||||
### Windows batch/cmd
|
||||
## Windows batch/cmd
|
||||
|
||||
```bat
|
||||
@echo off
|
||||
@@ -181,14 +181,14 @@ echo Mot de passe : %rustdesk_pw%
|
||||
echo ...............................................
|
||||
```
|
||||
|
||||
### MSI
|
||||
## MSI
|
||||
|
||||
Vous pouvez aussi utiliser msi au lieu de `rustdesk.exe --silent-install`.
|
||||
|
||||
https://rustdesk.com/docs/en/client/windows/msi/
|
||||
|
||||
|
||||
### Winget
|
||||
## Winget
|
||||
|
||||
vous pouvez déployer via powershell avec winget également (cela s'installe via la version Microsoft d'apt - partie des installations Windows les plus récentes)
|
||||
|
||||
@@ -198,7 +198,7 @@ depuis une fenêtre powershell ou via un script (par exemple via GPO)
|
||||
winget install --id=RustDesk.RustDesk -e
|
||||
```
|
||||
|
||||
### macOS Bash
|
||||
## macOS Bash
|
||||
|
||||
```sh
|
||||
#!/bin/bash
|
||||
@@ -209,7 +209,7 @@ rustdesk_pw=$(openssl rand -hex 4)
|
||||
# Obtenez votre chaîne de config depuis votre portail Web et remplissez ci-dessous
|
||||
rustdesk_cfg="configstring"
|
||||
|
||||
################################### Veuillez ne pas modifier en dessous de cette ligne #########################################
|
||||
################################## Veuillez ne pas modifier en dessous de cette ligne #########################################
|
||||
|
||||
# Demande de mot de passe root pour l'élévation de privilège
|
||||
[ "$UID" -eq 0 ] || exec sudo bash "$0" "$@"
|
||||
@@ -275,7 +275,7 @@ echo "Veuillez terminer l'installation sur GUI, lancement de RustDesk maintenant
|
||||
open -n /Applications/RustDesk.app
|
||||
```
|
||||
|
||||
### Linux
|
||||
## Linux
|
||||
|
||||
```sh
|
||||
#!/bin/bash
|
||||
@@ -286,7 +286,7 @@ rustdesk_pw=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 8 | head -n 1)
|
||||
# Obtenez votre chaîne de config depuis votre portail Web et remplissez ci-dessous
|
||||
rustdesk_cfg="configstring"
|
||||
|
||||
################################### Veuillez ne pas modifier en dessous de cette ligne #########################################
|
||||
################################## Veuillez ne pas modifier en dessous de cette ligne #########################################
|
||||
|
||||
# Vérifier si le script est exécuté en tant que root
|
||||
if [[ $EUID -ne 0 ]]; then
|
||||
|
||||
@@ -12,7 +12,7 @@ In alternativa, puoi utilizzare script di distribuzione di massa con il tuo RMM,
|
||||
|
||||
La password permanente può essere cambiata da casuale a una che preferisci modificando il contenuto dentro `()` dopo `rustdesk_pw` alla tua password preferita per PowerShell e la riga corrispondente per qualsiasi altra piattaforma.
|
||||
|
||||
### PowerShell
|
||||
## PowerShell
|
||||
|
||||
```powershell
|
||||
$ErrorActionPreference= 'silentlycontinue'
|
||||
@@ -23,7 +23,7 @@ $rustdesk_pw=(-join ((65..90) + (97..122) | Get-Random -Count 12 | % {[char]$_})
|
||||
# Ottieni la tua stringa di configurazione dal tuo portale Web e compila qui sotto
|
||||
$rustdesk_cfg="configstring"
|
||||
|
||||
################################### Per favore non modificare sotto questa linea #########################################
|
||||
################################## Per favore non modificare sotto questa linea #########################################
|
||||
|
||||
# Esegui come amministratore e rimani nella directory corrente
|
||||
if (-Not ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator))
|
||||
@@ -133,7 +133,7 @@ Write-Output "Password: $rustdesk_pw"
|
||||
Write-Output "..............................................."
|
||||
```
|
||||
|
||||
### Windows batch/cmd
|
||||
## Windows batch/cmd
|
||||
|
||||
```bat
|
||||
@echo off
|
||||
@@ -181,14 +181,14 @@ echo Password: %rustdesk_pw%
|
||||
echo ...............................................
|
||||
```
|
||||
|
||||
### MSI
|
||||
## MSI
|
||||
|
||||
Puoi anche usare msi invece di `rustdesk.exe --silent-install`.
|
||||
|
||||
https://rustdesk.com/docs/en/client/windows/msi/
|
||||
|
||||
|
||||
### Winget
|
||||
## Winget
|
||||
|
||||
puoi distribuire tramite powershell con winget anche (questo installa tramite la versione Microsoft di apt - parte delle installazioni Windows più recenti)
|
||||
|
||||
@@ -198,7 +198,7 @@ da una finestra powershell o tramite script (ad esempio tramite GPO)
|
||||
winget install --id=RustDesk.RustDesk -e
|
||||
```
|
||||
|
||||
### macOS Bash
|
||||
## macOS Bash
|
||||
|
||||
```sh
|
||||
#!/bin/bash
|
||||
@@ -209,7 +209,7 @@ rustdesk_pw=$(openssl rand -hex 4)
|
||||
# Ottieni la tua stringa di configurazione dal tuo portale Web e compila qui sotto
|
||||
rustdesk_cfg="configstring"
|
||||
|
||||
################################### Per favore non modificare sotto questa linea #########################################
|
||||
################################## Per favore non modificare sotto questa linea #########################################
|
||||
|
||||
# Richiesta password root per l'elevazione dei privilegi
|
||||
[ "$UID" -eq 0 ] || exec sudo bash "$0" "$@"
|
||||
@@ -275,7 +275,7 @@ echo "Per favore completa l'installazione su GUI, avviando RustDesk ora."
|
||||
open -n /Applications/RustDesk.app
|
||||
```
|
||||
|
||||
### Linux
|
||||
## Linux
|
||||
|
||||
```sh
|
||||
#!/bin/bash
|
||||
@@ -286,7 +286,7 @@ rustdesk_pw=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 8 | head -n 1)
|
||||
# Ottieni la tua stringa di configurazione dal tuo portale Web e compila qui sotto
|
||||
rustdesk_cfg="configstring"
|
||||
|
||||
################################### Per favore non modificare sotto questa linea #########################################
|
||||
################################## Per favore non modificare sotto questa linea #########################################
|
||||
|
||||
# Controlla se lo script è in esecuzione come root
|
||||
if [[ $EUID -ne 0 ]]; then
|
||||
|
||||
@@ -12,7 +12,7 @@ pre: "<b>2.4. </b>"
|
||||
|
||||
永続パスワードは、PowerShellの`rustdesk_pw`の後の`()`内の内容をお好みのパスワードに変更し、他のプラットフォームの対応する行を変更することで、ランダムからお好みのものに変更できます。
|
||||
|
||||
### PowerShell
|
||||
## PowerShell
|
||||
|
||||
```powershell
|
||||
$ErrorActionPreference= 'silentlycontinue'
|
||||
@@ -23,7 +23,7 @@ $rustdesk_pw=(-join ((65..90) + (97..122) | Get-Random -Count 12 | % {[char]$_})
|
||||
# Webポータルから設定文字列を取得し、以下で入力してください
|
||||
$rustdesk_cfg="configstring"
|
||||
|
||||
################################### この線より下を編集しないでください #########################################
|
||||
################################## この線より下を編集しないでください #########################################
|
||||
|
||||
# 管理者として実行し、現在のディレクトリに残る
|
||||
if (-Not ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator))
|
||||
@@ -133,7 +133,7 @@ Write-Output "パスワード: $rustdesk_pw"
|
||||
Write-Output "..............................................."
|
||||
```
|
||||
|
||||
### Windows batch/cmd
|
||||
## Windows batch/cmd
|
||||
|
||||
```bat
|
||||
@echo off
|
||||
@@ -181,14 +181,14 @@ echo パスワード: %rustdesk_pw%
|
||||
echo ...............................................
|
||||
```
|
||||
|
||||
### MSI
|
||||
## MSI
|
||||
|
||||
`rustdesk.exe --silent-install`の代わりにmsiを使用することもできます。
|
||||
|
||||
https://rustdesk.com/docs/en/client/windows/msi/
|
||||
|
||||
|
||||
### Winget
|
||||
## Winget
|
||||
|
||||
wingetを使ってpowershell経由でデプロイすることもできます(これは最近のWindowsインストールの一部であるMicrosoft版apt経由でインストールします)
|
||||
|
||||
@@ -198,7 +198,7 @@ powershellウィンドウから、またはスクリプト経由で(例えばG
|
||||
winget install --id=RustDesk.RustDesk -e
|
||||
```
|
||||
|
||||
### macOS Bash
|
||||
## macOS Bash
|
||||
|
||||
```sh
|
||||
#!/bin/bash
|
||||
@@ -209,7 +209,7 @@ rustdesk_pw=$(openssl rand -hex 4)
|
||||
# Webポータルから設定文字列を取得し、以下で入力してください
|
||||
rustdesk_cfg="configstring"
|
||||
|
||||
################################### この線より下を編集しないでください #########################################
|
||||
################################## この線より下を編集しないでください #########################################
|
||||
|
||||
# 特権昇格のためのrootパスワードの要求
|
||||
[ "$UID" -eq 0 ] || exec sudo bash "$0" "$@"
|
||||
@@ -275,7 +275,7 @@ echo "GUIでインストールを完了してください。RustDeskを起動し
|
||||
open -n /Applications/RustDesk.app
|
||||
```
|
||||
|
||||
### Linux
|
||||
## Linux
|
||||
|
||||
```sh
|
||||
#!/bin/bash
|
||||
@@ -286,7 +286,7 @@ rustdesk_pw=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 8 | head -n 1)
|
||||
# Webポータルから設定文字列を取得し、以下で入力してください
|
||||
rustdesk_cfg="configstring"
|
||||
|
||||
################################### この線より下を編集しないでください #########################################
|
||||
################################## この線より下を編集しないでください #########################################
|
||||
|
||||
# スクリプトがrootとして実行されているか確認
|
||||
if [[ $EUID -ne 0 ]]; then
|
||||
|
||||
@@ -12,7 +12,7 @@ Alternativamente, você pode usar scripts de implantação em massa com seu RMM,
|
||||
|
||||
A senha permanente pode ser alterada de aleatória para uma de sua preferência modificando o conteúdo dentro de `()` após `rustdesk_pw` para sua senha preferida para PowerShell e a linha correspondente para qualquer outra plataforma.
|
||||
|
||||
### PowerShell
|
||||
## PowerShell
|
||||
|
||||
```powershell
|
||||
$ErrorActionPreference= 'silentlycontinue'
|
||||
@@ -23,7 +23,7 @@ $rustdesk_pw=(-join ((65..90) + (97..122) | Get-Random -Count 12 | % {[char]$_})
|
||||
# Obtenha sua string de configuração do seu portal Web e preencha abaixo
|
||||
$rustdesk_cfg="configstring"
|
||||
|
||||
################################### Por favor não edite abaixo desta linha #########################################
|
||||
################################## Por favor não edite abaixo desta linha #########################################
|
||||
|
||||
# Executar como administrador e permanecer no diretório atual
|
||||
if (-Not ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator))
|
||||
@@ -133,7 +133,7 @@ Write-Output "Senha: $rustdesk_pw"
|
||||
Write-Output "..............................................."
|
||||
```
|
||||
|
||||
### Windows batch/cmd
|
||||
## Windows batch/cmd
|
||||
|
||||
```bat
|
||||
@echo off
|
||||
@@ -181,14 +181,14 @@ echo Senha: %rustdesk_pw%
|
||||
echo ...............................................
|
||||
```
|
||||
|
||||
### MSI
|
||||
## MSI
|
||||
|
||||
Você também pode usar msi em vez de `rustdesk.exe --silent-install`.
|
||||
|
||||
https://rustdesk.com/docs/en/client/windows/msi/
|
||||
|
||||
|
||||
### Winget
|
||||
## Winget
|
||||
|
||||
você pode implantar via powershell com winget também (isso instala via a versão da Microsoft do apt - parte das instalações mais recentes do Windows)
|
||||
|
||||
@@ -198,7 +198,7 @@ de uma janela do powershell ou via script (por exemplo via GPO)
|
||||
winget install --id=RustDesk.RustDesk -e
|
||||
```
|
||||
|
||||
### macOS Bash
|
||||
## macOS Bash
|
||||
|
||||
```sh
|
||||
#!/bin/bash
|
||||
@@ -209,7 +209,7 @@ rustdesk_pw=$(openssl rand -hex 4)
|
||||
# Obtenha sua string de configuração do seu portal Web e preencha abaixo
|
||||
rustdesk_cfg="configstring"
|
||||
|
||||
################################### Por favor não edite abaixo desta linha #########################################
|
||||
################################## Por favor não edite abaixo desta linha #########################################
|
||||
|
||||
# Solicitação de senha de root para elevação de privilégio
|
||||
[ "$UID" -eq 0 ] || exec sudo bash "$0" "$@"
|
||||
@@ -275,7 +275,7 @@ echo "Por favor complete a instalação na GUI, lançando RustDesk agora."
|
||||
open -n /Applications/RustDesk.app
|
||||
```
|
||||
|
||||
### Linux
|
||||
## Linux
|
||||
|
||||
```sh
|
||||
#!/bin/bash
|
||||
@@ -286,7 +286,7 @@ rustdesk_pw=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 8 | head -n 1)
|
||||
# Obtenha sua string de configuração do seu portal Web e preencha abaixo
|
||||
rustdesk_cfg="configstring"
|
||||
|
||||
################################### Por favor não edite abaixo desta linha #########################################
|
||||
################################## Por favor não edite abaixo desta linha #########################################
|
||||
|
||||
# Verificar se o script está sendo executado como root
|
||||
if [[ $EUID -ne 0 ]]; then
|
||||
|
||||
@@ -12,7 +12,7 @@ pre: "<b>2.4. </b>"
|
||||
|
||||
可以通过将 `rustdesk_pw` 后面 `()` 内的内容更改为您首选的密码来将永久密码从随机更改为您首选的密码,这适用于 PowerShell,其他平台的相应行也是如此。
|
||||
|
||||
### PowerShell
|
||||
## PowerShell
|
||||
|
||||
```powershell
|
||||
$ErrorActionPreference= 'silentlycontinue'
|
||||
@@ -23,7 +23,7 @@ $rustdesk_pw=(-join ((65..90) + (97..122) | Get-Random -Count 12 | % {[char]$_})
|
||||
# 从您的 Web 门户获取配置字符串并填写下面
|
||||
$rustdesk_cfg="configstring"
|
||||
|
||||
################################### 请不要编辑此行以下的内容 #########################################
|
||||
################################## 请不要编辑此行以下的内容 #########################################
|
||||
|
||||
# 以管理员身份运行并保持在当前目录
|
||||
if (-Not ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator))
|
||||
@@ -133,7 +133,7 @@ Write-Output "密码: $rustdesk_pw"
|
||||
Write-Output "..............................................."
|
||||
```
|
||||
|
||||
### Windows 批处理/cmd
|
||||
## Windows 批处理/cmd
|
||||
|
||||
```bat
|
||||
@echo off
|
||||
@@ -181,14 +181,14 @@ echo 密码: %rustdesk_pw%
|
||||
echo ...............................................
|
||||
```
|
||||
|
||||
### MSI
|
||||
## MSI
|
||||
|
||||
您也可以使用 msi 而不是 `rustdesk.exe --silent-install`。
|
||||
|
||||
https://rustdesk.com/docs/en/client/windows/msi/
|
||||
|
||||
|
||||
### Winget
|
||||
## Winget
|
||||
|
||||
您也可以通过 powershell 使用 winget 进行部署(这通过微软版本的 apt 安装 - 大多数最新 Windows 安装的一部分)
|
||||
|
||||
@@ -198,7 +198,7 @@ https://rustdesk.com/docs/en/client/windows/msi/
|
||||
winget install --id=RustDesk.RustDesk -e
|
||||
```
|
||||
|
||||
### macOS Bash
|
||||
## macOS Bash
|
||||
|
||||
```sh
|
||||
#!/bin/bash
|
||||
@@ -209,7 +209,7 @@ rustdesk_pw=$(openssl rand -hex 4)
|
||||
# 从您的 Web 门户获取配置字符串并填写下面
|
||||
rustdesk_cfg="configstring"
|
||||
|
||||
################################### 请不要编辑此行以下的内容 #########################################
|
||||
################################## 请不要编辑此行以下的内容 #########################################
|
||||
|
||||
# 请求 root 密码以进行权限提升
|
||||
[ "$UID" -eq 0 ] || exec sudo bash "$0" "$@"
|
||||
@@ -275,7 +275,7 @@ echo "请在 GUI 上完成安装,现在启动 RustDesk。"
|
||||
open -n /Applications/RustDesk.app
|
||||
```
|
||||
|
||||
### Linux
|
||||
## Linux
|
||||
|
||||
```sh
|
||||
#!/bin/bash
|
||||
@@ -286,7 +286,7 @@ rustdesk_pw=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 8 | head -n 1)
|
||||
# 从您的 Web 门户获取配置字符串并填写下面
|
||||
rustdesk_cfg="configstring"
|
||||
|
||||
################################### 请不要编辑此行以下的内容 #########################################
|
||||
################################## 请不要编辑此行以下的内容 #########################################
|
||||
|
||||
# 检查脚本是否以 root 身份运行
|
||||
if [[ $EUID -ne 0 ]]; then
|
||||
|
||||
@@ -12,7 +12,7 @@ pre: "<b>2.4. </b>"
|
||||
|
||||
永久密碼可以透過修改 PowerShell 中 `rustdesk_pw` 後面的 `()` 中的內容,以及其他平台相應行的內容,從隨機密碼更改為您偏好的密碼。
|
||||
|
||||
### PowerShell
|
||||
## PowerShell
|
||||
|
||||
```powershell
|
||||
$ErrorActionPreference= 'silentlycontinue'
|
||||
@@ -23,7 +23,7 @@ $rustdesk_pw=(-join ((65..90) + (97..122) | Get-Random -Count 12 | % {[char]$_})
|
||||
# 從您的 Web 門戶獲取配置字串並填入以下位置
|
||||
$rustdesk_cfg="configstring"
|
||||
|
||||
################################### 請勿編輯此行以下的內容 #########################################
|
||||
################################## 請勿編輯此行以下的內容 #########################################
|
||||
|
||||
# 以管理員身份執行並保持在目前目錄
|
||||
if (-Not ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator))
|
||||
@@ -133,7 +133,7 @@ Write-Output "密碼:$rustdesk_pw"
|
||||
Write-Output "..............................................."
|
||||
```
|
||||
|
||||
### Windows batch/cmd
|
||||
## Windows batch/cmd
|
||||
|
||||
```bat
|
||||
@echo off
|
||||
@@ -181,14 +181,14 @@ echo 密碼:%rustdesk_pw%
|
||||
echo ...............................................
|
||||
```
|
||||
|
||||
### MSI
|
||||
## MSI
|
||||
|
||||
您也可以使用 msi 代替 `rustdesk.exe --silent-install`。
|
||||
|
||||
https://rustdesk.com/docs/en/client/windows/msi/
|
||||
|
||||
|
||||
### Winget
|
||||
## Winget
|
||||
|
||||
您也可以透過帶有 winget 的 powershell 進行部署(這會透過 Microsoft 版本的 apt 進行安裝 - 大多數最新 Windows 安裝的一部分)
|
||||
|
||||
@@ -198,7 +198,7 @@ https://rustdesk.com/docs/en/client/windows/msi/
|
||||
winget install --id=RustDesk.RustDesk -e
|
||||
```
|
||||
|
||||
### macOS Bash
|
||||
## macOS Bash
|
||||
|
||||
```sh
|
||||
#!/bin/bash
|
||||
@@ -209,7 +209,7 @@ rustdesk_pw=$(openssl rand -hex 4)
|
||||
# 從您的 Web 門戶獲取配置字串並填入以下位置
|
||||
rustdesk_cfg="configstring"
|
||||
|
||||
################################### 請勿編輯此行以下的內容 #########################################
|
||||
################################## 請勿編輯此行以下的內容 #########################################
|
||||
|
||||
# 需要 root 密碼進行權限提升
|
||||
[ "$UID" -eq 0 ] || exec sudo bash "$0" "$@"
|
||||
@@ -275,7 +275,7 @@ echo "請在 GUI 上完成安裝,正在啟動 RustDesk。"
|
||||
open -n /Applications/RustDesk.app
|
||||
```
|
||||
|
||||
### Linux
|
||||
## Linux
|
||||
|
||||
```sh
|
||||
#!/bin/bash
|
||||
@@ -286,7 +286,7 @@ rustdesk_pw=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 8 | head -n 1)
|
||||
# 從您的 Web 門戶獲取配置字串並填入以下位置
|
||||
rustdesk_cfg="configstring"
|
||||
|
||||
################################### 請勿編輯此行以下的內容 #########################################
|
||||
################################## 請勿編輯此行以下的內容 #########################################
|
||||
|
||||
# 檢查腳本是否以 root 身份執行
|
||||
if [[ $EUID -ne 0 ]]; then
|
||||
|
||||
Reference in New Issue
Block a user