mirror of
https://github.com/MrUnknownDE/linux-script.git
synced 2026-04-20 23:33:50 +02:00
starting with Autosetrepo.sh
This commit is contained in:
91
sh_scripts/Autosetrepo.sh
Normal file
91
sh_scripts/Autosetrepo.sh
Normal 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
|
||||||
@@ -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 :)"
|
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
#/bin/bash
|
#!/bin/bash
|
||||||
clear
|
clear
|
||||||
echo "################################################"
|
echo "################################################"
|
||||||
echo "# #"
|
echo "# #"
|
||||||
@@ -18,14 +18,12 @@ echo "Dieses Script startet gleich automatisch."
|
|||||||
echo ""
|
echo ""
|
||||||
echo "EN >"
|
echo "EN >"
|
||||||
echo "This script will start automatically."
|
echo "This script will start automatically."
|
||||||
sleep 5
|
sleep 1
|
||||||
echo ""
|
echo ""
|
||||||
echo ""
|
echo ""
|
||||||
echo ""
|
echo ""
|
||||||
echo "LETS GO!"
|
echo "LETS GO!"
|
||||||
|
cd ~
|
||||||
wget https://cdn.geekbench.com/Geekbench-5.4.0-Linux.tar.gz
|
wget https://cdn.geekbench.com/Geekbench-5.4.0-Linux.tar.gz
|
||||||
tar xf Geekbench-5.4.0-Linux.tar.gz
|
tar xf Geekbench-5.4.0-Linux.tar.gz && cd Geekbench-5.4.0-Linux/
|
||||||
cd ~/Geekbench-5.4.0-Linux/
|
echo "Finish, run with \"cd Geekbench-5.4.0-Linux/ && ./geekbench5"\"
|
||||||
|
|
||||||
echo "Finish, run with ./geekbench5"
|
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
#/bin/bash
|
#!/bin/bash
|
||||||
echo "Mailserver Backup (for Mailcow)"
|
echo "Mailserver Backup (for Mailcow)"
|
||||||
echo "for Hetzner StorageBox! (at a Moment)"
|
echo "for Hetzner StorageBox! (at a Moment)"
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#/bin/bash
|
#!/bin/bash
|
||||||
serviceIP=$(ip route get 8.8.8.8 | sed -n '/src/{s/.*src *\([^ ]*\).*/\1/p;q}')
|
serviceIP=$(ip route get 8.8.8.8 | sed -n '/src/{s/.*src *\([^ ]*\).*/\1/p;q}')
|
||||||
clear
|
clear
|
||||||
echo "################################################"
|
echo "################################################"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#/bin/bash
|
#!/bin/bash
|
||||||
CPUCORES=$(grep ^processor /proc/cpuinfo | wc -l)
|
CPUCORES=$(grep ^processor /proc/cpuinfo | wc -l)
|
||||||
clear
|
clear
|
||||||
echo "################################################"
|
echo "################################################"
|
||||||
|
|||||||
20
sh_scripts/repos/ubuntu-18.04.txt
Normal file
20
sh_scripts/repos/ubuntu-18.04.txt
Normal 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
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
#/bin/bash
|
#!/bin/bash
|
||||||
clear
|
clear
|
||||||
echo "################################################"
|
echo "################################################"
|
||||||
echo "# #"
|
echo "# #"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#/bin/bash
|
#!/bin/bash
|
||||||
clear
|
clear
|
||||||
echo "################################################"
|
echo "################################################"
|
||||||
echo "# #"
|
echo "# #"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#/bin/bash
|
#!/bin/bash
|
||||||
# TS3AudioBot Installer
|
# TS3AudioBot Installer
|
||||||
# Init
|
# Init
|
||||||
FILE="/tmp/out.$$"
|
FILE="/tmp/out.$$"
|
||||||
|
|||||||
Reference in New Issue
Block a user