一键DD系统

基本所有的VPS服务器商家,都会提供免费的Linux系统供安装,比如CentOS、Debian、Ubuntu等。那为什么还要使用一键DD脚本重装/更换系统呢?

1、商家提供的系统版本有限,可能没有自己需要的版本。

2、商家的系统安装有自己不想要的服务,比如国内的阿里云盾(安骑士),腾讯的x镜等。

3、商家的系统无法安装特定软件,比如很挑内核的锐速。

4、安装Windows系统额外收费,但是不想额外付费。

一、发一下自用的一键DD脚本

1、一键DD系统为Debian 9/10/11(自行修改参数)

bash <(wget --no-check-certificate -qO- 'http://sh.pai.al/dd/InstallNET.sh') -d 10 -v 64 -p "自定义root密码" -port "自定义ssh端口"

2、一键DD系统为DD成Ubuntu 20.04(自行修改参数)

bash <(wget --no-check-certificate -qO- 'http://sh.pai.al/dd/InstallNET.sh') -u 20.04 -v 64 -p "自定义root密码" -port "自定义ssh端口"

二、傻瓜式一键脚本(Github项目)

Github地址:https://github.com/veip007/dd

##镜像文件在OneDrive
wget -N --no-check-certificate https://raw.githubusercontent.com/veip007/dd/master/dd-od.sh && chmod +x dd-od.sh && ./dd-od.sh
​
##镜像文件在GoogleDrive
wget -N --no-check-certificate https://raw.githubusercontent.com/veip007/dd/master/dd-gd.sh && chmod +x dd-gd.sh && ./dd-gd.sh

三、其他DD脚本(较老教程):

  • Vicer脚本目前不支持重装为CentOS 7系统,支持CentOS 6.9以下版本。

  • 重装的系统源自官方发行版。

  • 安装过程全自动进行,无需VNC操作,无需进入救援模式。

  • 系统安装完成后的默认用户名为root,默认密码为: MoeClub.org

由于脚本命令中需要写明目标系统版本,所以根据需求不同,最终的运行命令也各不相同。

下面提供几个使用范例,可以直接复制使用,也可以将命令中的系统版本替换为其它版本。

重装为CentOS:

以下命令中的 -c 后面为CentOS版本号,-v 后面为64位/32位,可根据需求进行替换。

# CentOS 6.10 64位:
bash <(wget --no-check-certificate -qO- 'https://www.moeelf.com/attachment/LinuxShell/InstallNET.sh') -c 6.10 -v 64 -a
# CentOS 6.10 32位:
bash <(wget --no-check-certificate -qO- 'https://www.moeelf.com/attachment/LinuxShell/InstallNET.sh') -c 6.10 -v 32 -a
重装为Debian:

以下命令中的 -d 后面为Debian版本号,-v 后面为64位/32位,可根据需求进行替换。

# Debian 8 64位:
bash <(wget --no-check-certificate -qO- 'https://www.moeelf.com/attachment/LinuxShell/InstallNET.sh') -d 8 -v 64 -a
# Debian 9 64位:
bash <(wget --no-check-certificate -qO- 'https://www.moeelf.com/attachment/LinuxShell/InstallNET.sh') -d 9 -v 64 -a
# Debian 10 64位:
bash <(wget --no-check-certificate -qO- 'https://www.moeelf.com/attachment/LinuxShell/InstallNET.sh') -d 10 -v 64 -a
# Debian 11 64位:
bash <(wget --no-check-certificate -qO- 'https://www.moeelf.com/attachment/LinuxShell/InstallNET.sh') -d 11 -v 64 -a
# Debian 12 64位:
bash <(wget --no-check-certificate -qO- 'https://www.moeelf.com/attachment/LinuxShell/InstallNET.sh') -d 12 -v 64 -a
重装为Ubuntu:

以下命令中的 -u 后面为Ubuntu版本号,-v 后面为64位/32位,可根据需求进行替换。

# Ubuntu 12.04 64位:
bash <(wget --no-check-certificate -qO- 'https://www.moeelf.com/attachment/LinuxShell/InstallNET.sh') -u 12.04 -v 64 -a
# Ubuntu 14.04 64位:
bash <(wget --no-check-certificate -qO- 'https://www.moeelf.com/attachment/LinuxShell/InstallNET.sh') -u 14.04 -v 64 -a
# Ubuntu 16.04 64位:
bash <(wget --no-check-certificate -qO- 'https://www.moeelf.com/attachment/LinuxShell/InstallNET.sh') -u 16.04 -v 64 -a
# Ubuntu 18.04 64位:
bash <(wget --no-check-certificate -qO- 'https://www.moeelf.com/attachment/LinuxShell/InstallNET.sh') -u 18.04 -v 64 -a
# Ubuntu 20.04 64位:
bash <(wget --no-check-certificate -qO- 'https://www.moeelf.com/attachment/LinuxShell/InstallNET.sh') -u 20.04 -v 64 -a