Skip to content

Instantly share code, notes, and snippets.

@mosluce
Last active May 2, 2018 01:09
Show Gist options
  • Save mosluce/b9e5d4ade272664e5f9d9978b54eeb78 to your computer and use it in GitHub Desktop.
Save mosluce/b9e5d4ade272664e5f9d9978b54eeb78 to your computer and use it in GitHub Desktop.
ShadowsocksR 一鍵安裝 for Ubuntu Only
#!/bin/bash
apt-get update
apt-get install -y git-core
curl -sSL get.docker.com | sh -
git clone -b mujson https://github.com/mosluce/shadowsocksr.git
cd shadowsocksr
docker build -t mosluce/ssr .
docker run -d --restart=always --name=ssr -p 6440-6450:6440-6450 mosluce/ssr
# Add alias
echo 'alias mujson="docker exec -it ssr python mujson_mgr.py"' >> ~/.bashrc
source ~/.bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment