sword

Debian/Ubuntu/CentOS 网络重装系统一键脚本
简介本一键脚本在萌咖大佬的脚本基础上开发,实现了懒人式一键网络重装 Debian / Ubuntu / CentO...
扫描右侧二维码阅读全文
18
2020/02

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

简介

本一键脚本在萌咖大佬的脚本基础上开发,实现了懒人式一键网络重装 Debian / Ubuntu / CentOS 系统及dd方式安装系统。解决了云服务商提供模板镜像体积过大、预装软件过多、不够纯净等问题。(用到了 @Vicer 萌咖大佬的脚本,感谢~)

项目地址:https://github.com/hiCasper/Shell

支持重装的系统:

  • Debian 9/10
  • Ubuntu 18.04/16.04
  • CentOS 6/7
  • 自定义DD镜像

特性/优化:

  • 自动获取IP地址、网关、子网掩码
  • 自动判断网络环境,选择国内/外镜像,再也不用担心卡半天了
  • 超级懒人一键化,无需复杂的命令
  • 解决萌咖脚本中一些导致安装错误的问题
  • CentOS 7 镜像抛弃LVM,回归ext4,减少不稳定因素

使用方法:

wget --no-check-certificate -O AutoReinstall.sh https://git.io/AutoReinstall.sh && bash AutoReinstall.sh

注意事项

  • 重装后系统密码均在脚本中有提供,安装后请尽快修改密码,Linux系统建议启用密钥登陆。
  • OpenVZ / LXC 架构系统不适用
  • 不适于甲骨文/ikoula等平台主机

脚本截图

请输入图片描述

参考文章:https://www.hostloc.com/thread-645870-1-1.html

Last modification:April 25th, 2020 at 09:33 pm
If you think my article is useful to you, please feel free to appreciate

Leave a Comment

11 comments

  1. 123123123   ( Windows 10 x64 Edition Windows 10 x64 Edition / Google Chrome 89.0.4389.114 Google Chrome 89.0.4389.114 )

    密码呢

    1. 云点   ( Mac OS X 10.15.7 Mac OS X 10.15.7 / Google Chrome 91.0.4472.114 Google Chrome 91.0.4472.114 )
      @123123123

      重装后系统密码均在脚本中有提供

  2. WYAP   ( Windows 10 x64 Edition Windows 10 x64 Edition / Google Chrome 84.0.4147.135 Google Chrome 84.0.4147.135 )

    安装时报这个错误 怎么解决呢
    # Install

    Auto Mode insatll [Ubuntu] [bionic] [amd64].

    [Ubuntu] [bionic] [amd64] Downloading...
    Not found `ip command`, It will use `route command`.
    Error! Not configure network.

    1. sword   ( Windows 10 x64 Edition Windows 10 x64 Edition / Google Chrome 84.0.4147.135 Google Chrome 84.0.4147.135 )
      @WYAP

      可能不支持吧

  3. lalaa   ( Android 10 Android 10 / Google Chrome 83.0.4103.106 Google Chrome 83.0.4103.106 )

    密码在哪里呀?重装完不知道密码,一个月的面板重装次数用完了 GG

  4. 十年决斗老玩家   ( Windows 10 x64 Edition Windows 10 x64 Edition / Google Chrome 81.0.4044.122 Google Chrome 81.0.4044.122 )

    得,仔细看了下我的服务器是OpenVZ

    1. sword   ( Windows 10 x64 Edition Windows 10 x64 Edition / Google Chrome 81.0.4044.122 Google Chrome 81.0.4044.122 )
      @十年决斗老玩家

      φ( ̄∇ ̄o)搞KVM吧,OVZ没啥好用的

  5. 十年决斗老玩家   ( Windows 10 x64 Edition Windows 10 x64 Edition / Google Chrome 81.0.4044.122 Google Chrome 81.0.4044.122 )

    先是不能自动获取IP地址、网关、子网掩码,后是没有找到grub,看来这个一键脚本对于某些服务商还是无能为力

  6. 执迷不悟   ( Windows 10 x64 Edition Windows 10 x64 Edition / Google Chrome 80.0.3987.116 Google Chrome 80.0.3987.116 )

    下次重装可以试试了,感谢分享。

  7. 奶爸建网站笔记   ( Windows 10 x64 Edition Windows 10 x64 Edition / Google Chrome 79.0.3945.130 Google Chrome 79.0.3945.130 )

    我有台服务器重装了记不住密码了,不知道怎么办了,尴尬啊。OωO

    1. sword   ( Windows Server 2003 Windows Server 2003 / Google Chrome 55.0.2883.96 Google Chrome 55.0.2883.96 )
      @奶爸建网站笔记

      重装重装|´・ω・)ノ