install Linux OS or Windows on linux server
Project short url: https://git.io/installnet
Table of Contents
apt update
apt install -y xz-utils openssl gawk file wget
#yum update
yum install -y xz openssl gawk file wget
bash <(wget -qO- 'https://git.io/installNET.sh') -d 10 -v 64 -a -p 'mypass' -firmware
Linux default user & password:
root / MoeClub.org
Windows default user & password:
Administrator / Vicer
Usage:
bash <(wget -qO- 'https://git.io/installNET.sh') -d/--debian [dist-name]
-u/--ubuntu [dist-name]
-c/--centos [dist-version]
-v/--ver [32/i386|64/amd64]
--ip-addr/--ip-gate/--ip-mask
-apt/-yum/--mirror
-dd/--image
-a/-m
-p [default password]
dist-name
: 发行版本代号dist-version
: 发行版本号-apt/-yum/--mirror
: 使用定义镜像-a/-m
: 询问是否能进入VNC自行操作. -a 为不提示(一般用于全自动安装), -m 为提示.-p
: set default password-firmware
:Load additional non-free firmwares 额外驱动支持--ip-addr
: IP Address/IP地址--ip-gate
: Gateway /网关--ip-mask
: Netmask /子网掩码
Automatically install using the default mirror
bash <(wget -qO- 'https://git.io/installNET.sh') -d 8 -v 64 -a
Automatically install using custom mirror
bash <(wget -qO- 'https://git.io/installNET.sh') -c 6.9 -v 64 -a --mirror 'http://mirror.centos.org/centos'
In the following example, replace X.X.X.X with its own network parameters.
--ip-addr :IP Address
--ip-gate :Gateway
--ip-mask :Netmask
Use custom mirror and custom Network Parameters
bash <(wget -qO- 'https://git.io/installNET.sh') -u 16.04 -v 64 -a --ip-addr x.x.x.x --ip-gate x.x.x.x --ip-mask x.x.x.x --mirror 'http://archive.ubuntu.com/ubuntu'
Use the custom network parameters to install windows
bash <(wget -qO- 'https://git.io/installNET.sh') --ip-addr x.x.x.x --ip-gate x.x.x.x --ip-mask x.x.x.x -dd 'link-to-image-vhd'
BSD 2-Clause © tonywww
Credit: Vicer - MoeClub.org