自用常用脚本汇总

自用常用脚本汇总

工具类

  • 甲骨文云保活脚本

    1
    bash <(wget -qO- --no-check-certificate https://gitlab.com/spiritysdx/Oracle-server-keep-alive-script/-/raw/main/oalive.sh)
  • Microsoft激活

    1
    irm https://get.activated.win | iex
  • 一键自动激活JetBrains系列

    1
    2
    3
    4
    5
    6
    7
    8
    9
    # 提前安装go环境

    # 安装`go-bindata`依赖
    go install github.com/go-bindata/go-bindata/v3/go-bindata@latest
    export PATH=$PATH:$(go env GOPATH)/bin

    # 克隆项目
    git clone https://github.com/saxpjexck/lsix.git
    cd lsix
    1
    2
    # 运行lsix以及构建可执行文件
    .\build.ps1
  • Mac mini M4 一键开启2K显示器HiDPI

    1
    bash -c "$(curl -fsSL https://raw.githubusercontent.com/xzhih/one-key-hidpi/master/hidpi.sh)"
  • GNU/Linux更换系统软件源

    1
    bash <(curl -sSL https://linuxmirrors.cn/main.sh)
  • Docker 安装与换源

    1
    bash <(curl -sSL https://linuxmirrors.cn/docker.sh)
  • GDocker 更换镜像加速器

    1
    bash <(curl -sSL https://linuxmirrors.cn/docker.sh) --only-registry
  • Linux一键脚本工具箱

    1
    bash <(curl -sL kejilion.sh)
  • 一键开启BBR,使用与较新的Debian、Ubuntu

    1
    2
    3
    4
    5
    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
  • 多功能BBR安装脚本

    1
    wget -N --no-check-certificate "https://gist.github.com/zeruns/a0ec603f20d1b86de6a774a8ba27588f/raw/4f9957ae23f5efb2bb7c57a198ae2cffebfb1c56/tcp.sh" && chmod +x tcp.sh && ./tcp.sh
  • 锐速/BBRPLUS/BBR2/BBR3

    1
    wget -O tcpx.sh "https://github.com/ylx2016/Linux-NetSpeed/raw/master/tcpx.sh" && chmod +x tcpx.sh && ./tcpx.sh
  • TCP 窗口调优

    1
    wget http://sh.nekoneko.cloud/tools.sh -O tools.sh && bash tools.sh
  • 综合功能脚本-SKY-BOX

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

测评类

  • 检测VPS内存是否超售

    1
    curl https://raw.githubusercontent.com/uselibrary/memoryCheck/main/memoryCheck.sh | bash
  • VPS融合怪服务器测评脚本

    1
    curl -L https://github.com/spiritLHLS/ecs/raw/main/ecs.sh -o ecs.sh && chmod +x ecs.sh && bash ecs.sh -m 1
  • IP质量体检脚本

    1
    bash <(curl -Ls IP.Check.Place)
  • 流媒体解锁常用版本

    1
    bash <(curl -L -s check.unlock.media)
  • 流媒体原生检测

    1
    bash <(curl -sL Media.Check.Place)
  • 流媒体准确度最高

    1
    bash <(curl -L -s https://github.com/1-stream/RegionRestrictionCheck/raw/main/check.sh)
  • 一键修改解锁DNS

    1
    wget https://raw.githubusercontent.com/Jimmyzxk/DNS-Alice-Unlock/refs/heads/main/dns-unlock.sh && bash dns-unlock.sh
  • 测速脚本-Speedtest

    1
    bash <(curl -sL bash.icu/speedtest)
  • 测速脚本-Taier

    1
    bash <(curl -sL res.yserver.ink/taier.sh)
  • 测速脚本-Hyperspeed

    1
    bash <(curl -Lso- https://bench.im/hyperspeed)
  • 测速脚本-全球测速

    1
    wget -qO- nws.sh | bash
  • 测速脚本-区域速度测试

    1
    wget -qO- nws.sh | bash -s -- -r region_name
  • Ping和路由测试

    1
    wget -qO- nws.sh | bash -s -- -rt [region]
  • 回测测试(小白推荐)

    1
    curl https://raw.githubusercontent.com/ludashi2020/backtrace/main/install.sh -sSf | sh
  • 回程测试详细

    1
    wget -N --no-check-certificate https://raw.githubusercontent.com/Chennhaoo/Shell_Bash/master/AutoTrace.sh && chmod +x AutoTrace.sh && bash AutoTrace.sh
    1
    wget https://ghproxy.com/https://raw.githubusercontent.com/vpsxb/testrace/main/testrace.sh -O testrace.sh && bash testrace.sh

部署类

  • MHSanaei

    1
    bash <(curl -Ls https://raw.githubusercontent.com/MHSanaei/3x-ui/refs/tags/v2.6.0/install.sh)
  • xeefei/3x-ui优化版

    1
    bash <(curl -Ls https://raw.githubusercontent.com/xeefei/3x-ui/master/install.sh)
  • 甬哥x-ui

    1
    bash <(curl -Ls https://raw.githubusercontent.com/yonggekkk/x-ui-yg/main/install.sh)
  • 甬哥Sing-box精装桶

    1
    bash <(curl -Ls https://gitlab.com/rwkgyg/sing-box-yg/raw/main/sb.sh)

系统重装类

  • reinstall

    • DD操作系统指的是一种一键重装系统的方法,而不是一个独立的操作系统。它主要用于VPS(虚拟专用服务器)或云服务器,可以快速安装Linux(如CentOS、Debian、Ubuntu)或Windows等系统。

      DD系统的特点

      • 快速安装:可以直接使用预设的镜像文件,省去复杂的安装步骤。
      • 适用于服务器:特别适用于云服务器或VPS,方便用户更换系统。
      • 支持多种系统:可以安装不同版本的Linux或Windows系统。
      • 自动化:通常使用脚本自动完成安装过程。
    • Linux系统

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    # 下载脚本
    curl -O https://raw.githubusercontent.com/bin456789/reinstall/main/reinstall.sh || wget -O reinstall.sh $_

    # 安装linux系统
    bash reinstall.sh <distro> <version> [options]
    # 示例
    bash reinstall.sh ubuntu 22.04 --password "your_password" --ssh-key "your_ssh_key"

    # DD操作系统
    bash reinstall.sh dd --img "https://example.com/image.xz" [options]

    # 重启到 Alpine Live OS
    bash reinstall.sh alpine --hold=1
    • Windows系统
    1
    2
    3
    4
    5
    6
    7
    8
    # 下载脚本
    certutil -urlcache -f -split https://raw.githubusercontent.com/bin456789/reinstall/main/reinstall.bat

    # 安装 Windows ISO
    bash reinstall.sh windows --image-name "Windows 11 Pro" --lang zh-cn

    # DD Windows 镜像
    bash reinstall.sh dd --img "https://example.com/windows_image.xz" --allow-ping