Skip to content

Instantly share code, notes, and snippets.

@zklhp
Last active March 26, 2018 19:50
Show Gist options
  • Save zklhp/98b91192aa055f47da6f7db518523236 to your computer and use it in GitHub Desktop.
Save zklhp/98b91192aa055f47da6f7db518523236 to your computer and use it in GitHub Desktop.
Install shadowsocks-libev on Debian 9
#!/bin/bash
# Usage:
# bash <(curl -s https://gist.githubusercontent.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 <<EOF > /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 <<EOF > /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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment