Skip to content

Instantly share code, notes, and snippets.

@knwng
Created March 11, 2019 00:55
Show Gist options
  • Save knwng/b7083b2b5c97efdfb57723422b17f010 to your computer and use it in GitHub Desktop.
Save knwng/b7083b2b5c97efdfb57723422b17f010 to your computer and use it in GitHub Desktop.
ubuntu上shadowsocks部署
#!/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