收藏文章 楼主

linux下 DD Windows 一键脚本支持自定义ip,包含GCP,谷歌云,Oracle腾讯云,,甲骨文等主流平台

版块:原创教程   类型:普通   作者:小站长之家   查看:2409   回复:0   获赞:2   时间:2021-05-17 19:07:24

说明

  • 无限制全自动dd安装Windows
  • 突破没有VNC,没有救援模式,内存比dd包小的限制
  • 使用Debian Live CD中的busybox做中间媒介,经过复杂的处理使本机的网络参数传进Windows操作系统中
  • 即使没有DHCP能够让Windows获取网络参数,也能让Windows操作系统在开机的第一时间能够连通网络

特别注意:OpenVZ构架不适用

安装运行库

#Debian/Ubuntu:
apt-get install -y xz-utils openssl gawk file

#RedHat/CentOS:
yum install -y xz openssl gawk file

如果出现错误,运行以下代码

#Debian/Ubuntu:
apt-get update

#RedHat/CentOS:
yum update

一键脚本

通用脚本

wget -qO DebianNET.sh qiu.sh/dd && bash DebianNET.sh -dd "DD download URL"

示例脚本,补全DD包直连地址后运行即可;

腾讯云轻量专用
bash <(wget --no-check-certificate -qO- 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh') -dd "dd包" --mirror 'http://mirrors.ustc.edu.cn/debian/'
wget -qO DebianNET.sh qiu.sh/dd && bash DebianNET.sh -dd "DD download URL"

精简版DD包

# DD Windows Server 2008 R2 64位 精简版 [账户Administrator密码nat.ee]

wget --no-check-certificate -qO InstallNET.sh 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh' && bash InstallNET.sh -dd 'https://oss.sunpma.com/Windows/Win_Server2008R2_sp1_64_Administrator_nat.ee.gz'


# DD Windows Server 2012 R2 64位 精简版 [账户Administrator密码nat.ee]

wget --no-check-certificate -qO InstallNET.sh 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh' && bash InstallNET.sh -dd 'https://oss.sunpma.com/Windows/Win_Server2012R2_64_Administrator_nat.ee.gz'


# DD Windows Server 2016 64位 精简版 [账户Administrator密码nat.ee]

wget --no-check-certificate -qO InstallNET.sh 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh' && bash InstallNET.sh -dd 'https://oss.sunpma.com/Windows/Win_Server2016_64_Administrator_nat.ee.gz'


# DD Windows Server 2019 64位 精简版 [账户Administrator密码WinSrv2019dc-Chinese]

wget --no-check-certificate -qO InstallNET.sh 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh' && bash InstallNET.sh -dd 'https://oss.sunpma.com/Windows/Win_Server2019_64_Administrator_WinSrv2019dc-Chinese.gz'


# DD Windows Server 2022 64位 精简版 [账户Administrator密码nat.ee]

wget --no-check-certificate -qO InstallNET.sh 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh' && bash InstallNET.sh -dd 'https://oss.sunpma.com/Windows/Win_Server2022_64_Administrator_nat.ee.gz'


# DD Windows7 32位 精简版 [账户Administrator密码nat.ee]

wget --no-check-certificate -qO InstallNET.sh 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh' && bash InstallNET.sh -dd 'https://oss.sunpma.com/Windows/Win7_86_Administrator_nat.ee.gz'


# DD Windows7 sp1 64位 企业精简版 [账户Administrator密码nat.ee]

wget --no-check-certificate -qO InstallNET.sh 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh' && bash InstallNET.sh -dd 'https://oss.sunpma.com/Windows/Win7_sp1_64_Administrator_nat.ee.gz'


# DD Windows8.1 64位 专业精简版 [账户Administrator密码nat.ee]

wget --no-check-certificate -qO InstallNET.sh 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh' && bash InstallNET.sh -dd 'https://oss.sunpma.com/Windows/Win8.1_64_Administrator_nat.ee.gz'


# DD Windows10 2016LTSB 64位 企业深度精简版 [账户Administrator密码nat.ee]

wget --no-check-certificate -qO InstallNET.sh 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh' && bash InstallNET.sh -dd 'https://oss.sunpma.com/Windows/Win10_2016LTSB_64_Administrator_nat.ee.gz'


# DD Windows10 2019LTSC 64位 企业适量精简版 [账户Administrator密码Vicer]

wget --no-check-certificate -qO InstallNET.sh 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh' && bash InstallNET.sh -dd 'https://oss.sunpma.com/Windows/Win10_2019LTSC_64_Administrator_Vicer.gz'

完整版DD包

# DD Windows Server 2012 R2 Datacenter 64位 [账户administrator密码Password147]

wget --no-check-certificate -qO InstallNET.sh 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh' && bash InstallNET.sh -dd 'https://oss.sunpma.com/Windows/Whole/cn_windows2012r2_administrator_Password147.gz'


# DD Windows Server 2016 Datacenter 64位 [账户administrator密码Password147]

wget --no-check-certificate -qO InstallNET.sh 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh' && bash InstallNET.sh -dd 'https://oss.sunpma.com/Windows/Whole/cn_windows2016_administrator_Password147.gz'


# DD Windows Server 2019 Datacenter 64位 [账户administrator密码Password147]

wget --no-check-certificate -qO InstallNET.sh 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh' && bash InstallNET.sh -dd 'https://oss.sunpma.com/Windows/Whole/cn_windows2019_administrator_Password147.gz'


# DD Windows Server 2022 Datacenter 64位 [账户administrator密码Teddysun.com]

wget --no-check-certificate -qO InstallNET.sh 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh' && bash InstallNET.sh -dd 'https://oss.sunpma.com/Windows/Whole/Win_Server2022_20344.1_x64_administrator_Teddysun.com.gz'


# DD Windows10 Pro 20h1 19043.928 64位 [账户administrator密码Teddysun.com]

wget --no-check-certificate -qO InstallNET.sh 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh' && bash InstallNET.sh -dd 'https://oss.sunpma.com/Windows/Whole/Win10_Pro_20h1_19043.928_x64_administrator_Teddysun.com.gz'


# DD Windows10 Pro 20h2 19042.630 64位 [账户administrator密码Teddysun.com]

wget --no-check-certificate -qO InstallNET.sh 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh' && bash InstallNET.sh -dd 'https://oss.sunpma.com/Windows/Whole/Win10_Pro_20h2_19042.630_x64_administrator_Teddysun.com.gz'


# DD Windows7 sp1 64位 [账户Administrator密码nat.ee]

wget --no-check-certificate -qO InstallNET.sh 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh' && bash InstallNET.sh -dd 'https://oss.sunpma.com/Windows/Whole/Win7_sp1_64_Administrator_nat.ee.gz'


# DD Windows8.1 64位 [账户Administrator密码nat.ee]

wget --no-check-certificate -qO InstallNET.sh 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh' && bash InstallNET.sh -dd 'https://oss.sunpma.com/Windows/Whole/Win8.1_64_Administrator_nat.ee.gz'


# DD Windows10 LTSC 64位 [账户Administrator密码nat.ee]

wget --no-check-certificate -qO InstallNET.sh 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh' && bash InstallNET.sh -dd 'https://oss.sunpma.com/Windows/Whole/Win10_LTSC_64_Administrator_nat.ee.gz'

选择好版本,输入以下一键脚本即可

# DD Windows Server 2003 32位 精简版 [账户Administrator密码cxthhhhh.com]
wget --no-check-certificate -qO InstallNET.sh 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh' && bash InstallNET.sh -dd 'https://oss.sunpma.com/Windows/Win_Server2003_86_Administrator_cxthhhhh.com.gz'
wget --no-check-certificate -qO InstallNET.sh 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh' && bash InstallNET.sh -dd 'https://odc.cxthhhhh.com/SyStem/Windows_DD_Disks/Disk_Windows_Server_2003_DataCenter_CN_v7.1.vhd.gz'
# DD Windows Server 2008 R2 64位 精简版 [账户Administrator密码nat.ee]
wget --no-check-certificate -qO InstallNET.sh 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh' && bash InstallNET.sh -dd 'https://oss.sunpma.com/Windows/Win_Server2008R2_sp1_64_Administrator_nat.ee.gz'

# DD Windows Server 2012 R2 64位 精简版 [账户Administrator密码WinSrv2012r2x64-Chinese]
wget --no-check-certificate -qO InstallNET.sh 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh' && bash InstallNET.sh -dd 'https://oss.sunpma.com/Windows/Win_Server2012R2_64_Administrator_WinSrv2012r2x64-Chinese.gz'

# DD Windows Server 2019 Datacenter 64位 精简版 [账户Administrator密码WinSrv2019dc-Chinese]
wget --no-check-certificate -qO InstallNET.sh 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh' && bash InstallNET.sh -dd 'https://oss.sunpma.com/Windows/Win_Server2019_64_Administrator_WinSrv2019dc-Chinese.gz'

# DD Windows7 32位 精简版 [账户Administrator密码Windows7x86-Chinese]
wget --no-check-certificate -qO InstallNET.sh 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh' && bash InstallNET.sh -dd 'https://oss.sunpma.com/Windows/Win7_86_Administrator_Windows7x86-Chinese.gz'

# DD Windows7 sp1 64位 企业精简版 [账户Administrator密码nat.ee]
wget --no-check-certificate -qO InstallNET.sh 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh' && bash InstallNET.sh -dd 'https://oss.sunpma.com/Windows/Win7_sp1_64_Administrator_nat.ee.gz'

#DD Windows8.1 64位 专业精简版 [账户Administrator密码nat.ee]
wget --no-check-certificate -qO InstallNET.sh 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh' && bash InstallNET.sh -dd 'https://oss.sunpma.com/Windows/Win8.1_64_Administrator_nat.ee.gz'

# DD Windows10 2019LTSC 64位 企业精简版 [账户Administrator密码nat.ee]
wget --no-check-certificate -qO InstallNET.sh 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh' && bash InstallNET.sh -dd 'https://oss.sunpma.com/Windows/Win10_2019LTSC_64_Administrator_nat.ee.gz'

完整版DD包

# DD Windows Server 2012 R2 Datacenter 64位 完整版 [账户administrator密码Password147]
wget --no-check-certificate -qO InstallNET.sh 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh' && bash InstallNET.sh -dd 'https://oss.sunpma.com/Windows/Whole/cn_windows2012r2_administrator_Password147.gz'

# DD Windows Server 2016 Datacenter 64位 完整版 [账户administrator密码Password147]
wget --no-check-certificate -qO InstallNET.sh 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh' && bash InstallNET.sh -dd 'https://oss.sunpma.com/Windows/Whole/cn_windows2016_administrator_Password147.gz'

# DD Windows Server 2019 Datacenter 64位 完整版 [账户administrator密码Password147]
wget --no-check-certificate -qO InstallNET.sh 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh' && bash InstallNET.sh -dd 'https://oss.sunpma.com/Windows/Whole/cn_windows2019_administrator_Password147.gz'

# DD Windows7 sp1 64位 [账户Administrator密码nat.ee]
wget --no-check-certificate -qO InstallNET.sh 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh' && bash InstallNET.sh -dd 'https://oss.sunpma.com/Windows/Whole/Win7_sp1_64_Administrator_nat.ee.gz'

# DD Windows8.1 64位 [账户Administrator密码nat.ee]
wget --no-check-certificate -qO InstallNET.sh 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh' && bash InstallNET.sh -dd 'https://oss.sunpma.com/Windows/Whole/Win8.1_64_Administrator_nat.ee.gz'

# DD Windows10 LTSC 64位 [账户Administrator密码nat.ee]
wget --no-check-certificate -qO InstallNET.sh 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh' && bash InstallNET.sh -dd 'https://oss.sunpma.com/Windows/Whole/Win10_LTSC_64_Administrator_nat.ee.gz'

Oracle甲骨文

此DD包仅适用于Oracle甲骨文DD Win使用

# DD Windows7 sp1 64位 企业精简版 [账户Administrator密码nat.ee]
wget --no-check-certificate -qO InstallNET.sh 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh' && bash InstallNET.sh -dd 'https://oss.sunpma.com/Windows/Oracle_Win7_sp1_64_Administrator_nat.ee.gz'

# DD Windows8.1 64位 企业精简版 [账户Administrator密码nat.ee]
wget --no-check-certificate -qO InstallNET.sh 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh' && bash InstallNET.sh -dd 'https://oss.sunpma.com/Windows/Oracle_Win8.1_64_Administrator_nat.ee.gz'

# DD Windows Server 2008 R2 64位 精简版 [账户Administrator密码nat.ee]
wget --no-check-certificate -qO InstallNET.sh 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh' && bash InstallNET.sh -dd 'https://oss.sunpma.com/Windows/Oracle_Win_Server2008R2_sp1_64_Administrator_nat.ee.gz'

# DD Windows Server 2012 R2 64位 精简版 [账户Administrator密码nat.ee]
wget --no-check-certificate -qO InstallNET.sh 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh' && bash InstallNET.sh -dd 'https://oss.sunpma.com/Windows/Oracle_Win_Server2012R2_64_Administrator_nat.ee.gz'

OVH

此DD包仅适用于OVH云服务器DD Win使用
说明:OVH需要使用网络参数进行安装,需要的可以参考下面的安装方法,博主并未进行测试,这里仅提供直链包;

# DD Windows7 64位 精简版 [账户administrator密码www.80host.com]
https://oss.sunpma.com/Windows/win/OVH_Win7_64_administrator_www.80host.com.gz

网络参数安装

比如GCP谷歌云Azure微软云OVH云服务器等需要指定网络参数安装的方式,示例为GCP谷歌云

# 将X.X.X.X替换为自己的网络参数.
# --ip-addr :IP Address/内网IP地址
# --ip-mask :Netmask   /子网掩码
# --ip-gate :Gateway   /网关
wget --no-check-certificate -qO InstallNET.sh 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh' && bash InstallNET.sh --ip-addr X.X.X.X --ip-mask X.X.X.X --ip-gate X.X.X.X -dd 'DD包 直链地址'

例:
替换--ip-addr后面的X.X.X.X为你自己的内网IP即可;
在GCP谷歌云 Debian / Ubuntu 测试成功, CentOS 未测试;
账户:Administrator 密码:nat.ee
GCP谷歌云 香港

wget --no-check-certificate -qO InstallNET.sh 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh' && bash InstallNET.sh --ip-addr X.X.X.X --ip-mask 255.255.255.0 --ip-gate 10.170.0.1 -dd 'https://oss.sunpma.com/Windows/Win7_sp1_64_Administrator_nat.ee.gz'

GCP谷歌云-台湾

wget --no-check-certificate -qO InstallNET.sh 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh' && bash InstallNET.sh --ip-addr X.X.X.X --ip-mask 255.255.255.0 --ip-gate 10.140.0.1 -dd 'https://oss.sunpma.com/Windows/Win7_sp1_64_Administrator_nat.ee.gz'

连接上后如果遇到无法打开网页的情况,修改DNS即可

8.8.8.8
8.8.4.4

关于激活

可以使用本博客的KMS激活

如果不能使用KMS激活,可以试试下面的Key(不一定都能成功激活)

# Windows 7 企业版
KMS密钥:33PXH-7Y6KF-2VJC9-XBBR8-HVTHH / RHTBY-VWY6D-QJRJ9-JGQ3X-Q2289 / H8PDJ-H4NKW-3GKH7-YHKJ7-4C2JR

# Windows 8.1 专业版
KMS密钥:GCRJD-8NW9H-F2CDX-CCM8D-9D6T9

# Windows 10 LTSC 2019 企业版
KMS密钥:M7XTQ-FN8P6-TTKYV-9D4CC-J462D

# Windows Server 2019 数据中心版
KMS密钥:WMDGN-G9PQG-XVVXX-R3X43-63DFG

右键以管理员身份运行CMD(命令提示符),依次执行下面的命令;

slmgr.vbs -upk
slmgr.vbs -ipk KMS密钥
slmgr.vbs -ato
slmgr.vbs -dlv

Windows 7 旗舰版可能无法使用KMS进行激活,可以使用以下工具永久激活
激活工具:https://sunpma.lanzous.com/i0ohrjljzwb

Windows服务器开启Ping功能,打开系统运行服务 Win+R 输入命令

## 开启Ping ##
netsh firewall set icmpsetting 8
## 关闭Ping ##
netsh firewall set icmpsetting 8 disable

备用链接

百度网盘
链接:https://pan.baidu.com/s/1afwD0Is8MrvSiL8wkjoXhA
提取码:qynd

方法.二

1、下载脚本(通过root用户执行)

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

2、安装系统(任选其一)

【图形化UI界面选择】(推荐)

bash ~/Network-Reinstall-System-Modify.sh -UI_Options

【合并执行】一键启动图形化UI界面,选择安装系统(包含下载+执行):

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 && bash ~/Network-Reinstall-System-Modify.sh -UI_Options

【安装 裸机系统部署平台】(推荐)

bash ~/Network-Reinstall-System-Modify.sh -CXT_Bare-metal_System_Deployment_Platform

什么是裸机系统部署平台?查看【裸机系统部署平台 - 专题页

【安装 Linux】(推荐)

bash ~/Network-Reinstall-System-Modify.sh -CentOS_8
bash ~/Network-Reinstall-System-Modify.sh -Debian_10
bash ~/Network-Reinstall-System-Modify.sh -Ubuntu_20.04

【安装 Windows】(推荐)

bash ~/Network-Reinstall-System-Modify.sh -Windows_Server_2019

【安装 指定自定义 DD镜像】(推荐)

bash ~/Network-Reinstall-System-Modify.sh  -DD "%URL%"

【安装 更多系统 说明】

此页面为【一键网络重装系统 - 魔改版】发布页,仅列出了常用Linux和Windows的最新稳定版系统安装命令(截至2020年9月)。
要安装其他版本,请通过【图形化UI界面选择】/【裸机系统部署平台】/【手动输入版本】/【查看更多选项】等方式安装。

对于普通用户,直接一键脚本安装最方便,甚至可以直接使用(图形化UI界面选择)选项,一键安装常用系统。
对于高端用户,建议直接选择通过(裸机系统部署平台)安装任意系统。可定制化性高,但门槛相对高很多,便捷性较低。

本项目仅建议您安装最新的稳定版系统。新版系统具有官方长期的技术支持,而旧版已经失去官方支持,亦或者即将失去维护。
使用旧版操作系统,您的电脑和服务器将面临比新版操作系统更多的安全隐患,甚至造成巨大的损失。

恭喜,你已经完成了系统重装

常规说明

1、当您执行完上面的2行命令,你的服务器将开始网络重装纯净系统。在完成安装前,您将无法进行连接管理。因硬件配置和网络环境不同,安装全程需要15-60分钟,请耐心等待。安装完成即可通过IP:22(Linux SSH)/IP:3389(Windows RDP)进行连接。

2、为了保证更高的兼容性。推荐重装纯净系统前,您当前的系统版本为:CentOS 7 / Debian 9 / Ubuntu 18.04 。(在您的服务商未提供以上操作系统时,您可以考虑使用其他系统)

3、原系统推荐优先级:C7 > U18 > D9 > U16 > D8 > 商家提供的其它系统

默认账户

通常,使用自带镜像,或者您的镜像作者未明确说明系统的用户名和密码的情况下。

对于Microsoft Windows。
默认的用户名是:Administrator
默认的密码是:cxthhhhh.com

对于Linux(CentOS / Debian / Ubuntu),裸机系统部署平台等。
默认的用户名是:root
默认的密码是:cxthhhhh.com

和你一起分享更多好东西! 
回复列表
默认   热门   正序   倒序

回复:linux下 DD Windows 一键脚本支持自定义ip,包含GCP,谷歌云,Oracle腾讯云,,甲骨文等主流平台

Powered by HadSky 8.1.5

©2015 - 2024 小站长之家

小站长之家

您的IP:3.145.77.114,2024-04-19 20:27:06,Processed in 0.29722 second(s).

免费资源你我共享,共创美好明天!问题投诉邮箱 idaspzz#qq.com
头像

用户名:

粉丝数:

签名:

资料 关注 好友 消息