主机、服务器测评
服务器促销信息及建站资源分享

CentOS/Debian/Ubuntu网络重装系统一键脚本

文章转载自 如有乐享 & 萌咖 & 狗仔小分队的博客。

特别注意: OpenVZ构架不适用,安装之前备份重要数据。

背景

适用于由GRUB引导的CentOS,Ubuntu,Debian系统.
使用官方发行版去掉模板预装的软件。
同时也可以解决内核版本与软件不兼容的问题。
只要有root权限,还您一个纯净的系统。

运行要求

  1. Debian/Ubuntu/CentOS 系统(由 GRUB引导);
  2. wget 用来下载文件,获取公网IP;
  3. ip 获取网关,掩码等;
  4. sed awk grep 处理文本流;
  5. VNC 安装系统(此项为可选)。

安装脚本

全自动安装默认 root 密码: Vicer,安装完成后请立即更改密码。

Debian 7 x32

1
2
wget nocheckcertificate qO DebianNET.sh ‘https://moeclub.org/attachment/LinuxShell/DebianNET.sh’ && chmod x DebianNET.sh && bash DebianNET.sh d 7 v 32

Debian 7 x64

1
wget nocheckcertificate qO DebianNET.sh ‘https://moeclub.org/attachment/LinuxShell/DebianNET.sh’ && chmod x DebianNET.sh && bash DebianNET.sh d 7 v 64

Debian 8 x32

1
wget nocheckcertificate qO DebianNET.sh ‘https://moeclub.org/attachment/LinuxShell/DebianNET.sh’ && chmod x DebianNET.sh && bash DebianNET.sh d 8 v 32

Debian 8 x64

1
wget nocheckcertificate qO DebianNET.sh ‘https://moeclub.org/attachment/LinuxShell/DebianNET.sh’ && chmod x DebianNET.sh && bash DebianNET.sh d 8 v 64

Debian 9 x32

1
wget nocheckcertificate qO DebianNET.sh ‘https://moeclub.org/attachment/LinuxShell/DebianNET.sh’ && chmod x DebianNET.sh && bash DebianNET.sh d 9 v 32

Debian 9 x64

1
wget nocheckcertificate qO DebianNET.sh ‘https://moeclub.org/attachment/LinuxShell/DebianNET.sh’ && chmod x DebianNET.sh && bash DebianNET.sh d 9 v 64

Ubuntu 14.04 x32

1
wget nocheckcertificate qO DebianNET.sh ‘https://moeclub.org/attachment/LinuxShell/DebianNET.sh’ && chmod x DebianNET.sh && bash DebianNET.sh d trusty v 32

Ubuntu 14.04 x64

1
wget nocheckcertificate qO DebianNET.sh ‘https://moeclub.org/attachment/LinuxShell/DebianNET.sh’ && chmod x DebianNET.sh && bash DebianNET.sh d trusty v 64

Ubuntu 16.04 x32

1
wget nocheckcertificate qO DebianNET.sh ‘https://moeclub.org/attachment/LinuxShell/DebianNET.sh’ && chmod x DebianNET.sh && bash DebianNET.sh d xenial v 32

Ubuntu 16.04 x64

1
wget nocheckcertificate qO DebianNET.sh ‘https://moeclub.org/attachment/LinuxShell/DebianNET.sh’ && chmod x DebianNET.sh && bash DebianNET.sh d xenial v 64

Ubuntu 17.04 x32

1
wget nocheckcertificate qO DebianNET.sh ‘https://moeclub.org/attachment/LinuxShell/DebianNET.sh’ && chmod x DebianNET.sh && bash DebianNET.sh d zesty v 32

Ubuntu 17.04 x64

1
wget nocheckcertificate qO DebianNET.sh ‘https://moeclub.org/attachment/LinuxShell/DebianNET.sh’ && chmod x DebianNET.sh && bash DebianNET.sh d zesty v 64

CentOS 6+ X64

安装时间(Vultr 2.5刀机器 重装大概15分钟) root用户密码为 xiaofd.win

注意事项

确保安装了所需软件:

在安装Ubuntu时,可能会遇到:

Getting the time form a network time server...

界面进度条很长时间不会动,可以等待它超时或者更换别的版本.
该问题是Ubuntu系统的问题.

完整代码

赞(0)
聲明:
1、本博客不從事任何主機及服務器租賃業務,不參與任何交易,也絕非中介。博客內容僅記錄博主個人感興趣的服務器測評結果及一些服務器相關的優惠活動,信息均摘自網絡或來自服務商主動提供;所以對本博客提及的內容不作直接、間接、法定、約定的保證,博客內容也不具備任何參考價值及引導作用,訪問者需自行甄別。

2、訪問本博客請務必遵守有關互聯網的相關法律、規定與規則;不能利用本博客所提及的內容從事任何違法、違規操作;否則造成的一切後果由訪問者自行承擔。

3、未成年人及不能獨立承擔法律責任的個人及群體請勿訪問本博客。

4、一旦您訪問本博客,即表示您已經知曉並接受了以上聲明通告。

文章名稱:《CentOS/Debian/Ubuntu网络重装系统一键脚本》
文章鏈接:https://www.zhuji999.com/18722.html