一个傻瓜式一键dd安装windows系统脚本!!!
说明
无限制全自动dd安装windows
突破没有VNC,没有救援模式,内存比dd包小的限制
使用Debian Live CD中的busybox做中间媒介,经过复杂的处理使本机的网络参数传进Windows操作系统中
即使没有DHCP能够让Windows获取网络参数,也能让Windows操作系统在开机的第一时间能够连通网络
特别注意:OpenVZ构架不适用
安装运行库
1 2 3 4 5
| apt-get install -y xz-utils openssl gawk file
yum install -y xz openssl gawk file
|
如果出现错误,运行以下代码
1 2 3 4 5
| apt-get update
yum update
|
一键脚本
示例脚本,补全DD包直连地址后运行即可;
1
| wget --no-check-certificate -qO InstallNET.sh 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh' && bash InstallNET.sh -dd '[Windows dd包直连地址]'
|
精简版DD包
选择好版本,输入以下一键脚本即可
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
| 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://oss.sunpma.com/Windows/Win_Server2008R2_sp1_64_Administrator_nat.ee.gz'
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'
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'
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'
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'
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'
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_Vicer.gz'
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'
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包
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| 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'
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'
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'
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'
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'
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使用 (注意:不适用于新出的ARM框架机型)
1 2 3 4 5 6 7 8 9 10 11 12 13 14
| 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'
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'
wget --no-check-certificate -qO InstallNET.sh 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh' && bash InstallNET.sh -dd 'https://oss.sunpma.com/Windows/Oracle_Win10_2016LTSB_64_Administrator_nat.ee.gz'
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'
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'
|
文章内容和代码来源于DD Windows 一键dd脚本,包含GCP/谷歌云/Oracle/甲骨文,如有侵权请联系站长立即删除。
常见问题
运行脚本前需要安装哪些依赖?
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。
OpenVZ 架构能用这个脚本吗?
不能。正文明确注明 OpenVZ 构架不适用。脚本依赖 Debian Live CD 中的 busybox 做中间媒介,这类处理在 OpenVZ 上无法完成。
安装时没有 VNC 或救援模式怎么办?
不需要 VNC 和救援模式,这个脚本就是无限制全自动 dd 安装。它把本机网络参数传进 Windows,即使没有 DHCP,Windows 开机第一时间也能连通网络。
内存比 dd 包还小也能装吗?
可以。正文说明该方案突破了内存比 dd 包小的限制。安装过程借助 Debian Live CD 中的 busybox 作为中间媒介完成。
Oracle 甲骨文机器该用哪个 DD 包?
要用正文“Oracle甲骨文”一节列出的包,该节注明仅适用于 Oracle 甲骨文 DD Win。注意不适用于新出的 ARM 框架机型。
精简版和完整版 DD 包有什么区别?
精简版按版本分 Server 2003 到 Windows10 2019LTSC 等多条命令,完整版覆盖 Server 2012 R2、2016、2019 Datacenter 及 Win7、Win8.1、Win10 LTSC。两者都通过 bash InstallNET.sh -dd '包地址' 运行,选好版本替换直连地址即可。
相关阅读