install ss on vps

Install SS on VPS

Install Python Package Management && Shadowsocks

1
2
3
4
5
6
7
8
<!--Run shell with root privilege-->
sudo -s

<!--Install python package manage tools-->
apt-get update && apt-get install -y python-setuptools python-pip

<!--Install shadowsocks-->
pip install shadowsocks

Edit shadowsocks configuration

Create and edit config file

1
vi ss.json

1
2
3
4
5
6
7
8
{
"server":"0.0.0.0",
"method":"aes-256-cfb",
"port_password":{
"443":"imthebest",
"5211":"getusedtoit"
}
}

Launch shadowsocks on server(Useful command)

Basic command

1
2
3
ssserver -c ss.json -d start
ssserver -c ss.json -d stop
ssserver -c ss.json -d restart

Set automatically boot

1
2
//Insert the following command before the last line of file `/etc/rc.local`
sudo ssserver -c /home/ubuntu/ss.json -d start

Problems

python error

1
locale.Error: unsupported locale setting

Solution

1
export LC_ALL="en_US.UTF-8"