Skip to content

Instantly share code, notes, and snippets.

@charnbo
Forked from zklhp/install-shadowsocks-libev.sh
Created October 16, 2017 15:35
Show Gist options
  • Save charnbo/33ff896cfdeaa0fb28a6781ec189c7ea to your computer and use it in GitHub Desktop.
Save charnbo/33ff896cfdeaa0fb28a6781ec189c7ea to your computer and use it in GitHub Desktop.
Install shadowsocks-libev on Debian 9
#!/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 <<EOF > /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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment