Introduction and Summary:
Shadowsocks is an encrypted proxy for circumventing firewalls and geo-location restrictions. Some Linux server repositories do not have packages or if they do, the packages might be old since the server and client are under constant development. These commands will help to download and build the latest Shadowsocks-libev server from source.UPDATE: Recently the latest editions of shadowsocks (versions 3.2 and higher) have not worked properly on my servers (service does not start, udp does not redirect properly, etc.). If you would like to build a specific version of shadowsocks-libev, please see this other post for those instructions [LINK]
Prerequisites:
- Linux Ubuntu 16.04 LTS Server
- Console Access
- Root level permissions
- The following Ubuntu packages (some might be obsolete or unnecessary, send me a message if you discover an improvement):
Instructions:
When logged into the server, run the following commands:cd /tmp
git clone https://github.com/shadowsocks/shadowsocks-libev.git
cd shadowsocks-libev
git submodule update --init --recursive
./autogen.sh
./configure
make
sudo make install
cd ..
rm shadowsocks-libev -r -f
NOTE: The entire set of commands can be chained together in one long command:
cd /tmp && git clone https://github.com/shadowsocks/shadowsocks-libev.git && cd shadowsocks-libev && git submodule update --init --recursive && ./autogen.sh && ./configure && make && sudo make install && cd .. && rm shadowsocks-libev -r -f
Blog Formatting Guide:
- Commands written in Consolas in BLUE are LOCAL Client Shell Commands (I'm running an Ubuntu local client)
- Commands written in Consolas in RED are REMOTE Server Shell Commands (usually in SSH)
- All commands in BOLD are CUSTOM user variables that your should change for your configuration.
Helpful References, for Shadowsocks:
Shadowsocks-libev on GithubSimple-obfs on Github