mirror of
https://github.com/techahold/rustdeskinstall.git
synced 2025-12-21 16:11:15 +01:00
Update install.sh
This commit is contained in:
25
install.sh
25
install.sh
@@ -5,8 +5,19 @@ uname=$(whoami)
|
|||||||
|
|
||||||
|
|
||||||
# Setup prereqs for server
|
# Setup prereqs for server
|
||||||
sudo apt update
|
if [[ `which yum` ]]; then
|
||||||
sudo apt install unzip -y
|
sudo yum -y unzip
|
||||||
|
elif [[ `which apt` ]]; then
|
||||||
|
sudo apt-get -y update
|
||||||
|
sudo apt-get -y unzip
|
||||||
|
elif [[ `which pacman` ]]; then
|
||||||
|
sudo pacman -S unzip
|
||||||
|
elif [[ `which zypper` ]]; then
|
||||||
|
sudo zypper install unzip
|
||||||
|
else
|
||||||
|
echo "Unknown Platform, the install might fail"
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
#Set firewall
|
#Set firewall
|
||||||
ufw allow 21115:21119/tcp
|
ufw allow 21115:21119/tcp
|
||||||
@@ -93,13 +104,9 @@ key=$(cat ${pubname})
|
|||||||
sudo rm ${TMPFILE}
|
sudo rm ${TMPFILE}
|
||||||
|
|
||||||
|
|
||||||
printf "Your IP is ${wanip}\n"
|
echo -e "Your IP is ${wanip}"
|
||||||
printf "\n"
|
echo -e "Your public key is ${key}"
|
||||||
printf "Your public key is ${key}\n"
|
echo -e "Install Rustdesk on your machines and change your public key and IP/DNS name to the above"
|
||||||
printf "\n"
|
|
||||||
printf "Install Rustdesk on your machines and change your public key and IP/DNS name to the above\n"
|
|
||||||
printf"\n"
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
echo "Press any key to finish install"
|
echo "Press any key to finish install"
|
||||||
|
|||||||
Reference in New Issue
Block a user