Setup SS Server on Ubuntu

SS, the best proxy tool EVER!

Install

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

Configure

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

{
"server":"server_ip",
"server_port":8388,
"local_port":1080,
"password":"password",
"timeout":600,
"method":"aes-256-cfb"
}

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:

jobs

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

评论已关闭