Update README

This commit is contained in:
Max Lv
2017-02-02 10:16:49 +08:00
parent 0c4292c637
commit 3b8b30aec2
+22 -1
View File
@@ -25,7 +25,7 @@ no more than 5% on a low-end router (Buffalo WHR-G300N V2 with a 400MHz MIPS CPU
For a full list of feature comparison between different versions of shadowsocks,
refer to the [Wiki page](https://github.com/shadowsocks/shadowsocks/wiki/Feature-Comparison-across-Different-Versions).
## Installation
## Prerequisites
### Get the latest source code
@@ -37,6 +37,27 @@ cd shadowsocks-libev
git submodule update --init --recursive
```
### Build and install the latest mbedTLS and libsodium
```bash
export LIBSODIUM_VER=1.0.11
export MBEDTLS_VER=2.4.0
wget https://download.libsodium.org/libsodium/releases/libsodium-$LIBSODIUM_VER.tar.gz
tar xvf libsodium-$LIBSODIUM_VER.tar.gz
pushd libsodium-$LIBSODIUM_VER
./configure --prefix=/usr && make
sudo make install
popd
wget https://tls.mbed.org/download/mbedtls-$MBEDTLS_VER-gpl.tgz
tar xvf mbedtls-$MBEDTLS_VER-gpl.tgz
pushd mbedtls-$MBEDTLS_VER
make
sudo make install
popd
```
## Installation
### Distribution-specific guide
- [Debian & Ubuntu](#debian--ubuntu)