关注分享主机优惠活动
国内外VPS云服务器

DD Windows一键脚本整理:亲测支持GCP谷歌云及Oracle甲骨文平台

DD Windows一键脚本整理:亲测支持GCP谷歌云及Oracle甲骨文平台-主机频道

前言

玩VPS的老鸟们肯定都遇到过这种糟心事:买了个便宜的Linux小鸡,想装个Windows挂点东西,结果商家压根不提供Windows模板,甚至连VNC、救援模式这些“后门”都给你堵死了。内存小一点的,想用常规DD包都不行。怎么办?今天,我就给大家分享一个我用了很久的终极解决方案——Linux VPS一键网络重装/DD Windows系统脚本。

  • 这脚本堪称神器,能全自动给你装上Windows,基本没啥限制。
  • 不管你有没有VNC,有没有救援模式,哪怕你VPS的内存比Windows DD包本身还小,它都能搞定。
  • 它的原理相当巧妙,利用Debian Live CD作为跳板,能把本机的网络配置无缝传给新装的Windows系统。
  • 这意味着,就算你的VPS提供商网络环境特殊(比如没有DHCP),装完系统后也能立刻联网,省去了手动配IP的麻烦。

划个重点:这个方法只适用于KVM或XEN这类完全虚拟化的架构,OpenVZ(OVZ)的就别想了,老老实实玩Linux吧。

第一步:安装依赖

在咱们开始“施法”之前,得先确保系统里有几个必要的工具。根据你的Linux发行版,复制下面对应的命令运行就行。

#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

第二步:执行一键脚本

依赖装好后,就可以请出我们今天的主角了。下面是脚本的基本格式,你只需要把最后那个DD包地址换成你想要的Windows版本就行。

wget --no-check-certificate -qO InstallNET.sh 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh' && bash InstallNET.sh -dd '[这里换成你的Windows dd包直连地址]'

Windows DD镜像包(精简版)

为了方便大家,我整理了一批大佬们做好的DD包。这些都是精简版的,去掉了一些不常用的组件,占用资源更少,特别适合小内存的VPS。注意看每个版本后面的默认用户名和密码!

# 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'

# 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'

# 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'

# 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'

# Windows 7 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'

# Windows 7 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'

# Windows 8.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'

# Windows 8.1 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/Win8.1_64_Administrator_Vicer.gz'

# Windows 10 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'

# Windows 10 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'

Windows 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'

# 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'

# 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'

# Windows 7 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'

# Windows 8.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'

# Windows 10 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甲骨文

用甲骨文免费VPS的朋友们看这里!因为Oracle的网络配置比较特殊,需要用专门的DD包。下面这些是为甲骨文AMD/Intel机型优化的包。(注意:不适用于新出的ARM架构机型)

# Windows 7 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'

# Windows 8.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'

# Windows 10 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/Oracle_Win10_2016LTSB_64_Administrator_nat.ee.gz'

# 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'

# 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

OVH也是个“个性鲜明”的商家,网络配置需要特别对待。下面这个包是专为OVH准备的。
说实话,我最近没在OVH上亲自试过,这里只是提供一下DD包的直链。如果你要用,可能需要配合下面的“指定网络参数安装”方法。

# Windows 7 64位 精简版 (OVH专用) [账户:administrator , 密码:www.80host.com]
https://oss.sunpma.com/Windows/win/OVH_Win7_64_administrator_www.80host.com.gz

进阶玩法:手动指定网络参数安装

像GCP(谷歌云)、Azure(微软云)、OVH这些大厂,它们的网络环境通常比较复杂,不会自动分配IP地址。这时候,我们就得在DD的时候手动告诉系统它的IP、子网掩码和网关是什么。命令格式如下:

# 记得把下面所有的X.X.X.X换成你自己的网络参数.
# --ip-addr : 你的VPS内网IP地址
# --ip-mask : 你的子网掩码
# --ip-gate : 你的网关地址
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包的直链地址'

举个例子,比如我在用GCP谷歌云的机器:
只需要把--ip-addr后面的X.X.X.X换成你在GCP后台看到的内网IP地址就行。这个方法我自己在GCP的DebianUbuntu上都测试成功了,CentOS应该也没问题。
DD成功后,默认账户是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的问题。手动去网络设置里改下DNS就好了,用谷歌的公共DNS就行:

8.8.8.8
8.8.4.4

备用链接

如果上面的直链下载速度不给力,作者还贴心地准备了百度网盘备份:
链接:https://pan.baidu.com/s/1afwD0Is8MrvSiL8wkjoXhA
提取码:qynd

这个脚本和DD包真的帮了我大忙,必须得给原作者点个赞!原文来自:https://sunpma.com/137.html

 

未经允许不得转载:主机频道 » DD Windows一键脚本整理:亲测支持GCP谷歌云及Oracle甲骨文平台

相关推荐

评论 抢沙发

评论前必须登录!