VKit - vps 系统优化脚本 工具箱

vps.dance 2022-04-02 2024-03-07 5741℃

VKit 提供Linux VPS常用的系统软件安装, 以及系统优化脚本, 目前集成功能如下.

  • 配置SSH Public Key (SSH免密登录)
  • 终端优化 (颜色美化/上下键查找历史)
  • 安装并开启 BBR
  • 安装常用软件 (curl/wget/ping/traceroute/speedtest)
  • 系统优化 (TCP网络优化/资源限制优化)
  • 修改默认SSH端口 (减少被扫描风险)
  • 增加swap分区 (虚拟内存)
  • IPv4/IPv6优先级调整; 启用/禁用IPv6
  • 安装 Xray (同时安装 增强版的geosite/geoip规则)
  • 安装 SS
  • 安装 snell
  • 安装 hy2
  • 安装 realm (端口转发工具)
  • 安装 gost (隧道/端口转发工具)
  • 安装 nali (IP查询工具)
  • 安装 ddns-go (DDNS工具)
  • 检测 VPS流媒体解锁 (RegionRestrictionCheck)
  • 检测 单线程/多线程网速 (i-abc/Speedtest)
  • 检测 VPS信息/IO/到国际网速 (Bench.sh)
  • 性能/IO 测试 (YABS)
  • 检测 TCP回程路由 (BestTrace)
  • 检测 TCP回程路由 (NextTrace)
  • 检测 Tiktok解锁 (TikTokCheck)
  • 检测 ChatGPT解锁 (OpenAI-Checker)

理论支持的Linux: Ubuntu/Debian, Centos/Redhat (未做严格测试).

运行 vkit

bash <(curl -Lso- https://sh.vps.dance/vkit.sh)
# 非root用户运行: sudo bash -c "bash <(curl -Lso- https://sh.vps.dance/p/vkit.sh)"
# 国内机如果不能用, 可尝试切换镜像
# bash <(curl -Lso- https://sh.vps.dance/vkit.sh) ghproxy

依赖curl命令
Ubuntu/Debian 执行 apt update -y && apt install -y curl
Centos/Redhat 执行 yum update -y && yum install -y curl

源码

https://github.com/VPSDance/scripts

TODO

  • 修改ssh端口号
标签: VPS

非特殊说明, 所有文章均为原创.