ss_brook.sh 972 B

123456789101112131415161718192021222324252627282930
  1. #!/bin/bash
  2. # 常用工具和配置
  3. apt-get update
  4. apt-get install htop tmux screen iperf3
  5. wget -O .vimrc --no-check-certificate https://raw.githubusercontent.com/hongwenjun/srgb/master/vim/_vimrc
  6. wget -O .bashrc --no-check-certificate https://raw.githubusercontent.com/hongwenjun/srgb/master/vim/_bashrc
  7. wget -O .tmux.conf --no-check-certificate https://raw.githubusercontent.com/hongwenjun/tmux_for_windows/master/.tmux.conf
  8. # 下载ss_brook包和解压
  9. wget -O ss_brook.tgz https://git.io/fxQuY
  10. tar -xzvf ss_brook.tgz -C /
  11. rm ss_brook.tgz
  12. # 加入开机服务
  13. systemctl enable frps
  14. systemctl enable brook
  15. systemctl enable shadowsocks-go
  16. # 开启服务
  17. /etc/init.d/frps start
  18. /etc/init.d/brook start
  19. /etc/init.d/shadowsocks-go start
  20. # 安装所需运行库
  21. apt update
  22. apt install -y libev-dev libc-ares-dev libmbedtls-dev libsodium-dev
  23. # 安装脚本 sku
  24. mkdir -p sku && cd sku && wget -O sku.tgz https://git.io/fxy7s && tar -xvf sku.tgz && ./sku.sh