Jump to content

10.DD CentOS Stream 8、AlmaLinux 8、Rocky Linux 8


Jack

Recommended Posts

----------------------------------------------------------
DD CentOS Stream 8、AlmaLinux 8、Rocky Linux 8
----------------------------------------------------------

如果主機服務商只提供CentOS 8,沒提供CentOS Stream 8 或 9、AlmaLinux 8、Rocky Linux 8

你就需要考慮用DD方式,更換為CentOS Stream 8、AlmaLinux 8、Rocky Linux 8


DD之前,先將你的VPS reinstall 為 CentOS 7


再來SSH安裝這些

yum install -y xz openssl gawk file glibc-common wget screen

yum -y install epel-release

yum -y install tar  zip unzip

yum makecache

yum -y update


sudo reboot


----------------------------------
第1個DD腳本已經失效
----------------------------------

下載DD腳本
wget --no-check-certificate -qO ~/Network-Reinstall-System-Modify.sh 'https://www.cxthhhhh.com/CXT-Library/Network-Reinstall-System-Modify/Network-Reinstall-System-Modify.sh' && chmod a+x ~/Network-Reinstall-System-Modify.sh

chmod +x /root/Network-Reinstall-System-Modify.sh

./Network-Reinstall-System-Modify.sh

第1個DD腳本已經失效,等待新DD腳本
https://www.cxthhhhh.com/network-reinstall-system-modify

--------------------
第2個DD腳本
--------------------

wget --no-check-certificate https://cdn.jsdelivr.net/gh/fcurrk/reinstall@master/NewReinstall.sh

chmod +x /root/NewReinstall.sh

./NewReinstall.sh


進入DD流程

Using DHCP to configure network automatically? [Y/n]:
選擇 n


IP: 172.x.x.x
Gateway: 172.x.x.x
Netmask: 255.255.x.0
Confirm? [Y/n]:
選擇 Y


Please select an OS:
   1) CentOS 7.7 (ext4)
   2) CentOS 7 (cxthhhh)
   3) CentOS 8 (cxthhhh)
  99) Custom install
   0) Exit
Your option: 

選擇 3
將是CentOS Stream 8


敲任意鍵繼續
Press any key to continue...


------------------------------------------------------
如果選擇 99

Custom image URL:
填入鏡像檔的網址
https://xxxxxxxxxxxxxxxxxxxxxxxx

Are you sure start reinstall? [Y/n]: 
選擇 y
------------------------------------------------------

 

等待一下,SSH將斷線

瀏覽器到阿里雲輕量 -> 远程连接 -> 救援 -> 救援连接

下一步 -> 重置救援连接密码 -> 輸入自定義密碼 -> 確定

救援连接密码 -> 輸入你的自定義密碼 -> 連接


可以看到DD過程


Starting up the partitioner
0%
Please wait...

等待DD完成,約30分鐘 ~ 1小時


完成之後,SSH登入

用户名:root
默认密码:cxthhhhh.com

更改root密碼,指令
passwd

輸入你的新密碼與再次確認新密碼

離開
exit

再SSH登入,使用新的root密碼

接下來,可以開始CentOS更新與配置

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...