Skip to content

Instantly share code, notes, and snippets.

@itsuki-hayashi
itsuki-hayashi / setup-shadowsocks.sh
Last active March 27, 2023 02:24
Ubuntu 18.04 LTS setup script for shadowsocks-libev + simple-obfs.
#!/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