diff --git a/sh_scripts/Autosetrepo.sh b/sh_scripts/Autosetrepo.sh new file mode 100644 index 0000000..f12fe48 --- /dev/null +++ b/sh_scripts/Autosetrepo.sh @@ -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 \ No newline at end of file diff --git a/sh_scripts/cloudserver_auto_repos.sh b/sh_scripts/cloudserver_auto_repos.sh deleted file mode 100644 index 6a5546c..0000000 --- a/sh_scripts/cloudserver_auto_repos.sh +++ /dev/null @@ -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 :)" \ No newline at end of file diff --git a/sh_scripts/geekbench_downloader.sh b/sh_scripts/geekbench_downloader.sh index 13e0d7f..42ca1e1 100644 --- a/sh_scripts/geekbench_downloader.sh +++ b/sh_scripts/geekbench_downloader.sh @@ -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" \ No newline at end of file +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"\" \ No newline at end of file diff --git a/sh_scripts/mail_backup.sh b/sh_scripts/mail_backup.sh index 63973f0..2925a1f 100644 --- a/sh_scripts/mail_backup.sh +++ b/sh_scripts/mail_backup.sh @@ -1,4 +1,4 @@ -#/bin/bash +#!/bin/bash echo "Mailserver Backup (for Mailcow)" echo "for Hetzner StorageBox! (at a Moment)" diff --git a/sh_scripts/prometheus.sh b/sh_scripts/prometheus.sh index bbbfeeb..b3f0f3f 100644 --- a/sh_scripts/prometheus.sh +++ b/sh_scripts/prometheus.sh @@ -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 "################################################" diff --git a/sh_scripts/python-quick-build.sh b/sh_scripts/python-quick-build.sh index 1b1a452..d9c4fff 100644 --- a/sh_scripts/python-quick-build.sh +++ b/sh_scripts/python-quick-build.sh @@ -1,4 +1,4 @@ -#/bin/bash +#!/bin/bash CPUCORES=$(grep ^processor /proc/cpuinfo | wc -l) clear echo "################################################" diff --git a/sh_scripts/repos/ubuntu-18.04.txt b/sh_scripts/repos/ubuntu-18.04.txt new file mode 100644 index 0000000..5bc859c --- /dev/null +++ b/sh_scripts/repos/ubuntu-18.04.txt @@ -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 \ No newline at end of file diff --git a/sh_scripts/spigot_autobild.sh b/sh_scripts/spigot_autobild.sh index fea84e4..00c3239 100644 --- a/sh_scripts/spigot_autobild.sh +++ b/sh_scripts/spigot_autobild.sh @@ -1,4 +1,4 @@ -#/bin/bash +#!/bin/bash clear echo "################################################" echo "# #" diff --git a/sh_scripts/system_info.sh b/sh_scripts/system_info.sh index 9c189b2..788818c 100644 --- a/sh_scripts/system_info.sh +++ b/sh_scripts/system_info.sh @@ -1,4 +1,4 @@ -#/bin/bash +#!/bin/bash clear echo "################################################" echo "# #" diff --git a/sh_scripts/ts3audiobot_installer.sh b/sh_scripts/ts3audiobot_installer.sh index a6055b3..bad0d8e 100644 --- a/sh_scripts/ts3audiobot_installer.sh +++ b/sh_scripts/ts3audiobot_installer.sh @@ -1,4 +1,4 @@ -#/bin/bash +#!/bin/bash # TS3AudioBot Installer # Init FILE="/tmp/out.$$"