谷歌云/阿里云/alibabacloud Linux系统安装Windows,免除额外付费的烦恼

谷歌云的Windows系统需要额外的付费,这样非常的不好,今天的方法是先开通Linux系统,然后再安装Windows系统,这样用Linux的钱使用Windows

==================================

2024.4.25更新新的命令,支持Debian, Ubuntu, CentOS 。当然,以前的命令也是可以正常使用的

阿里云/alibabacloud

wget -qO InstallNET.sh https://github.com/teddysun/across/raw/master/InstallNET.sh && bash InstallNET.sh -dd "DD download URL"

或者下面的命令

wget -qO InstallNET.sh https://www.binbinbiji.com/tools/teddysun/629.html/InstallNET.sh && bash InstallNET.sh -dd "DD download URL"

谷歌云

wget --no-check-certificate -qO InstallNET.sh 'https://www.binbinbiji.com/tools/teddysun/629.html/InstallNET.sh' && bash InstallNET.sh --ip-addr 10.140.0.19 --ip-mask 255.255.240.0 --ip-gate 10.140.0.1 -dd 'DD download URL'

10.140.0.19,255.255.240.0,10.140.0.1是通过计算得出,具体方法看文章后面

DD download URL是DD镜像地址,新支持xz后缀的压缩文件

==================================

注意:

1、Linux系统选择Debian 10,其他版本没有做测试

2、其他的服务器厂商没有做测试,可以自行尝试,原理不变。

下面是安装方法

1、安装依赖

SSH链接上谷歌云中你的实例

获得权限

sudo -i

2、更新系统

Debian/Ubuntu:

apt-get update

3、安装依赖

Debian/Ubuntu:

apt-get install -y xz-utils openssl gawk file
apt-get install wget

4、DD一键安装脚本

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包 直链地址'

其中X.X.X.X是经过计算后得出的,文章最后面有网络计算器地址

https://www.sojson.com/convert/subnetmask.html

谷歌云/阿里云/alibabacloud Linux系统安装Windows,免除额外付费的烦恼

其中输入IP是内网地址,掩码位20是创建实例的时候可以看到,然后点击计算,就可以得到地址了

谷歌云/阿里云/alibabacloud Linux系统安装Windows,免除额外付费的烦恼

–ip-addr后的X.X.X.X是内网IP地址 如:10.140.0.13

–ip-mask 是掩码地址 如:225.225.240.0

–ip-gate 是第一可用 如:10.140.0.1

DD包 直链地址可在镜像仓库找到:https://oss.sunpma.com/?Windows

谷歌云/阿里云/alibabacloud Linux系统安装Windows,免除额外付费的烦恼

下面的是常用的一些地址,可以自行去上面的镜像地址找

windows7系统

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

windows10系统

# DD Windows10_2021LTSC _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_2021LTSC_64_Administrator_nat.ee.gz'

例:debian10安装Win_Server2022_64_Administrator_nat.ee.gz

 [账户Administrator密码nat.ee]

wget –no-check-certificate -qO InstallNET.sh ‘https://moeclub.org/attachment/LinuxShell/InstallNET.sh’ && bash InstallNET.sh –ip-addr 10.140.0.2 –ip-mask 255.255.240.0 –ip-gate 10.140.0.1 -dd ‘https://oss.sunpma.com/Windows/Win_Server2022_64_Administrator_nat.ee.gz’

纯一键安装windows10[Administrator 密码:nat.ee]

apt-get update && apt-get install -y xz-utils openssl gawk file wget && wget --no-check-certificate -qO InstallNET.sh 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh' && bash InstallNET.sh --ip-addr 10.140.0.3 --ip-mask 255.255.240.0 --ip-gate 10.140.0.1 -dd 'https://oss.sunpma.com/Windows/Aliyun_Win10_2021LTSC_64_Administrator_nat.ee.gz'

一键安装Windows Server 2022

sudo -i
apt-get update && apt-get install -y xz-utils openssl gawk file wget && wget --no-check-certificate -qO InstallNET.sh 'https://www.binbinbiji.com/tools/linuxshell/InstallNET.sh' && bash InstallNET.sh --ip-addr 10.140.0.13 --ip-mask 255.255.240.0 --ip-gate 10.140.0.1 -dd 'https://oss.sunpma.com/Windows/Win_Server2022_64_Administrator_nat.ee.gz'

镜像仓库:https://oss.sunpma.com/?Windows

在线网络计算器

https://www.sojson.com/convert/subnetmask.html

参考网址:https://www.bilibili.com/video/BV1Ct4y1g75B/?vd_source=6904a9a534961ae8dae398f6b73b93f9

发布者:彬彬笔记,转载请注明出处:https://www.binbinbiji.com/windows/3235.html

(0)
彬彬笔记彬彬笔记
上一篇 5天前
下一篇 4天前

相关推荐

发表回复

登录后才能评论
蜀ICP备14017386号-13