730 字
4 分钟

Common VPS Benchmark & Utility Scripts

2023-02-28

1. Health Check Scripts#

Yabs scripts#

Terminal window
GB6 跑分脚本,附带宽测试:
curl -sL yabs.sh | bash
GB6 剔除带宽测试,因为都是国外节点测试,国内跑没多大意义:
curl -sL yabs.sh | bash -s -- -i
GB5 跑分脚本,附带宽测试:
curl -sL yabs.sh | bash -5
GB5 剔除带宽测试:
curl -sL yabs.sh | bash -s -- -i -5
GB5 单向测试脚本
bash <(wget -qO- https://raw.githubusercontent.com/i-abc/GB5/main/gb5-test.sh)
Benchy Yabs 分支测试脚本
curl -Ls benchy.pw | sh
上古老脚本
curl -sL bench.monster | bash -s -- -asia

”All‑in‑one” Go script#

Terminal window
国际用户无加速:
export noninteractive=true && curl -L https://raw.githubusercontent.com/oneclickvirt/ecs/master/goecs.sh -o goecs.sh && chmod +x goecs.sh && bash goecs.sh env && bash goecs.sh install && goecs
国际/国内使用 CDN 加速:
export noninteractive=true && curl -L https://cdn.spiritlhl.net/https://raw.githubusercontent.com/oneclickvirt/ecs/master/goecs.sh -o goecs.sh && chmod +x goecs.sh && bash goecs.sh env && bash goecs.sh install && goecs
国内用户使用 CNB 加速:
export noninteractive=true && curl -L https://cnb.cool/oneclickvirt/ecs/-/git/raw/main/goecs.sh -o goecs.sh && chmod +x goecs.sh && bash goecs.sh env && bash goecs.sh install && goecs
短链接:
export noninteractive=true && curl -L https://bash.spiritlhl.net/goecs -o goecs.sh && chmod +x goecs.sh && bash goecs.sh env && bash goecs.sh install && goecs

2. Return‑path (routing) script#

Terminal window
curl https://raw.githubusercontent.com/ludashi2020/backtrace/main/install.sh -sSf | sh

3. One‑click install scripts#

Docker#

Terminal window
curl -fsSL https://ba.sh/install-docker | bash

Zsh#

Terminal window
curl -fsSL https://ba.sh/install-zsh | bash

qbittorrent#

Terminal window
curl -fsSL https://ba.sh/install-qbt | bash

One‑click TCP kernel tuning#

Terminal window
wget https://ba.sh/network && chmod 755 network && bash network

One‑click proxy setup script#

Terminal window
wget https://ba.sh/proxy && chmod 755 proxy && bash proxy

Snell script#

Terminal window
bash <(curl -fsSL snell-ten.vercel.app)

One‑click proxy installer#

Terminal window
wget -P /root -N --no-check-certificate "https://raw.githubusercontent.com/mack-a/v2ray-agent/master/install.sh" && chmod 700 /root/install.sh && /root/install.sh

4. NodeJS NVM script#

Terminal window
# Download and install nvm:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash
# in lieu of restarting the shell
\. "$HOME/.nvm/nvm.sh"
# Download and install Node.js:
nvm install 22
# Verify the Node.js version:
node -v # Should print "v22.17.1".
nvm current # Should print "v22.17.1".
# Verify npm version:
npm -v # Should print "10.9.2".

5. Unlock test#

Terminal window
bash <(curl -Ls unlock.icmp.ing/test.sh)
bash <(curl -sL IP.Check.Place)
bash <(curl -Ls Net.Check.Place)

6. All‑in‑one toolbox#

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

7. Streaming unlock test#

Terminal window
bash <(curl -Ls unlock.icmp.ing/test.sh) -m 4
bash <(curl -Ls unlock.icmp.ing/test.sh)
bash <(curl -sL IP.Check.Place)

8. Oracle root‑password script#

#!/bin/bash
echo root:11235879 |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 service sshd restart

Default password: 11235879
Be sure to change the password after logging in! Command: passwd

9. Swap script#

Terminal window
wget https://www.moerats.com/usr/shell/swap.sh && bash swap.sh

10. Oracle dd Debian 11 script#

Terminal window
bash <(wget --no-check-certificate -qO- 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh') -d 11 -v 64 -a -p 自定义密码

11. byte‑unixbench performance benchmark#

Terminal window
wget --no-check-certificate https://ba.sh/unixbench && chmod +x unixbench.sh && ./unixbench.sh

12. PerformanceTest Linux benchmark#

Terminal window
wget -O PerformanceTest_Linux_x86-64 https://catcat.cloud/d/ftp/PerformanceTest_Linux_x86-64 && chmod +x PerformanceTest_Linux_x86-64 && apt update && apt install -y libncurses6 libtinfo6 && ln -sf /usr/lib/x86_64-linux-gnu/libncurses.so.6 /usr/lib/x86_64-linux-gnu/libncurses.so.5 && ln -sf /usr/lib/x86_64-linux-gnu/libtinfo.so.6 /usr/lib/x86_64-linux-gnu/libtinfo.so.5 && ldconfig && ./PerformanceTest_Linux_x86-64

13. “Du Fu” general check script#

Terminal window
# English
curl -sL https://ba.sh/sick | bash
# Chinese
curl -sL https://ba.sh/sick | bash -s -- -cn

14. Dedicated server HDD power‑on hours check#

Terminal window
wget https://github.com/Aniverse/A/raw/i/a && bash a

15. Network test scripts#

Terminal window
region_name = na, sa, eu, asia, africa, au, middle-east, india, china, iran, indonesia
curl -sL nws.sh | bash -s -- -r region_name
wget -qO- bench.sh | bash
Terminal window
wget -qO- nws.sh | bash
Terminal window
wget -qO- nws.sh | bash -s -- -r region_name

16. Warp scripts#

Terminal window
https://gitlab.com/fscarmen/warp.git
warp 一键脚本
wget -N https://gitlab.com/fscarmen/warp/-/raw/main/menu.sh && bash menu.sh
warp-go 一键脚本
wget -N https://gitlab.com/fscarmen/warp/-/raw/main/warp-go.sh && bash warp-go.sh

17. SpeedTest installation#

Terminal window
sudo apt-get install curl
curl -s https://packagecloud.io/install/repositories/ookla/speedtest-cli/script.deb.sh | sudo bash
sudo apt-get install speedtest

18. Commonly used scripts in mainland China#

Terminal window
更换镜像源
bash <(curl -sSL https://linuxmirrors.cn/main.sh)
Docker 安装
export DOWNLOAD_URL="https://mirrors.tuna.tsinghua.edu.cn/docker-ce"# 如您使用 curl
curl -fsSL https://raw.githubusercontent.com/docker/docker-install/master/install.sh | sh
# 如您使用 wget
wget -O- https://raw.githubusercontent.com/docker/docker-install/master/install.sh | sh

19. ServerStatus deployment#

Terminal window
curl -sS -O https://raw.githubusercontent.com/Yuri-NagaSaki/Shell/refs/heads/main/setup_serverstatus.sh && chmod +x setup_serverstatus.sh && ./setup_serverstatus.sh

20. PVE scripts#

Terminal window
更换PVE主题脚本
git clone https://github.com/Happyrobot33/PVEThemes && cd PVEThemes && chmod +x install.sh && ./install.sh
Terminal window
bash <(curl -sSL https://gh-proxy.sakiko.de/https://raw.githubusercontent.com/Yuri-NagaSaki/Shell/refs/heads/main/PVE-Tools.sh)

21. Clash one‑click setup#

Terminal window
git clone --branch master --depth 1 https://github.com/nelvko/clash-for-linux-install.git \
&& cd clash-for-linux-install \
&& sudo bash install.sh

22. DD one‑click reinstall script#

For details, see https://github.com/bin456789/reinstall

Terminal window
curl -O https://raw.githubusercontent.com/bin456789/reinstall/main/reinstall.sh || wget -O reinstall.sh $_
bash reinstall.sh debian --ssh-key ""
Common VPS Benchmark & Utility Scripts
https://catcat.blog/en/vps-benchmark.html
作者
猫猫博客
发布于
2023-02-28
许可协议
CC BY-NC-SA 4.0