Transférer les fichiers vers ''
This commit is contained in:
parent
d60bf92ce2
commit
51ed70db8f
137
install.sh
137
install.sh
@ -1,69 +1,68 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# (setleds +num pour le délire du pavé numérique)
|
# (setleds +num pour le délire du pavé numérique)
|
||||||
|
|
||||||
# Check if Script is Run as Root
|
# Check if Script is Run as Root
|
||||||
if [[ $EUID -ne 0 ]]; then
|
if [[ $EUID -ne 0 ]]; then
|
||||||
echo "You must be a root user to run this script, please run sudo ./install.sh" 2>&1
|
echo "You must be a root user to run this script, please run sudo ./install.sh" 2>&1
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
username=$(id -u -n 1000)
|
username=$(id -u -n 1000)
|
||||||
builddir=$(pwd)
|
builddir=$(pwd)
|
||||||
|
|
||||||
# Définition du nom d'hôte
|
# Définition du nom d'hôte
|
||||||
echo "- Quel nom d'hôte voulez-vous donner à cette nouvelle machine ?"
|
echo "- Quel nom d'hôte voulez-vous donner à cette nouvelle machine ?"
|
||||||
read machinename
|
read machinename
|
||||||
clear
|
clear
|
||||||
hostnamectl set-hostname $machinename
|
hostnamectl set-hostname $machinename
|
||||||
sed -i '1i 127.0.0.1\t'$machinename /etc/hosts
|
sed -i '1i 127.0.0.1\t'$machinename /etc/hosts
|
||||||
|
|
||||||
# noatime
|
# noatime
|
||||||
cp /etc/fstab /etc/fstab.bck
|
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
|
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
|
mv /etc/fstab.tmp /etc/fstab
|
||||||
|
|
||||||
# swapiness
|
# swapiness
|
||||||
echo "vm.swappiness=1" >> /etc/sysctl.conf
|
echo "vm.swappiness=1" >> /etc/sysctl.conf
|
||||||
echo "Désactivation et vidage de la mémoire swap - Veuillez patentier..."
|
echo "Désactivation et vidage de la mémoire swap - Veuillez patentier..."
|
||||||
swapoff -a
|
swapoff -a
|
||||||
echo "Activation de la mémoire swap avec prise en compte de la valeur 1 "
|
echo "Activation de la mémoire swap avec prise en compte de la valeur 1 "
|
||||||
swapon -a
|
swapon -a
|
||||||
sleep 3
|
sleep 3
|
||||||
|
|
||||||
# Purge des paquets non désirés
|
# Purge des paquets non désirés
|
||||||
apt remove --purge libreoffice*
|
apt remove --purge libreoffice*
|
||||||
apt autoremove
|
apt autoremove
|
||||||
|
|
||||||
# Change Debian to SID Branch
|
# Change Debian to SID Branch
|
||||||
cp /etc/apt/sources.list /etc/apt/sources.list.bck
|
cp /etc/apt/sources.list /etc/apt/sources.list.bck
|
||||||
cp sources.list /etc/apt/sources.list
|
cp sources.list /etc/apt/sources.list
|
||||||
|
|
||||||
# Update packages list and update system
|
# Update packages list and update system
|
||||||
apt update
|
apt update
|
||||||
apt upgrade -y
|
apt upgrade -y
|
||||||
|
|
||||||
# Install nala
|
# Install nala
|
||||||
apt install nala -y
|
apt install nala -y
|
||||||
nala fetch --auto -y
|
nala fetch --auto -y
|
||||||
|
|
||||||
# Installation des paquets
|
# Installation des paquets
|
||||||
nala install unattended-upgrades neofetch variety mate-tweak mate-dock-applet lightdm-settings numlockx curl nmap ksnip redshift-gtk -y
|
nala install unattended-upgrades 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 ?)
|
# en question (timeshift avec btrfs ?) (mate-menu vs brisk) (ttf-mscorefonts-installer pas dans les dépots ?)
|
||||||
|
|
||||||
# Anydesk
|
# Anydesk
|
||||||
#wget -qO - https://keys.anydesk.com/repos/DEB-GPG-KEY | apt-key add -
|
#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
|
#echo "deb http://deb.anydesk.com/ all main" > /etc/apt/sources.list.d/anydesk-stable.list
|
||||||
#nala update
|
#nala update
|
||||||
#nala install anydesk -y
|
#nala install anydesk -y
|
||||||
|
|
||||||
# Flatpak (reboot nécéssaire)
|
# Flatpak (reboot nécéssaire)
|
||||||
nala install flatpak -y
|
nala install flatpak -y
|
||||||
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
|
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
|
||||||
flatpak install flathub com.anydesk.Anydesk io.crow_translate.CrowTranslate com.discordapp.Discord io.github.hmlendea.geforcenow-electron org.onlyoffice.desktopeditors io.gitlab.librewolf-community com.usebottles.bottle -y
|
flatpak install flathub com.anydesk.Anydesk io.crow_translate.CrowTranslate com.discordapp.Discord io.github.hmlendea.geforcenow-electron org.onlyoffice.desktopeditors io.gitlab.librewolf-community com.usebottles.bottle -y
|
||||||
|
|
||||||
# Logiciels Mint
|
# Logiciels Mint
|
||||||
wget -q -O - "https://github.com/linuxmint/webapp-manager/releases/download/master.lmde5/packages.tar.gz" | tar -xzf - -C /tmp
|
wget -q -O - "https://github.com/linuxmint/webapp-manager/releases/download/master.lmde5/packages.tar.gz" | tar -xzf - -C /tmp
|
||||||
nala install /tmp/packages/*deb -y
|
nala install /tmp/packages/*deb -y
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user