One-Click Shadowsocks-libev Installation Script for Debian

Supported environments for this script:
Supported systems: Debian/Ubuntu
Memory requirement: ≥128M
Date: July 22, 2017

About this script:
One-click installation of the latest libev version of Shadowsocks on Debian or Ubuntu.
This version features low memory usage (around 600k), is written in libev
and C, has low CPU consumption, and can even be installed on routers
based on OpenWRT.
Friendly reminder: If you have any questions, please refer to this article, “Shadowsocks Troubleshooting,” before asking.

Default configuration:
Server port: set by yourself (if not specified, the default is 8989)
Password: set by yourself (if not specified, the default is teddysun.com)
Encryption method: set by yourself (if not specified, the default is aes-256-gcm)

Client download:
https://github.com/shadowsocks/shadowsocks-windows/releases

Usage:
Log in as the root user and run the following commands:

wget --no-check-certificate -O shadowsocks-libev-debian.sh https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocks-libev-debian.sh
chmod +x shadowsocks-libev-debian.sh
./shadowsocks-libev-debian.sh 2>&1 | tee shadowsocks-libev-debian.log

After installation is complete, the script will display the following:

Congratulations, Shadowsocks-libev server install completed!
Your Server IP        :your_server_ip
Your Server Port      :your_server_port
Your Password         :your_password
Your Encryption Method:your_encryption_method

Welcome to visit:https://teddysun.com/358.html
Enjoy it!

Uninstall method:
Log in as the root user and run the following command:

./shadowsocks-libev-debian.sh uninstall

Other notes:
Reference link for client configuration: https://teddysun.com/339.html
After this script is installed, Shadowsocks-libev has been added to startup automatically.

Commands:
Start: /etc/init.d/shadowsocks start
Stop: /etc/init.d/shadowsocks stop
Restart: /etc/init.d/shadowsocks restart
Check status: /etc/init.d/shadowsocks status

One-click installation scripts for more versions of the Shadowsocks server:
ShadowsocksR
one-click installation script (CentOS, Debian, Ubuntu)

Shadowsocks Python
one-click installation script (CentOS, Debian, Ubuntu)

One-click installation script for Shadowsocks-libev
on CentOS

Shadowsocks-go
one-click installation script (CentOS, Debian, Ubuntu)

Update Log

July 22, 2017:
1. Fix: changed the default encryption method from aes-256-cfb to aes-256-gcm (supported by the official original client);
2. Added: during installation, you can choose one of 16 encryption methods, as shown below:

aes-256-gcm
aes-192-gcm
aes-128-gcm
aes-256-ctr
aes-192-ctr
aes-128-ctr
aes-256-cfb
aes-192-cfb
aes-128-cfb
camellia-128-cfb
camellia-192-cfb
camellia-256-cfb
chacha20-ietf-poly1305
chacha20-ietf
chacha20
rc4-md5

February 24, 2017:
1. Restored: the feature to automatically obtain the latest
release version of Shadowsocks-libev via the Github API (v3.0.3).

February 13, 2017:
1. Update: upgraded to version 3.0.2.
2. Fix: resolved the issue where the libudns-dev dependency package was missing by default on Debian 7.

February 12, 2017:
1. Update: upgraded to version 3.0.1 (please download the latest script to install).

November 05, 2016:
1. Added: checks whether it is already installed; if it is, the script gets the version number and compares it with the latest version, then allows an upgrade overwrite installation;
2. Fix: the issue of obtaining the latest version number when not installed.

September 23, 2016:
1. Fix: the issue where automatic version number retrieval occasionally failed;
2. Added: automatically detects whether the VPS has an IPv6
address, and if so, adds a listening IPv6 address to the configuration file.

September 17, 2016:
1. Refactored the code to automatically fetch and install the latest version from Github,
so there is no longer any need to manually modify the version number;
2. Automatically detects whether it is already installed on the local machine, and if so, exits normally (to install a new version, you must uninstall the old one first);
3. Changed to downloading the tar.gz package for installation, without relying on the unzip command.

September 12, 2016:
1. Update: upgraded to version 2.5.2.

September 11, 2016:
1. Update: upgraded to version 2.5.1.

August 29, 2016:
1. Update: upgraded to version 2.5.0;
2. Fix: due to updated filenames during installation, the filenames used during uninstallation were changed to match.

July 14, 2016:
1. Update: upgraded to version 2.4.7.

July 05, 2016:
1. Fix: added the new dependencies xmlto and asciidoc;
2. Fix: due to updated filenames during installation, the filenames used during uninstallation were changed to match.

May 12, 2016:
1. Fix: the Shadowsocks service was changed to force enabled on boot by default.

August 01, 2015:
1. Added: custom server port functionality (if not specified, the default port is 8989).

April 30, 2015:
1. Modified the configuration file /etc/shadowsocks-libev/config.json to enable
both IPv4 and IPv6 support:

{
    "server":["[::0]","0.0.0.0"],
    "server_port":your_server_port,
    "local_address":"127.0.0.1",
    "local_port":1080,
    "password":"your_password",
    "timeout":600,
    "method":"aes-256-cfb"
}

2. The Shadowsocks libev
version cannot support multiple ports by modifying the configuration file alone (it can only run multiple processes). If you need multiple ports, please install the
Python or Go version;

March 09, 2015:
1. Added: the startup script /etc/init.d/shadowsocks, making it easier to use.
2. Fix: optimized the installation process.

October 31, 2014:
1. Fix: corrected the error in writing the startup command to /etc/rc.local.

Special Note:
If an older version of Shadowsocks is already installed
and needs to be upgraded, download the latest version of this script and run it directly to upgrade automatically

./shadowsocks-libev-debian.sh

Reference link:
https://github.com/shadowsocks/shadowsocks-libev

Leave a Comment

Your email address will not be published. Required fields are marked *

中文 EN
🚀

RedGate VPN

免费节点太挤太慢?
升级高速稳定专线

立即体验 →

告别卡顿

RedGate VPN
全球高速节点

免费下载 →
Scroll to Top