#确保安装了所需软件:
#Debian/Ubuntu:
apt-get install -y xz-utils openssl gawk file
#RedHat/CentOS:
yum install -y xz openssl gawk file
#dd win,直链包链接自己找个替换下
bash <(wget --no-check-certificate -qO- 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh') -dd "这里放你要dd包的直链.tar.gz" --mirror 'http://mirrors.ustc.edu.cn/debian/'
#DD成Debian10:
bash <(wget --no-check-certificate -qO- 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh') -d 10 -v 64 -a -p 你的密码 --mirror 'http://mirrors.ustc.edu.cn/debian/'
#DD Debian 9:
bash <(wget --no-check-certificate -qO- 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh') -d 9 -v 64 -a -p 你的密码 --mirror 'http://mirrors.ustc.edu.cn/debian/'
不同镜像:
#国外服务器
bash InstallNET.sh -d 10 -v 64 -a --mirror 'http://ftp.debian.org/debian/' -p "yourpassword"
#国内服务器
bash InstallNET.sh -d 10 -v 64 -a --mirror 'http://mirrors.ustc.edu.cn/debian/' -p "yourpassword"
#腾讯云
bash InstallNET.sh -d 10 -v 64 -a --mirror 'https://mirrors.cloud.tencent.com/debian/' -p "yourpassword"
拓展:cxhhhhhh魔改版dd(适用于Linux / Windows)
https://www.cxthhhhh.com/network-reinstall-system-modify
也可以用著名的mack-a大佬的某某著名脚本来一键DD,该脚本也集成了cxhhhhhh的dd脚本。
安装wget、curl:
- Centos
yum update && yum install -y wget curl
- Debian
apt update && apt install wget curl -y
- Ubuntu
apt-get update && apt-get install wget -y