forked from hongwenjun/vps_setup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathss_brook.sh
executable file
·46 lines (35 loc) · 1.38 KB
/
ss_brook.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/bin/bash
# 常用工具和配置
apt-get update
apt-get install -y htop tmux screen iperf3
wget -O .vimrc --no-check-certificate https://raw.githubusercontent.com/hongwenjun/srgb/master/vim/_vimrc
wget -O .bashrc --no-check-certificate https://raw.githubusercontent.com/hongwenjun/srgb/master/vim/_bashrc
wget -O .tmux.conf --no-check-certificate https://raw.githubusercontent.com/hongwenjun/tmux_for_windows/master/.tmux.conf
# 下载ss_brook包和解压
wget -O ss_brook.tgz https://git.io/fxQuY
tar -xzvf ss_brook.tgz -C /
rm ss_brook.tgz
# 加入开机服务
systemctl enable frps
systemctl enable brook
systemctl enable shadowsocks-go
# 开启服务
/etc/init.d/frps start
/etc/init.d/brook start
/etc/init.d/shadowsocks-go start
# bbr 设置打开
sysctl_config() {
sed -i '/net.core.default_qdisc/d' /etc/sysctl.conf
sed -i '/net.ipv4.tcp_congestion_control/d' /etc/sysctl.conf
echo "net.core.default_qdisc = fq" >> /etc/sysctl.conf
echo "net.ipv4.tcp_congestion_control = bbr" >> /etc/sysctl.conf
sysctl -p >/dev/null 2>&1
}
sysctl_config
# 一键安装 SS+Kcp+Udp2Raw 脚本 快速安装 for debian 9
wget -qO- git.io/fpZIW | bash
# 安装所需运行库
# apt update
# apt install -y libev-dev libc-ares-dev libmbedtls-dev libsodium-dev
# 安装脚本 sku
# mkdir -p sku && cd sku && wget -O sku.tgz https://git.io/fxy7s && tar -xvf sku.tgz && ./sku.sh