Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mkakpinar/a8021f795d42daf7f9d131dd0799882c to your computer and use it in GitHub Desktop.
Save mkakpinar/a8021f795d42daf7f9d131dd0799882c to your computer and use it in GitHub Desktop.
Shadowsocks: Server installation and configuration on Ubuntu 14.04.
#!/bin/bash
sudo apt-get -y update
sudo apt-get -y upgrade
sudo apt-get install -y python-gevent python-pip python-m2crypto supervisor git
sudo pip install -U git+https://github.com/shadowsocks/shadowsocks.git@master
sudo mkdir -p touch /etc/shadowsocks
sudo cat > /etc/shadowsocks/shadowsocks.json <<EOF
{
"server": "0.0.0.0",
"server_port": 20444,
"password": "***",
"timeout": 300,
"method": "rc4-md5"
}
EOF
sudo cat > /etc/supervisor/conf.d/shadowsocks.conf <<EOF
[program:shadowsocks]
command=/usr/local/bin/ssserver -c /etc/shadowsocks/shadowsocks.json
autorestart=true
user=nobody
EOF
invoke-rc.d supervisor restart
supervisorctl status
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment