系统设置

常用镜像源

镜像站地址
官方给出的地址列表:https://www.debian.org/mirror/list

一些国内的
ftp.cn.debian.org
mirror.bjtu.edu.cn
mirror.lzu.edu.cn        
mirror.nju.edu.cn        
mirrors.163.com        
mirrors.bfsu.edu.cn        
mirrors.hit.edu.cn        
mirrors.huaweicloud.com        
mirror.sjtu.edu.cn        
mirrors.tuna.tsinghua.edu.cn        
mirrors.ustc.edu.cn        

使用方法:(大致都是一样的)

清华源
--mirror 'https://mirrors.ustc.edu.cn/debian/'

腾讯源
--mirror 'https://mirrors.aliyun.com/debian/'

阿里源
--mirror 'https://mirrors.aliyun.com/debian/'

华为源
--mirror 'https://mirrors.huaweicloud.com/debian/'
  • 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.

设置 SWAP &综合测试脚本

wget -O box.sh https://raw.githubusercontent.com/BlueSkyXN/SKY-BOX/main/box.sh && chmod +x box.sh && clear && ./box.sh
  • 1.

docker相关

国内docker安装
curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun
  • 1.
国外docker安装
wget -qO- get.docker.com | bash
  • 1.
docker-compose安装
curl -L https://github.com/docker/compose/releases/download/v2.23.0/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
  • 1.
  • 2.

宝塔消除脚本

sed -i "s|bind_user == 'True'|bind_user == 'XXXX'|" /www/server/panel/BTPanel/static/js/index.js
  • 1.

运行完之后,记得清除浏览器的缓存查看,也可以直接换一个浏览器登陆。

综合工具箱

wget -O box.sh https://raw.githubusercontent.com/BlueSkyXN/SKY-BOX/main/box.sh && chmod +x box.sh && clear && ./box.sh
  • 1.

开机改密码脚本

#!/bin/bash
echo root:Vicer |sudo chpasswd root
sudo sed -i 's/^#\?PermitRootLogin.*/PermitRootLogin yes/g' /etc/ssh/sshd_config;
sudo sed -i 's/^#\?PasswordAuthentication.*/PasswordAuthentication yes/g' /etc/ssh/sshd_config;
sudo reboot
  • 1.
  • 2.
  • 3.
  • 4.
  • 5.

杜甫测试

wget -q https://github.com/Aniverse/A/raw/i/a && bash a
  • 1.

网络

甲骨文 DD 脚本

DD 成 Debian 10

bash <(wget --no-check-certificate -qO- 'https://raw.githubusercontent.com/MoeClub/Note/master/InstallNET.sh') -d 10 -v 64 -p "自定义root密码" -port "自定义ssh端口"
  • 1.

DD 成 Ubuntu 20.04

bash <(wget --no-check-certificate -qO- 'https://raw.githubusercontent.com/MoeClub/Note/master/InstallNET.sh') -u 20.04 -v 64 -p "自定义root密码" -port "自定义ssh端口"
  • 1.
MoeClub 脚本
bash <(wget --no-check-certificate -qO- 'https://raw.githubusercontent.com/MoeClub/Note/master/InstallNET.sh') -d 10 -v 64 -p "自定义root密码" -port "自定义ssh端口"
  • 1.

-d 10 -v 64
-d 9 -v 64
-u 20.04 -v 64
-u 18.04 -v 64

检测能否访问GPT脚本
bash <(curl -Ls https://raw.githubusercontent.com/missuo/OpenAI-Checker/main/openai.sh)
  • 1.
CentOS 7 BBR

Linux Kernel 内核升级到 4.9 及以上版本可以实现 BBR 加速

wget -N --no-check-certificate "https://raw.githubusercontent.com/chiakge/Linux-NetSpeed/master/tcp.sh" && chmod +x tcp.sh && ./tcp.sh
  • 1.
一键开启 BBR

Linux Kernel 内核升级到 4.9 及以上版本可以实现 BBR 加速

echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf
echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf
sysctl -p
sysctl net.ipv4.tcp_available_congestion_control
lsmod | grep bbr
  • 1.
  • 2.
  • 3.
  • 4.
  • 5.

测试相关

机器测试

单线程测试
bash <(curl -Lso- https://bench.im/hyperspeed)
  • 1.
superbench测试
wget -qO- git.io/superbench.sh | bash
  • 1.
Bench测试
wget -qO- bench.sh | bash
  • 1.

速度测试

全面测速脚本
curl -fsL https://ilemonra.in/LemonBenchIntl | bash -s fast
  • 1.
测试延迟、抖动
bash <(wget -qO- https://bench.im/hyperspeed)
  • 1.
测试回程线路
curl https://raw.githubusercontent.com/zhucaidan/mtr_trace/main/mtr_trace.sh|bash
  • 1.
```bash
wget -q route.f2k.pub -O route && bash route
  • 1.
  • 2.
三网测速
bash <(curl -Lso- https://git.io/superspeed_uxh)
  • 1.
四网测速
wget -O jcnf.sh https://raw.githubusercontent.com/Netflixxp/jcnfbesttrace/main/jcnf.sh

bash jcnf.sh
  • 1.
  • 2.
  • 3.

四网快速版本:

bash <(curl -Lso- https://dl.233.mba/d/sh/speedtest.sh)
  • 1.
```bash
bash <(curl -Lso- https://git.io/J1SEh)
  • 1.
  • 2.
测试 IPv4 优先还是 IPv6 优先

媒体测试

bash <(curl -L -s https://raw.githubusercontent.com/lmc999/RegionRestrictionCheck/main/check.sh)
  • 1.
奈飞测试
wget -O nf https://github.com/sjlleo/netflix-verify/releases/download/2.5/nf_2.5_linux_amd64 && chmod +x nf && clear && ./nf
  • 1.
WARP
wget -N --no-check-certificate https://cdn.jsdelivr.net/gh/YG-tsj/CFWarp-Pro/multi.sh && chmod +x multi.sh && ./multi.sh
  • 1.