starting with Autosetrepo.sh

This commit is contained in:
2021-03-23 13:46:46 +01:00
parent 0a1b4f07b6
commit a26475a7a7
10 changed files with 122 additions and 61 deletions

91
sh_scripts/Autosetrepo.sh Normal file
View File

@@ -0,0 +1,91 @@
#!/bin/bash
SYSTEM=$(cat /etc/issue)
clear
echo "################################################"
echo "# #"
echo "# #"
echo "# Linux #"
echo "# Automatically Repo edit #"
echo "# #"
echo "# by #"
echo "# johanneskr.de #"
echo "# #"
echo "# #"
echo "################################################"
echo ""
echo ""
echo "DE >"
echo "Dieses Script startet gleich automatisch."
echo ""
echo "EN >"
echo "This script will start automatically."
sleep 5
echo ""
echo ""
echo ""
echo "LETS GO!"
apt-get update;
case "$SYSTEM" in
"Debian GNU/Linux 10 \n \l")
apt install curl wget apt-transport-https dirmngr neofetch htop nload git -y
echo "
#------------------------------------------------------------------------------#
# OFFICIAL DEBIAN REPOS #
#------------------------------------------------------------------------------#
###### Debian Main Repos
deb http://deb.debian.org/debian/ stable main contrib non-free
deb-src http://deb.debian.org/debian/ stable main contrib non-free
deb http://deb.debian.org/debian/ stable-updates main contrib non-free
deb-src http://deb.debian.org/debian/ stable-updates main contrib non-free
deb http://deb.debian.org/debian-security stable/updates main
deb-src http://deb.debian.org/debian-security stable/updates main
deb http://ftp.debian.org/debian buster-backports main
deb-src http://ftp.debian.org/debian buster-backports main" > /etc/apt/source.list
apt update && apt upgrade -y
echo "Have Fun with the Official Repos :)"
;;
"Ubuntu 18.04.5 LTS \n \l")
echo "
#------------------------------------------------------------------------------#
# OFFICIAL UBUNTU REPOS #
#------------------------------------------------------------------------------#
###### Ubuntu Main Repos
deb http://archive.ubuntu.com/ubuntu bionic main restricted
deb http://archive.ubuntu.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu bionic-updates main restricted
###### Ubuntu Update Repos
deb http://archive.ubuntu.com/ubuntu bionic universe
deb http://archive.ubuntu.com/ubuntu bionic-updates universe
deb http://archive.ubuntu.com/ubuntu bionic multiverse
deb http://archive.ubuntu.com/ubuntu bionic-updates multiverse
deb http://archive.ubuntu.com/ubuntu bionic-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu bionic-security main restricted
deb http://security.ubuntu.com/ubuntu bionic-security universe
deb http://security.ubuntu.com/ubuntu bionic-security multiverse" > /etc/apt/source.list
apt-get update && apt-get upgrade -y
echo "Have Fun with the Official Repos :)"
;;
*)
clear
echo "DE >"
echo "Dein System wird zurzeit nicht unterstützt!"
echo ""
echo "Schreibe doch dazu ein Issue auf Github"
echo "> https://github.com/MrUnknownDE/linux-script/issues/new"
echo ""
echo ""
echo "EN >"
echo "Your system is currently not supported!"
echo ""
echo "Please write an issue on Github"
echo "> https://github.com/MrUnknownDE/linux-script/issues/new"
esac

View File

@@ -1,48 +0,0 @@
#/bin/bash
clear
echo "################################################"
echo "# #"
echo "# #"
echo "# Debian 10 #"
echo "# automatically Repo edit #"
echo "# #"
echo "# by #"
echo "# johanneskr.de #"
echo "# #"
echo "# #"
echo "################################################"
echo ""
echo ""
echo "DE >"
echo "Dieses Script startet gleich automatisch."
echo ""
echo "EN >"
echo "This script will start automatically."
sleep 5
echo ""
echo ""
echo ""
echo "LETS GO!"
apt update
apt install curl wget apt-transport-https dirmngr neofetch htop nload git -y
echo "
#------------------------------------------------------------------------------#
# OFFICIAL DEBIAN REPOS
#------------------------------------------------------------------------------#
###### Debian Main Repos
deb http://deb.debian.org/debian/ stable main contrib non-free
deb-src http://deb.debian.org/debian/ stable main contrib non-free
deb http://deb.debian.org/debian/ stable-updates main contrib non-free
deb-src http://deb.debian.org/debian/ stable-updates main contrib non-free
deb http://deb.debian.org/debian-security stable/updates main
deb-src http://deb.debian.org/debian-security stable/updates main
deb http://ftp.debian.org/debian buster-backports main
deb-src http://ftp.debian.org/debian buster-backports main" > /etc/apt/source.list
apt upgrade -y
echo "Have Fun with Debian 10 Official Repos :)"

View File

@@ -1,4 +1,4 @@
#/bin/bash
#!/bin/bash
clear
echo "################################################"
echo "# #"
@@ -18,14 +18,12 @@ echo "Dieses Script startet gleich automatisch."
echo ""
echo "EN >"
echo "This script will start automatically."
sleep 5
sleep 1
echo ""
echo ""
echo ""
echo "LETS GO!"
cd ~
wget https://cdn.geekbench.com/Geekbench-5.4.0-Linux.tar.gz
tar xf Geekbench-5.4.0-Linux.tar.gz
cd ~/Geekbench-5.4.0-Linux/
echo "Finish, run with ./geekbench5"
tar xf Geekbench-5.4.0-Linux.tar.gz && cd Geekbench-5.4.0-Linux/
echo "Finish, run with \"cd Geekbench-5.4.0-Linux/ && ./geekbench5"\"

View File

@@ -1,4 +1,4 @@
#/bin/bash
#!/bin/bash
echo "Mailserver Backup (for Mailcow)"
echo "for Hetzner StorageBox! (at a Moment)"

View File

@@ -1,4 +1,4 @@
#/bin/bash
#!/bin/bash
serviceIP=$(ip route get 8.8.8.8 | sed -n '/src/{s/.*src *\([^ ]*\).*/\1/p;q}')
clear
echo "################################################"

View File

@@ -1,4 +1,4 @@
#/bin/bash
#!/bin/bash
CPUCORES=$(grep ^processor /proc/cpuinfo | wc -l)
clear
echo "################################################"

View File

@@ -0,0 +1,20 @@
#------------------------------------------------------------------------------#
# OFFICIAL UBUNTU REPOS #
#------------------------------------------------------------------------------#
###### Ubuntu Main Repos
deb http://archive.ubuntu.com/ubuntu bionic main restricted
deb http://archive.ubuntu.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu bionic-updates main restricted
###### Ubuntu Update Repos
deb http://archive.ubuntu.com/ubuntu bionic universe
deb http://archive.ubuntu.com/ubuntu bionic-updates universe
deb http://archive.ubuntu.com/ubuntu bionic multiverse
deb http://archive.ubuntu.com/ubuntu bionic-updates multiverse
deb http://archive.ubuntu.com/ubuntu bionic-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu bionic-security main restricted
deb http://security.ubuntu.com/ubuntu bionic-security universe
deb http://security.ubuntu.com/ubuntu bionic-security multiverse

View File

@@ -1,4 +1,4 @@
#/bin/bash
#!/bin/bash
clear
echo "################################################"
echo "# #"

View File

@@ -1,4 +1,4 @@
#/bin/bash
#!/bin/bash
clear
echo "################################################"
echo "# #"

View File

@@ -1,4 +1,4 @@
#/bin/bash
#!/bin/bash
# TS3AudioBot Installer
# Init
FILE="/tmp/out.$$"