banner
xingli

xingli

猫娘爱好者

Reinstalling Linux

One-click Reinstallation of Linux with Support for Debian 12 - The Most Comprehensive and User-friendly Script to Date#

Project address, welcome to star, GitHub homepage or private message feedback:

Supports reinstallation from mainstream major companies such as Oracle, as well as other vendors' Red Hat systems (including Oracle Linux CentOS Almalinux Rocky) to Debian. It also supports reinstalling Ubuntu/Debian back to Red Hat systems, and there is no problem with permanent mutual installation between the two! It completely solves the problem of the original grub boot of Mengka not working, and can only install CentOS 6.9 (my version no longer supports CentOS 6.9), as well as the handling of IPv4 and IPv6, and other details are also handled very well.

Update briefing:

  • Supports Debian 12;
  • Adapts to Python 3 and vim gtk3 components for Debian 12;
  • Supports modifying the vim configuration of Debian 12 to enable direct text copying from the terminal;
  • Wrote a component to validate the effectiveness of IPv6;
  • Fixed the problem of not being able to read the grub configuration in the official template of Oracle Cloud Rockylinux 9;
  • In addition to the system installation files downloaded from specified sources, the customized files of Debian and the firewall configuration files of the Red Hat series (to support modification of ports other than 22) that need to be downloaded from this project, because machines in China are often blocked from connecting to GitHub and other generic domain names, so it can automatically switch to Gitee (gitee.com) to alleviate the problem of automatic response file configuration failure caused by connection deadlock;
  • Before installation, it will automatically attempt to enable dhcp IPv4 and IPv6 to avoid network configuration loss caused by not being able to obtain the corresponding IP address after the first boot;
  • If you do not specify which system to install, Debian 12 will be installed by default, and the specified AMD64 or ARM64 architecture will be cleared. The script will automatically determine based on the current system.

Remember to update the source before downloading and install wget:

wget --no-check-certificate -qO InstallNET.sh 'https://raw.githubusercontent.com/leitbogioro/Tools/master/Linux_reinstall/InstallNET.sh' && chmod a+x InstallNET.sh

Machines in China can now download from Gitee:

wget --no-check-certificate -qO InstallNET.sh 'https://gitee.com/mb9e8j2/Tools/raw/master/Linux_reinstall/InstallNET.sh' && chmod a+x InstallNET.sh

Quick start:
No need to enter the architecture to use (-v), the script will automatically detect and convert between Debian and Red Hat series!

Debian 12
bash InstallNET.sh -debian

CentOS 9 stream
bash InstallNET.sh -centos

AlmaLinux 9
bash InstallNET.sh -almalinux

RockyLinux 9
bash InstallNET.sh -rockylinux

Fedora 37
bash InstallNET.sh -fedora

Ubuntu 20.04
bash InstallNET.sh -ubuntu

For Ubuntu, netboot files are no longer provided starting from version 22.04, and support for preseed automatic response files and the d-i (debian install) command has been abolished. The official Cloud init installation method requires the CPU to support virtualization, which is not met by most VPS, so support is no longer provided.

Specify the source, enter the system and corresponding version, and add the parameter "-mirror", for example:

bash InstallNET.sh -debian 12 -mirror "http://ftp.riken.jp/Linux/debian/debian/"

Default password, you can add -pwd "password content" to modify it. It supports all supported systems. Do not set it too long or too complex. If you are using the default password, please change it immediately after installation:
LeitboGi0ro
Default port, you can add -port port number to modify it. It supports all supported systems. Range: "1-65535":
22
Example: -port 12345

Note: For vendors like Hetzner, IPv4 is dynamically configured and IPv6 is statically configured. If both dual-stack configurations use static configuration, IPv4 will be unable to connect to the network, resulting in installation failure. Please backup the IPv6 configuration before use. When installing, add the parameter --network "dhcp" to force the use of dhcp to configure the IPv4 network, and then manually configure the IPv6 network after re-entering the system.
bash InstallNET.sh -debian 12 --network "dhcp"

Debian worldwide source list:

CentOS 9-stream and later worldwide source list:

AlmaLinux worldwide source list:

RockyLinux worldwide source list:

Fedora worldwide source list:

Ubuntu worldwide source list:

Article source:
One-click Reinstallation of Linux with Support for Debian 12 - Comprehensive Discussion of US VPS - Global Hosting Forum - Powered by Discuz! (hostloc.com)

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.