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
#!/bin/bash | |
# Get base packages up-to-date. | |
apt update -y && apt dist-upgrade -y && apt autoremove -y | |
# Install what we needs | |
apt install shadowsocks-libev simple-obfs haveged curl -y | |
# Enable haveged for more entropy on cloud server | |
systemctl enable haveged.service && systemctl restart haveged.service | |
# Backup /etc/sysctl.conf | |
mv /etc/sysctl.conf /etc/sysctl.conf.orig | |
# Write optimized kernel parameters |