From cb197b4e70f5ea4ab419a6bbf5040b02cb99a15d Mon Sep 17 00:00:00 2001 From: dinger1986 Date: Wed, 30 Aug 2023 15:05:37 +0100 Subject: [PATCH 01/10] Create _index.en.md --- .../Client Deployment/3rd Integrations/_index.en.md | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 content/self-host/Client Deployment/3rd Integrations/_index.en.md diff --git a/content/self-host/Client Deployment/3rd Integrations/_index.en.md b/content/self-host/Client Deployment/3rd Integrations/_index.en.md new file mode 100644 index 0000000..f022cac --- /dev/null +++ b/content/self-host/Client Deployment/3rd Integrations/_index.en.md @@ -0,0 +1,7 @@ +--- +title: 3rd Party Integrations +weight: 400 +pre: "2.4.1 " +--- + +{{% children depth="3" showhidden="true" %}} From 2cd6d0f81723e31a0fc058e75ef6919898220fbc Mon Sep 17 00:00:00 2001 From: dinger1986 Date: Wed, 30 Aug 2023 15:06:27 +0100 Subject: [PATCH 02/10] Rename _index.en.md to _index.en.md --- .../{3rd Integrations => integrations}/_index.en.md | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename content/self-host/Client Deployment/{3rd Integrations => integrations}/_index.en.md (100%) diff --git a/content/self-host/Client Deployment/3rd Integrations/_index.en.md b/content/self-host/Client Deployment/integrations/_index.en.md similarity index 100% rename from content/self-host/Client Deployment/3rd Integrations/_index.en.md rename to content/self-host/Client Deployment/integrations/_index.en.md From 85201603c68872d529ffd7eddf455f632ed06858 Mon Sep 17 00:00:00 2001 From: dinger1986 Date: Wed, 30 Aug 2023 15:07:01 +0100 Subject: [PATCH 03/10] Rename _index.en.md to _index.en.md --- .../{Client Deployment => client-deployment}/_index.en.md | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename content/self-host/{Client Deployment => client-deployment}/_index.en.md (100%) diff --git a/content/self-host/Client Deployment/_index.en.md b/content/self-host/client-deployment/_index.en.md similarity index 100% rename from content/self-host/Client Deployment/_index.en.md rename to content/self-host/client-deployment/_index.en.md From 95df118dbd0b24fdb21c48aaee9a681f6383b10f Mon Sep 17 00:00:00 2001 From: dinger1986 Date: Wed, 30 Aug 2023 15:30:20 +0100 Subject: [PATCH 04/10] Create _index.tr.md --- .../self-host/client-deployment/_index.tr.md | 280 ++++++++++++++++++ 1 file changed, 280 insertions(+) create mode 100644 content/self-host/client-deployment/_index.tr.md diff --git a/content/self-host/client-deployment/_index.tr.md b/content/self-host/client-deployment/_index.tr.md new file mode 100644 index 0000000..c16f150 --- /dev/null +++ b/content/self-host/client-deployment/_index.tr.md @@ -0,0 +1,280 @@ +--- +title: Client Deployment +weight: 400 +pre: "2.4. " +--- + +Aşağıdaki yöntemlerden birini kullanarak dağıtım yapabilirsiniz. Bazıları [Client](/docs/en/client/#configuring-rustdesk) bölümünde ele alınmıştır. + +Alternatif olarak, RMM, intune vb. ile kütle dağıtım komut dosyaları da kullanabilirsiniz. Kimlik ve şifre komut dosyası tarafından üretilir, bunu toplamalısınız veya kimlik ve şifreyi toplamak için farklı komut dosyalarına bölmelisiniz. + +Kalıcı şifreyi rastgele değerden tercih ettiğiniz bir şifreye değiştirmek için, rustdesk_pw'in içindeki () içeriğini tercih ettiğiniz şifreyle değiştirerek yapabilirsiniz. + +### Powershell + +```ps +$ErrorActionPreference= 'silentlycontinue' + +# Şifre değişkenine rastgele bir şifre atayın +$rustdesk_pw = (-join ((65..90) + (97..122) | Get-Random -Count 12 | % {[char]$_})) + +# Web portalından yapılandırma dizgesini alın ve aşağıdaki alanı doldurun. +rustdesk_cfg="configstring" + +####################################Lütfen Aşağıdaki Satırı Düzenlemeyin########################################## + +# Yönetici olarak çalıştırın ve geçerli dizinde kalır +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") +{ +write-output "RustDesk $rdver en yeni sürüm" + +exit +} + +If (!(Test-Path c:\Temp)) { + New-Item -ItemType Directory -Force -Path c:\Temp > null +} + +cd c:\Temp + +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' +$arrService = Get-Service -Name $ServiceName -ErrorAction SilentlyContinue + +if ($arrService -eq $null) +{ + Start-Sleep -seconds 20 +} + +while ($arrService.Status -ne 'Running') +{ + Start-Service $ServiceName + Start-Sleep -seconds 5 + $arrService.Refresh() +} + +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) +{ +stop-process -ProcessName rustdesk -Force +} + +Start-Process "$env:ProgramFiles\RustDesk\RustDesk.exe" "--password $rustdesk_pw" -wait + +Write-Output "..............................................." +# Kimlik Değişkeninin değerini gösterin +Write-Output "RustDesk Kimlik: $rustdesk_id" + +# Şifre Değişkeninin değerini gösterin +Write-Output "Şifre: $rustdesk_pw" +Write-Output "..............................................." +``` + + +### Mac OS Bash + +```sh +#!/bin/bash + +# Şifre değişkenine rastgele bir şifre atayın +rustdesk_pw=$(openssl rand -hex 4) + +# Web portalından yapılandırma dizgesini alın ve aşağıdaki alanı doldurun. +rustdesk_cfg="configstring" + +####################################Lütfen Aşağıdaki Satırı Düzenlemeyin########################################## + +# Skriptin kök olarak çalıştırılıp çalıştırılmadığını kontrol edin +if [[ $EUID -ne 0 ]]; then + echo " + +Bu komut dosyası kök olarak çalıştırılmalıdır." + exit 1 +fi + +# rustdesk.dmg dosyasının yolunu belirtin +dmg_file="/tmp/rustdesk-1.2.2-x86_64.dmg" + +# DMG için bağlama noktasını belirtin (geçici dizin) +mount_point="/Volumes/RustDesk" + +# rustdesk.dmg dosyasını indirin +echo "RustDesk İndiriliyor" + +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 + +# DMG dosyasını belirtilen bağlama noktasına bağla +hdiutil attach "$dmg_file" -mountpoint "$mount_point" &> /dev/null + +# Bağlama işleminin başarılı olup olmadığını kontrol edin +if [ $? -eq 0 ]; then + # Bağlanan DMG'nin içeriğini /Applications klasörüne kopyalayın + cp -R "$mount_point/RustDesk.app" "/Applications/" &> /dev/null + + # DMG dosyasını bağlamayı kaldırın + hdiutil detach "$mount_point" &> /dev/null +else + echo "RustDesk DMG'si bağlanamadı. Kurulum iptal edildi." + exit 1 +fi + +# rustdesk komutunu --get-id ile çalıştırın ve çıktıyı rustdesk_id değişkenine kaydedin +cd /Applications/RustDesk.app/Contents/MacOS/ +rustdesk_id=$(./RustDesk --get-id) + +# Yeni şifreyi RustDesk'e uygulayın +./RustDesk --server & +/Applications/RustDesk.app/Contents/MacOS/RustDesk --password $rustdesk_pw &> /dev/null + +/Applications/RustDesk.app/Contents/MacOS/RustDesk --config $rustdesk_cfg + +# Tüm RustDesk adlı işlemleri sonlandırın +rdpid=$(pgrep RustDesk) +kill $rdpid &> /dev/null + +echo "..............................................." +# rustdesk_id boş değilse kontrol edin +if [ -n "$rustdesk_id" ]; then + echo "RustDesk Kimlik: $rustdesk_id" +else + echo "RustDesk Kimlik alınamadı." +fi + +# Şifre değişkeninin değerini yazdırın +echo "Şifre: $rustdesk_pw" +echo "..............................................." + +echo "Lütfen kurulumu GUI üzerinde tamamlayın, RustDesk'i şimdi başlatıyorum." +open -n /Applications/RustDesk.app +``` + +### Linux + +```sh +#!/bin/bash + +# Rastgele bir değer atayarak şifre değişkenine atayın +rustdesk_pw=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 8 | head -n 1) + + +# Web portalından yapılandırma dizgesini alın ve aşağıdaki alanı doldurun. +rustdesk_cfg="encryptedconfigstring" + +####################################Lütfen Aşağıdaki Satırı Düzenlemeyin########################################## + +# Skriptin kök olarak çalıştırılıp çalıştırılmadığını kontrol edin +if [[ $EUID -ne 0 ]]; then + echo "Bu komut dosyası kök olarak çalıştırılmalıdır." + exit 1 +fi + +# İşletim sistemini belirleyin +if [ -f /etc/os-release ]; then + # freedesktop.org ve systemd + . /etc/os-release + OS=$NAME + VER=$VERSION_ID + + UPSTREAM_ID=${ID_LIKE,,} + + # Fallback to ID_LIKE if ID was not 'ubuntu' or 'debian' + if [ "${UPSTREAM_ID}" != "debian" ] && [ "${UPSTREAM_ID}" != "ubuntu" ]; then + UPSTREAM_ID="$(echo ${ID_LIKE,,} | sed s/\"//g | cut -d' ' -f1)" + fi + + +elif type lsb_release >/dev/null 2>&1; then + # linuxbase.org + OS=$(lsb_release -si) + VER=$(lsb_release -sr) +elif [ -f /etc/lsb-release ]; then + # For some versions of Debian/Ubuntu without lsb_release command + . /etc/lsb-release + OS=$DISTRIB_ID + VER=$DISTRIB_RELEASE +elif [ -f /etc/debian_version ]; then + # Older Debian/Ubuntu/etc. + OS=Debian + VER=$(cat /etc/debian_version) +elif [ -f /etc/SuSe-release ]; then + # Older SuSE/etc. + OS=SuSE + VER=$(cat /etc/SuSe-release) +elif [ -f /etc/redhat-release ]; then + # Older Red Hat, CentOS, etc. + OS=RedHat + VER=$(cat /etc/redhat-release) +else + # Fall back to uname, e.g. "Linux ", also works for BSD, etc. + OS=$(uname -s) + VER=$(uname -r) +fi + +# Rustdesk'i Yükle + +echo "Rustdesk Yükleniyor" +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 + apt-get install -fy ./rustdesk-1.2.2-x86_64.deb > null +elif [ "$OS" = "CentOS" ] || [ "$OS" = "RedHat" ] || [ "$OS" = "Fedora Linux" ] || [ "${UPSTREAM_ID}" = "rhel" ] ; then + wget https://github.com/rustdesk/rustdesk/releases/download/1.2.2/rustdesk-1.2.2-0.x86_64.rpm + yum localinstall ./rustdesk-1.2.2-0.x86_64.rpm -y > null +else + echo "Desteklenmeyen İşletim Sistemi" + # burada kullanıcı + +dan yine de kurulumu denemek için izin isteyebilirsiniz + # eğer evet derlerse, kurulumu yapın + # eğer hayır derlerse, komut dosyasını sonlandırın + exit 1 +fi + +systemctl stop rustdesk + +# rustdesk komutunu --get-id ile çalıştırın ve çıktıyı rustdesk_id değişkenine kaydedin +rustdesk_id=$(rustdesk --get-id) + +# Yeni şifreyi RustDesk'e uygulayın +systemctl start rustdesk +rustdesk --password $rustdesk_pw &> /dev/null + +rustdesk --config $rustdesk_cfg + +systemctl restart rustdesk + + +echo "..............................................." +# rustdesk_id boş değilse kontrol edin +if [ -n "$rustdesk_id" ]; then + echo "RustDesk Kimlik: $rustdesk_id" +else + echo "RustDesk Kimlik alınamadı." +fi + +# Şifre değişkeninin değerini yazdırın +echo "Şifre: $rustdesk_password" +echo "..............................................." +``` + +Bu komut dosyaları, RustDesk'in farklı işletim sistemlerine dağıtımını gerçekleştirmek için tasarlanmıştır. Her bir komut dosyası belirli bir işletim sistemi için uygundur ve RustDesk'in yüklenmesini, yapılandırılmasını ve çalıştırılmasını otomatikleştirmektedir. From 4cd31f6315a0809c15eb7c5f606acb503e9532d1 Mon Sep 17 00:00:00 2001 From: dinger1986 Date: Wed, 30 Aug 2023 15:30:38 +0100 Subject: [PATCH 05/10] Delete content/self-host/Client Deployment/_index.tr.md --- .../self-host/Client Deployment/_index.tr.md | 280 ------------------ 1 file changed, 280 deletions(-) delete mode 100644 content/self-host/Client Deployment/_index.tr.md diff --git a/content/self-host/Client Deployment/_index.tr.md b/content/self-host/Client Deployment/_index.tr.md deleted file mode 100644 index c16f150..0000000 --- a/content/self-host/Client Deployment/_index.tr.md +++ /dev/null @@ -1,280 +0,0 @@ ---- -title: Client Deployment -weight: 400 -pre: "2.4. " ---- - -Aşağıdaki yöntemlerden birini kullanarak dağıtım yapabilirsiniz. Bazıları [Client](/docs/en/client/#configuring-rustdesk) bölümünde ele alınmıştır. - -Alternatif olarak, RMM, intune vb. ile kütle dağıtım komut dosyaları da kullanabilirsiniz. Kimlik ve şifre komut dosyası tarafından üretilir, bunu toplamalısınız veya kimlik ve şifreyi toplamak için farklı komut dosyalarına bölmelisiniz. - -Kalıcı şifreyi rastgele değerden tercih ettiğiniz bir şifreye değiştirmek için, rustdesk_pw'in içindeki () içeriğini tercih ettiğiniz şifreyle değiştirerek yapabilirsiniz. - -### Powershell - -```ps -$ErrorActionPreference= 'silentlycontinue' - -# Şifre değişkenine rastgele bir şifre atayın -$rustdesk_pw = (-join ((65..90) + (97..122) | Get-Random -Count 12 | % {[char]$_})) - -# Web portalından yapılandırma dizgesini alın ve aşağıdaki alanı doldurun. -rustdesk_cfg="configstring" - -####################################Lütfen Aşağıdaki Satırı Düzenlemeyin########################################## - -# Yönetici olarak çalıştırın ve geçerli dizinde kalır -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") -{ -write-output "RustDesk $rdver en yeni sürüm" - -exit -} - -If (!(Test-Path c:\Temp)) { - New-Item -ItemType Directory -Force -Path c:\Temp > null -} - -cd c:\Temp - -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' -$arrService = Get-Service -Name $ServiceName -ErrorAction SilentlyContinue - -if ($arrService -eq $null) -{ - Start-Sleep -seconds 20 -} - -while ($arrService.Status -ne 'Running') -{ - Start-Service $ServiceName - Start-Sleep -seconds 5 - $arrService.Refresh() -} - -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) -{ -stop-process -ProcessName rustdesk -Force -} - -Start-Process "$env:ProgramFiles\RustDesk\RustDesk.exe" "--password $rustdesk_pw" -wait - -Write-Output "..............................................." -# Kimlik Değişkeninin değerini gösterin -Write-Output "RustDesk Kimlik: $rustdesk_id" - -# Şifre Değişkeninin değerini gösterin -Write-Output "Şifre: $rustdesk_pw" -Write-Output "..............................................." -``` - - -### Mac OS Bash - -```sh -#!/bin/bash - -# Şifre değişkenine rastgele bir şifre atayın -rustdesk_pw=$(openssl rand -hex 4) - -# Web portalından yapılandırma dizgesini alın ve aşağıdaki alanı doldurun. -rustdesk_cfg="configstring" - -####################################Lütfen Aşağıdaki Satırı Düzenlemeyin########################################## - -# Skriptin kök olarak çalıştırılıp çalıştırılmadığını kontrol edin -if [[ $EUID -ne 0 ]]; then - echo " - -Bu komut dosyası kök olarak çalıştırılmalıdır." - exit 1 -fi - -# rustdesk.dmg dosyasının yolunu belirtin -dmg_file="/tmp/rustdesk-1.2.2-x86_64.dmg" - -# DMG için bağlama noktasını belirtin (geçici dizin) -mount_point="/Volumes/RustDesk" - -# rustdesk.dmg dosyasını indirin -echo "RustDesk İndiriliyor" - -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 - -# DMG dosyasını belirtilen bağlama noktasına bağla -hdiutil attach "$dmg_file" -mountpoint "$mount_point" &> /dev/null - -# Bağlama işleminin başarılı olup olmadığını kontrol edin -if [ $? -eq 0 ]; then - # Bağlanan DMG'nin içeriğini /Applications klasörüne kopyalayın - cp -R "$mount_point/RustDesk.app" "/Applications/" &> /dev/null - - # DMG dosyasını bağlamayı kaldırın - hdiutil detach "$mount_point" &> /dev/null -else - echo "RustDesk DMG'si bağlanamadı. Kurulum iptal edildi." - exit 1 -fi - -# rustdesk komutunu --get-id ile çalıştırın ve çıktıyı rustdesk_id değişkenine kaydedin -cd /Applications/RustDesk.app/Contents/MacOS/ -rustdesk_id=$(./RustDesk --get-id) - -# Yeni şifreyi RustDesk'e uygulayın -./RustDesk --server & -/Applications/RustDesk.app/Contents/MacOS/RustDesk --password $rustdesk_pw &> /dev/null - -/Applications/RustDesk.app/Contents/MacOS/RustDesk --config $rustdesk_cfg - -# Tüm RustDesk adlı işlemleri sonlandırın -rdpid=$(pgrep RustDesk) -kill $rdpid &> /dev/null - -echo "..............................................." -# rustdesk_id boş değilse kontrol edin -if [ -n "$rustdesk_id" ]; then - echo "RustDesk Kimlik: $rustdesk_id" -else - echo "RustDesk Kimlik alınamadı." -fi - -# Şifre değişkeninin değerini yazdırın -echo "Şifre: $rustdesk_pw" -echo "..............................................." - -echo "Lütfen kurulumu GUI üzerinde tamamlayın, RustDesk'i şimdi başlatıyorum." -open -n /Applications/RustDesk.app -``` - -### Linux - -```sh -#!/bin/bash - -# Rastgele bir değer atayarak şifre değişkenine atayın -rustdesk_pw=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 8 | head -n 1) - - -# Web portalından yapılandırma dizgesini alın ve aşağıdaki alanı doldurun. -rustdesk_cfg="encryptedconfigstring" - -####################################Lütfen Aşağıdaki Satırı Düzenlemeyin########################################## - -# Skriptin kök olarak çalıştırılıp çalıştırılmadığını kontrol edin -if [[ $EUID -ne 0 ]]; then - echo "Bu komut dosyası kök olarak çalıştırılmalıdır." - exit 1 -fi - -# İşletim sistemini belirleyin -if [ -f /etc/os-release ]; then - # freedesktop.org ve systemd - . /etc/os-release - OS=$NAME - VER=$VERSION_ID - - UPSTREAM_ID=${ID_LIKE,,} - - # Fallback to ID_LIKE if ID was not 'ubuntu' or 'debian' - if [ "${UPSTREAM_ID}" != "debian" ] && [ "${UPSTREAM_ID}" != "ubuntu" ]; then - UPSTREAM_ID="$(echo ${ID_LIKE,,} | sed s/\"//g | cut -d' ' -f1)" - fi - - -elif type lsb_release >/dev/null 2>&1; then - # linuxbase.org - OS=$(lsb_release -si) - VER=$(lsb_release -sr) -elif [ -f /etc/lsb-release ]; then - # For some versions of Debian/Ubuntu without lsb_release command - . /etc/lsb-release - OS=$DISTRIB_ID - VER=$DISTRIB_RELEASE -elif [ -f /etc/debian_version ]; then - # Older Debian/Ubuntu/etc. - OS=Debian - VER=$(cat /etc/debian_version) -elif [ -f /etc/SuSe-release ]; then - # Older SuSE/etc. - OS=SuSE - VER=$(cat /etc/SuSe-release) -elif [ -f /etc/redhat-release ]; then - # Older Red Hat, CentOS, etc. - OS=RedHat - VER=$(cat /etc/redhat-release) -else - # Fall back to uname, e.g. "Linux ", also works for BSD, etc. - OS=$(uname -s) - VER=$(uname -r) -fi - -# Rustdesk'i Yükle - -echo "Rustdesk Yükleniyor" -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 - apt-get install -fy ./rustdesk-1.2.2-x86_64.deb > null -elif [ "$OS" = "CentOS" ] || [ "$OS" = "RedHat" ] || [ "$OS" = "Fedora Linux" ] || [ "${UPSTREAM_ID}" = "rhel" ] ; then - wget https://github.com/rustdesk/rustdesk/releases/download/1.2.2/rustdesk-1.2.2-0.x86_64.rpm - yum localinstall ./rustdesk-1.2.2-0.x86_64.rpm -y > null -else - echo "Desteklenmeyen İşletim Sistemi" - # burada kullanıcı - -dan yine de kurulumu denemek için izin isteyebilirsiniz - # eğer evet derlerse, kurulumu yapın - # eğer hayır derlerse, komut dosyasını sonlandırın - exit 1 -fi - -systemctl stop rustdesk - -# rustdesk komutunu --get-id ile çalıştırın ve çıktıyı rustdesk_id değişkenine kaydedin -rustdesk_id=$(rustdesk --get-id) - -# Yeni şifreyi RustDesk'e uygulayın -systemctl start rustdesk -rustdesk --password $rustdesk_pw &> /dev/null - -rustdesk --config $rustdesk_cfg - -systemctl restart rustdesk - - -echo "..............................................." -# rustdesk_id boş değilse kontrol edin -if [ -n "$rustdesk_id" ]; then - echo "RustDesk Kimlik: $rustdesk_id" -else - echo "RustDesk Kimlik alınamadı." -fi - -# Şifre değişkeninin değerini yazdırın -echo "Şifre: $rustdesk_password" -echo "..............................................." -``` - -Bu komut dosyaları, RustDesk'in farklı işletim sistemlerine dağıtımını gerçekleştirmek için tasarlanmıştır. Her bir komut dosyası belirli bir işletim sistemi için uygundur ve RustDesk'in yüklenmesini, yapılandırılmasını ve çalıştırılmasını otomatikleştirmektedir. From de5de7b0db22ee93f6cc2a7a3cc8c3f32ecf820a Mon Sep 17 00:00:00 2001 From: dinger1986 Date: Wed, 30 Aug 2023 15:31:12 +0100 Subject: [PATCH 06/10] Create integrations --- content/self-host/client-deployment/integrations | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 content/self-host/client-deployment/integrations diff --git a/content/self-host/client-deployment/integrations b/content/self-host/client-deployment/integrations new file mode 100644 index 0000000..f022cac --- /dev/null +++ b/content/self-host/client-deployment/integrations @@ -0,0 +1,7 @@ +--- +title: 3rd Party Integrations +weight: 400 +pre: "2.4.1 " +--- + +{{% children depth="3" showhidden="true" %}} From ba88f4c5f88656da716cb120de16ab29b945a88d Mon Sep 17 00:00:00 2001 From: dinger1986 Date: Wed, 30 Aug 2023 15:32:09 +0100 Subject: [PATCH 07/10] Delete content/self-host/client-deployment/integrations --- content/self-host/client-deployment/integrations | 7 ------- 1 file changed, 7 deletions(-) delete mode 100644 content/self-host/client-deployment/integrations diff --git a/content/self-host/client-deployment/integrations b/content/self-host/client-deployment/integrations deleted file mode 100644 index f022cac..0000000 --- a/content/self-host/client-deployment/integrations +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: 3rd Party Integrations -weight: 400 -pre: "2.4.1 " ---- - -{{% children depth="3" showhidden="true" %}} From 75a6322a3f62634a15d89f3ecdeba8d75e779295 Mon Sep 17 00:00:00 2001 From: dinger1986 Date: Wed, 30 Aug 2023 15:32:31 +0100 Subject: [PATCH 08/10] Create _index.en.md --- .../self-host/client-deployment/integrations/_index.en.md | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 content/self-host/client-deployment/integrations/_index.en.md diff --git a/content/self-host/client-deployment/integrations/_index.en.md b/content/self-host/client-deployment/integrations/_index.en.md new file mode 100644 index 0000000..f022cac --- /dev/null +++ b/content/self-host/client-deployment/integrations/_index.en.md @@ -0,0 +1,7 @@ +--- +title: 3rd Party Integrations +weight: 400 +pre: "2.4.1 " +--- + +{{% children depth="3" showhidden="true" %}} From f1d38cd87acda9cacd27ac78856783e54ccb23bf Mon Sep 17 00:00:00 2001 From: dinger1986 Date: Wed, 30 Aug 2023 15:33:08 +0100 Subject: [PATCH 09/10] Create _index.en.md --- .../integrations/tactical-rmm/_index.en.md | 87 +++++++++++++++++++ 1 file changed, 87 insertions(+) create mode 100644 content/self-host/client-deployment/integrations/tactical-rmm/_index.en.md diff --git a/content/self-host/client-deployment/integrations/tactical-rmm/_index.en.md b/content/self-host/client-deployment/integrations/tactical-rmm/_index.en.md new file mode 100644 index 0000000..535fcbb --- /dev/null +++ b/content/self-host/client-deployment/integrations/tactical-rmm/_index.en.md @@ -0,0 +1,87 @@ +--- +title: Tactical RMM +weight: 100 +--- + +## To Use Tactical RMM with RustDesk you need to the the following. + +1. Install your own Tactical RMM Server, following their [official docs](https://docs.tacticalrmm.com/) and open ports. +2. Create the following scripts (all are powershell). +3. Create a [URL Action](https://docs.tacticalrmm.com/functions/url_actions/). +4. Create [custom fields](https://docs.tacticalrmm.com/functions/custom_fields/) for the RustDesk ID and password. +5. Create [collector tasks](https://docs.tacticalrmm.com/functions/automated_tasks/#collector-tasks). + +## Install Script Replace IPADDRESS and KEY +``` +$ErrorActionPreference= 'silentlycontinue' + +If (!(Test-Path c:\Temp)) { + New-Item -ItemType Directory -Force -Path c:\Temp > null +} + +cd c:\Temp + +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' +$arrService = Get-Service -Name $ServiceName -ErrorAction SilentlyContinue + +if ($arrService -eq $null) +{ + Start-Sleep -seconds 20 +} + +while ($arrService.Status -ne 'Running') +{ + Start-Service $ServiceName + 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 = 'IPADDRESS' `nnat_type = 1`nserial = 0`n`n[options]`ncustom-rendezvous-server = 'IPADDRESS'`nkey = 'KEY='`nrelay-server = 'IPADDRESS'`napi-server = 'https://IPADDRESS'" +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 = 'IPADDRESS' `nnat_type = 1`nserial = 0`n`n[options]`ncustom-rendezvous-server = 'IPADDRESS'`nkey = 'KEY='`nrelay-server = 'IPADDRESS'`napi-server = 'https://IPADDRESS'" + +net start rustdesk +``` + +## RustDesk Get ID (Collector Script needs Custom Agent Field) + +``` +$ErrorActionPreference= 'silentlycontinue' + +cd $env:ProgramFiles\RustDesk\ +.\RustDesk.exe --get-id | out-host +``` + +## RustDesk Set and Get Password (Collector Script needs Custom Agent Field) +``` +$ErrorActionPreference= 'silentlycontinue' + +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_pw + +net start rustdesk > null + +``` +## RustDesk URL Action +``` +rustdesk://connection/new/{{agent.rustdeskid}}?password={{agent.rustdeskpwd}} + ``` +## Add Custom Agent Fields +`rustdeskid Type = Text`
+`rustdeskpwd Type = Text` From 2544feca24f06599559335ad9f9ec04575f1836e Mon Sep 17 00:00:00 2001 From: dinger1986 Date: Wed, 30 Aug 2023 15:33:33 +0100 Subject: [PATCH 10/10] Delete content/self-host/Client Deployment directory --- .../Tactical RMM/_index.en.md | 87 ------------------- .../integrations/_index.en.md | 7 -- 2 files changed, 94 deletions(-) delete mode 100644 content/self-host/Client Deployment/3rd Integrations/Tactical RMM/_index.en.md delete mode 100644 content/self-host/Client Deployment/integrations/_index.en.md diff --git a/content/self-host/Client Deployment/3rd Integrations/Tactical RMM/_index.en.md b/content/self-host/Client Deployment/3rd Integrations/Tactical RMM/_index.en.md deleted file mode 100644 index 535fcbb..0000000 --- a/content/self-host/Client Deployment/3rd Integrations/Tactical RMM/_index.en.md +++ /dev/null @@ -1,87 +0,0 @@ ---- -title: Tactical RMM -weight: 100 ---- - -## To Use Tactical RMM with RustDesk you need to the the following. - -1. Install your own Tactical RMM Server, following their [official docs](https://docs.tacticalrmm.com/) and open ports. -2. Create the following scripts (all are powershell). -3. Create a [URL Action](https://docs.tacticalrmm.com/functions/url_actions/). -4. Create [custom fields](https://docs.tacticalrmm.com/functions/custom_fields/) for the RustDesk ID and password. -5. Create [collector tasks](https://docs.tacticalrmm.com/functions/automated_tasks/#collector-tasks). - -## Install Script Replace IPADDRESS and KEY -``` -$ErrorActionPreference= 'silentlycontinue' - -If (!(Test-Path c:\Temp)) { - New-Item -ItemType Directory -Force -Path c:\Temp > null -} - -cd c:\Temp - -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' -$arrService = Get-Service -Name $ServiceName -ErrorAction SilentlyContinue - -if ($arrService -eq $null) -{ - Start-Sleep -seconds 20 -} - -while ($arrService.Status -ne 'Running') -{ - Start-Service $ServiceName - 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 = 'IPADDRESS' `nnat_type = 1`nserial = 0`n`n[options]`ncustom-rendezvous-server = 'IPADDRESS'`nkey = 'KEY='`nrelay-server = 'IPADDRESS'`napi-server = 'https://IPADDRESS'" -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 = 'IPADDRESS' `nnat_type = 1`nserial = 0`n`n[options]`ncustom-rendezvous-server = 'IPADDRESS'`nkey = 'KEY='`nrelay-server = 'IPADDRESS'`napi-server = 'https://IPADDRESS'" - -net start rustdesk -``` - -## RustDesk Get ID (Collector Script needs Custom Agent Field) - -``` -$ErrorActionPreference= 'silentlycontinue' - -cd $env:ProgramFiles\RustDesk\ -.\RustDesk.exe --get-id | out-host -``` - -## RustDesk Set and Get Password (Collector Script needs Custom Agent Field) -``` -$ErrorActionPreference= 'silentlycontinue' - -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_pw - -net start rustdesk > null - -``` -## RustDesk URL Action -``` -rustdesk://connection/new/{{agent.rustdeskid}}?password={{agent.rustdeskpwd}} - ``` -## Add Custom Agent Fields -`rustdeskid Type = Text`
-`rustdeskpwd Type = Text` diff --git a/content/self-host/Client Deployment/integrations/_index.en.md b/content/self-host/Client Deployment/integrations/_index.en.md deleted file mode 100644 index f022cac..0000000 --- a/content/self-host/Client Deployment/integrations/_index.en.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: 3rd Party Integrations -weight: 400 -pre: "2.4.1 " ---- - -{{% children depth="3" showhidden="true" %}}