From 4f72724cf868a954a5d8341d28e9a94d9d78337d Mon Sep 17 00:00:00 2001 From: wilou Date: Mon, 16 Jan 2023 14:59:13 +0000 Subject: [PATCH] =?UTF-8?q?Transf=C3=A9rer=20les=20fichiers=20vers=20''?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 67 ++++++++++++++++++++++++++++++++++++++++++++++++++++ sources.list | 2 ++ 2 files changed, 69 insertions(+) create mode 100644 install.sh create mode 100644 sources.list diff --git a/install.sh b/install.sh new file mode 100644 index 0000000..9dcb7c2 --- /dev/null +++ b/install.sh @@ -0,0 +1,67 @@ +#!/bin/bash + +# (setleds +num pour le délire du pavé numérique) + +# Check if Script is Run as Root +if [[ $EUID -ne 0 ]]; then + echo "You must be a root user to run this script, please run sudo ./install.sh" 2>&1 + exit 1 +fi + +username=$(id -u -n 1000) +builddir=$(pwd) + +# Définition du nom d'hôte +echo "- Quel nom d'hôte voulez-vous donner à cette nouvelle machine ?" +read machinename +clear +hostnamectl set-hostname $machinename +sed -i '1i 127.0.0.1\t'$machinename /etc/hosts + +# noatime +cp /etc/fstab /etc/fstab.bck +awk '!/^#/ && ($3 != "swap") && ($2 != "/media/cdrom0") { if(!match(/noatime/, $4)) $4=$4",noatime" } 1' /etc/fstab > /etc/fstab.tmp +mv /etc/fstab.tmp /etc/fstab + +# swapiness +echo "vm.swappiness=1" >> /etc/sysctl.conf +echo "Désactivation et vidage de la mémoire swap - Veuillez patentier..." +swapoff -a +echo "Activation de la mémoire swap avec prise en compte de la valeur 1 " +swapon -a +sleep 3 + +# Purge des paquets non désirés +apt remove --purge libreoffice* +apt autoremove + +# Change Debian to SID Branch +cp /etc/apt/sources.list /etc/apt/sources.list.bck +cp sources.list /etc/apt/sources.list + +# Update packages list and update system +apt update +apt upgrade -y + +# Install nala +apt install nala -y +nala fetch --auto -y + +# Installation des paquets +nala install neofetch variety mate-tweak mate-dock-applet lightdm-settings numlockx curl nmap ksnip redshift-gtk -y + +# en question (timeshift avec btrfs ?) (mate-menu vs brisk) (ttf-mscorefonts-installer pas dans les dépots ?) + +# Anydesk +#wget -qO - https://keys.anydesk.com/repos/DEB-GPG-KEY | apt-key add - +#echo "deb http://deb.anydesk.com/ all main" > /etc/apt/sources.list.d/anydesk-stable.list +#nala update +#nala install anydesk -y + +# Flatpak (reboot nécéssaire) +nala install flatpak -y +flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo +flatpak install flathub com.anydesk.Anydesk io.crow_translate.CrowTranslate io.github.hmlendea.geforcenow-electron org.onlyoffice.desktopeditors io.gitlab.librewolf-community -y + + + diff --git a/sources.list b/sources.list new file mode 100644 index 0000000..e441b59 --- /dev/null +++ b/sources.list @@ -0,0 +1,2 @@ +deb http://deb.debian.org/debian/ sid main +deb-src http://deb.debian.org/debian/ sid main \ No newline at end of file