Coder Social home page Coder Social logo

rustdeskinstall's Introduction

Rustdesk server Install Script

Easy install Script for Rustdesk on linux, should work on any 64bit (32bit arm will install rustdesk server only) debian or centos based system supporting systemd.
For Rustdesk visit https://rustdesk.com

You can use Hetzner to test this with a $20 credit using this referal code https://hetzner.cloud/?ref=p6iUr7jEXmoB

We provide professional hosting and support for RustDesk OSS and RustDesk Pro, please email [email protected] if you need assistance.

How to Install the server

Please setup your firewall on your server prior to running the script.

Make sure you have got access via ssh or otherwise setup prior setting up the firewall, command for UFW is:

ufw allow proto tcp from YOURIP to any port 22

If you have UFW installed use the following commands (you only need port 8000 if you are using the preconfigured install files):

ufw allow 21115:21119/tcp
ufw allow 8000/tcp
ufw allow 21116/udp
sudo ufw enable

Run the following commands:

wget https://raw.githubusercontent.com/dinger1986/rustdeskinstall/master/install.sh
chmod +x install.sh
./install.sh

Choose your preferences from the options given in the script.

Please Note: If you allow the script to create preconfigured install files (with your IP/DNS and key set) it will install gohttpserver using port 8000 for you to easily download the install scripts.

How to update the server

Run the following commands:

wget https://raw.githubusercontent.com/techahold/rustdeskinstall/master/update.sh
chmod +x update.sh
./update.sh

Rustdesk windows powershell install script

Generates a powershell script for install grabbing WAN IP and Key currently in /opt/rustdesk but will be moved to a web url for easy deployment.

Tips

If you want to restart the services use the following commands:

sudo systemctl restart rustdesksignal
sudo systemctl restart rustdeskrelay

rustdeskinstall's People

Contributors

0x3333 avatar amyipdev avatar brainhub24 avatar carefreepineapple avatar dinger1986 avatar dinkelspiel avatar eec-kowen avatar fishorbear avatar gitondezhuts avatar henryc0x0 avatar narukeh avatar osiktech avatar philclifford avatar polisantheeasynick avatar skydiablo avatar tsarmis avatar ukedk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rustdeskinstall's Issues

Question about Extras installed (configs and install HTTP server)

Hello,

Thank you for providing a script that automates the installation of the rustdesk server. I have a question about the install script. At some point, the script asks us if we want to generate configuration files using an http tool for simple deployment on clients. Is this part necessary ? In addition, we connect in http and not in https via the web page. Can I perform the deployment manually without using this part of your script ?

Regards.

Actually it is there!

          Actually it is there!
wget https://raw.githubusercontent.com/techahold/rustdeskinstall/master/update.sh
chmod +x update.sh
./update.sh

Originally posted by @dinger1986 in #30 (comment)

Hello, on Ubuntu 22.04.2 LTS (GNU/Linux 5.15.104-1-pve x86_64) the update command comes with the following error message

"root@RustDeskTest:# chmod +x update.sh
root@RustDeskTest:
# ./update.sh
./update.sh: line 8: syntax error near unexpected token newline' ./update.sh: line 8: '
root@RustDeskTest:~#"

Is the problem with my server?

Running the script ends up with 404

--2022-11-07 15:11:33--  https://github.com/rustdesk/rustdesk-server/releases/download/1.1.6-1/rustdesk-server-linux-x64.zip
Resolving github.com (github.com)... 140.82.121.3
Connecting to github.com (github.com)|140.82.121.3|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2022-11-07 15:11:36 ERROR 404: Not Found.

unzip:  cannot find or open rustdesk-server-linux-x64.zip, rustdesk-server-linux-x64.zip.zip or rustdesk-server-linux-x64.zip.ZIP.

solution: change x64 to amd64

Starting Rustdesk automatically on Windows

I hope this is useful for other people.

Recently install Rustdesk Server on a Windows and maybe there are other ways to improve this. But to run the server automatically create a simple .bat for this.

echo Open RustDesk Automatically
cd C:\Program Files\RustDeskServer\bin\
start hbbr.exe
start hbbs.exe

And I added the bat in the Windows startup folder, if you don't know where this folder is, just add the
just open the run keyboard Windows + R
and modify shell:startup then just put the bat inside the folder, every time windows restarts, when turned on it will start your server Rustdesk Server

WindowsAgentAIOInstall.ps1 not working

There is a missing "}" in this script, which is opened on line 15:
If (!(Test-Path "$env:ProgramFiles\Rustdesk\RustDesk.exe")) {

so please add the bracket where should be.

And another thing is unclear for me:

On line 9 there is a comment which is containing the DNS/IP and the public key of the rustdesk server, but they're never used in the powershell script, why? Maybe you can also comment a little bit to know whats going on in this script, there are several service start/stop commands, which are all executed at the same time, maybe you deleted a few rows accidentally.

update.sh doesn't work

# update.sh
...
+ '[' -e /opt/rustdesk ']'
+ :
+ cd /opt/rustdesk/
+ echo 'Upgrading Rustdesk Server'
Upgrading Rustdesk Server
+ '[' x86_64 = x86_64 ']'
+ wget https://github.com/rustdesk/rustdesk-server/releases/download/1.1.10/rustdesk-server-linux-amd64.zip
--2024-04-05 11:55:18--  https://github.com/rustdesk/rustdesk-server/releases/download/1.1.10/rustdesk-server-linux-amd64.zip
Resolving github.com (github.com)... 140.82.121.4
Connecting to github.com (github.com)|140.82.121.4|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2024-04-05 11:55:19 ERROR 404: Not Found.

Valid command and or URL would be: wget https://github.com/rustdesk/rustdesk-server/releases/download/1.1.10-3/rustdesk-server-hbbr_1.1.10-3_amd64.deb

It seems like a reg-exp needs to be fixed as well as the 'template' string.

server install.sh not working on linux mint (all versions)

Per your request, I am opening a issue with install.sh server script.

upon executing ./install.sh the script errors 1st on line 14 with error Bad substitution.
digging further into the code and throwing a few "#" in some spots, I am able to get the script to run down to line 86, where it again is not happy with the syntax.

Linux Mint lsb-release information:
Linux Mint 21

jason@jason-XPS-13-9350:~$ cat /etc/lsb-release
DISTRIB_ID=LinuxMint
DISTRIB_RELEASE=21
DISTRIB_CODENAME=vanessa
DISTRIB_DESCRIPTION="Linux Mint 21 Vanessa"

this is for linux mint 20

DISTRIB_ID=LinuxMint
DISTRIB_RELEASE=20.2
DISTRIB_CODENAME=uma
DISTRIB_DESCRIPTION="Linux Mint 20.2 Uma"
i referenced linux mint 18 yesterday.... its actually 20.2

lsb_release -si = output is "Linuxmint"
-sr is "21"

ill continue to play around with the script and see what I can accomplish.
Thanks for the help with this.

Changing Port Address

I'm sure this is a dumb question, sorry. I currently have another device on port 8000. Can I change the port number during installation of Rustdesk using this method, or edit a conf files somewhere to change from 8000?

Shawn

rustdesk-server 1.1.6-1 not Does not work

Hello, I have done several versions of Ubuntu 20.04.4 and 22.04 according to the guide, but the installation is not complete.

Total operation:

Using username "ubuntu".
Authenticating with public key "Created by ArvanCloud" from agent
Welcome to Ubuntu 20.04.4 LTS (GNU/Linux 5.4.0-100-generic x86_64)

Documentation: https://help.ubuntu.com/
Management: https://landscape.canonical.com/
Support: https://ubuntu.com/advantage

System information disabled due to load higher than 1.0

0 updates can be applied immediately.

The list of available updates is more than a week old.
To check for new updates run: sudo apt update

The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.

To run a command as administrator (user "root"), use "sudo ".
See "man sudo_root" for details.

ubuntu@ubuntu-g2-small1-ba-1:~ sudo ufw allow 21115:21119/tcp
Rules updated
Rules updated (v6)
ubuntu@ubuntu-g2-small1-ba-1:~ sudo ufw allow 8000/tcp
Rules updated
Rules updated (v6)
ubuntu@ubuntu-g2-small1-ba-1:~ sudo ufw allow 21116/udp
Rules updated
Rules updated (v6)
ubuntu@ubuntu-g2-small1-ba-1:~ sudo ufw allow 22/tcp
Rules updated
Rules updated (v6)
ubuntu@ubuntu-g2-small1-ba-1:~ sudo ufw enable
Command may disrupt existing ssh connections. Proceed with operation (y|n)? y
Firewall is active and enabled on system startup
ubuntu@ubuntu-g2-small1-ba-1:~ sudo wget https://raw.githubusercontent.com/dinger1986/rustdeskinstall/master/install.sh
--2022-11-08 10:14:17-- https://raw.githubusercontent.com/dinger1986/rustdeskinstall/master/install.sh
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.110.133, 185.199.108.133, 185.199.111.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.110.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 8697 (8.5K) [text/plain]
Saving to: ‘install.sh’

install.sh 100%[===================>] 8.49K 31.0KB/s in 0.3s

2022-11-08 10:14:18 (31.0 KB/s) - ‘install.sh’ saved [8697/8697]

ubuntu@ubuntu-g2-small1-ba-1:~ sudo chmod +x install.sh
ubuntu@ubuntu-g2-small1-ba-1:~ sudo ./install.sh
Installing prerequisites
Hit:1 http://archive.ubuntu.com/ubuntu focal InRelease
Get:2 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Get:3 http://archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]
Get:4 http://archive.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Get:5 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [2197 kB]
Get:6 http://mirror.arvancloud.com/ubuntu focal InRelease [265 kB]
Get:7 http://mirror.arvancloud.com/ubuntu focal-updates InRelease [114 kB]
Get:8 http://mirror.arvancloud.com/ubuntu focal-security InRelease [114 kB]
Get:9 http://mirror.arvancloud.com/ubuntu focal/main amd64 Packages [970 kB]
Get:10 http://mirror.arvancloud.com/ubuntu focal/main amd64 c-n-f Metadata [29.5 kB]
Get:11 http://mirror.arvancloud.com/ubuntu focal/restricted amd64 Packages [22.0 kB]
Get:12 http://mirror.arvancloud.com/ubuntu focal/restricted amd64 c-n-f Metadata [392 B]
Get:13 http://mirror.arvancloud.com/ubuntu focal/universe amd64 Packages [8628 kB]
Get:14 http://mirror.arvancloud.com/ubuntu focal/universe amd64 c-n-f Metadata [265 kB]
Get:15 http://mirror.arvancloud.com/ubuntu focal/multiverse amd64 Packages [144 kB]
Get:16 http://mirror.arvancloud.com/ubuntu focal/multiverse amd64 c-n-f Metadata [9136 B]
Get:17 http://mirror.arvancloud.com/ubuntu focal-updates/main amd64 Packages [2197 kB]
Get:18 http://mirror.arvancloud.com/ubuntu focal-updates/main amd64 c-n-f Metadata [16.0 kB]
Get:19 http://mirror.arvancloud.com/ubuntu focal-updates/restricted amd64 Packages [1381 kB]
Get:20 http://mirror.arvancloud.com/ubuntu focal-updates/restricted amd64 c-n-f Metadata [600 B]
Get:21 http://mirror.arvancloud.com/ubuntu focal-updates/universe amd64 Packages [973 kB]
Get:22 http://mirror.arvancloud.com/ubuntu focal-updates/universe amd64 c-n-f Metadata [21.8 kB]
Get:23 http://mirror.arvancloud.com/ubuntu focal-updates/multiverse amd64 Packages [29.9 kB]
Get:24 http://mirror.arvancloud.com/ubuntu focal-updates/multiverse amd64 c-n-f Metadata [664 B]
Get:25 http://mirror.arvancloud.com/ubuntu focal-security/main amd64 Packages [1822 kB]
Get:26 http://mirror.arvancloud.com/ubuntu focal-security/main amd64 c-n-f Metadata [11.2 kB]
Get:27 http://mirror.arvancloud.com/ubuntu focal-security/restricted amd64 Packages [1289 kB]
Get:28 http://mirror.arvancloud.com/ubuntu focal-security/restricted amd64 c-n-f Metadata [596 B]
Get:29 http://mirror.arvancloud.com/ubuntu focal-security/universe amd64 Packages [743 kB]
Get:30 http://mirror.arvancloud.com/ubuntu focal-security/universe amd64 c-n-f Metadata [15.3 kB]
Get:31 http://mirror.arvancloud.com/ubuntu focal-security/multiverse amd64 Packages [22.2 kB]
Get:32 http://mirror.arvancloud.com/ubuntu focal-security/multiverse amd64 c-n-f Metadata [508 B]
Get:33 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 c-n-f Metadata [16.0 kB]
Get:34 http://archive.ubuntu.com/ubuntu focal-updates/restricted amd64 Packages [1381 kB]
Get:35 http://archive.ubuntu.com/ubuntu focal-updates/restricted amd64 c-n-f Metadata [600 B]
Get:36 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [973 kB]
Get:37 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 c-n-f Metadata [21.8 kB]
Get:38 http://archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 Packages [29.9 kB]
Get:39 http://archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 c-n-f Metadata [664 B]
Get:40 http://archive.ubuntu.com/ubuntu focal-backports/main amd64 Packages [45.7 kB]
Get:41 http://archive.ubuntu.com/ubuntu focal-backports/main amd64 c-n-f Metadata [1420 B]
Get:42 http://archive.ubuntu.com/ubuntu focal-backports/universe amd64 Packages [24.0 kB]
Get:43 http://archive.ubuntu.com/ubuntu focal-backports/universe amd64 c-n-f Metadata [864 B]
Get:44 http://archive.ubuntu.com/ubuntu focal-security/main amd64 Packages [1822 kB]
Get:45 http://archive.ubuntu.com/ubuntu focal-security/main amd64 c-n-f Metadata [11.2 kB]
Get:46 http://archive.ubuntu.com/ubuntu focal-security/restricted amd64 Packages [1289 kB]
Get:47 http://archive.ubuntu.com/ubuntu focal-security/restricted amd64 c-n-f Metadata [596 B]
Get:48 http://archive.ubuntu.com/ubuntu focal-security/universe amd64 Packages [743 kB]
Get:49 http://archive.ubuntu.com/ubuntu focal-security/universe amd64 c-n-f Metadata [15.3 kB]
Get:50 http://archive.ubuntu.com/ubuntu focal-security/multiverse amd64 Packages [22.2 kB]
Get:51 http://archive.ubuntu.com/ubuntu focal-security/multiverse amd64 c-n-f Metadata [508 B]
Fetched 28.0 MB in 2min 43s (171 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
wget is already the newest version (1.20.3-1ubuntu2).
wget set to manually installed.
Suggested packages:
ncompress tar-scripts tar-doc zip
The following NEW packages will be installed:
dnsutils unzip
The following packages will be upgraded:
curl libcurl4 tar
3 upgraded, 2 newly installed, 0 to remove and 164 not upgraded.
Need to get 808 kB of archives.
After this operation, 646 kB of additional disk space will be used.
Get:1 http://mirror.arvancloud.com/ubuntu focal-updates/main amd64 tar amd64 1.30+dfsg-7ubuntu0.20.04.2 [240 kB]
Get:2 http://mirror.arvancloud.com/ubuntu focal-updates/main amd64 curl amd64 7.68.0-1ubuntu2.14 [161 kB]
Get:3 http://mirror.arvancloud.com/ubuntu focal-updates/main amd64 libcurl4 amd64 7.68.0-1ubuntu2.14 [235 kB]
Get:4 http://mirror.arvancloud.com/ubuntu focal-updates/universe amd64 dnsutils all 1:9.16.1-0ubuntu2.11 [2756 B]
Get:5 http://mirror.arvancloud.com/ubuntu focal-updates/main amd64 unzip amd64 6.0-25ubuntu1.1 [168 kB]
Fetched 808 kB in 7s (112 kB/s)
(Reading database ... 43333 files and directories currently installed.)
Preparing to unpack .../tar_1.30+dfsg-7ubuntu0.20.04.2_amd64.deb ...
Unpacking tar (1.30+dfsg-7ubuntu0.20.04.2) over (1.30+dfsg-7ubuntu0.20.04.1) ...
Setting up tar (1.30+dfsg-7ubuntu0.20.04.2) ...
(Reading database ... 43333 files and directories currently installed.)
Preparing to unpack .../curl_7.68.0-1ubuntu2.14_amd64.deb ...
Unpacking curl (7.68.0-1ubuntu2.14) over (7.68.0-1ubuntu2.7) ...
Preparing to unpack .../libcurl4_7.68.0-1ubuntu2.14_amd64.deb ...
Unpacking libcurl4:amd64 (7.68.0-1ubuntu2.14) over (7.68.0-1ubuntu2.7) ...
Selecting previously unselected package dnsutils.
Preparing to unpack .../dnsutils_1%3a9.16.1-0ubuntu2.11_all.deb ...
Unpacking dnsutils (1:9.16.1-0ubuntu2.11) ...
Selecting previously unselected package unzip.
Preparing to unpack .../unzip_6.0-25ubuntu1.1_amd64.deb ...
Unpacking unzip (6.0-25ubuntu1.1) ...
Setting up unzip (6.0-25ubuntu1.1) ...
Setting up dnsutils (1:9.16.1-0ubuntu2.11) ...
Setting up libcurl4:amd64 (7.68.0-1ubuntu2.14) ...
Setting up curl (7.68.0-1ubuntu2.14) ...
Processing triggers for libc-bin (2.31-0ubuntu9.2) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for mime-support (3.64ubuntu1) ...

IP
DNS/Domain
Choose your preferred option, IP or DNS/Domain:2
Enter your preferred domain/dns address : remote.shardo.ir
Creating /opt/rustdesk
--2022-11-08 10:17:59-- https://github.com/rustdesk/rustdesk-server/releases/download/1.1.6-1/rustdesk-server-linux-amd64.zip
Resolving github.com (github.com)... 140.82.121.3
Connecting to github.com (github.com)|140.82.121.3|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/299354666/413fc930-2186-4bd0-842b-8f6b507ee029?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20221108%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20221108T101802Z&X-Amz-Expires=300&X-Amz-Signature=10e3ab94f6588c6485f4fe8e6fcc523287593b780f3a9101e68f5e8f5b37847d&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=299354666&response-content-disposition=attachment%3B%20filename%3Drustdesk-server-linux-amd64.zip&response-content-type=application%2Foctet-stream [following]
--2022-11-08 10:18:02-- https://objects.githubusercontent.com/github-production-release-asset-2e65be/299354666/413fc930-2186-4bd0-842b-8f6b507ee029?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20221108%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20221108T101802Z&X-Amz-Expires=300&X-Amz-Signature=10e3ab94f6588c6485f4fe8e6fcc523287593b780f3a9101e68f5e8f5b37847d&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=299354666&response-content-disposition=attachment%3B%20filename%3Drustdesk-server-linux-amd64.zip&response-content-type=application%2Foctet-stream
Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.108.133, 185.199.109.133, 185.199.110.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.108.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 8215561 (7.8M) [application/octet-stream]
Saving to: ‘rustdesk-server-linux-amd64.zip’

rustdesk-server-lin 100%[===================>] 7.83M 71.7KB/s in 2m 31s

2022-11-08 10:20:34 (53.1 KB/s) - ‘rustdesk-server-linux-amd64.zip’ saved [8215561/8215561]

Archive: rustdesk-server-linux-amd64.zip
inflating: amd64/hbbr
inflating: amd64/hbbs
inflating: amd64/rustdesk-utils
Creating /var/log/rustdesk
Created symlink /etc/systemd/system/multi-user.target.wants/rustdesksignal.service → /etc/systemd/system/rustdesksignal.service.
Created symlink /etc/systemd/system/multi-user.target.wants/rustdeskrelay.service → /etc/systemd/system/rustdeskrelay.service.
Rustdesk Relay not ready yet...
Rustdesk Relay not ready yet...
Rustdesk Relay not ready yet...
Rustdesk Relay not ready yet...
Rustdesk Relay not ready yet...
Rustdesk Relay not ready yet...
Rustdesk Relay not ready yet...
Rustdesk Relay not ready yet...

Client install script for MacOS

Thank you for a wonderful product!

May I ask you why there are scripts for Windows & Linux, but not for MacOS? Is there some showstoppers for that?

Issue with version comparison

These lines are throwing an exception when trying to run:

if [ $RDLATEST == $RDCURRENT ]; then
    echo "Same version no need to update."
    exit 0
fi

I have printed the variables and their value are:
$RDLATEST = 1.1.8
$RDCURRENT = hbbr 1.1.8

I have written a fix:

# Extract version numbers from the variables
RDLATEST_VERSION=$(echo "$RDLATEST" | grep -o '[0-9]\+\.[0-9]\+\.[0-9]\+')
RDCURRENT_VERSION=$(echo "$RDCURRENT" | grep -o '[0-9]\+\.[0-9]\+\.[0-9]\+')

# Compare the extracted version numbers as strings
if [ "$RDLATEST_VERSION" = "$RDCURRENT_VERSION" ]; then
    echo "Same version, no need to update."
    exit 0
fi

echo "New version available ($RDLATEST_VERSION), your current version is ($RDCURRENT_VERSION). Beginning update..."

linuxclientinstall.sh does not work on Debian stable

linuxclientinstall.sh does not work on Debian stable "Unsupported OS"
cat /etc/os-release PRETTY_NAME="Debian GNU/Linux 11 (bullseye)" NAME="Debian GNU/Linux" VERSION_ID="11" VERSION="11 (bullseye)" VERSION_CODENAME=bullseye ID=debian HOME_URL="https://www.debian.org/" SUPPORT_URL="https://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/"

How to install this script with own web server (Nginx)?

I have a vps with the nginix web server.
During the running of the script, step 2, it will ask if you want to install the HTTP web server. I already have the Nginx installed, so I said no and the installation is finished.
But there is no explanation in the document that if we want to use our own web server (Ngnix), what should we do next?!

Uninstallation

Hello,
thank you very much for your script. I tried it out and would like to uninstall it and switch over to docker.
How can I uninstall it and clean up everything?

The other option would be to get the web-ui running, which I sadly can't access.
The ports on the server are open, but I can't acces it via http://subdomain.domain.com:8000 (domain correctly directs to the VPS in the cloud, ports are opened and tested from Windows client via Powershell test-netconnection)
How can I check, if the connection IS running via my server?
I set it up in the client under ID-Server (as far as I've found out, I don't need to fill in the Relay-Server, as it automatically uses the ID-Server? -> according to this statement:
"Enter the hbbs host or IP Address in the ID Server input box (local side + remote side). The other two addresses can be left blank, RustDesk will automatically deduce (if not specially set), and the Relay Server refers to hbbr (port 21117)."
Source: https://rustdesk.com/docs/en/self-host/client-configuration/)
Greetings
Max

Current Version wont work with Debian 11

Unfortunately, the install script doesn't seem to work on Debian Bullseye either.

After executing the script, at some point I get this loop:

root@debianserver# ./install.sh

Rustdesk Relay not ready yet...
Rustdesk Relay not ready yet...
Rustdesk Relay not ready yet...
Rustdesk Relay not ready yet...
Rustdesk Relay not ready yet...
Rustdesk Relay not ready yet...
Rustdesk Relay not ready yet...
Rustdesk Relay not ready yet...
Rustdesk Relay not ready yet...
Rustdesk Relay not ready yet...
Rustdesk Relay not ready yet...
Rustdesk Relay not ready yet...

I have gathered some information that I hope will help identify the problem.

root@debianserver# journalctl -xe --follow

Nov 09 19:46:31 debianserver systemd[1]: Started Rustdesk Signal Server.
░░ Subject: A start job for unit rustdesksignal.service has finished successfully
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ A start job for unit rustdesksignal.service has finished successfully.
░░
░░ The job identifier is 5478.
Nov 09 19:46:31 debianserver systemd[1]: rustdeskrelay.service: Main process exited, code=exited, status=203/EXEC
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ An ExecStart= process belonging to unit rustdeskrelay.service has exited.
░░
░░ The process' exit code is 'exited' and its exit status is 203.
Nov 09 19:46:31 debianserver systemd[1]: rustdeskrelay.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ The unit rustdeskrelay.service has entered the 'failed' state with result 'exit-code'.
Nov 09 19:46:31 debianserver systemd[11467]: rustdesksignal.service: Failed to locate executable /opt/rustdesk/hbbs: No such file or directory
░░ Subject: Process /opt/rustdesk/hbbs could not be executed
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ The process /opt/rustdesk/hbbs could not be executed and failed.
░░
░░ The error number returned by this process is ERRNO.
Nov 09 19:46:31 debianserver systemd[11467]: rustdesksignal.service: Failed at step EXEC spawning /opt/rustdesk/hbbs: No such file or directory
░░ Subject: Process /opt/rustdesk/hbbs could not be executed
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ The process /opt/rustdesk/hbbs could not be executed and failed.
░░
░░ The error number returned by this process is ERRNO.
Nov 09 19:46:31 debianserver systemd[1]: rustdesksignal.service: Main process exited, code=exited, status=203/EXEC
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ An ExecStart= process belonging to unit rustdesksignal.service has exited.
░░
░░ The process' exit code is 'exited' and its exit status is 203.
Nov 09 19:46:31 debianserver systemd[1]: rustdesksignal.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ The unit rustdesksignal.service has entered the 'failed' state with result 'exit-code'.

Failed to locate executable /opt/rustdesk/hbbs: No such file or directory

root@debianserver# netstat -tulpn |grep hbbs

tcp 0 0 0.0.0.0:21115 0.0.0.0:* LISTEN 11588/hbbs
tcp 0 0 0.0.0.0:21116 0.0.0.0:* LISTEN 11588/hbbs
tcp 0 0 0.0.0.0:21118 0.0.0.0:* LISTEN 11588/hbbs
udp 0 0 0.0.0.0:21116 0.0.0.0:* 11588/hbbs
udp 0 0 0.0.0.0:52186 0.0.0.0:* 11588/hbbs

hbbs seems to work fine.

The last thing I tried was to install the release deb file. Hoping it would ship the missing executable.

root@debianserver# wget https://github.com/rustdesk/rustdesk-server/releases/download/1.1.6-1/rustdesk-server-hbbs_1.1.6_amd64.deb
root@debianserver# apt install ./rustdesk-server-hbbs_1.1.6_amd64.deb

Created symlink /etc/systemd/system/multi-user.target.wants/rustdesk-hbbs.service → /lib/systemd/system/rustdesk-hbbs.service.
N: The download is performed as root and not sandbox-protected because the file "/root/rustdesk-server-hbbs_1.1.6_amd64.deb" cannot be accessed by the user "_apt".. - pkgAcquire::Run (13: No permission.)

But unfortunately this also failed.

The Windows install script do not work with v 1.2.0

Hello, The powershell script throws follow error and failed to install:

  Invoke-Ps2Exe : Input file C:\Program Files\RustDesk\urlhandler.ps1 not found!
  At C:\users\israe\Downloads\rustinstall.ps1:75 char:3
  +   Invoke-Ps2Exe "$env:ProgramFiles\RustDesk\urlhandler.ps1" "$env:Pro ...
  +   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
      + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Invoke-ps2exe

using wanipreg and keyreg as setup name

You can use rustdesk-1.1.9-x64-host=$wanipreg,key=$keyreg.exe to install rustdesk with the desired config.
It would make the toml creation part superfluous because this above "just works".

using start-process instead of start

I have to admit that I am far away from a skilled powershell user so maybe this isn't the best idea or I misunderstood the purpose :)

Currently it is used that way

Start "$env:ProgramFiles\RustDesk\RustDesk.exe" "--password $random_pass"

Start-Sleep -s 5

So rustdesk is started and a sleep guarding the process to hopefully finish before the 5secs are over.

Why not use Start-Process with -wait to wait till the process is finished ? So it really waits till the job is finished and avoids errors if it takes longer then the sleep.

Start-Process "$env:ProgramFiles\RustDesk\RustDesk.exe" -argumentlist "--password $random_pass" -wait
Start-Process "rustdesk-$restdesk_version-putes.exe" -argumentlist "--silent-install" -wait

Cannot access the IP address for install scripts

I got the following message after installation:
Created symlink from /etc/systemd/system/multi-user.target.wants/gohttpserver.service to /etc/systemd/system/gohttpserver.service. Your IP/DNS Address is <redacted> Your public key is <redacted> Install Rustdesk on your machines and change your public key and IP/DNS name to the above You can access your install scripts for clients by going to http://<redacted>:8000 Username is admin and password is <redacted>

I went to the IP address and port on my browser, but it is not loading anything. http service was already running fine(i have running websites on the server as well), but allowed it to install the http server anyway.
How should i troubleshoot this? I am using centos 7.

Already rebooted the webserver as well without luck.

EDIT: I should note i also have the ufw installed and running without issues.

[ 1] SSH ALLOW IN Anywhere
[ 2] 224.0.0.251 mDNS ALLOW IN Anywhere
[ 3] 22 ALLOW IN Anywhere
[ 4] 443 ALLOW IN Anywhere
[ 5] Anywhere ALLOW IN
[ 6] 9987/udp ALLOW IN Anywhere
[ 7] 21115:21119/tcp ALLOW IN Anywhere
[ 8] 8000/tcp ALLOW IN Anywhere
[ 9] 21116/udp ALLOW IN Anywhere
[10] SSH (v6) ALLOW IN Anywhere (v6)
[11] ff02::fb mDNS ALLOW IN Anywhere (v6)
[12] 22 (v6) ALLOW IN Anywhere (v6)
[13] 443 (v6) ALLOW IN Anywhere (v6)
[14] 9987/udp (v6) ALLOW IN Anywhere (v6)
[15] 21115:21119/tcp (v6) ALLOW IN Anywhere (v6)
[16] 8000/tcp (v6) ALLOW IN Anywhere (v6)
[17] 21116/udp (v6) ALLOW IN Anywhere (v6)

Instsall with permanent password

Hi.

I use the WindowsAgentAIOInstall.ps1 script to silent install Rustdesk on some PC in LAN.
How can I set a permanent password for all?

I've changed this lines:

`old: $random_pass = (-join ((65..90) + (97..122) | Get-Random -Count 8 | % {[char]$_}))
new: $random_pass = NewPassword

and

old: $rustdesk_pw = (-join ((65..90) + (97..122) | Get-Random -Count 12 | % {[char]$_}))
new: $rustdesk_pw = NewPassword`

but this doesn't work.

Is there a way to install client with set permanent password?

Thanks a lot ;-)

Windows GPO PowerShell script deployment

Hello,

as i see there are multiple ps scripts for rustdesk. WindowsAgentAIOInstall.ps1 is for the configuration of rustdesk with the proxy right? Is clientinstall.ps1 for the installation only?

We have the problem, that we use the WindowsAgentAIOInstall.ps1 for deployment, but it doesn't work. The script will be execute, but no files will be created. I think the problem is, that this script have to be manually execute on the client notebook.

Is it possible to work with GPO and this script?

Has anyone test it?

Maybe someone can explain and help me.

Connection Reset by Peer

Hello, after I have been running the server for a few days now, I have the first serious problems. Using the server seems impossible. It only works in the LAN and absolutely terrible.

I always get the error: "Connection reset by peer".

Where can i find any Log file? I dont know whats going on.

A few days ago it still worked. Nothing has changed since then.

Update client install scripts

Just tried the update script. The update script does not update client install scripts from the github repo. The server updated to 1.1.8

how to update rustdesk server?

Hello I have installed rustdesk server with your script and all went well.
But now, how to update my installation?
I opened an issue here and the answer was to tell the question to the maintainer of the script
thanks for your answer.

Change domain name rustdesk server

Hello,

I used the install script to make my own self hosted server for Rustdesk. During the installation, I defined the domain name but it is not the good. Where I can change it ?

Thanks.

Note: Do you know the difference between rustdesk-1.2.2-x86-sciter.exe and rustdesk-1.2.2-x86_64.exe files ? Do you know the way to use the quick support feature with the client (Windows) ?

Terminal permanece aberto após instalação do RustDesk 1.2.1

Boa tarde,
Após a instalação do RustDesk na versão 1.2.0 e 1.2.1 o terminal não fecha, levando em consideração que no sistema não tem o RustDesk instalado é iniciado a instalação que é bem sucedida, porém após a instalação o script executa o RustDesk e ai o erro ocorre, a janela do powershell não fecha, fica preso até encerrar os processos do RustDesk.

Estou utilizando o arquivo WindowsAgentAIOInstall.ps1
Windows 11 PRO

Windows Install Settings & Server Question

So I ran the script with the port 8000 http server, and downloaded the WindowsAgentAIOInstall.ps1 onto a machine. The script hangs until I terminate but it installs RustDesk and I am able to remote into my machines. However, the Settings > Network > ID Server, etc are all blank and the bottom of the home screen says "Ready, For faster connection, please set up your own server." I shut down my server to verify if it was being used and it is still connecting. I thought the ps1 script was pushing my domain onto the client install? And if my server is down how is this working?

Thanks

Few questions

Hello!
1.
Powershell is a dense forest for me))
Is it possible to add a telegram send function to the script?
like this:
Function Send-Telegram { Param([Parameter(Mandatory=$true)][String]$Message) $Telegramtoken = "Your_Telegram_Token" $Telegramchatid = "Your_Telegram_Chat_ID" [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 $Response = Invoke-RestMethod -Uri "https://api.telegram.org/bot$($Telegramtoken)/sendMessage?chat_id=$($Telegramchatid)&text=$($Message)"}

Is it possible to install an agent with the remote configuration option enabled?

Is there any news on the implementation of the address book?

downloaded gohttpserver on Raspberry Pi 3 Model B Rev 1.2 isn't armv7l format

On a Raspberry Pi 3 Model B Rev 1.2 (ARMv7) the install script downloads a 64bit ARM file ( gohttpserver_1.1.4_linux_arm64.tar.gz ) but ARMv7 doesn't support 64 bit. So gohttpserver doesn't run.

The gohttpserver repo doesn't have a armv7l compiled version so that's a bit of a bother. So that means either asking the codeskyblue/gohttpserver people to compile one in their releases or build it.

Currently I think the install script should say to the user gohttpserver isn't supported for armv7l and not install it if it detects armv7l using uname -m.

I don't know anything about the go language but gave compiling a very quick go. This failed...

sudo apt install golang
go install github.com/codeskyblue/gohttpserver@latest
...
can't load package: package github.com/codeskyblue/gohttpserver@latest: cannot use path@version syntax in GOPATH mode

The go version apt installed was go version go1.11.6 linux/arm

and this also failed...

git clone https://github.com/codeskyblue/gohttpserver.git
cd gohttpserver
go build
...
build github.com/codeskyblue/gohttpserver: cannot find module for path embed

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.