# Заповнюємо змінні
export [email protected]
export [email protected]
export SMTP=localhost:25
# Виконуємо команди відправки листа
cat > /etc/ssmtp/ssmtp.conf <<EOF
root=$FROM
mailhub=$SMTP
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "Recreating docker iptables rules and chains" | |
echo "iptables -N DOCKER" | |
echo "iptables -N DOCKER-ISOLATION" | |
echo "iptables -t nat -N DOCKER" | |
echo "iptables -A DOCKER-ISOLATION -j RETURN" | |
echo "iptables -A FORWARD -j DOCKER-ISOLATION" | |
echo "iptables -t nat -A PREROUTING -m addrtype -dst-type LOCAL -j DOCKER" |

при установке mariadb после команды
add-apt-repository 'deb [arch=amd64,i386,ppc64el] http://www.ftp.saix.net/DB/mariadb/repo/10.1/ubuntu xenial main'
нужно открыть
nano /etc/apt/sources.list
и там раскомментировать репозиторий mariadb
# Connect to your server as root via SSH
ssh [email protected]
# Install dependency
apt-get install curl wget -y
# Download installation script
curl -O https://gist.githubusercontent.com/gomin1d/12beb5009bd9c3c559176008daa688c6/raw/java-install.sh
# Run it
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Добавить в конец файла .bashrc или .profile | |
# Tmux | |
if [ $(tmux ls | wc -l) -eq 0 ] ; then | |
tmux new -d -n htop 'htop; bash' | |
for d in ~/servers/*; { tmux neww -n $(basename $d) -c $d 'mc; bash'; } | |
tmux neww -n work 'mc; bash' | |
fi | |
tmux attach |