mirror of
https://github.com/techahold/rustdeskinstall.git
synced 2025-05-12 23:19:19 +02:00
54 lines
1.7 KiB
Markdown
54 lines
1.7 KiB
Markdown
# 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.<br>
|
|
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
|
|
|
|
# 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
|
|
```
|