HoneyBed 发表于 昨天 09:42

【合集】常用VPS脚本

1、DD重装脚本


[*]支持 windows dd 到 linux
[*]支持 windows dd 到 windows
[*]支持 安装 windows iso
[*]支持 256m 内存 安装 alpine debian kali
[*]支持 512m 内存 安装 ubuntu centos alma rocky oraclelinux fedora opensuse arch gentoo
[*]支持 自动使用精简内核
[*]支持 检测到不兼容 debian 云内核的磁盘控制器,会安装常规内核,防止无法启动
[*]支持 重启到 netboot.xyz
[*]支持 重启到 alpine liveos
[*]支持 dd/iso 安装 windows 时插入静态ip
[*]支持 网关不在子网范围/32位掩码/128位掩码,无需填写网络参数
[*]支持 ssh/web 查看安装进度,即使出错,也能用 ssh 安装回 alpine,永不失联(不支持 debian kali)
[*]没有 多余的boot/swap分区
[*]动态 ip 的机器被其他脚本 dd 成静态的,能检测出来并改回动态
[*]全程用分区表 id 识别硬盘,确保不会 d 错硬盘
[*]新系统能正常使用商家网页的串行控制台
[*]比其它脚本更快
以上功能不是原创就是目前最强
dd gcp 自然不在话下,欢迎使用
https://github.com/bin456789/reinstall
史上最强脚本wget --no-check-certificate -qO InstallNET.sh 'https://raw.githubusercontent.com/leitbogioro/Tools/master/Linux_reinstall/InstallNET.sh' && chmod a+x InstallNET.sh && bash InstallNET.sh -debian 12 -pwd '密码'

萌咖大佬的脚本bash <(wget --no-check-certificate -qO- 'https://raw.githubusercontent.com/MoeClub/Note/master/InstallNET.sh') -d 11 -v 64 -p 密码 -port 端口 -a -firmware

beta.gs大佬的脚本wget --no-check-certificate -O NewReinstall.sh https://raw.githubusercontent.com/fcurrk/reinstall/master/NewReinstall.sh && chmod a+x NewReinstall.sh && bash NewReinstall.sh

DD windows(使用史上最强DD脚本)bash <(curl -sSL https://raw.githubusercontent.com/leitbogioro/Tools/master/Linux_reinstall/InstallNET.sh) -windows 10-lang "cn"

DD windows(使用史上最强DD脚本)bash <(curl -sSL https://raw.githubusercontent.com/leitbogioro/Tools/master/Linux_reinstall/InstallNET.sh) -windows 10-lang "cn"
账户:Administrator
密码:Teddysun.com

使用Windows徽标+R快捷键打开运行框,输入powershell运行,弹出powershell命名输入窗口,输入以下命令:irm https://get.activated.win | iex

2、综合测试脚本

bench.shwget -qO- bench.sh | bash

LemonBenchwget -qO- https://raw.githubusercontent.com/LemonBench/LemonBench/main/LemonBench.sh | bash -s -- --fast

融合怪bash <(wget -qO- --no-check-certificate https://gitlab.com/spiritysdx/za/-/raw/main/ecs.sh)

NodeBenchbash <(curl -sL https://raw.githubusercontent.com/LloydAsp/NodeBench/main/NodeBench.sh)
curl -sL yabs.sh | bash

跳过网络,测GB5curl -sL yabs.sh | bash -s -- -i5
跳过网络和磁盘,测GB5curl -sL yabs.sh | bash -s -- -if5
改测GB5不测GB6curl -sL yabs.sh | bash -s -- -5

4、流媒体及IP质量测试

最常用版本bash <(curl -L -s check.unlock.media)
原生检测脚本bash <(curl -sL Media.Check.Place)
准确度最高bash <(curl -L -s <a href="https://github.com/1-stream/RegionRestrictionCheck/raw/main/check.sh" target="_blank">https://github.com/1-stream/Regi ... k/raw/main/check.sh</a>)
IP质量体检脚本bash <(curl -sL IP.Check.Place)
一键修改解锁DNSwget <a href="https://raw.githubusercontent.com/Jimmyzxk/DNS-Alice-Unlock/refs/heads/main/dns-unlock.sh" target="_blank">https://raw.githubusercontent.co ... /main/dns-unlock.sh</a> && bash dns-unlock.sh
BBR v3 优化脚本# 安装别名
bash <(curl -fsSL "https://raw.githubusercontent.com/Eric86777/vps-tcp-tune/main/install-alias.sh?$(date +%s)")

# 重新加载配置
source ~/.bashrc# 或 source ~/.zshrc

# 以后直接使用
bbr

5、测速脚本

Speedtestbash <(curl -sL bash.icu/speedtest)
Taierbash <(curl -sL res.yserver.ink/taier.sh)
hyperspeedbash <(curl -Lso- <a href="https://bench.im/hyperspeed" target="_blank">https://bench.im/hyperspeed</a>)
全球测速wget -qO- nws.sh | bash
区域速度测试wget -qO- nws.sh | bash -s -- -r region_name
Ping 和路由测试wget -qO- nws.sh | bash -s -- -rt

6、回程测试

直接显示回程(小白用这个)curl <a href="https://raw.githubusercontent.com/ludashi2020/backtrace/main/install.sh" target="_blank">https://raw.githubusercontent.co ... ace/main/install.sh</a> -sSf | sh
回程详细测试(推荐)wget -N --no-check-certificate https://raw.githubusercontent.com/Chennhaoo/Shell_Bash/master/AutoTrace.sh && chmod +x AutoTrace.sh && bash AutoTrace.shwget https://ghproxy.com/https://raw.githubusercontent.com/vpsxb/testrace/main/testrace.sh -O testrace.sh && bash testrace.sh

7、功能脚本

添加SWAPwget <a href="https://www.moerats.com/usr/shell/swap.sh" target="_blank">https://www.moerats.com/usr/shell/swap.sh</a> && bash swap.sh
Fail2banwget --no-check-certificate <a href="https://raw.githubusercontent.com/FunctionClub/Fail2ban/master/fail2ban.sh" target="_blank">https://raw.githubusercontent.co ... /master/fail2ban.sh</a> && bash fail2ban.sh 2>&1 | tee fail2ban.log
一键开启BBR,适用于较新的Debian、Ubuntuecho "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
多功能BBR安装脚本wget -N --no-check-certificate "https://gist.github.com/zeruns/a0ec603f20d1b86de6a774a8ba27588f/raw/4f9957ae23f5efb2bb7c57a198ae2cffebfb1c56/tcp.sh" && chmod +x tcp.sh && ./tcp.sh
锐速/BBRPLUS/BBR2/BBR3wget -O tcpx.sh "https://github.com/ylx2016/Linux-NetSpeed/raw/master/tcpx.sh" && chmod +x tcpx.sh && ./tcpx.sh
TCP窗口调优wget <a href="http://sh.nekoneko.cloud/tools.sh" target="_blank">http://sh.nekoneko.cloud/tools.sh</a> -O tools.sh && bash tools.sh
添加warpwget -N <a href="https://gitlab.com/fscarmen/warp/-/raw/main/menu.sh" target="_blank">https://gitlab.com/fscarmen/warp/-/raw/main/menu.sh</a> && bash menu.sh
25端口开放测试telnet smtp.aol.com 25

8、一键安装常用环境及软件

dockerbash <(curl -sL 'https://get.docker.com')
Pythoncurl -O <a href="https://raw.githubusercontent.com/lx969788249/lxspacepy/master/pyinstall.sh" target="_blank">https://raw.githubusercontent.co ... master/pyinstall.sh</a> && chmod +x pyinstall.sh && ./pyinstall.sh
iperf3apt install iperf3
realmbash <(curl -L <a href="https://raw.githubusercontent.com/zhouh047/realm-oneclick-install/main/realm.sh" target="_blank">https://raw.githubusercontent.co ... stall/main/realm.sh</a>) -i
gostwget --no-check-certificate -O gost.sh <a href="https://raw.githubusercontent.com/qqrrooty/EZgost/main/gost.sh" target="_blank">https://raw.githubusercontent.com/qqrrooty/EZgost/main/gost.sh</a> && chmod +x gost.sh && ./gost.sh
极光面板bash <(curl -fsSL <a href="https://raw.githubusercontent.com/Aurora-Admin-Panel/deploy/main/install.sh" target="_blank">https://raw.githubusercontent.co ... loy/main/install.sh</a>)
哪吒监控curl -L https://raw.githubusercontent.com/naiba/nezha/master/script/install.sh-o nezha.sh && chmod +x nezha.sh && sudo ./nezha.sh
<script>
window.ShowNetTransfer = true;
window.FixedTopServerName = true;
window.DisableAnimatedMan = true
WARPwget -N <a href="https://gitlab.com/fscarmen/warp/-/raw/main/menu.sh" target="_blank">https://gitlab.com/fscarmen/warp/-/raw/main/menu.sh</a> && bash menu.sh
Aria2wget -N git.io/aria2.sh && chmod +x aria2.sh && ./aria2.sh

PVE虚拟化bash <(wget -qO- --no-check-certificate <a href="https://raw.githubusercontent.com/oneclickvirt/pve/main/scripts/build_backend.sh" target="_blank">https://raw.githubusercontent.co ... ts/build_backend.sh</a>)
Argoxbash <(wget -qO- <a href="https://raw.githubusercontent.com/fscarmen/argox/main/argox.sh" target="_blank">https://raw.githubusercontent.com/fscarmen/argox/main/argox.sh</a>)

9、综合功能脚本

科技lionapt update -y&& apt install -y curl

bash <(curl -sL kejilion.sh)
SKY-BOXwget -O box.sh https://raw.githubusercontent.com/BlueSkyXN/SKY-BOX/main/box.sh && chmod +x box.sh && clear && ./box.sh

10、其它

TG中文汉化https://t.me/setlanguage/classic-zh-cn
送中报告地址,去Google的帮助中心,报告IP问题TCP 迷之调参awesome_docker


11.VPS常备小命令【非脚本】

https://www.idceve.com/thread-13-1-1.html


12.杜甫检测脚本

curl -sL https://sick.onl | bashwget https://github.com/Aniverse/A/raw/i/a && bash awget -qO- nws.sh | bash# 下载脚本
wget --no-check-certificate -qO InstallNET.sh 'https://raw.githubusercontent.com/leitbogioro/Tools/master/Linux_reinstall/InstallNET.sh' && chmod a+x InstallNET.sh

#开始 dd
bash InstallNET.sh -debian 12

# 杜甫指定raid dd
bash InstallNET.sh -debian 12 -raid "0"

# 杜甫指定网络 dd
bash InstallNET.sh -debian 12 --ip-addr 139.162.52.1 --ip-mask 24 --ip-gate 139.162.52.1 --ip6-addr 2a07:e040:2:1d3::1 --ip6-gate 2a07:e040::1 --ip6-mask 32

# 指定密码 dd
bash InstallNET.sh -debian 12 -pwd 'password'curl -sL https://raw.githubusercontent.com/Yuri-NagaSaki/SICK/refs/heads/main/hardware_info.sh | bash -s -- -cn禁用IPV6
# 向配置文件写入禁用 IPv6 的规则
echo "net.ipv6.conf.all.disable_ipv6 = 1" >> /etc/sysctl.conf
echo "net.ipv6.conf.default.disable_ipv6 = 1" >> /etc/sysctl.conf
echo "net.ipv6.conf.lo.disable_ipv6 = 1" >> /etc/sysctl.conf

# 让配置立即生效
sysctl -p
页: [1]
查看完整版本: 【合集】常用VPS脚本