| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente |
| docs:bash:vps-debian.sh [2020/05/10 17:44] – [vps-debian.sh] maison.gaetan | docs:bash:vps-debian.sh [2023/05/19 22:09] (Version actuelle) – [bashrc.txt] maison.gaetan |
|---|
| ticket=$(uname -n)_en_ligne | ticket=$(uname -n)_en_ligne |
| |
| wget -q --no-check-certificate https://wiki.ilad.biz/_export/code/docs/bash/vps-debian.sh?codeblock=1 -O /home/debian/vps-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/vps-debian.sh?codeblock=1 -O /home/debian/vps-debian.sh |
| |
| wget -q --no-check-certificate https://wiki.ilad.biz/_export/code/docs/bash/vps-debian.sh?codeblock=2 -O /home/debian/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/vps-debian.sh?codeblock=2 -O /home/debian/profile.txt |
| |
| wget -q --no-check-certificate https://wiki.ilad.biz/_export/code/docs/bash/vps-debian.sh?codeblock=3 -O /home/debian/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/vps-debian.sh?codeblock=3 -O /home/debian/bashrc.txt |
| |
| wget -q --no-check-certificate https://wiki.ilad.biz/_export/code/docs/bash/vps-debian.sh?codeblock=4 -O /home/debian/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/vps-debian.sh?codeblock=4 -O /home/debian/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 vps-debian.sh" >> /home/debian/.profile | echo "sudo bash vps-debian.sh" >> /home/debian/.profile |
| && apt dist-upgrade -y\ | && apt dist-upgrade -y\ |
| && apt install -y \ | && apt install -y \ |
| wget \ | htop \ |
| | curl \ |
| screen \ | screen \ |
| figlet | figlet |
| rm -fr /home/debian/bashrc.txt | rm -fr /home/debian/bashrc.txt |
| cat /home/debian/profile.txt | cat /home/debian/profile.txt |
| | chown debian:debian wget-cron.sh |
| echo "5 * * * * bash wget-cron.sh >/dev/null 2>&1" | echo "5 * * * * bash wget-cron.sh >/dev/null 2>&1" |
| echo "crontab -e" | echo "crontab -e" |
| chown debian:debian wget-cron.sh | echo "Pour installer Yunohost :" |
| | echo "sudo -i" |
| | echo "curl https://install.yunohost.org | bash && yunohost tools postinstall && yunohost user create gmilad && yunohost domain cert install --no-checks" |
| exit 0 | exit 0 |
| </file> | </file> |
| |
| <file txt bashrc.txt> | <file txt bashrc.txt> |
| | |
| | # Rajout Gaëtan : |
| # source : https://www.admin-linux.fr/personnaliser-le-prompt/ : | # 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\] ' | 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" |
| # Rajout Gaëtan : | alias p="ping -c 5 1.1.1.1" |
| alias ll="ls -lA --color=yes" | |
| alias p="ping -c 5 8.8.8.8" | |
| 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> |