Setup SS Server on Ubuntu

SS, the best proxy tool EVER!


sudo apt-get update
apt-get install python-gevent python-pip
pip install shadowsocks
cd /usr/local/lib/python2.7/dist-packages/shadowsocks/
vim config.json


Modify configure file, set server_ip & password (DO NOT USE ‘table’):


Command to find the directory:

sudo find / -name shadows*

Keep Session going on in background:

[Method 1]

cd ~
nohup ssserver -c /usr/local/lib/python2.7/dist-packages/shadowsocks/config.json > log &

View background process:


Command to turn background task to foreground:

fg %n

[Method 2]

Autorun on startup:

vim /etc/rc.local

add these codes(check your path):

/usr/local/bin/ssserver -c /usr/local/lib/python2.7/dist-packages/shadowsocks/config.json

[Method 3]

screen -S ss
/usr/local/bin/ssserver -c /usr/local/lib/python2.7/dist-packages/shadowsocks/config.json

Then use Ctrl + A and press D to detach this session.
Simply use this command to attach the session:

screen -r ss

标签: none