From 7def62850b51b1b219193241dae2e9c14ec80bed Mon Sep 17 00:00:00 2001 From: Erreur32 Date: Thu, 30 Mar 2023 15:04:15 +0200 Subject: [PATCH] first commit --- Aide | 20 ++++++++++++++------ list-app-install-apt.sh | 25 +++++++++++++++++++++++++ list-app-install-apt.txt | 20 ++++++++++++++++++++ list-app-used.txt | 37 ++++++++++++++++++++++++++++++++----- 4 files changed, 91 insertions(+), 11 deletions(-) create mode 100644 list-app-install-apt.sh create mode 100644 list-app-install-apt.txt diff --git a/Aide b/Aide index 88a1bd9..e7fea6c 100644 --- a/Aide +++ b/Aide @@ -1,16 +1,24 @@ faire check des dependances ---> + --> verif tool a chek si installer: duf gtop vtop glances htop - - - - - +sensible-browser +s-tui +nload +iftop +nethogs +bmon +netwatch +ttyload +netload +speedometer +vnstat +whiptail +vmstat diff --git a/list-app-install-apt.sh b/list-app-install-apt.sh new file mode 100644 index 0000000..aa7367d --- /dev/null +++ b/list-app-install-apt.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +# Load the list of dependencies from file.txt into an array +IFS=$'\n' read -d '' -r -a dependencies < list-app-used.txt + +# Loop through the array of dependencies and check if each one is installed +for dependency in "${dependencies[@]}" +do + if ! command -v "$dependency" &> /dev/null + then + # Dependency is not installed, prompt the user to install it + echo "The $dependency dependency is not installed." + read -p "Do you want to install it now? (y/n) " choice + if [ "$choice" == "y" ]; then + sudo apt-get install "$dependency" + else + echo "Installation canceled." + exit 1 + fi + else + echo "The $dependency dependency is already installed." + fi +done + +echo "All dependencies are installed." diff --git a/list-app-install-apt.txt b/list-app-install-apt.txt new file mode 100644 index 0000000..d12b5ee --- /dev/null +++ b/list-app-install-apt.txt @@ -0,0 +1,20 @@ +# apt-get install nload apachetop sniffit vmstat iftop glances htop s-tui nethogs bmon vnstat nmon sensible-utils ttyload netload netwatch nmom + +duf +glances +htop +s-tui +nload +iftop +nethogs +bmon +nmom +netwatch +ttyload +netload +sensible-utils +vnstat +whiptail +vnstat +apachetop +sniffit diff --git a/list-app-used.txt b/list-app-used.txt index 9897e22..b755cf5 100644 --- a/list-app-used.txt +++ b/list-app-used.txt @@ -1,15 +1,42 @@ -nload + +apt-get install nload apachetop sniffit iftop glances htop s-tui iftop nethogs bmon vnstat nmon whiptail + +duf glances htop -gtop -vtop s-tui +nload iftop nethogs bmon -speedmeter +nmom +netwatch +ttyload +netload +sensible-utils vnstat -nmon +whiptail +vnstat +apachetop +sniffit + + +---------------------------------- special + +sensible-browser --> apt-get install sensible-utils + +mytop --> + wget http://fossies.org/linux/privat/mytop-1.9.1.tar.gz + tar zxpfv mytop-1.9.1.tar.gz + cd mytop-1.9.1 + perl Makefile.PL && make && make install + +gtop --> npm install -g gtop +vtop --> npm install -g vtop + + + +----------------------------------- arachni/ dirbot/ dnsenum/