techahold/rustdeskinstall

how to update rustdesk server?

Closed this issue · 33 comments

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.

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

all right, thanks!

Actually it is there!

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

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

sorry forgot to add this line

ARCH=$(uname -m)

Can you try again now?

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

thanks again for this work.
Regards

thanks!

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

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

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

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

Thanks!

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

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

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

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

Changed what?

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

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

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.

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

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

its already been done (line 7)
image

cb0958d

its already been done (line 7) image

cb0958d

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

updated now, fair point should be consistent

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:~#
`

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

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`

Yes

Thank you!