techahold / rustdeskinstall

Easy install Script for Rustdesk
MIT License
379 stars 114 forks source link

rustdesk-server 1.1.6-1 not Does not work #19

Closed KAJOOSH closed 1 year ago

KAJOOSH commented 1 year ago

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...

dinger1986 commented 1 year ago

What are you installing on?

dinger1986 commented 1 year ago

please check now, the zip file now contains the files within a folder called amd64, I have got the script to move them, please confirm if this works and I will remove that folder.

astrugatch commented 1 year ago

Having the same issue. Willing to troubleshoot if you need a tester.

astrugatch commented 1 year ago

Looks like an issue with the service not starting. If I manually check the service status this is what I get:

rustadmin@rustrelay:~$ sudo systemctl status rustdeskrelay.service
● rustdeskrelay.service - Rustdesk Relay Server
     Loaded: loaded (/etc/systemd/system/rustdeskrelay.service; enabled; vendor preset: enabled)
     Active: activating (auto-restart) (Result: exit-code) since Wed 2022-11-09 20:40:09 EST; 7s ago
    Process: 6485 ExecStart=/opt/rustdesk/hbbr -k _ (code=exited, status=203/EXEC)
   Main PID: 6485 (code=exited, status=203/EXEC)
KAJOOSH commented 1 year ago

What are you installing on?

Ubuntu 20.04.4 LTS (VPS)

KAJOOSH commented 1 year ago

I did the test again with the correction you gave a few hours ago Update install.sh But the problem remains

dinger1986 commented 1 year ago

issue on debian and ubuntu #20

dinger1986 commented 1 year ago

Please try again now

astrugatch commented 1 year ago

Works for me now. Only minor note is that it was unable to delete the .zip rm: cannot remove 'rustdesk-server-linux-x64.zip': No such file or directory

astrugatch commented 1 year ago

other issue with client files not showing up in the web portal:

mv: cannot stat '/opt/rustdesk/WindowsAgentAIOInstall.ps1': No such file or directory
mv: cannot stat '/opt/rustdesk/linuxclientinstall.sh': No such file or directory
dinger1986 commented 1 year ago

Sorry the script is working in the wrong folder I think, damn it.

Should be sorted now!

dinger1986 commented 1 year ago

I believe this is now resolved so closing