Skip to content

Instantly share code, notes, and snippets.

@euyuil
Last active March 1, 2019 04:50
Show Gist options
  • Save euyuil/55cfe14e6b3ba9ce416e to your computer and use it in GitHub Desktop.
Save euyuil/55cfe14e6b3ba9ce416e 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
sudo pip install shadowsocks
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
@rogerBridge
Copy link

谢谢

@ambreenmoeen
Copy link

You can say that with the help of this code people get to know how to make their websites good look better. You can know better by following gist.github.com site and check the codes, notes and snippets there. Here i came to get the source for writing service but i think this website is best for the developers because it all about the solution of different coding errors.

@mkakpinar
Copy link

mkakpinar commented Feb 11, 2019

since the pypi package is not updated #646 and have some problems about newer openssl versions imo its better to install from git repository like on my fork here

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