Doubi LotServer + ShadowsocksR One-Click Installation Script

Machine-translated (anthropic, claude-haiku-5-5) from the Chinese original. Read the original in 中文

Contents

Preface

A kind senior user today showed me how to install SSR + ServerSpeeder: which system to choose, which data center is fast, and so on. Many thanks to Lao Mo! Now I'm sharing it with everyone to help more SSR beginners.

Main Text

The methods in this article are all based on the BandwagonHost server provider. Welcome to buy!

First, open the KVM control panel, click the Main controls interface, then click the stop option under Actions to shut down.

Step 2

Click Migrate to another DC and select the US: Los Angeles, California (DC8 CN2) [USCA_8] data center.

bwg1
bwg1

Wait about 1-5 minutes for the data center migration to complete, then install the system.

Step 3 (Optional)

Note: If you are running Debian or Ubuntu, you do not need to reinstall the system. If you are not, you will need to reinstall!

Click Install new OS and select the debian7-debian9 system, or ubuntu, as shown:

bwg2
bwg2

After installation is complete, connect via SSH using the password and SSH port provided by BandwagonHost.

Xshell is recommended!

Bidu One-Click Script

  • Note 1: Only useful for KVM/VMWARE/XEN; ServerSpeeder does not support OpenVZ!
  • Note 2: The script is continuously updated.

If you don't understand anything, just keep pressing Enter (note that the latest version is: January 2, 2018, version v2.0.37).

The code is as follows:

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

The backup address is:

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

Installation Steps

Enter 1 to start installing the ShadowsocksR server, and it will prompt you to enter parameters such as the Shadowsocks 端口/密码/加密方式/协议/混淆.

text
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

At the end, it will also ask whether to set the protocol and obfuscation to be compatible with the original version (that is, the original SS can also connect). If you don't understand, just press Enter or enter y.

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

If you don't enter anything and just press Enter, the default parameters are used:

text
端口:2333
密码:dou-bi.co
加密方式:aes-256-cfb
协议:auth_sha1_v4_compatible
混淆:tls1.2_ticket_auth_compatible

During installation, you will be prompted to install the libsodium support library (a dependency for the chacha20 encryption method). If you don't understand, just press Enter or enter y to install by default (of course, if you choose n, it's fine; you can install it separately later).

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

If the installation completes without errors, the following will be displayed at the end:

text
############################################################

 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 is the SS link (format: ss://XXXXXXX, quite long), which can be imported into a Shadowsocks client from the clipboard. If you don't understand, see the QR code below.

QR code is the QR code. Copy the link after it and open it in a browser, and a QR code image will be displayed, which can be scanned with a Shadowsocks client to add the server.

Usage Instructions

Run the script:

text
bash ssr.sh

It will display:

Enter the corresponding number as shown to perform the operation.

Installing ServerSpeeder

Enter 14 to open other features:

Enter 2:

Then enter 1.

Follow the prompts to automatically install ServerSpeeder!

Other Notes

  • Start on boot is enabled by default.

  • ShadowsocksR supports UDP forwarding by default.

  • This script integrates installation / uninstallation of the "Happy Edition" of ServerSpeeder (ServerSpeeder), but please check the Linux supported kernel list to see whether it is supported. (ServerSpeeder does not support OpenVZ.)

  • Configuring multiple ports is very cumbersome to implement in the script, so this feature will not be added. Those who need it should manually change to multi-port configuration: ShadowsocksR multi-port configuration

  • Protocols and obfuscation currently supported by ShadowsocksR:

Protocol: origin, verify_sha1, auth_sha1_v2, auth_sha1_v4, auth_aes128_md5, auth_aes128_sha1

Obfuscation (Obfs): plain, http_simple, http_post, random_head, tls1.2_ticket_auth

origin and plain are the original versions; the bold ones are recommended. All support compatibility with the original version (that is, by adding the suffix _compatible).

Installation directory: /usr/local/shadowsocksr

Configuration file: /etc/shadowsocksr/user-config.json

Note: the latest version is January 2, 2018, version v2.0.37

Free account sharing: address

Other Commands

After ShadowsocksR is installed, it is automatically set up as a system service, so you can use the service to start/stop it, and it supports starting on boot.

  • Start ShadowsocksR: /etc/init.d/ssr start
  • Stop ShadowsocksR: /etc/init.d/ssr stop
  • Restart ShadowsocksR: /etc/init.d/ssr restart
  • Check ShadowsocksR status: /etc/init.d/ssr status

Comments