Last active
February 20, 2023 11:04
-
-
Save manhg/0eca476c9c89328c74443bdc014ff1f4 to your computer and use it in GitHub Desktop.
This file contains 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
cd ~ | |
apt-get update | |
apt-get install bash-completion ufw curl git docker.io postfix psmisc fail2ban gnupg logcheck rsync python3-pip libffi-dev | |
echo '' > /etc/motd | |
timedatectl set-timezone Asia/Tokyo | |
pip3 install docker-compose | |
sed -i 's/#Storage.*/Storage=persistent/' /etc/systemd/journald.conf | |
sed -i 's/#SystemMaxUse=.*/SystemMaxUse=2G/' /etc/systemd/journald.conf | |
killall -USR1 systemd-journald | |
cd /usr/bin | |
curl https://getmic.ro/r | sudo sh | |
curl -sSf https://moncho.github.io/dry/dryup.sh | sudo sh | |
sudo chmod 755 /usr/local/bin/dry | |
curl https://raw.githubusercontent.com/manhg/snippets/master/bashrc > ~/.bashrc | |
echo 'source .bashrc' >> .bash_profile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment