#!/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 cat < /etc/apt/sources.list.d/stretch-stable-bpo.list deb http://ftp.debian.org/debian stable-bpo main EOF apt-get update apt-get -y upgrade apt-get -y install shadowsocks-libev cat < /etc/shadowsocks-libev/config.json { "server_port": 18388, "password": "111", "timeout": 60, "method": "xchacha20-ietf-poly1305" } EOF sleep 10 nohup ss-server -c /etc/shadowsocks-libev/config.json & exit 0