Created
March 11, 2019 00:55
-
-
Save knwng/b7083b2b5c97efdfb57723422b17f010 to your computer and use it in GitHub Desktop.
ubuntu上shadowsocks部署
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 | |
# install latest version of shadowsocks via pip | |
/usr/bin/python3.5 -m pip install --upgrade git+https://github.com/shadowsocks/shadowsocks.git@master | |
# install libsodium to support aes-256-gcm | |
add-apt-repository ppa:chris-lea/libsodium | |
echo "deb http://ppa.launchpad.net/chris-lea/libsodium/ubuntu xenial main" >> /etc/apt/sources.list | |
echo "deb-src http://ppa.launchpad.net/chris-lea/libsodium/ubuntu xenial main" >> /etc/apt/sources.list | |
apt-get update | |
apt-get install libsodium-dev | |
# restart | |
/usr/bin/python3.5 /usr/local/bin/ssserver -c /etc/shadowsocks/config.json -d restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment