VPS全自动重装系统脚步(DD)
type
Post
status
Published
date
Jun 13, 2023
slug
vps-dd
summary
重装系统一键dd脚本,最新版本支持windows
tags
开发
技巧
分享
category
技术分享
icon
password
最近自己手上的几个vps重装了一下系统,用到了下面的脚本,所以算是自己记录下来,方便后续使用

什么是DD系统

DD系统,就是通过网络重装系统,而不是传统的通过u盘或者是控制面板重装系统。而一键DD系统角本就是,通过自动化脚本执行所有的dd步骤,你只需要执行一行命令即可dd完成,方便快捷

为什么要DD系统,而不是用运营商提供的系统

  1. 运营商提供的系统大部分都带有检测功能,会损失部分的性能
  1. 有些运营商重装系统也有次数限制
  1. 干净的系统总是更受欢迎

具体操作

脚本我用的是MoeClub 的最新版本
dd前的准备:
  • Debian/Ubuntu:
    • apt-get install -y xz-utils openssl gawk file wget screen && screen -S os
      出现异常刷新Mirrors缓存
      apt update -y && apt dist-upgrade -y
  • RedHat/CentOS:
    • yum install -y xz openssl gawk file glibc-common wget screen && screen -S os
      出现异常刷新Mirrors缓存
      yum makecache && yum update -y
       
DD命令:
wget --no-check-certificate -O NewReinstall.sh https://git.io/newbetags && chmod a+x NewReinstall.sh && bash NewReinstall.sh
 
notion image
 
建议自定义密码
41合1系统密码:
1、CentOS 7.7 (已关闭防火墙及SELinux,默认密码Pwd@CentOS) 2、CentOS 7 (默认密码cxthhhhh.com) 3、CentOS 7 (支持ARM64、UEFI,默认密码cxthhhhh.com) 4、CentOS 8 (默认密码cxthhhhh.com) 5、Rocky 8 (默认密码cxthhhhh.com) 6、Rocky 8 (支持UEFI,默认密码cxthhhhh.com) 7、Rocky 8 (支持ARM64、UEFI,默认密码cxthhhhh.com) 8、CentOS 9 (默认密码cxthhhhh.com) 9、CentOS 6 (官方源原版,默认密码Minijer.com) 10、Debian 11 (官方源原版,默认密码Minijer.com) 11、Debian 10 (官方源原版,默认密码Minijer.com) 12、Debian 9 (官方源原版,默认密码Minijer.com) 13、Debian 8 (官方源原版,默认密码Minijer.com) 14、Ubuntu 20.04 (官方源原版,默认密码Minijer.com) 15、Ubuntu 18.04 (官方源原版,默认密码Minijer.com) 16、Ubuntu 16.04 (官方源原版,默认密码Minijer.com) 17、Windows Server 2022 (默认密码cxthhhhh.com) 18、Windows Server 2022 (支持UEFI,默认密码cxthhhhh.com) 19、Windows Server 2019 (默认密码cxthhhhh.com) 20、Windows Server 2016 (默认密码cxthhhhh.com) 21、Windows Server 2012 (默认密码cxthhhhh.com) 22、Windows Server 2008 (默认密码cxthhhhh.com) 23、Windows Server 2003 (默认密码cxthhhhh.com) 24、Windows 10 LTSC (默认密码Teddysun.com) 25、Windows 10 LTSC (支持UEFI,默认密码Teddysun.com) 26、Windows 7 x86 Lite (默认密码nat.ee) 27、Windows 7 x86 Lite (阿里云专用,默认密码nat.ee) 28、Windows 7 x64 Lite (默认密码nat.ee) 29、Windows 7 x64 Lite (支持UEFI,默认密码nat.ee) 30、Windows 10 LTSC Lite (默认密码nat.ee) 31、Windows 10 LTSC Lite (阿里云专用,默认密码nat.ee) 32、Windows 10 LTSC Lite (支持UEFI,默认密码nat.ee) 33、Windows Server 2003 Lite (C盘默认10G,默认密码WinSrv2003x86-Chinese) 34、Windows Server 2008 Lite (默认密码nat.ee) 35、Windows Server 2008 Lite (支持UEFI,默认密码nat.ee) 36、Windows Server 2012 Lite (默认密码nat.ee) 37、Windows Server 2012 Lite (支持UEFI,默认密码nat.ee) 38、Windows Server 2016 Lite (默认密码nat.ee) 39、Windows Server 2016 Lite (支持UEFI,默认密码nat.ee) 40、Windows Server 2022 Lite (默认密码nat.ee) 41、Windows Server 2022 Lite (支持UEFI,默认密码nat.ee) 99、自定义镜像
 

注意事项

1、系统名称后带Lite的均为精简版,没有的是完整版 2、[X64-Legacy-cxthhhhh]代表系统为AMD64位,支持传统BIOS启动,cxthhhhh定制的系统镜像 3、ARM64代表系统支持ARM64位 4、UEFI代表系统支持最新的UEFI启动,如甲骨文全部都是这种 5、aliyun代表阿里云专用系统镜像 6、cxthhhhh、teddysun、nat.ee均为三位制作系统镜像的大佬代称 7、系统密码会在选择相应序号后提示,请注意记录 8、经测试在谷歌云原版系统基础上DD会出现自动获取的子网掩码为255.255.255.255,如出现这种情况需要手工输入改正为正确的如255.255.255.0,否则会安装完成主机可能会离线 9、阿里云因使用了特殊的驱动,DD安装Windows系统选择阿里云专用版 10、Oracle Cloud(甲骨文云)可选择支持UEFI的镜像,注意基础系统最好选择Ubuntu,如原系统是CentOS可能无法成功,注意如是ARM机器注意选择同时支持ARM64和UEFI的镜像 11、9-16项安装原版系统,可自定义密码,密码要求8-16位,以英文字母或数字开头,可以是大小写英文字母、数字及7个特殊字符.!$@#&%的任意组合
 

© Fat uncle 2024