ks-1-debian :
#!/bin/bash
ticket=$(uname -n)_en_ligne
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 -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 -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 -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 -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-1-debian.sh" >> $HOME/.profile
exit 0
ks-1-debian.sh
- ks-1-debian.sh
#!/bin/bash
echo "10 secondes d'attentes et lancement du script"
sleep 10
dpkg-reconfigure locales \
&& dpkg-reconfigure tzdata \
&& apt update \
&& apt upgrade -y \
&& apt dist-upgrade -y\
&& apt install -y \
htop \
wget \
screen \
figlet
figlet -w 250 $(uname -n) > $HOME/profile.txt
sed -i "s/sudo bash ks-1-debian.sh//g" .profile
echo "cat $HOME/profile.txt" >> .profile
echo " " >> $HOME/profile.txt
echo " " >> $HOME/profile.txt
cat $HOME/bashrc.txt >> .bashrc
rm -fr $HOME/bashrc.txt
cat $HOME/profile.txt
echo "5 * * * * bash wget-cron.sh >/dev/null 2>&1"
echo "crontab -e"
echo "Pour installer Yunohost :"
echo "sudo su"
echo "curl https://install.yunohost.org | bash && yunohost tools postinstall && yunohost user create gmilad && yunohost domain cert-install --no-checks"
exit 0
ks-1-debian.txt
- ks-1-debian.txt
----------
bashrc.txt
- bashrc.txt
# Rajout Gaëtan :
# source : https://www.admin-linux.fr/personnaliser-le-prompt/ :
PS1='\[\033[34;1m\]\u\[\033[0m\]@\[\033[32;1m\]\h \[\033[37;1m\]$PWD\[\033[0m\] [\[\033[35m\]\#\[\033[0m\]]\[\033[31m\]\$\[\033[0m\] '
alias ll="ls -lAh --color=yes"
alias p="ping -c 5 1.1.1.1"
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
wget-cron.sh
- wget-cron.sh
#!/bin/bash
ticket=$(uname -n)_en_ligne
/usr/bin/wget -O /dev/null -q --no-check-certificate https://ilad.org/imapsync-2016-04-21.php?t=$ticket
exit 0
ks-1-install.sh
- ks-1-install.sh
#!/bin/bash
ticket=$(uname -n)_en_ligne
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 -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 -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 -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 -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-1-debian.sh" >> $HOME/.profile
exit 0
ks-1-upgrade-buster.sh
- 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