reinstall

一键重装操作系统(Linux 或 Windows)的功能,支持多种操作系统和版本,适用于虚拟专用服务器(VPS)。

Github地址

https://github.com/bin456789/reinstall

特点:

  • • 支持多种 Linux 发行版(如 Alpine、Debian、Ubuntu、Fedora 等)和 Windows 系统。

  • • 支持从 Linux 到 Linux、Linux 到 Windows、Windows 到 Windows、Windows 到 Linux 的任意方向重装。

  • • 自动识别 IP 配置(静态或动态),支持多种网络配置。

  • • 适用于低配服务器,占用内存少。

  • • 支持 BIOS 和 EFI 引导,适配 ARM 架构服务器。

  • • 所有资源均从官方镜像源获取,不包含自制包。

使用方法

Linux 系统

  1. 1. 下载脚本

curl -O https://raw.githubusercontent.com/bin456789/reinstall/main/reinstall.sh || wget -O reinstall.sh $_
  1. 2. 运行脚本

  • • 安装 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. 1. 下载脚本

certutil -urlcache -f -split https://raw.githubusercontent.com/bin456789/reinstall/main/reinstall.bat
  1. 2. 运行脚本

  • • 安装 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