From bb9a30172ddda864e03a5af2c057d8e29b3d61c4 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Sat, 9 Apr 2022 01:17:44 +0200 Subject: [PATCH] Mise a jour de l'OS avant de tout installer --- wsl.sh | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/wsl.sh b/wsl.sh index 91b92d3..1eb2114 100644 --- a/wsl.sh +++ b/wsl.sh @@ -2,20 +2,22 @@ if grep "WSL" /proc/version > /dev/null; then + # === Update Ubuntu == + sudo sed -i "s/bullseye/bullseye/g" /etc/apt/sources.list + sudo sed -i "s/bullseye/bullseye/g" /etc/apt/sources.list.d/*.list sudo apt update + sudo apt full-upgrade -y which git &> /dev/null || sudo apt install git -y # install git if not already installed which curl &> /dev/null || sudo apt install apt-transport-https curl -y # install curl (along with apt-transport-https) if not already installed which wget &> /dev/null || sudo apt install wget -y # install wget if not already installed - # === Upgrade and clean already installed packages == - sudo apt full-upgrade -y - # === Basic dev == sudo apt install build-essential valgrind -y # === Fish == sudo apt-add-repository ppa:fish-shell/release-3 -y + sudo apt update sudo apt install fish fzf bat procps exa micro -y cd /usr/local/bin || exit curl https://getmic.ro | sudo GETMICRO_PLATFORM=linux64 bash @@ -153,12 +155,6 @@ then # === Remove SU password == sudo sed -i "26s#.*#%sudo ALL=(ALL:ALL) NOPASSWD: ALL#" /etc/sudoers - # === Update Debian == - # sudo sed -i "s/bullseye/bullseye/g" /etc/apt/sources.list - # sudo sed -i "s/bullseye/bullseye/g" /etc/apt/sources.list.d/*.list - # Make the update - # sudo apt update - # sudo apt full-upgrade -y echo -e "\nInstallation terminée.\nIl faut redémarrer WSL (dans Powershell : wsl -t Debian)." echo -e "---\nPense bien à paramétrer ton terminal, exemple avec Windows Terminal :"