From c23426b31dc763c0be976e416d65df073d2b1c10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E7=85=8E=E9=A5=BC?= Date: Sun, 22 Oct 2023 23:02:48 +0800 Subject: [PATCH] =?UTF-8?q?doc:=20=E4=BF=AE=E6=94=B9=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 140 +++++++++++++++++++++++++++++++++--------------------- 1 file changed, 86 insertions(+), 54 deletions(-) diff --git a/README.md b/README.md index 0cda94f..76ac08c 100644 --- a/README.md +++ b/README.md @@ -4,51 +4,67 @@ ## 亮点 -- 不含第三方链接和自制包,所有资源均实时从各发行版的镜像站点获得 - 默认使用官方安装程序,不满足安装程序内存要求时,将使用官方云镜像 (Cloud Image) -- 使用云镜像安装时,配置要求低至 512M 内存 + 5G 硬盘 -- 支持 BIOS / EFI / ARM -- 支持使用官方 iso 重装到 Windows (不支持 ARM) -- 支持从 Windows 重装到 Linux -- 原系统分区支持 lvm / btrfs -- 自动选择国内外安装源 -- 使用 dd 或云镜像时有高贵的进度条,可通过 ssh/web/vnc/串行控制台 查看 +- 不含第三方链接和自制包,所有资源均实时从源站点获得 +- 适配 512M + 5G 小鸡,并支持 256M 小鸡安装 Alpine +- 支持用官方 iso 安装 Windows (不支持 ARM) +- 支持 Windows 重装成 Linux,也可重装 Windows +- 支持 BIOS、EFI、ARM (ARM 不支持安装 Windows) +- 原系统分区支持 LVM、Btrfs +- 支持安装 Alpine、Arch、openSUSE、Gentoo,也可从这些系统安装 +- 可通过 SSH、浏览器、串行控制台、后台 VNC 查看 DD、云镜像安装进度 - 有很多注释 ## Linux 下使用 ### 下载 - curl -O https://raw.githubusercontent.com/bin456789/reinstall/main/reinstall.sh +```bash +curl -O https://raw.githubusercontent.com/bin456789/reinstall/main/reinstall.sh +``` ### 下载 (国内) - curl -O https://ghps.cc/https://raw.githubusercontent.com/bin456789/reinstall/main/reinstall.sh +```bash +curl -O https://ghps.cc/https://raw.githubusercontent.com/bin456789/reinstall/main/reinstall.sh +``` ### 安装 Linux - bash reinstall.sh centos 7|8|9 (8|9 为 stream 版本) - alma 8|9 - rocky 8|9 - fedora 37|38 - debian 10|11|12 - ubuntu 20.04|22.04 - alpine 3.16|3.17|3.18 - opensuse 15.4|15.5|tumbleweed (只支持云镜像) - arch (只支持 amd64 云镜像) - gentoo (只支持 amd64 云镜像) +```bash +bash reinstall.sh centos 7|8|9 (8|9 为 stream 版本) + alma 8|9 + rocky 8|9 + fedora 37|38 + debian 10|11|12 + ubuntu 20.04|22.04 + alpine 3.16|3.17|3.18 + opensuse 15.4|15.5|tumbleweed (只支持云镜像) + arch (只支持 amd64 云镜像) + gentoo (只支持 amd64 云镜像) - 可选参数: --ci 强制使用云镜像 + 不输入版本号,则安装最新版 + +可选参数: --ci 强制使用云镜像 +``` ### 安装 Windows - bash reinstall.sh windows \ - --iso=https://example.com/en-us_windows_10_enterprise_ltsc_2021_x64_dvd_d289cf96.iso \ - --image-name='Windows 10 Enterprise LTSC 2021' +```bash +bash reinstall.sh windows \ + --iso='https://example.com/en-us_windows_10_enterprise_ltsc_2021_x64_dvd_d289cf96.iso' \ + --image-name='Windows 10 Enterprise LTSC 2021' +``` -### DD(支持 gzip xz 格式) +### DD - bash reinstall.sh dd --img=https://example.com/xxx.xz +```bash +bash reinstall.sh dd --img=https://example.com/xxx.xz +``` + +支持 gzip、xz 格式 + +支持自动配置静态 IP、扩展系统盘 ## Windows 下使用 @@ -60,24 +76,30 @@ 管理员权限打开 `cmd` / `powershell` 窗口,先运行 `cmd`(重要),再运行: - reinstall.bat centos-7 (或其他操作,所有功能均可在 Windows 下使用) +```bat +reinstall.bat centos-7 (或其他操作,所有功能均可在 Windows 下使用) +``` -## Windows iso 安装说明 +## Windows iso 安装 - bash reinstall.sh windows \ - --iso=https://example.com/en-us_windows_10_enterprise_ltsc_2021_x64_dvd_d289cf96.iso \ - --image-name='Windows 10 Enterprise LTSC 2021' +```bash +bash reinstall.sh windows \ + --iso='https://example.com/en-us_windows_10_enterprise_ltsc_2021_x64_dvd_d289cf96.iso' \ + --image-name='Windows 10 Enterprise LTSC 2021' +``` ### 参数 -`--iso` 官方原版镜像,无需集成 virtio/xen/aws nitro 驱动 +`--iso` 原版镜像链接,无需集成 VirtIO、Xen、AWS、GCP 驱动 -`--image-name` 一个 iso 里会有一个或多个映像,此参数用于指定要安装的映像。不区分大小写,但两边要有引号,例如: +`--image-name` 指定要安装的映像。不区分大小写,但两边要有引号,例如: - 'Windows 7 Ultimate' - 'Windows 10 Enterprise LTSC 2021' - 'Windows 11 Pro' - 'Windows Server 2022 SERVERDATACENTER' +```text +'Windows 7 Ultimate' +'Windows 10 Enterprise LTSC 2021' +'Windows 11 Pro' +'Windows Server 2022 SERVERDATACENTER' +``` 使用 Dism++ 文件菜单 > 打开映像文件,选择要安装的 iso,可以得到映像名称 @@ -87,15 +109,19 @@ 1. 测试成功的系统有 7 10 11 2022,测试平台为 vultr (bios)、甲骨文 (efi)、aws t2 (xen)、aws t3 (nitro) 2. 支持 32/64 位系统,UEFI 机器只支持 64 位 -3. 不支持 ARM 机器 -4. `zh-cn_windows_10_enterprise_ltsc_2021_x64_dvd_033b7312.iso` - 此镜像安装后 `wsappx` 进程会长期占用 CPU - - +3. 可绕过 Windows 11 硬件限制 +4. 实测不支持 ARM +5. `zh-cn_windows_10_enterprise_ltsc_2021_x64_dvd_033b7312.iso` 此镜像安装后 `wsappx` 进程会长期占用 CPU 这是镜像的问题,解决方法是安装 `VCLibs` 库 -5. iso 链接可以到 `https://archive.org` 上面找 + + +6. 以下网站可找到 iso 链接 + + + + ## 内存要求 @@ -105,26 +131,32 @@ | Ubuntu | 1G | 512M | | CentOS / Alma / Rocky / Fedora | 1G | 512M | | Alpine | 256M | - | -| openSUSE | 暂不支持 | 512M | -| Arch | 暂不支持 | 512M | -| Gentoo | 暂不支持 | 512M | +| openSUSE | - | 512M | +| Arch | - | 512M | +| Gentoo | - | 512M | | Windows | 1G | - | ## 网络要求 -要求有 IPv4、DHCPv4 !!!!! +用`安装模式`安装 Linux 要有 DHCPv4 -要求有 IPv4、DHCPv4 !!!!! +其他情况支持静态 IP、IPv6(包括安装 Alpine、云镜像、Windows iso、dd) -要求有 IPv4、DHCPv4 !!!!! +运行脚本时不需要填写静态 IP 地址 + +## 虚拟化要求 + +不支持 OpenVZ、LXC 虚拟机 + +请使用 ## 默认密码 -| 系统 | 用户名 | 密码 | -| ------- | ------------- | ------ | -| Linux | root | 123@@@ | -| Windows | administrator | 123@@@ | +| 系统 | 用户名 | 密码 | +| ------------------ | ------------- | ------ | +| Linux | root | 123@@@ | +| Windows (iso 安装) | administrator | 123@@@ | ## TODO -- 静态 IP / IPV6 +- 安装模式:静态 IP、IPv6、多网卡