techahold / rustdeskinstall

Easy install Script for Rustdesk
MIT License
371 stars 113 forks source link

how to update rustdesk server? #30

Closed Benance closed 1 year ago

Benance commented 1 year ago

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.

dinger1986 commented 1 year ago

thats a fair point, I havent written an upgrade script, I will get that done asap and let you know when done.

Benance commented 1 year ago

all right, thanks!

dinger1986 commented 1 year ago

Actually it is there!

wget https://raw.githubusercontent.com/techahold/rustdeskinstall/master/update.sh
chmod +x update.sh
./update.sh
Benance commented 1 year ago

ok I've tested your update script, but I broke my rustdesk server setup Here are the logs:

root@assist:~# ./update.sh Installing prerequisites Hit:1 http://security.debian.org bullseye-security InRelease Hit:2 http://ftp.debian.org/debian bullseye InRelease Hit:3 http://ftp.debian.org/debian bullseye-updates InRelease Reading package lists... Done Reading package lists... Done Building dependency tree... Done Reading state information... Done tar is already the newest version (1.34+dfsg-1). unzip is already the newest version (6.0-26+deb11u1). wget is already the newest version (1.21-1+deb11u1). dnsutils is already the newest version (1:9.16.37-1~deb11u1). curl is already the newest version (7.74.0-1.3+deb11u5). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. rm: cannot remove 'hbbs': No such file or directory rm: cannot remove 'hbbs': No such file or directory Upgrading Rustdesk Server Rustdesk Relay not ready yet... rm: cannot remove 'rustdesk-server-linux-amd64.zip': No such file or directory rm: cannot remove 'gohttpserver_1.1.4_linux_amd64.tar.gz': No such file or directory rm: cannot remove 'gohttpserver_1.1.4_linux_arm64.tar.gz': No such file or directory Updates are complete

dinger1986 commented 1 year ago

sorry forgot to add this line https://github.com/techahold/rustdeskinstall/blob/a8f86e2707ad6201c2c9b182a9688ee557771aa0/update.sh#L10

Can you try again now?

Benance commented 1 year ago

ok now it's good. Here are the logs: root@assist:~# ./update.sh

Installing prerequisites
Hit:1 http://security.debian.org bullseye-security InRelease
Hit:2 http://ftp.debian.org/debian bullseye InRelease
Get:3 http://ftp.debian.org/debian bullseye-updates InRelease [44.1 kB]
Fetched 44.1 kB in 0s (100 kB/s)    
Reading package lists... Done
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
tar is already the newest version (1.34+dfsg-1).
unzip is already the newest version (6.0-26+deb11u1).
wget is already the newest version (1.21-1+deb11u1).
dnsutils is already the newest version (1:9.16.37-1~deb11u1).
curl is already the newest version (7.74.0-1.3+deb11u5).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Upgrading Rustdesk Server
--2023-01-31 14:16:50--  https://github.com/rustdesk/rustdesk-server/releases/download/1.1.7/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/6831d8f1-f7c5-48fe-aa1a-246b4666d111?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230131%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230131T131522Z&X-Amz-Expires=300&X-Amz-Signature=1fd38c0b8583636dbfac5e5f06bf835f871c4a8a26d7a9f5431b9d6d94a65298&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]
--2023-01-31 14:16:50--  https://objects.githubusercontent.com/github-production-release-asset-2e65be/299354666/6831d8f1-f7c5-48fe-aa1a-246b4666d111?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230131%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230131T131522Z&X-Amz-Expires=300&X-Amz-Signature=1fd38c0b8583636dbfac5e5f06bf835f871c4a8a26d7a9f5431b9d6d94a65298&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.111.133, 185.199.110.133, 185.199.109.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.111.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 8214419 (7.8M) [application/octet-stream]
Saving to: 'rustdesk-server-linux-amd64.zip'

rustdesk-server-linux 100%[======================>]   7.83M   577KB/s    in 13s     

2023-01-31 14:17:04 (596 KB/s) - 'rustdesk-server-linux-amd64.zip' saved [8214419/8214419]

Archive:  rustdesk-server-linux-amd64.zip
  inflating: /opt/rustdesk/hbbr      
  inflating: /opt/rustdesk/hbbs      
  inflating: /opt/rustdesk/rustdesk-utils  
Rustdesk Relay not ready yet...
--2023-01-31 14:17:08--  https://github.com/codeskyblue/gohttpserver/releases/download/1.1.4/gohttpserver_1.1.4_linux_amd64.tar.gz
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/63852314/3b4f8927-1e46-46b6-873c-6407b36d0f92?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230131%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230131T131708Z&X-Amz-Expires=300&X-Amz-Signature=3242cd61800a3ed8fcc105d7d4b0383ea7fc47cda5668083edf0efbbb887c19d&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=63852314&response-content-disposition=attachment%3B%20filename%3Dgohttpserver_1.1.4_linux_amd64.tar.gz&response-content-type=application%2Foctet-stream [following]
--2023-01-31 14:17:08--  https://objects.githubusercontent.com/github-production-release-asset-2e65be/63852314/3b4f8927-1e46-46b6-873c-6407b36d0f92?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230131%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230131T131708Z&X-Amz-Expires=300&X-Amz-Signature=3242cd61800a3ed8fcc105d7d4b0383ea7fc47cda5668083edf0efbbb887c19d&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=63852314&response-content-disposition=attachment%3B%20filename%3Dgohttpserver_1.1.4_linux_amd64.tar.gz&response-content-type=application%2Foctet-stream
Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.111.133, 185.199.110.133, 185.199.109.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.111.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4864160 (4.6M) [application/octet-stream]
Saving to: 'gohttpserver_1.1.4_linux_amd64.tar.gz'

gohttpserver_1.1.4_li 100%[======================>]   4.64M   804KB/s    in 5.3s    

2023-01-31 14:17:14 (894 KB/s) - 'gohttpserver_1.1.4_linux_amd64.tar.gz' saved [4864160/4864160]

rm: cannot remove 'gohttpserver_1.1.4_linux_arm64.tar.gz': No such file or directory
Updates are complete
Benance commented 1 year ago

thanks again for this work. Regards

dinger1986 commented 1 year ago

thanks!

Bobnik66 commented 1 year ago

Tell me, have you, after the update, the connection database is not broken? I mean, previously issued IDs.

dinger1986 commented 1 year ago

I dont even know what you mean? But the update is only updating the executables not any files

Bobnik66 commented 1 year ago

I meant that if my computer was previously given a number, say 498 774 433, won't it change after the update?

dinger1986 commented 1 year ago

It shouldnt with this script or otherwise, a question for rustdesk github if it does

Bobnik66 commented 1 year ago

Thanks!

Throwaway24924 commented 1 year ago

Could you make an update script for MacOS? I am stuck on an old server version and I can't get it to update

dinger1986 commented 1 year ago

For Mac? How did you install the server on Mac?

blyamur commented 8 months ago

https://raw.githubusercontent.com/techahold/rustdeskinstall/master/update.sh

My ID has changed. But I can’t say that as a result of the update, since the other IDs remain the same and the connection is made through them

dinger1986 commented 8 months ago

you have a paid license? if so you dont want to be using our installer, that will just get you the opensource one. https://github.com/rustdesk/rustdesk-server-pro

dmaier63 commented 8 months ago

Yea we changed it and found out this ;-)

But struggling with Apple Client for Intel and M1, M2, M3

Mit besten Grüsse aus Baden-Dättwil Daniel Maier CEO - Geschäftsleiter

Phone +41 56 520 20 20 <tel:+41 56 520 20 20> Winet Voicetec Solutions AG Täfernstrasse 31 CH-5405 Baden-Dättwil https://www.winet.ch/ Web www.winet.ch https://www.winet.ch/ | Kundenportal jarvis.winet.ch https://jarvis.winet.ch/ | Telefonieportal my.winet.ch https://my.winet.ch/

Am 09.02.2024 um 11:22 schrieb dinger1986 @.***>:

you have a paid license? if so you dont want to be using our installer, that will just get you the opensource one. https://github.com/rustdesk/rustdesk-server-pro

— Reply to this email directly, view it on GitHub https://github.com/techahold/rustdeskinstall/issues/30#issuecomment-1935668704, or unsubscribe https://github.com/notifications/unsubscribe-auth/BEZL6NKSMSHIQWWSB5IUDNDYSX2HTAVCNFSM6AAAAAAUMHMFV2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZVGY3DQNZQGQ. You are receiving this because you commented.

dinger1986 commented 8 months ago

Changed what?

dmaier63 commented 8 months ago

???????

I have deleted the entry for OS version.

 Mit besten Grüssen aus Baden-Dättwil

Daniel Maier

CEO - Geschäftsleiter VR-Präsident

Phone direct +41 56 520 20 40 Mobile Phone + 41 79 404 98 70
Winet Voicetec Solutions AG Täfernstrasse 31 CH-5405 Baden-Dättwil

Web www.winet.ch | Kundenportal jarvis.winet.ch | Telefonieportal my.winet.ch

Von: dinger1986 @.> An: techahold/rustdeskinstall @.> Kopie: dmaier63 @.>, Comment @.> Gesendet: 09.02.2024 14:55 Betreff: Re: [techahold/rustdeskinstall] how to update rustdesk server? (Issue #30)

Changed what? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

dinger1986 commented 8 months ago

You said "Yea we changed it and found out this ;-)"

What did you change? please stop wasting my time I am trying to help!

dmaier63 commented 8 months ago

I'm somewhat of lost. I think it is about changing from opensource to pro version and the update procedere. All fine here we could make the update.

What the real problem is, apple client want work for deployment. Windows and Linux is fine but apple no way to get it. If I do it on every machin with the bash command and the key it works, but it is not possible to deploy from there to a other machine. When doing it over git it will crash (on MacOS sonoma) 

 Mit besten Grüssen aus Baden-Dättwil

Daniel Maier

CEO - Geschäftsleiter VR-Präsident

Phone direct +41 56 520 20 40 Mobile Phone + 41 79 404 98 70
Winet Voicetec Solutions AG Täfernstrasse 31 CH-5405 Baden-Dättwil

Web www.winet.ch | Kundenportal jarvis.winet.ch | Telefonieportal my.winet.ch

Von: dinger1986 @.> An: techahold/rustdeskinstall @.> Kopie: dmaier63 @.>, Comment @.> Gesendet: 09.02.2024 15:33 Betreff: Re: [techahold/rustdeskinstall] how to update rustdesk server? (Issue #30)

You said "Yea we changed it and found out this ;-)" What did you change? please stop wasting my time I am trying to help! — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

dinger1986 commented 8 months ago

ok, so you are talking about pro and rustdesk clients, this isnt rustdesk, this is techahold, we only have written an opensource installer for the opensource server and have no affiliation to RustDesk, if you want to pay us to help support or troubleshoot your issues our details are on the readme.

petryaevve commented 4 months ago

Hi. Can you update script? Because they release version with "-1" in the end. But script cut it off and download not the latest version

petryaevve commented 4 months ago

Found new issue. Ok! But can you update script in code? Because github show old file

dinger1986 commented 4 months ago

its already been done (line 7) image

https://github.com/techahold/rustdeskinstall/commit/cb0958d99cf1b9faabae4a0b63f45a765426cc57

petryaevve commented 4 months ago

its already been done (line 7) image

cb0958d

Thanks. Just find that in install script it has another syntax

dinger1986 commented 4 months ago

updated now, fair point should be consistent

myssv commented 1 month ago

I used the script above and it seems that it only works one time.

At the second time the "update.sh" is saved as "update.sh1"

`root@RustDesk:~# wget https://raw.githubusercontent.com/techahold/rustdeskinstall/master/update.sh --2024-08-23 09:59:12-- https://raw.githubusercontent.com/techahold/rustdeskinstall/master/update.sh Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.108.133, 185.199.109.133, 185.199.110.133, ... Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.108.133|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 5069 (5.0K) [text/plain] Saving to: 'update.sh.1'

update.sh.1 100%[=====================================================================================================================>] 4.95K --.-KB/s in 0s

2024-08-23 09:59:12 (64.8 MB/s) - 'update.sh.1' saved [5069/5069]

root@RustDesk:~# chmod +x update.sh root@RustDesk:~# ./update.sh Same version no need to update. root@RustDesk:~# `

dinger1986 commented 1 month ago

Yes, either need to delete the script or just run it again not download it again

myssv commented 1 month ago

so this script will work fine?

`rm update.sh

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

chmod +x update.sh

./update.sh`

dinger1986 commented 1 month ago

Yes

myssv commented 1 month ago

Thank you!