- 安装所需软件
12345#Debian/Ubuntuapt install -y xz-utils openssl gawk file#RedHat/CentOSyum install -y xz openssl gawk file - 快速使用
1bash <(wget --no-check-certificate -qO- 'https://raw.githubusercontent.com/MoeClub/Note/master/InstallNET.sh') -d 11 -v 64 -a --mirror 'http://cdn-fastly.deb.debian.org/debian/' - 使用方法
123456789101112131415161718192021222324252627282930313233343536373839#下载脚本wget --no-check-certificate -qO InstallNET.sh 'https://raw.githubusercontent.com/MoeClub/Note/master/InstallNET.sh' && chmod a+x InstallNET.shUsage:bash 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-i/--interface-p/--password-dd/--image-a|--auto|-m|--manual|-ssl-rdp-firmware-port--noipv6--ip-dns--dev-net--loader-cmd "YXB0IGluc3RhbGwgc3VkbyB6aXAgZnRwIHdnZXQgc2NyZWVuIGdpdCBjdnMgY3VybCBuZXQtdG9vbHMgbGliZ2VvaXAtZGV2IC15"-console ttyS0,115200#dist-name: 发行版本代号#dist-version: 发行版本号#-apt/-yum/--mirror: 使用自定义镜像#-i/--interface: 指定主网卡#-p/--password: 使用自定义SSH密码#-a|--auto|-m|--manual|-ssl: 询问是否能进入VNC自行操作 -a为不提示 -m为提示#-rdp: 使用自定义远程桌面端口#-firmware: 额外驱动支持#-port: 自定义SSH端口#--noipv6: 禁用IPv6#--ip-dns: 自定义DNS#--dev-net: 设置网卡名称为eth0#--loader: 生成启动文件#-cmd: 可接受开机后只运行一次的命令(base64编码)#-console: 新增对 AWS EC2 (ARM) 网络重装的支持 - 使用示例
12345678910111213141516171819202122232425262728#使用默认镜像全自动安装CentOS 6.9 x64bash <(wget --no-check-certificate -qO- 'https://raw.githubusercontent.com/MoeClub/Note/master/InstallNET.sh') -c 6.9 -v 64 -a#使用自定义镜像全自动安装Debian 11 x64bash <(wget --no-check-certificate -qO- 'https://raw.githubusercontent.com/MoeClub/Note/master/InstallNET.sh') -d 11 -v 64 -a --mirror 'http://cdn-fastly.deb.debian.org/debian/'#IPv6 Only使用自定义镜像全自动安装Debian 11 x64bash <(wget --no-check-certificate -qO- 'https://raw.githubusercontent.com/MoeClub/Note/master/InstallNET.sh') -d 11 -v 64 -a --mirror 'http://cdn-fastly.deb.debian.org/debian/' --ip-addr Address/Netmask --ip-gate Gateway --ip-mask none --ip-dns 2001:67c:2b0::4#Scaleway/Oracle使用自定义镜像全自动安装Debian 11 x64bash <(wget --no-check-certificate -qO- 'https://raw.githubusercontent.com/MoeClub/Note/master/InstallNET.sh') -d 11 -v 64 -a --mirror 'http://cdn-fastly.deb.debian.org/debian/' -firmware#以下示例中 将x.x.x.x替换为自己的网络参数--ip-addr :IP Address /IP地址--ip-gate :Gateway /网关--ip-mask :Netmask /子网掩码#使用自定义镜像自定义网络参数全自动安装Ubuntu 20.04 x64bash <(wget --no-check-certificate -qO- 'https://raw.githubusercontent.com/MoeClub/Note/master/InstallNET.sh') -u 20.04 -v 64 -a --ip-addr x.x.x.x --ip-gate x.x.x.x --ip-mask x.x.x.x --mirror 'http://mirror.us.leaseweb.net/ubuntu/'#使用自定义网络参数全自动DD方式安装bash <(wget --no-check-certificate -qO- 'https://raw.githubusercontent.com/MoeClub/Note/master/InstallNET.sh') --ip-addr x.x.x.x --ip-gate x.x.x.x --ip-mask x.x.x.x -dd 'https://share.moeking.me/Microsoft%20Windows/DD/WinEmb7x86.gz'#使用自定义网络参数全自动DD方式安装存储在谷歌网盘中的镜像(调用文件ID的方式)bash <(wget --no-check-certificate -qO- 'https://raw.githubusercontent.com/MoeClub/Note/master/InstallNET.sh') --ip-addr x.x.x.x --ip-gate x.x.x.x --ip-mask x.x.x.x -dd "$(echo "14xB2k9r36NRzWhO0lzjf604EB7B6JLH0" |xargs -n1 bash <(wget --no-check-certificate -qO- 'https://moeclub.org/get-gdlink'))"#使用自定义网络参数全自动DD方式安装存储在谷歌网盘中的镜像bash <(wget --no-check-certificate -qO- 'https://raw.githubusercontent.com/MoeClub/Note/master/InstallNET.sh') --ip-addr x.x.x.x --ip-gate x.x.x.x --ip-mask x.x.x.x -dd "$(echo "https://drive.google.com/open?id=14xB2k9r36NRzWhO0lzjf604EB7B6JLH0" |xargs -n1 bash <(wget --no-check-certificate -qO- 'https://moeclub.org/get-gdlink'))"
备注
- 全自动安装默认root密码为: MoeClub.org 安装完成后请立即更改密码
- 全自动安装CentOS时默认提供VNC功能 可使用VNC Viewer查看进度 VNC端口为1或者5901 可自行尝试连接(成功后VNC功能会消失)
- 目前CentOS系统只支持任意版本重装为CentOS 6.x及以下版本
- 文中提供的DD安装镜像登陆账号为: Administrator 登陆密码为: Vicer
- OpenVZ构架不适用
- Debian 全球镜像站 Official Archive Mirrors for Ubuntu List of CentOS Mirrors
来源详情: [ Linux VPS ] Debian/Ubuntu/CentOS 网络安装/重装系统/纯净安装 一键脚本