由于有是要用到重装脚本,每次都得网上找许久,这里转载一份备用 原文链接
CentOS 7.X 安装脚本
默认ROOT密码:cxthhhhh.com
wget --no-check-certificate -qO InstallNET.sh 'https://file.imoe.ink/sh/netinstall/InstallNET.sh' && bash InstallNET.sh -dd 'https://file.imoe.ink/mirror/centos/CentOS_7.X_NetInstallation.vhd.gz'
CentOS 6.X 安装脚本
默认ROOT密码:MoeClub.org
bash <(wget --no-check-certificate -qO- 'https://file.imoe.ink/sh/netinstall/InstallNET.sh') -c 6.x -v 64 -a --ip-addr x.x.x.x --ip-gate x.x.x.x --ip-mask x.x.x.x --mirror 'http://mirror.nsc.liu.se/centos-store''
#不支持openvz InstallNET.sh moeclub 萌咖:https://moeclub.org/
#安装所需软件
#Debian/Ubuntu:
apt-get install -y xz-utils openssl gawk file wget screen && screen -S os
#RedHat/CentOS:
yum install -y xz openssl gawk file glibc-common wget screen && screen -S os
#如果出现错误
#Debian/Ubuntu:
apt-get update
#RedHat/CentOS:
yum update
moeclub 萌咖:https://moeclub.org/
#安装centos6.8 x64,不支持centos7 默认系统账号:root 默认远程端口:22
bash <(wget --no-check-certificate -qO- 'https://file.imoe.ink/sh/netinstall/InstallNET.sh') -c 6.8 -v 64 -a -p 自定义密码
#安装debian9 x64 默认系统账号:root 默认远程端口:22
bash <(wget --no-check-certificate -qO- 'https://file.imoe.ink/sh/netinstall/InstallNET.sh') -d 9 -v 64 -a -p 自定义密码
#安装ubuntu16.04 x64 默认系统账号:root 默认远程端口:22
bash <(wget --no-check-certificate -qO- 'https://file.imoe.ink/sh/netinstall/InstallNET.sh') -u 16.04 -v 64 -a -p 自定义密码
#安装win7 x86 默认系统账号:Administrator 默认系统密码:Vicer 默认远程端口:3389
bash <(wget --no-check-certificate -qO- 'https://file.imoe.ink/sh/netinstall/InstallNET.sh') -dd 'https://one.zkxblog.com/down/os/dd/moeclub/win7emb_x86.tar.gz'
#安装win8.1 x64 默认系统账号:Administrator 默认系统密码:Vicer 默认远程端口:3389
bash <(wget --no-check-certificate -qO- 'https://file.imoe.ink/sh/netinstall/InstallNET.sh') -dd 'https://one.zkxblog.com/down/os/dd/moeclub/win8.1emb_x64.tar.gz'
#安装win10ltsc x64 默认系统账号:Administrator 默认系统密码:Vicer 默认远程端口:3389
bash <(wget --no-check-certificate -qO- 'https://file.imoe.ink/sh/netinstall/InstallNET.sh') -dd 'https://one.zkxblog.com/down/os/dd/moeclub/win10ltsc_x64.tar.gz'
#自定义网络参数示例:
bash <(wget --no-check-certificate -qO- 'https://file.imoe.ink/sh/netinstall/InstallNET.sh') --ip-addr x.x.x.x --ip-gate x.x.x.x --ip-mask x.x.x.x -dd '
#国内推荐使用USTC源
#--mirror 'http://mirrors.ustc.edu.cn/debian/'
#国外推荐使用源
#--mirror 'http://mirror.nsc.liu.se/centos-store'
cxthhhhh:https://tech.cxthhhhh.com/
#安装centos7.x x64 默认系统账号:root 默认系统密码:cxthhhhh.com 默认远程端口:22
bash <(wget --no-check-certificate -qO- 'https://file.imoe.ink/sh/netinstall/InstallNET.sh') -dd 'https://one.zkxblog.com/down/os/dd/cxthhhhh/CentOS_7.X_NetInstallation.vhd.gz'
#注意:重复重装此系统前,在主机上面板重装一次系统。
#在一些主机商上安装的成功率似乎并不是很高。
#如果安装成功无法联网,vnc手动修改为静态ip:
vi /etc/sysconfig/network-scripts/ifcfg-eth0
#修改
BOOTPROTO=static #dhcp改为static
IPADDR=192.168.1.100 #静态IP
GATEWAY=192.168.1.255 #默认网关
NETMASK=255.255.255.0 #子网掩码
#保存后重启
reboot
#安装Windows Server 2003 x86 默认系统账号:Administrator 默认系统密码:cxthhhhh.com 默认远程端口:3389
bash <(wget --no-check-certificate -qO- 'https://file.imoe.ink/sh/netinstall/InstallNET.sh') -dd 'https://one.zkxblog.com/down/os/dd/cxthhhhh/Disk_Windows_Server_2003_DataCenter_CN.vhd.gz'
#安装Windows 7 Vienna x86 默认系统账号:Administrator 默认系统密码:cxthhhhh.com 默认远程端口:3389
bash <(wget --no-check-certificate -qO- 'https://file.imoe.ink/sh/netinstall/InstallNET.sh') -dd 'https://one.zkxblog.com/down/os/dd/cxthhhhh/Disk_Windows_7_Vienna_Ultimate_CN.vhd.gz'
#安装Windows Server 2008 R2 x64 默认系统账号:Administrator 默认系统密码:cxthhhhh.com 默认远程端口:3389
bash <(wget --no-check-certificate -qO- 'https://file.imoe.ink/sh/netinstall/InstallNET.sh') -dd 'https://one.zkxblog.com/down/os/dd/cxthhhhh/Disk_Windows_Server_2008R2_DataCenter_CN.vhd.gz'
#安装Windows Server 2012 R2 x64 默认系统账号:Administrator 默认系统密码:cxthhhhh.com 默认远程端口:3389
bash <(wget --no-check-certificate -qO- 'https://file.imoe.ink/sh/netinstall/InstallNET.sh') -dd 'https://one.zkxblog.com/down/os/dd/cxthhhhh/Disk_Windows_Server_2012R2_DataCenter_CN.vhd.gz'
#安装Windows Server 2016 x64 默认系统账号:Administrator 默认系统密码:cxthhhhh.com 默认远程端口:3389
bash <(wget --no-check-certificate -qO- 'https://file.imoe.ink/sh/netinstall/InstallNET.sh') -dd 'https://one.zkxblog.com/down/os/dd/cxthhhhh/Disk_Windows_Server_2016_DataCenter_CN.vhd.gz'
#安装Windows Server 2019 x64 默认系统账号:Administrator 默认系统密码:cxthhhhh.com 默认远程端口:3389
bash <(wget --no-check-certificate -qO- 'https://file.imoe.ink/sh/netinstall/InstallNET.sh') -dd 'https://one.zkxblog.com/down/os/dd/cxthhhhh/Disk_Windows_Server_2019_DataCenter_CN.vhd.gz'