Tyleo-Scripts/irp-deb
2024-02-18 19:06:30 +01:00

66 lines
3.6 KiB
Bash
Executable file
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/usr/bin/env bash
clear
echo "/>[info] Welcome - Bienvenue - Bienvenido - مرحبا بكم - 欢迎 - いらっしゃいませ"
echo "/>[info] Script IRP-DEB v2 pour Safyr IV par Tyleo Dev™ - Déploiement d'OS Debian Base Développé sur Ubuntu 22.04+, compatible Lunar Lobster +"
echo "/>[info] Vérification de l'OS ..."
if ! command -v dpkg 1> /dev/null
then
echo "/>[error] Systéme non DEB - Lancement annulé"
echo "/>[error] Utilisez irp-rhel pour RPM."
echo "/>[info] curl s.tyleodev.fr/setup/irp-rhel | bash"
exit
fi
echo "/>(info) DPKG Détécté ==> OK"
echo "/>[apt] Mise à jour de l'Index APT"
sudo apt-get update 1>/dev/null
echo "/>[apt] Installation des paquets recommandés (mc zsh git tuned curl wget mc htop nethogs figlet nano) ..."
sudo apt-get install mc zsh git tuned curl wget mc htop nethogs figlet nano -y 1>/dev/null
echo "/>[apt] Installation des Gestionnaires de tâches UNIX/Linux (htop btop atop top) ..."
sudo apt-get install htop btop atop -y 1>/dev/null
echo "/>[apt] Installation des Consoles d'administrations basiques (netdata-web cockpit) ..."
sudo apt-get install netdata-web cockpit -y 1>/dev/null
sudo apt-get install ca-certificates curl gnupg -y
sudo install -m 0755 -d /etc/apt/keyrings
sudo apt update
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
sudo chmod a+r /etc/apt/keyrings/docker.gpg
echo \
"deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian \
"$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt update
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin -y
echo "/>[wget] Téléchargement de Cockpit-Docker depuis https://launchpad.net ..."
sudo wget https://launchpad.net/ubuntu/+source/cockpit/215-1~ubuntu19.10.1/+build/18889196/+files/cockpit-docker_215-1~ubuntu19.10.1_all.deb 1>/dev/null
echo "/>[wget] Téléchargement de GOTOP depuis https://github.com ..."
sudo wget https://github.com/xxxserxxx/gotop/releases/download/v4.1.4/gotop_v4.1.4_linux_amd64.deb 1>/dev/null
echo "/>[wget] Téléchargement de Cockpit-Navigator depuis https://github.com ..."
sudo wget https://github.com/45Drives/cockpit-navigator/releases/download/v0.5.10/cockpit-navigator_0.5.10-1focal_all.deb 1>/dev/null
echo "/>[wget] Téléchargement de DUF depuis https://github.com ..."
sudo wget https://github.com/muesli/duf/releases/download/v0.8.1/duf_0.8.1_linux_amd64.deb 1>/dev/null
echo "/>[apt] Installation de DUF en cours..."
sudo apt-get install ./duf_0.8.1_linux_amd64.deb 1>/dev/null
echo "/>[apt] Installation de GOTOP en cours..."
sudo apt-get install ./gotop_v4.1.4_linux_amd64.deb -y 1>/dev/null
echo "/>[apt] Installation de Cockpit-Docker en cours..."
curl s.tyleodev.fr/setup/irp-cdocker | bash
echo "/>[apt] Installation de Cockpit-Navigator en cours..."
sudo apt-get install ./cockpit-navigator_0.5.10-1focal_all.deb -y 1>/dev/null
echo "/>[wget/bash] Installation de CTOP depuis https://github.com en auto exec ..."
sudo wget https://github.com/bcicen/ctop/releases/download/v0.7.7/ctop-0.7.7-linux-amd64 -O /bin/ctop 1>/dev/null
sudo chmod +x /bin/ctop
echo "/>[info] Nettoyage des fichiers DEB téléchargés ..."
sudo rm -f ./gotop_v4.1.4_linux_amd64.deb 1>/dev/null
sudo rm -f ./cockpit-navigator_0.5.10-1focal_all.deb 1>/dev/null
sudo rm -f ./duf_0.8.1_linux_amd64.deb 1>/dev/null
echo "/>[ qs ] Application du QuickSudo ..."
echo "$USER ALL=(ALL:ALL) NOPASSWD: ALL" > sudo /etc/sudoers.d/$USER
echo Terminé.