逗比锐速+ShadowsocksR一键安装脚本

前言

今天有位老哥教了我该如何去安装SSR+锐速,选什么系统,选什么机房速度快之类的!感谢老莫!现在我把它分享给大家,去帮助更多的SSr小白啦!

正文

本文介绍均基于[搬瓦工](https://bandwagonhost

.com/aff.php?aff=31263 “搬瓦工”)服务器提供商!欢迎购买哦!
首先打开kvm控制面板,点击Main controls界面,再点击Actions中的stop选项关机

第二步

点击Migrate to another DC选择US: Los Angeles, California (DC8 CN2) [USCA_8]机房
bwg1
等大概1-5分钟后机房更换完成再安装系统。

第三步(可选)

注意:如果你是Debian或者Ubuntu系统就不用重新安装系统,如果你不是,就要重装了!

点击Install new OS选择debian7-debian9系统,或者ubuntu,如图
bwg2
安装完成后通过搬瓦工给的密码和ssh端口连接ssh
推荐Xshell程序!

逗比一键脚本

  • 注意 1: KVM/VMWARE/XEN 才有用,锐速不支持 openVZ !

  • 注意 2:脚本会不断更新
    如果你啥都不懂,一直回车即可(注意最新版本为:2018年01月02日,版本 v2.0.37)
    代码如下

    wget -N –no-check-certificate https://softs.fun/Bash/ssr.sh && chmod +x ssr.sh && bash ssr.sh

备用地址为:

wget -N --no-check-certificate https://raw.githubusercontent.com/ToyoDAdoubi/doubi/master/ssr.sh && chmod +x ssr.sh && bash ssr.sh

安装步骤

输入1,就会开始安装ShadowsocksR服务端,并且会提示你输入Shadowsocks的端口/密码/加密方式/协议/混淆等参数。

Please input port for shadowsocksR [1-65535]:
(Default port: 2333):                       //默认2333端口

Please input password for ShadowsocksR:
(Default password: dou-bi.co):                      //默认密码为dou-bi.co

Please input method for ShadowsocksR:
(Default method: aes-256-cfb):                      //默认加密方式为aes-256-cfb

Please input protocol for ShadowsocksR:
(Default protocol: auth_sha1_v4):                  //默认协议为auth_sha1_v4

Please input obfs for ShadowsocksR:
(Default obfs: tls1.2_ticket_auth):                //默认混淆为tls1.2_ticket_auth

同时最后也会提示是否设置 协议和混淆 兼容原版(也就是使用原版 SS 也能链接),不懂 直接回车输入 y

Need to set protocol and obfs compatible original ( _compatible )? [Y/n] :

不输入,直接回车就是默认参数:
端口:2333
密码:dou-bi.co
加密方式:aes-256-cfb
协议:auth_sha1_v4_compatible
混淆:tls1.2_ticket_auth_compatible

在安装 过程中,会提示你安装 libsodium 支持库(chacha20 加密方式的依赖),如果不懂直接回车 或 输入 y,默认安装(当然如果选成了 n 也不要紧,后面还可以单独安装)。

Does libsodium support library (chacha20) be installed? [Y/n] :

如果安装过程没有出错,那么最后就会提示:

############################################################

 Your ShadowsocksR info : 

 Server IP: VPS_IP
 Server Port: 2333
 Password: dou-bi.co
 Method: aes-256-cfb
 Protocol: auth_sha1_v4_compatible
 Obfs: tls1.2_ticket_auth_compatible

 SS url: ss://XXXXXXXXXXXXXXXXXXXXX 
 QR code: http://pan.baidu.com/share/qrcode?w=300&h=300&url=ss://XXXXXXXXXXXXXXXXXXXXX 
Tip: Open the link above will be able to see two-dimensional code picture.
Tip: The protocol and obfs last [ _compatible ] refer to the compatible original.

############################################################

ShadowsocksR install completed!
https://www.dou-bi.co

############################################################

SS url 是 SS 链接(格式: ss://XXXXXXX ,很长),可以从剪辑版导入 Shadowsocks 客户端,不懂的话看下面二维码。

QR code 是二维码,复制后面的链接在浏览器打开,就会显示一个二维码的图片,可以用 Shadowsocks 客户端扫描二维码来添加。

##使用说明
运行脚本
bash ssr.sh
会显示

如图输入数字操作即可

安装锐速

输入14打开其他功能

输入2

再输入1
根据提示即可自动安装锐速!

其他说明

  • 默认已经添加开机启动。

  • ShadowsocksR 默认支持 UDP 转发。

  • 本脚本已经集成了 安装 / 卸载 锐速 (ServerSpeeder) 开心版,但是是否支持请查看 Linux 支持内核列表 。(锐速不支持 OpenVZ)

  • 多端口配置的话,脚本实现很麻烦,所以不会加入这个功能,需要的人还是手动更改为多端口吧:ShadowsocksR 多端口配置

  • ShadowsocksR 目前支持的协议和混淆:
    协议(Protocol):origin,verify_sha1,auth_sha1_v2,auth_sha1_v4,auth_aes128_md5,auth_aes128_sha1
    混淆(Obfs):plain,http_simple,http_post,random_head,tls1.2_ticket_auth
    origin 和 plain 是原版,加粗的是推荐使用的,均支持兼容原版(也就是加后缀 _compatible)。

安装目录:/usr/local/shadowsocksr

配置文件:/etc/shadowsocksr/user-config.json

注意最新版本为:2018年01月02日,版本 v2.0.37
免费账号分享:地址

其他命令

ShadowsocksR 安装后,自动设置为 系统服务,所以支持使用服务来启动/停止等操作,同时支持开机启动。

  • 启动 ShadowsocksR:/etc/init.d/ssr start
  • 停止 ShadowsocksR:/etc/init.d/ssr stop
  • 重启 ShadowsocksR:/etc/init.d/ssr restart
  • 查看 ShadowsocksR状态:/etc/init.d/ssr status
Author

Linus Xiong

Posted on

2018-05-01

Updated on

2019-04-28

Licensed under

Comments