谷歌雲/阿里雲/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/zh-hant/windows/3235.html

(0)
彬彬筆記彬彬筆記
上一篇 5天前
下一篇 4天前

相關推薦

發表回復

登錄後才能評論
蜀ICP備14017386號-13