Last update at :2024-03-14,Edit by888u
Some merchants’ own system OS may have some pre-installed software, such as Alibaba Cloud’s Alibaba Cloud Shield, Tencent Cloud’s Yunjing, etc. Today, this site will share with you a one-click system reinstallation script to install on Linux VPS Pure version of CentOS, Ubuntu, Debian, personal test of successful reinstallation of Tencent Cloud lightweight application host.
1. Instructions for reinstalling system scripts
Project address: https://github.com/hiCasper/Shell/blob/master/AutoReinstall.sh
This one-click system reinstallation script automatically obtains the IP address, gateway, and subnet mask, automatically determines the network environment, and selects mainland China/foreign mirroring. You no longer have to worry about being stuck for a long time. Super lazy one-click, no need for complexity The command solves some problems in the Mengka script that cause installation errors. The CentOS 7 image abandons LVM and returns to ext4 to reduce instability factors.
The pure version of Linux systems that currently support reinstallation include:
- Debian 9/10
- Ubuntu 16.04/18.04
- CentOS 6/7
- Customized DD image
Since mainland China cannot resolve the domain name raw.githubusercontent.com, the following tutorial transfers the script to the download address in mainland China.
The test machine for this article is Tencent Cloud lightweight application host Shanghai data center.
2. Use of script to reinstall the system
Step 1. Connect to Linux VPS remotely
Mac can use the terminal, and Windows can use Xshell: "Xshell Tutorial: Use Xshell to Connect to Linux".
Step 2. Run the one-click script
Copy the following script to start reinstalling the clean version of the system:
wget –no-check-certificate -O AutoReinstall.sh https://files.vpsgo.com/shell/AutoReinstall.sh chmod +x AutoReinstall.sh bashAutoReinstall.shIf your VPS is overseas, you can also use GitHub's script directly:
wget –no-check-certificate -O AutoReinstall.sh https://git.io/AutoReinstall.sh && bash AutoReinstall.shEnter the system that needs to be reinstalled to start reinstalling:
Step 3. Wait for the system reinstallation to be completed
The entire Linux DD system process is quite time-consuming. You need to download the image first. Sometimes the image needs to be downloaded for a long time if the bandwidth of the machine in mainland China is smaller. After downloading the image and starting to reinstall, your remote connection will be disconnected and you will have to wait for a while. After a while, the automatic reinstallation is completed.
Lao Wang reinstalled before going to bed, and can connect directly after getting up. The default passwords of this pure version of the reinstallation script are Pwd@CentOS and Pwd@Linux. Which password will be prompted during reinstallation? After the reinstallation is completed, it is recommended to change the root password. You can use the passwd root command to change it.
This is all the processes of the pure version of Linux system (CentOS):
3. Other system reinstallation scripts
In addition to reinstalling into a pure version of Linux system (CentOS, Ubuntu, Debian), we can also DD Linux into Windows. For specific tutorials, you can check out the previous sharing: "Take bricklayers as an example to introduce how to Linux VPS with one click DD installation Windows system》
Recommended site searches: what is a server, server high defense Hong Kong, website registration and cancellation, US server website, IP address search, registration center, how to query IP address, query whether a domain name is registered, Ministry of Industry and Information Technology website registration system, All-round virtual host,
发表评论