#!/bin/bash # Usage: # bash <(curl -s https://gist.github.com/zklhp/98b91192aa055f47da6f7db518523236/raw/) # Upgrade to Debian 9.0 (stretch) if needed. grep ^8 /etc/debian_version && sed -i 's/jessie/stretch/g' /etc/apt/sources.list apt-get update apt-get -y upgrade apt-get -y install shadowsocks-libev cat < /etc/shadowsocks-libev/config.json { "server_port":8388, "password":"111", "timeout":60, "method":"aes-256-cfb", "auth":true } EOF sleep 10 systemctl start shadowsocks-libev exit 0