0. Update the software source
sudo apt-get update
1. Install pip3
sudo apt-get install python3-pip
2. First install shadowsocks with python3:
sudo pip3 install shadowsocks
3. Edit the configuration file
sudo vim /etc/shadowsocks.json
The configuration file is set as follows:
{
"server":"你的主机的IP地址。 好像0.0.0.0 也可以",
"server_port": 9999,
"password":"password",
"timeout":600,
"method":"aes-256-cfb",
"port_password":
{
"5200":"password",
"5201":"password",
"5202":"password",
"5203":"password",
"5204":"password",
"5205":"password",
"1314":"password"
}
}
4. Start the service (start in the background)
sudo ssserver -c /etc/shadowsocks.json -d start