Created
June 18, 2019 08:50
-
-
Save yuler/45dcd78290710c93594ab0bce8d8c488 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Install main function | |
| install() { | |
| # variables | |
| shadowsocks_passwd="pwd" | |
| shadowsocks_method="aes-256-cfb" | |
| shadowsocks_port="9001" | |
| fast_open="true" | |
| # config | |
| cat > ~/shadowsocks.json<<-EOF | |
| { | |
| "server":"0.0.0.0", | |
| "server_port":${shadowsocks_port}, | |
| "password":"${shadowsocks_passwd}", | |
| "timeout":1000, | |
| "method":"${shadowsocks_method}", | |
| "fast_open": ${fast_open} | |
| } | |
| EOF | |
| # install dependencies | |
| sudo yum -y install epel-release python-pip | |
| sudo pip install --upgrade pip | |
| sudo pip install shadowsocks | |
| } | |
| install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment