diff --git a/README.md b/README.md index 9694bb2..c7a79dd 100644 --- a/README.md +++ b/README.md @@ -51,4 +51,13 @@ is not finished
## Prometheus + Grafana + Node_Exporter Quick Installer ![](https://img.shields.io/badge/Debian%2010-work!-green) ![](https://img.shields.io/badge/Debian%209-work!-green) ![](https://img.shields.io/badge/Ubuntu%2020.04-work!-green)![](https://img.shields.io/badge/Ubuntu%2018.04-work!-green)
-bash <(wget -O - 'https://raw.githubusercontent.com/MrUnknownDE/linux-script/main/sh_scripts/prometheus.sh') \ No newline at end of file +bash <(wget -O - 'https://raw.githubusercontent.com/MrUnknownDE/linux-script/main/sh_scripts/prometheus.sh') + + +----- + + +## Python Quick Build and Install +Version: 3.9.2 +![](https://img.shields.io/badge/Debian%2010-work!-green) ![](https://img.shields.io/badge/Debian%209-work!-green) ![](https://img.shields.io/badge/Ubuntu%2020.04-work!-green)![](https://img.shields.io/badge/Ubuntu%2018.04-work!-green)
+bash <(wget -O - 'https://raw.githubusercontent.com/MrUnknownDE/linux-script/main/sh_scripts/python-quick-build.sh') \ No newline at end of file diff --git a/sh_scripts/python-quick-build.sh b/sh_scripts/python-quick-build.sh new file mode 100644 index 0000000..51534f8 --- /dev/null +++ b/sh_scripts/python-quick-build.sh @@ -0,0 +1,43 @@ +#/bin/bash +CPUCORES=$(grep ^processor /proc/cpuinfo | wc -l) +clear +echo "################################################" +echo "# #" +echo "# #" +echo "# Python3.9.2 #" +echo "# Quick Build #" +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!" + +sudo apt update +sudo apt -y upgrade +sudo apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libsqlite3-dev libreadline-dev libffi-dev curl libbz2-dev -y +wget https://www.python.org/ftp/python/3.9.2/Python-3.9.2.tgz +tar -xf Python3-3.9.2.tgz +cd Python-3.9.2 +./configure --enable-optimizations +make -j $CPUCORES +sudo make altinstall +echo "" +echo "########################################" +echo "" +echo "Python3.9 is installed" +echo "lets check this with: python3.9 --version" +echo "" +echo "########################################" \ No newline at end of file