Skip to content

Instantly share code, notes, and snippets.

@yatyricky
Last active September 17, 2019 02:57
Show Gist options
  • Save yatyricky/6a807f98175e13d837c08ccf34c46b6d to your computer and use it in GitHub Desktop.
Save yatyricky/6a807f98175e13d837c08ccf34c46b6d to your computer and use it in GitHub Desktop.
#! /bin/sh
echo "--- Installing shadowsocks ---"
apt update
yes | apt install shadowsocks-libev
yes | apt install nodejs
yes | apt install npm
echo "{\"server\":\"0.0.0.0\",\"server_port\":14029,\"local_port\":1080,\"password\":\"WqbeYarGNB4F\",\"timeout\":60,\"method\":\"chacha20-ietf-poly1305\"}" > /etc/shadowsocks-libev/config.json
echo "--- Enabling BBR ---"
cd ~
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.10.9/linux-image-4.10.9-041009-generic_4.10.9-041009.201704080516_amd64.deb
dpkg -i linux-image-4.*.deb
update-grub
reboot
@yatyricky
Copy link
Author

yatyricky commented Jun 2, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment