Skip to content

Instantly share code, notes, and snippets.

@manhg
Last active February 20, 2023 11:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save manhg/0eca476c9c89328c74443bdc014ff1f4 to your computer and use it in GitHub Desktop.
Save manhg/0eca476c9c89328c74443bdc014ff1f4 to your computer and use it in GitHub Desktop.
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