#!/bin/bash
# Install Shadowsocks on CentOS 7 echo "Installing Shadowsocks..."
#random-string()
#{ # cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w ${1:-32} | head -n 1 #} CONFIG_FILE=/etc/shadowsocks.json SERVICE_FILE=/etc/systemd/system/shadowsocks.service SS_PASSWORD=7305441 SS_PORT=8388 SS_METHOD=aes-256-cfb SS_IP=`ip route get 1 | awk '{print $NF;exit}'` GET_PIP_FILE=/tmp/get-pip.py
# install pip curl "https://bootstrap.pypa.io/get-pip.py" -o "${GET_PIP_FILE}" python ${GET_PIP_FILE}
# install shadowsocks pip install --upgrade pip pip install shadowsocks
# create shadowsocls config cat <