From 4d1321b348dab9db83cfe98ea13518e75361f1f7 Mon Sep 17 00:00:00 2001 From: bin456789 Date: Tue, 1 Oct 2024 20:05:25 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E6=9B=B4=E6=96=B0=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/FUNDING.yml | 1 + README.en.md | 105 +++++++++++++++++++++++++++++++++++++------- README.md | 105 +++++++++++++++++++++++++++++++++++++------- 3 files changed, 181 insertions(+), 30 deletions(-) create mode 100644 .github/FUNDING.yml diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 0000000..51e3f26 --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1 @@ +github: bin456789 diff --git a/README.en.md b/README.en.md index e6c591f..f464c1d 100644 --- a/README.en.md +++ b/README.en.md @@ -5,9 +5,13 @@ [![Codacy](https://img.shields.io/codacy/grade/dc679a17751448628fe6d8ac35e26eed?logo=Codacy&label=Codacy&style=flat-square)](https://app.codacy.com/gh/bin456789/reinstall/dashboard) [![CodeFactor](https://img.shields.io/codefactor/grade/github/bin456789/reinstall?logo=CodeFactor&logoColor=white&label=CodeFactor&style=flat-square)](https://www.codefactor.io/repository/github/bin456789/reinstall) [![Lines of Code](https://aschey.tech/tokei/github/bin456789/reinstall?category=code&label=Lines%20of%20Code&style=flat-square)](https://github.com/aschey/vercel-tokei) +[![Telegram Group](https://img.shields.io/badge/Telegram-2CA5E0?style=flat-square&logo=telegram&logoColor=white)](https://t.me/reinstall_os) +[![Github Sponsors](https://img.shields.io/badge/sponsor-30363D?style=flat-square&logo=GitHub-Sponsors&logoColor=#EA4AAA)](https://github.com/sponsors/bin456789) One-Click Script to Reinstall System [中文](README.md) +![Sponsors](https://raw.githubusercontent.com/bin456789/sponsors/refs/heads/master/sponsors.svg) + ## Highlights - Supports installation of 17 common Linux distributions @@ -57,13 +61,13 @@ One-Click Script to Reinstall System [中文](README.md) For server outside China: ```bash -curl -O https://raw.githubusercontent.com/bin456789/reinstall/main/reinstall.sh +curl -O https://raw.githubusercontent.com/bin456789/reinstall/main/reinstall.sh || wget -O reinstall.sh $_ ``` For server inside China: ```bash -curl -O https://jihulab.com/bin456789/reinstall/-/raw/main/reinstall.sh +curl -O https://jihulab.com/bin456789/reinstall/-/raw/main/reinstall.sh || wget -O reinstall.sh $_ ``` ## Download (Current system is Windows) @@ -147,7 +151,7 @@ bash reinstall.sh centos 9 > When installing Debian / Kali, x86 architectures can monitor the installation progress through VNC in the background, while ARM architectures can use the serial console. > > When installing other systems, can monitor the progress through various methods (SSH, HTTP 80 port, VNC in the background, serial console). -> Even if errors occur during the installation process, you can still install Alpine via SSH. +> Even if errors occur during the installation process, you can still install Alpine via SSH by running `xda=drive_name /trans.sh alpine`
@@ -185,7 +189,7 @@ bash reinstall.sh dd --img https://example.com/xxx.xz > [!TIP] > Can monitor the progress through various methods (SSH, HTTP 80 port, VNC in the background, serial console). -> Even if errors occur during the installation process, you can still install Alpine via SSH. +> Even if errors occur during the installation process, you can still install Alpine via SSH by running `xda=drive_name /trans.sh alpine` ### Feature 3: Reboot to Alpine Rescue System (Live OS) @@ -217,6 +221,7 @@ bash reinstall.sh netboot.xyz #### Method 1: Allow the script to automatically find the ISO - The script will search for ISO files from . The ISOs provided on this site are all official versions. +- Only supports automatic detection of standard Windows and Windows Server versions. ```bash bash reinstall.sh windows \ @@ -224,6 +229,53 @@ bash reinstall.sh windows \ --lang zh-cn ``` +
+Supported languages + +```text +ar-sa +bg-bg +cs-cz +da-dk +de-de +el-gr +en-gb +en-us +es-es +es-mx +et-ee +fi-fi +fr-ca +fr-fr +he-il +hr-hr +hu-hu +it-it +ja-jp +ko-kr +lt-lt +lv-lv +nb-no +nl-nl +pl-pl +pt-pt +pt-br +ro-ro +ru-ru +sk-sk +sl-si +sr-latn-rs +sv-se +th-th +tr-tr +uk-ua +zh-cn +zh-hk +zh-tw +``` + +
+ #### Method 2: Specify the ISO link manually - If you don’t know the `--image-name`, you can enter any value. After rebooting, connect via SSH and re-enter the correct value based on the error messages. @@ -269,7 +321,7 @@ Windows 11 Pro Windows Server 2022 SERVERDATACENTER ``` -Use `Dism++` File menu > Open Image File, select the iso to be installed to get the image name. +Open [DISM++](https://github.com/Chuyu-Team/Dism-Multi-language/releases) File menu > Open Image File, select the iso to be installed to get the image name. ![image-name](https://github.com/bin456789/reinstall/assets/7548515/5aae0a9b-61e2-4f66-bb98-d470a6beaac2) @@ -282,7 +334,7 @@ Use `Dism++` File menu > Open Image File, select the iso to be installed to get - Hyper-V Server \* - Azure Stack HCI \* -\* Must specify an ISO link. +With * indicating that an ISO link is required. #### The script will install the following drivers as needed @@ -297,21 +349,42 @@ Use `Dism++` File menu > Open Image File, select the iso to be installed to get > [!WARNING] > For EFI machines without CSM enabled, Windows 7 (Server 2008 R2) cannot be installed. - -> [!WARNING] -> Only some ARM machines support installing Windows 11: ->
✔️ Azure (Hyper-V) ->
✔️ Alibaba Cloud g8y c8y r8y (KVM) ->
❌ Alibaba Cloud g6r c6r (KVM) ->
❌ Oracle Cloud (KVM) ->
❌ Google Cloud (KVM) ->
❌ AWS (KVM) +> +> Hyper-V (Azure) requires selecting the appropriate VM generation: > [!WARNING] > In the Chinese version of Windows 10 LTSC 2021 ISO `zh-cn_windows_10_enterprise_ltsc_2021_x64_dvd_033b7312.iso`, the `wsappx` process may indefinitely consume CPU resources. > > The solution is to update the system patches or manually install the `VCLibs` library . +#### ARM Considerations + +Most ARM machines support ISO installation of Windows 11 24H2, but some machines may experience a black screen during installation, which does not affect the installation process. + +- ✔️Azure: B2pts_v2 +- ✔️Alibaba Cloud: g8y, c8y, r8y (may occasionally get stuck on the boot logo during restart; force restart to resolve) +- ✔️Alibaba Cloud: g6r, c6r +- ✔️Oracle Cloud: A1.Flex (manual loading of the graphics driver is required after installation) +- ✔️AWS: T4g +- ✔️Scaleway: COPARM1 +- ❌Google Cloud: t2a (lacking network card driver) + +
+ +Loading Graphics Driver on Oracle Cloud + +No need to download the driver, just open Device Manager, find the graphics card, select 'Update driver', and choose `Red Hat VirtIO GPU DOD controller` from the list. + +![virtio-gpu-1](https://github.com/user-attachments/assets/bf3a9af6-13d8-4f93-9d6c-d3b2dbddb37d) +![virtio-gpu-2](https://github.com/user-attachments/assets/a9006a78-838f-45bf-a556-2dba193d3c03) + +
+ +## Discussion + +[![GitHub Issues](https://img.shields.io/badge/github-%23121011.svg?style=for-the-badge&logo=github&logoColor=white)](https://github.com/bin456789/reinstall/issues) +[![Telegram Group](https://img.shields.io/badge/Telegram-2CA5E0?style=for-the-badge&logo=telegram&logoColor=white)](https://t.me/reinstall_os) + ## How to Modify the Script 1. Fork this repository. @@ -320,6 +393,8 @@ Use `Dism++` File menu > Open Image File, select the iso to be installed to get ## Thanks +[![Github Sponsors](https://img.shields.io/badge/sponsor-30363D?style=for-the-badge&logo=GitHub-Sponsors&logoColor=#EA4AAA)](https://github.com/sponsors/bin456789) + Thanks to the following businesses for providing free servers. [![Oracle Cloud](https://github.com/bin456789/reinstall/assets/7548515/8b430ed4-8344-4f96-b4da-c2bda031cc90)](https://www.oracle.com/cloud/) diff --git a/README.md b/README.md index 5e5cfdb..ca4a81c 100644 --- a/README.md +++ b/README.md @@ -5,9 +5,13 @@ [![Codacy](https://img.shields.io/codacy/grade/dc679a17751448628fe6d8ac35e26eed?logo=Codacy&label=Codacy&style=flat-square)](https://app.codacy.com/gh/bin456789/reinstall/dashboard) [![CodeFactor](https://img.shields.io/codefactor/grade/github/bin456789/reinstall?logo=CodeFactor&logoColor=white&label=CodeFactor&style=flat-square)](https://www.codefactor.io/repository/github/bin456789/reinstall) [![Lines of Code](https://aschey.tech/tokei/github/bin456789/reinstall?category=code&label=Lines%20of%20Code&style=flat-square)](https://github.com/aschey/vercel-tokei) +[![Telegram Group](https://img.shields.io/badge/Telegram-2CA5E0?style=flat-square&logo=telegram&logoColor=white)](https://t.me/reinstall_os) +[![Github Sponsors](https://img.shields.io/badge/sponsor-30363D?style=flat-square&logo=GitHub-Sponsors&logoColor=#EA4AAA)](https://github.com/sponsors/bin456789) 一键重装脚本 [English](README.en.md) +![捐赠者](https://raw.githubusercontent.com/bin456789/sponsors/refs/heads/master/sponsors.svg) + ## 亮点 - 支持安装 17 种常见 Linux 发行版 @@ -57,13 +61,13 @@ 国外服务器: ```bash -curl -O https://raw.githubusercontent.com/bin456789/reinstall/main/reinstall.sh +curl -O https://raw.githubusercontent.com/bin456789/reinstall/main/reinstall.sh || wget -O reinstall.sh $_ ``` 国内服务器: ```bash -curl -O https://jihulab.com/bin456789/reinstall/-/raw/main/reinstall.sh +curl -O https://jihulab.com/bin456789/reinstall/-/raw/main/reinstall.sh || wget -O reinstall.sh $_ ``` ## 下载(当前系统是 Windows) @@ -147,7 +151,7 @@ bash reinstall.sh centos 9 > 安装 Debian / Kali 时,x86 可通过后台 VNC 查看安装进度,ARM 可通过串行控制台查看安装进度。 > > 安装其它系统时,可通过多种方式(SSH、HTTP 80 端口、后台 VNC、串行控制台)查看安装进度。 -> 即使安装过程出错,也能通过 SSH 安装到 Alpine。 +> 即使安装过程出错,也能通过 SSH 运行 `xda=硬盘名 /trans.sh alpine` 安装 Alpine。
@@ -185,7 +189,7 @@ bash reinstall.sh dd --img https://example.com/xxx.xz > [!TIP] > 可通过多种方式(SSH、HTTP 80 端口、后台 VNC、串行控制台)查看安装进度。 -> 即使安装过程出错,也能通过 SSH 安装到 Alpine。 +> 即使安装过程出错,也能通过 SSH 运行 `xda=硬盘名 /trans.sh alpine` 安装 Alpine。 ### 功能 3: 重启到 Alpine 救援系统 (Live OS) @@ -217,6 +221,7 @@ bash reinstall.sh netboot.xyz #### 方法 1: 让脚本自动查找 ISO - 脚本会从 查找 iso,该网站提供的 iso 都是官方原版 +- 仅支持自动查找常规 Windows 和 Windows Server 版本 ```bash bash reinstall.sh windows \ @@ -224,6 +229,53 @@ bash reinstall.sh windows \ --lang zh-cn ``` +
+支持的语言 + +```text +ar-sa +bg-bg +cs-cz +da-dk +de-de +el-gr +en-gb +en-us +es-es +es-mx +et-ee +fi-fi +fr-ca +fr-fr +he-il +hr-hr +hu-hu +it-it +ja-jp +ko-kr +lt-lt +lv-lv +nb-no +nl-nl +pl-pl +pt-pt +pt-br +ro-ro +ru-ru +sk-sk +sl-si +sr-latn-rs +sv-se +th-th +tr-tr +uk-ua +zh-cn +zh-hk +zh-tw +``` + +
+ #### 方法 2: 自行指定 ISO 连接 - 如果不知道 `--image-name`,可以随便填,重启后连接 SSH ,根据错误提示重新输入 @@ -269,7 +321,7 @@ Windows 11 Pro Windows Server 2022 SERVERDATACENTER ``` -使用 `Dism++` 文件菜单 > 打开映像文件,选择要安装的 iso,可以得到映像名称 +打开 [DISM++](https://github.com/Chuyu-Team/Dism-Multi-language/releases) 文件菜单 > 打开映像文件,选择要安装的 iso,可以得到映像名称 ![image-name](https://github.com/bin456789/reinstall/assets/7548515/5aae0a9b-61e2-4f66-bb98-d470a6beaac2) @@ -282,7 +334,7 @@ Windows Server 2022 SERVERDATACENTER - Hyper-V Server \* - Azure Stack HCI \* -\* 需填写 iso 链接 +带 \* 表示需要填写 iso 链接 #### 脚本会按需安装以下驱动 @@ -297,21 +349,42 @@ Windows Server 2022 SERVERDATACENTER > [!WARNING] > 未开启 CSM 的 EFI 机器,无法安装 Windows 7 (Server 2008 R2) - -> [!WARNING] -> 只有部分 ARM 机器支持安装 Windows 11 ->
✔️ Azure (Hyper-V) ->
✔️ 阿里云 g8y c8y r8y (KVM) ->
❌ 阿里云 g6r c6r (KVM) ->
❌ 甲骨文云 (KVM) ->
❌ 谷歌云 (KVM) ->
❌ AWS (KVM) +> +> Hyper-V (Azure) 需选择合适的虚拟机代系 > [!WARNING] > Windows 10 LTSC 2021 中文版镜像 `zh-cn_windows_10_enterprise_ltsc_2021_x64_dvd_033b7312.iso` 的 `wsappx` 进程会长期占用 CPU > > 解决方法是更新系统补丁,或者手动安装 `VCLibs` 库 +#### ARM 注意事项 + +大部分 ARM 机器支持 ISO 安装 Windows 11 24H2,部分机器安装过程会黑屏,不影响安装 + +- ✔️Azure B2pts_v2 +- ✔️阿里云 g8y c8y r8y (有几率重启时卡开机 Logo,强制重启即可) +- ✔️阿里云 g6r c6r +- ✔️甲骨文云 A1.Flex (安装后需要手动加载显卡驱动) +- ✔️AWS T4g +- ✔️Scaleway COPARM1 +- ❌谷歌云 t2a (缺少网卡驱动) + +
+ +甲骨文云加载显卡驱动 + +不需要下载驱动,只需打开设备管理器,找到显卡,选择更新驱动,在列表中选择 `Red Hat VirtIO GPU DOD controller` + +![virtio-gpu-1](https://github.com/user-attachments/assets/bf3a9af6-13d8-4f93-9d6c-d3b2dbddb37d) +![virtio-gpu-2](https://github.com/user-attachments/assets/a9006a78-838f-45bf-a556-2dba193d3c03) + +
+ +## 讨论 + +[![GitHub Issues](https://img.shields.io/badge/github-%23121011.svg?style=for-the-badge&logo=github&logoColor=white)](https://github.com/bin456789/reinstall/issues) +[![Telegram Group](https://img.shields.io/badge/Telegram-2CA5E0?style=for-the-badge&logo=telegram&logoColor=white)](https://t.me/reinstall_os) + ## 如何修改脚本 1. Fork 本仓库 @@ -320,6 +393,8 @@ Windows Server 2022 SERVERDATACENTER ## 感谢 +[![Github Sponsors](https://img.shields.io/badge/sponsor-30363D?style=for-the-badge&logo=GitHub-Sponsors&logoColor=#EA4AAA)](https://github.com/sponsors/bin456789) + 感谢以下商家提供白嫖机器 [![Oracle Cloud](https://github.com/bin456789/reinstall/assets/7548515/8b430ed4-8344-4f96-b4da-c2bda031cc90)](https://www.oracle.com/cloud/)