Linux install scripts

This commit is contained in:
2022-11-23 08:47:44 +01:00
commit cd6b17ce15
15 changed files with 467 additions and 0 deletions

43
install-syncthing.sh Normal file
View File

@@ -0,0 +1,43 @@
#!/bin/bash
# Install - Syncthing.
echo "-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-"
echo " "
echo " Download & Syncthing"
echo " "
echo " Enter your user password, to continue if necessary"
echo " "
echo " continues the installation in 2 seconds"
echo " "
echo "-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-"
sleep 1
sudo curl -o /usr/share/keyrings/syncthing-archive-keyring.gpg https://syncthing.net/release-key.gpg
sleep 1
echo "deb [signed-by=/usr/share/keyrings/syncthing-archive-keyring.gpg] https://apt.syncthing.net/ syncthing stable" | sudo tee /etc/apt/sources.list.d/syncthing.list
sleep 1
sudo apt update && sudo apt install -y syncthing
sudo systemctl enable syncthing@$(whoami).service
sleep 1
sudo systemctl start syncthing@$(whoami).service
clear
sudo systemctl status syncthing@$(whoami).service
clear
echo "-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-"
echo " "
echo " "
echo " WEB GUI AT https://localhost:8384"
echo " "
echo " "
echo "-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-'-"