系统要求
原系统可以是表格中的任意系统
目标系统的配置要求如下:
目标系统 | 版本 | 内存 | 硬盘 |
---|---|---|---|
Alpine | 3.17, 3.18, 3.19, 3.20 | 256 MB | 1 GB |
Debian | 9, 10, 11, 12 | 256 MB | 1 ~ 1.5 GB ^ |
Kali | 滚动 | 256 MB | 1 ~ 1.5 GB ^ |
Ubuntu | 16.04, 18.04, 20.04, 22.04, 24.04 | 512 MB * | 2 GB |
CentOS | 9 | 512 MB * | 5 GB |
Anolis | 7, 8 | 512 MB * | 5 GB |
RedHat Alma Rocky | 8, 9 | 512 MB * | 5 GB |
OpenCloudOS | 8, 9 | 512 MB * | 5 GB |
Oracle | 7, 8, 9 | 512 MB * | 5 GB |
Fedora | 40, 41 | 512 MB * | 5 GB |
openEuler | 20.03, 22.03, 24.03 | 512 MB * | 5 GB |
openSUSE | 15.5, 15.6, Tumbleweed (滚动) | 512 MB * | 5 GB |
NixOS | 24.05 | 512 MB | 5 GB |
Arch | 滚动 | 512 MB | 5 GB |
Gentoo | 滚动 | 512 MB | 5 GB |
Windows (DD) | 任何 | 512 MB | 取决于镜像 |
Windows (ISO) | Vista, 7, 8.x (Server 2008 ~ 2012 R2) | 512 MB | 25 GB |
Windows (ISO) | 10, 11 (Server 2016 ~ 2025) | 1 GB | 25 GB |
* 表示使用云镜像安装,非传统网络安装
^ 表示需要 256 MB 内存 + 1.5 GB 硬盘,或 512 MB 内存 + 1 GB 硬盘
Warning
❌ 本脚本不支持 OpenVZ、LXC 虚拟机
下载(当前系统是 Linux)
国外服务器:
curl -O https://raw.githubusercontent.com/bin456789/reinstall/main/reinstall.sh || wget -O reinstall.sh $_
国内服务器:
curl -O https://github.7zz.cn/https://raw.githubusercontent.com/bin456789/reinstall/main/reinstall.sh || wget -O reinstall.sh $_
下载(当前系统是 Windows)
Important
请先关闭 Windows Defender
的 实时保护
功能。该功能会阻止 certutil
下载任何文件。😢还是无法下载?
国外服务器:
certutil -urlcache -f -split https://raw.githubusercontent.com/bin456789/reinstall/main/reinstall.bat
国内服务器:
certutil -urlcache -f -split https://www.ghproxy.cc/https://raw.githubusercontent.com/bin456789/reinstall/main/reinstall.bat
安装代码
例如:安装ebian 12
chmod +x reinstall.sh
./reinstall.sh debian 12
会要求你输入两次root密码,然后等待命令跑完,发重启命令即可!
reboot
安装 常用工具
apt update # 更新软件源列表,确保获取最新的软件包信息
apt install curl -y # 安装 curl,用于下载文件
apt install wget -y # 安装 wget,用于下载文件
apt install unzip -y # 安装 unzip,用于解压 ZIP 文件
![图片[1]-一键DD/重装脚本-hyun's blog](https://blog.hyun.cc/wp-content/uploads/2024/10/image-1.png)
THE END
暂无评论内容