Skip to content

Instantly share code, notes, and snippets.

@arnabdas
Last active May 23, 2017 17:14
Show Gist options
  • Save arnabdas/a78f3f11589bce8cfde6608bf8f8d231 to your computer and use it in GitHub Desktop.
Save arnabdas/a78f3f11589bce8cfde6608bf8f8d231 to your computer and use it in GitHub Desktop.
Install shadowsocks-libev on Ubuntu
{
"server":"xx.xx.xx.xx",
"server_port": 1234,
"local_port": 1234,
"password":"long-non-guessable-password",
"timeout": 600,
"method":"chacha20-ietf-poly1305"
}
apt-get install --no-install-recommends build-essential autoconf libtool haveged automake \
libssl-dev gawk debhelper dh-systemd init-system-helpers pkg-config asciidoc \
xmlto apg libpcre3-dev zlib1g-dev libev-dev libudns-dev libsodium-dev libmbedtls-dev
cd /usr/local/src
git clone https://github.com/shadowsocks/shadowsocks-libev.git
cd shadowsocks-libev
git submodule update --init
./autogen.sh && ./configure && make && make install
# this is a hack to create the autostart scripts
add-apt-repository ppa:max-c-lv/shadowsocks-libev
apt-get update
apt install shadowsocks-libev
# configure the server correctly
vim /etc/shadowsocks-libev/config.json
apt-get remove shadowsocks-libev
# change the "DAEMON" localtion to '/usr/local/bin/ss-server'
vim /etc/init.d/shadowsocks-libev
# reload reload daemons
systemctl daemon-reload
# restart the server
/etc/init.d/shadowsocks-libev restart # if any error occurs try with just 'start'
# ====================================== #
# Firefox #
# ====================================== #
# stop webrtc leak
# about:config
# media.peerconnection.enabled
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment