Amy bd815bf26a
install.sh: properly handle superuser permissions
This script is based around having superuser permissions. The way it handles them is by using `sudo`. This has two main problems:

1. It could potentially require someone to input their password many, many times depending on their sudo configuration.
2. Even when running as root, the script will break for anyone without sudo installed.

The way to fix this is simple: require the script itself be run as root instead of using sudo. 

This patch adds a check at the beginning which verifies if the user is root. If the user is not root, it explains what must be done to rectify the problem. It then also removes all usages of sudo throughout the script.

This also aligns the script with more typical scriptwriting conventions, overall improving the quality of the script.
2023-07-19 20:32:49 -07:00
2022-06-05 23:31:00 +01:00
2022-06-05 23:18:18 +01:00
2023-05-30 08:04:26 +00:00
2022-08-13 23:58:46 +01:00

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

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
Description
No description provided
Readme MIT 373 KiB
Languages
Shell 80.5%
PowerShell 19.5%