Wiki Info Libre @ Dom

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Prochaine révision
Révision précédente
docs:bash:ks-1-debian.sh [2021/06/19 12:36] – créée maison.gaetandocs:bash:ks-1-debian.sh [2024/11/24 12:50] (Version actuelle) – [ks-1-debian :] maison.gaetan
Ligne 1: Ligne 1:
-====== ks-debian :======+====== ks-1-debian :======
  
 <code bash> <code bash>
Ligne 6: Ligne 6:
 ticket=$(uname -n)_en_ligne ticket=$(uname -n)_en_ligne
  
-wget -q --no-check-certificate https://wiki.ilad.biz/_export/code/docs/bash/ks-debian.sh?codeblock=1   -O $HOME/ks-debian.sh+wget -q -U "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:35.0) Gecko/20100101 Firefox/35.0" --no-check-certificate https://wiki.ilad.biz/_export/code/docs/bash/ks-1-debian.sh?codeblock=1   -O $HOME/ks-1-debian.sh
  
-wget -q --no-check-certificate https://wiki.ilad.biz/_export/code/docs/bash/ks-debian.sh?codeblock=2   -O $HOME/profile.txt+wget -q -U "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:35.0) Gecko/20100101 Firefox/35.0" --no-check-certificate https://wiki.ilad.biz/_export/code/docs/bash/ks-1-debian.sh?codeblock=2   -O $HOME/profile.txt
  
-wget -q --no-check-certificate https://wiki.ilad.biz/_export/code/docs/bash/ks-debian.sh?codeblock=3   -O $HOME/bashrc.txt+wget -q -U "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:35.0) Gecko/20100101 Firefox/35.0" --no-check-certificate https://wiki.ilad.biz/_export/code/docs/bash/ks-1-debian.sh?codeblock=3   -O $HOME/bashrc.txt
  
-wget -q --no-check-certificate https://wiki.ilad.biz/_export/code/docs/bash/ks-debian.sh?codeblock=4   -O $HOME/wget-cron.sh+wget -q -U "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:35.0) Gecko/20100101 Firefox/35.0" --no-check-certificate https://wiki.ilad.biz/_export/code/docs/bash/ks-1-debian.sh?codeblock=4   -O $HOME/wget-cron.sh
  
-wget -q --no-check-certificate https://ilad.org/imapsync-2016-04-21.php?t=$ticket  -O /dev/null+wget -q -U "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:35.0) Gecko/20100101 Firefox/35.0" --no-check-certificate https://ilad.org/imapsync-2016-04-21.php?t=$ticket  -O /dev/null
  
-echo "sudo bash ks-debian.sh" >> $HOME/.profile+echo "sudo bash ks-1-debian.sh" >> $HOME/.profile
  
 exit 0 exit 0
Ligne 22: Ligne 22:
 </code> </code>
  
-===== ks-debian.sh =====+===== ks-1-debian.sh =====
  
-<file bash ks-debian.sh>+<file bash ks-1-debian.sh>
 #!/bin/bash #!/bin/bash
 echo "10 secondes d'attentes et lancement du script" echo "10 secondes d'attentes et lancement du script"
Ligne 40: Ligne 40:
   figlet    figlet 
 figlet -w 250 $(uname -n) > $HOME/profile.txt figlet -w 250 $(uname -n) > $HOME/profile.txt
-sed -i "s/sudo bash ks-debian.sh//g" .profile +sed -i "s/sudo bash ks-1-debian.sh//g" .profile 
 echo "cat $HOME/profile.txt" >> .profile echo "cat $HOME/profile.txt" >> .profile
 echo " " >> $HOME/profile.txt echo " " >> $HOME/profile.txt
Ligne 55: Ligne 55:
 </file> </file>
  
-===== ks-debian.txt =====+===== ks-1-debian.txt =====
  
-<file txt ks-debian.txt>+<file txt ks-1-debian.txt>
 ---------- ----------
 </file> </file>
Ligne 72: Ligne 72:
 alias p="ping -c 5 1.1.1.1" alias p="ping -c 5 1.1.1.1"
 alias ld="date +%Y%m%d-%H%M%S" alias ld="date +%Y%m%d-%H%M%S"
 +
 +export LC_ALL=fr_FR.UTF-8
 +export LANG=fr_FR.UTF-8
 +export LANGUAGE=fr_FR.UTF-8
  
 </file> </file>
Ligne 87: Ligne 91:
 </file> </file>
  
-===== ks-install.sh =====+===== ks-1-install.sh =====
  
-<file bash ks-install.sh>+<file bash ks-1-install.sh>
 #!/bin/bash #!/bin/bash
  
 ticket=$(uname -n)_en_ligne ticket=$(uname -n)_en_ligne
  
-wget -q --no-check-certificate https://wiki.ilad.biz/_export/code/docs/bash/ks-debian.sh?codeblock=1   -O $HOME/ks-debian.sh+wget -q -U "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:35.0) Gecko/20100101 Firefox/35.0" --no-check-certificate https://wiki.ilad.biz/_export/code/docs/bash/ks-1-debian.sh?codeblock=1   -O $HOME/ks-1-debian.sh
  
-wget -q --no-check-certificate https://wiki.ilad.biz/_export/code/docs/bash/ks-debian.sh?codeblock=2   -O $HOME/profile.txt+wget -q -U "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:35.0) Gecko/20100101 Firefox/35.0" --no-check-certificate https://wiki.ilad.biz/_export/code/docs/bash/ks-1-debian.sh?codeblock=2   -O $HOME/profile.txt
  
-wget -q --no-check-certificate https://wiki.ilad.biz/_export/code/docs/bash/ks-debian.sh?codeblock=3   -O $HOME/bashrc.txt+wget -q -U "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:35.0) Gecko/20100101 Firefox/35.0" --no-check-certificate https://wiki.ilad.biz/_export/code/docs/bash/ks-1-debian.sh?codeblock=3   -O $HOME/bashrc.txt
  
-wget -q --no-check-certificate https://wiki.ilad.biz/_export/code/docs/bash/ks-debian.sh?codeblock=4   -O $HOME/wget-cron.sh+wget -q -U "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:35.0) Gecko/20100101 Firefox/35.0" --no-check-certificate https://wiki.ilad.biz/_export/code/docs/bash/ks-1-debian.sh?codeblock=4   -O $HOME/wget-cron.sh
  
-wget -q --no-check-certificate https://ilad.org/imapsync-2016-04-21.php?t=$ticket  -O /dev/null+wget -q -U "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:35.0) Gecko/20100101 Firefox/35.0" --no-check-certificate https://ilad.org/imapsync-2016-04-21.php?t=$ticket  -O /dev/null
  
-echo "sudo bash ks-debian.sh" >> $HOME/.profile+echo "sudo bash ks-1-debian.sh" >> $HOME/.profile
  
 exit 0 exit 0
  
 +</file>
 +
 +===== ks-1-upgrade-buster.sh =====
 +
 +<file bash ks-1-upgrade-buster.sh>
 +apt update \
 +&& apt upgrade -y \
 +&& apt dist-upgrade -y\
 +&& apt install -y \
 +&& sed -i 's/stretch/buster/g' /etc/apt/sources.list \
 +&& apt update \
 +&& apt upgrade -y \
 +&& apt dist-upgrade -y
 </file> </file>