Ubuntu Established Shadow Socks Server - Jerrysun0227/TechnicalArticles GitHub Wiki
1.Update softwares: apt-get update
2.Install python: apt-get install python-pip
3.Install shadow socks server: pip install shadowsocks
4.Edit config file named 'shadowsocks.json' & save it in the folder '/etc/':
======== below is the file content =========
{
"server":"my_server_ip",
"server_port":your_port,
"local_address": "127.0.0.1",
"local_port":1080,
"password":"your_password",
"timeout":300,
"method":"rc4-md5"
}
======== above is the file content =========
NOTE: there is more choice in method such as "bf-cfb", "aes-256-cfb", "des-cfb","rc4-md5" and so on
5.Start SS server: ssserver -c /etc/shadowsocks.json -d start
6.Stop SS server: ssserver -c /etc/shadowsocks.json -d stop
If you want to the SS server autostart when login in the computer, you can do the steps below:
1.Edit the file /etc/rc.local
2.Add "/usr/local/bin/ssserver –c /etc/shadowsocks.json" above the the line "exit 0"