Advertisement
Guest User

Untitled

a guest
Apr 6th, 2016
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. #!/bin/sh
  2. sudo apt-get -y install curl python-pip
  3. sudo pip install shadowsocks
  4. sudo mkdir /etc/shadowsocks
  5. printf "=====\nEnter your shadowsocks password\n=====\n"
  6. read password
  7. printf "=====\nEnter your shadowsocks port(>1024)\n=====\n"
  8. read port
  9. printf "\nConfigure shadowsocks with password: $password and at port: $port\n"
  10. printf "{\n\t\"server\":\"::\",\n\t\"server_port\":$port,\n\t\"local_port\":10800,\n\t\"password\":\"$password\",\n\t\"timeout\":600,\n\t\"method\":\"rc4-md5\"\n}" | sudo tee /etc/shadowsocks/config.json > /dev/null
  11. sudo apt-get -y install python-m2crypto supervisor
  12. printf "[program:shadowsocks]\ncommand=`which ssserver` -c /etc/shadowsocks/config.json\nautorestart=true\nuser=nobody" | sudo tee /etc/supervisor/conf.d/shadowsocks.conf > /dev/null
  13. sudo service supervisor start
  14. sudo supervisorctl reload
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement