banner
年糕

年糕日记

此站为备份站点,最新文章请访问 oior.net
telegram
email

一键DD纯净脚本

前言#

基本所有的 VPS 服务器商家,都会提供免费的 Linux 系统供安装,比如 CentOS、Debian、Ubuntu 等。那为什么还要使用一键 DD 脚本重装 / 更换系统呢?1、商家提供的系统版本有限,可能没有自己需要的版本。2、商家的系统安装有自己不想要的服务,比如国内的阿里云盾(安骑士)。3、商家的系统无法安装特定软件,比如很挑内核的锐速。
以上几种情况,一键 DD 脚本就可以为服务器更换一个纯净的系统,帮你解决问题。

环境#

  • 架构:KVM/XEN,不支持 OpenVZ。
  • 系统:Debian/Ubuntu/CentOS

注意#

  • 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

重装为 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

关于系统重装过程#

运行包含正确系统版本号的脚本后,新系统的安装会自动进行,无需人工干预。

可能的三种情况:

正常情况下 10 分钟左右就可以安装成功了,期间可以在 VNC 中观察安装过程:
ddvnc.PNG

如果安装 CentOS 7 版本,会出现下图提示,表示不支持:

如果输入了其它不支持或不存在的系统版本,则会出现下图提示,中止安装:

重装系统后更改 root 密码,耐心等待系统安装成功后,出于安全考虑,建议立即更改默认密码。

具体方法:#

1、使用 SSH 软件以上文提供的默认密码登录,输入以下命令:passwd root

2、接下来会分两次要求输入新的密码,可以手动输入,也可以在其它位置复制一个密码,然后在 Putty 界面右键点击即可粘贴上去。

注意:输入新密码时并不会直接显示出来,光标也不会移动,这是正常的。

3、再次登录系统时,记得使用新的 root 密码。

加载中...
此文章数据所有权由区块链加密技术和智能合约保障仅归创作者所有。