综合工具箱(强烈推荐,集成了很多脚本)
1 | wget -O box.sh https://raw.githubusercontent.com/BlueSkyXN/SKY-BOX/main/box.sh && chmod +x box.sh && clear && ./box.sh |
DD相关
甲骨文DD脚本
DD成Debian 10
1 | bash <(wget --no-check-certificate -qO- 'https://raw.githubusercontent.com/MoeClub/Note/master/InstallNET.sh') -d 10 -v 64 -p "自定义root密码" -port "自定义ssh端口" |
DD成Ubuntu 20.04
1 | bash <(wget --no-check-certificate -qO- 'https://raw.githubusercontent.com/MoeClub/Note/master/InstallNET.sh') -u 20.04 -v 64 -p "自定义root密码" -port "自定义ssh端口" |
MoeClub脚本
重点推荐:
时间:22/11/2021 15:21 萌咖更新脚本:
1.新增对 Oracle AMD,Oracle ARM全面支持. 可支持从 Ubuntu, Oracle Linux 等系统网络重装.
2.更新 dd 镜像的基础系统版本.
3.移除对外部 wget 的依赖.
4.新增 -port 参数, 可更改默认SSH端口.
5.更新 内置的网络参数计算 逻辑.
6.更新 grub 配置文件定位逻辑, 可支持任意引导grub的系统.
以下系统已通过测试(其他自测):
Debian: 9, 10, 11;
Ubuntu: 18.04, 20.04;
CentOS: 6.10;
以下平台已通过测试(其他自测):
Oracle、Do、Azure
1 | bash <(wget --no-check-certificate -qO- 'https://raw.githubusercontent.com/MoeClub/Note/master/InstallNET.sh') -d 10 -v 64 -p "自定义root密码" -port "自定义ssh端口" |
-d 10 -v 64
-d 9 -v 64
-u 20.04 -v 64
-u 18.04 -v 64
开机改密码脚本:
开机改密:
1 | #!/bin/bash |
另一位大佬的脚本
1 | wget --no-check-certificate -O AutoReinstall.sh https://git.io/AutoReinstall.sh && bash AutoReinstall.sh |
CentOS默认密码Pwd@CentOS 其它系统Pwd@Linux
OpenVZ / LXC 架构系统不适用
来源:https://blog.hicasper.com/post/135.html 参考:https://www.ydyno.com/archives/1245.html 感谢大佬的付出!
1 | bash <(wget --no-check-certificate -qO- 'https://file.geekn.net/CNODnjau/InstallNET.sh') -d 11 -v 64 -a -firmware |
-firmware 额外的驱动支持
-d 后面是系统版本号
-v 后面写64位 32位
-a (不清楚这个干啥的但是每个脚本都带)
–mirror 后面是镜像源地址
-p 后面写自定义密码
1 | 官方给出的地址列表:https://www.debian.org/mirror/list |
测试相关
机器测试
最全测速脚本
1 | curl -fsL https://ilemonra.in/LemonBenchIntl | bash -s fast |
superbench
1 | wget -qO- git.io/superbench.sh | bash |
Bench.sh
1 | wget -qO- bench.sh | bash |
速度测试
直接显示回程线路
1 | curl https://raw.githubusercontent.com/zhucaidan/mtr_trace/main/mtr_trace.sh|bash |
1 | wget -q route.f2k.pub -O route && bash route |
1 | # 第一个 |
四网测速
1 | wget -O jcnf.sh https://raw.githubusercontent.com/Netflixxp/jcnfbesttrace/main/jcnf.sh |
三网测速
1 | bash <(curl -Lso- http://yun.789888.xyz/speedtest.sh) |
测试25端口是否开放
1 | telnet smtp.aol.com 25 |
测试IPv4优先还是IPv6优先
1 | curl ip.p3terx.com |
流媒体测试
全媒体测试
1 | 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
1 | wget -N --no-check-certificate https://cdn.jsdelivr.net/gh/YG-tsj/CFWarp-Pro/multi.sh && chmod +x multi.sh && ./multi.sh |
之后进入脚本快捷方式为 bash multi.sh
服务器时间
CentOS 同步时间
1 | yum -y install ntpdate |
BBR
CentOS 7 BBR
1 | wget -N --no-check-certificate "https://raw.githubusercontent.com/chiakge/Linux-NetSpeed/master/tcp.sh" && chmod +x tcp.sh && ./tcp.sh |
一键开启BBR
注意:需要Linux Kernel 内核升级到 4.9 及以上版本可以实现 BBR 加速
1 | uname -srm |
输出结果:
1 | Linux 3.10.0-957.12.2.el7.x86_64 x86_64 |
一般来说,Ubuntu18.04以上就可以(默认的内核4.15)
1 | echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf |
Docker相关
更新、安装必备软件
1 | apt-get update && apt-get install -y wget vim |
海外服务器
非大陆Docker安装
1 | wget -qO- get.docker.com | bash |
卸载Docker
1 | sudo apt-get purge docker-ce docker-ce-cli containerd.io |
1 | sudo rm -rf /var/lib/docker |
非大陆Docker-compose安装
1 | sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose |