Last active
September 17, 2019 02:57
-
-
Save yatyricky/6a807f98175e13d837c08ccf34c46b6d 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
#! /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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
curl -s https://gist.githubusercontent.com/yatyricky/6a807f98175e13d837c08ccf34c46b6d/raw/e0f42d99e2010507bdd9cee5f120b903d99d0d46/ss1.sh > ~/ss1.sh ; sh ~/ss1.sh