当前位置:首页 > Linux vps > 正文

Linux VPS Debian/Ubuntu/CentOS 网络重装一键脚本 纯净安装

许本聪 Linux vps 5405阅读

Linux VPS Debian/Ubuntu/CentOS 网络重装一键脚本 纯净安装  第1张


介绍

  • 适用于Debian/Ubuntu/CentOS

  • 特别注意**OpenVZ**构架不适用

  • 系统默认密码:MoeClub.org

  • 更改密码命令:passwd root

  • 国内指定源:

阿里云:--mirror 'http://mirrors.aliyun.com/ubuntu/' 腾讯云:--mirror 'https://mirrors.cloud.tencent.com/debian/' 华为云:--mirror 'https://mirrors.huaweicloud.com/debian/'


开始

确保安装了所需软件:

 # Debian/Ubuntu:
 apt-get install -y xz-utils openssl gawk file
 
 # RedHat/CentOS:
 yum install -y xz openssl gawk file


如果出现了错误,请运行:

 # Debian/Ubuntu:
 apt-get update
 
 # RedHat/CentOS:
 yum update


下载脚本:

 wget --no-check-certificate -qO InstallNET.sh 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh' && chmod a+x InstallNET.sh


选择系统:

 # 全自动安装Ubuntu 16.04 x64: 
 bash InstallNET.sh -u 16.04 -v 64 -a
 
 # 全自动安装Debian 8 x64:
 bash InstallNET.sh -d 8 -v 64 -a
 
 # 全自动安装Debian 9 x64:
 bash InstallNET.sh -d 9 -v 64 -a
 
 # 全自动安装CentOS 6.7 x64:
 bash InstallNET.sh -c 6.7 -v 64 -a


如果需要CentOS 7可以用下面这个一键脚本:

 wget --no-check-certificate https://shell.p1e.cn/reinstall/Network-Reinstall-System-Modify.sh && chmod a+x Network-Reinstall-System-Modify.sh && bash Network-Reinstall-System-Modify.sh -CentOS_7

默认用户名:root 默认密码:cxthhhhh.com

注意:如果重装GCP谷歌云的机器,需要指定网络参数进行安装

 # 以下示例中,将X.X.X.X替换为自己的网络参数.
 # --ip-addr :IP Address   /内网IP地址
 # --ip-gate :Gateway      /网关
 # --ip-mask :Netmask      /子网掩码 255.255.255.0--255.255.255.255
 
 #使用默认镜像自定义网络参数全自动安装
 #bash InstallNET.sh -u 16.04 -v 64 -a --ip-addr x.x.x.x --ip-gate x.x.x.x --ip-mask x.x.x.x

示例:使用默认镜像自定义网络参数全自动安装 Ubuntu 64位

 bash InstallNET.sh -u 16.04 -v 64 -a --ip-addr 10.170.0.41 --ip-gate 10.170.0.1 --ip-mask 255.255.255.0


其它脚本

  • 重装系统一键脚本【一】

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


  • 重装系统一键脚本【二】

 wget -N --no-check-certificate https://raw.githubusercontent.com/veip007/dd/master/dd-od.sh && chmod +x dd-od.sh && ./dd-od.sh
 # 或者
 wget -N --no-check-certificate https://raw.githubusercontent.com/veip007/dd/master/dd-gd.sh && chmod +x dd-gd.sh && ./dd-gd.sh


  • 重装系统一键脚本【三】

 wget --no-check-certificate -qO AutoDD.sh 'http://git.io/autodd.sh' && bash AutoDD.sh


  • 千影重装系统一键脚本【四】

 wget -N --no-check-certificate "https://raw.githubusercontent.com/chiakge/installNET/master/Install.sh" && chmod +x Install.sh && ./Install.sh


  • cxthhhhh魔改版重装系统一键脚本【五】

适用于由GRUB or GRUB2引导的Linux系统 系统默认密码为:cxthhhhh.com

 1、Linux安装重装系统的前提组件:
 
 ## RedHat/CentOS输入下方命令:
 
 yum install -y xz openssl gawk file
 
 ## Debian/Ubuntu输入下方命令:
 
 apt-get install -y xz-utils openssl gawk file
 
 2、下载重装系统脚本:
 
 wget --no-check-certificate https://shell.p1e.cn/reinstall/Network-Reinstall-System-Modify.sh && chmod a+x Network-Reinstall-System-Modify.sh
 
 3、安装Linux系统(任选其一)
 
 ## 一键网络重装纯净CentOS 7(推荐)
 bash Network-Reinstall-System-Modify.sh -CentOS_7
 
 ## 一键网络重装纯净CentOS 6
 bash Network-Reinstall-System-Modify.sh -CentOS_6
 
 ## 一键网络重装纯净Debian 9(推荐)
 bash Network-Reinstall-System-Modify.sh -Debian_9
 
 ## 一键网络重装纯净Debian 8
 bash Network-Reinstall-System-Modify.sh -Debian_8
 
 ## 一键网络重装纯净Debian 7
 bash Network-Reinstall-System-Modify.sh -Debian_7
 
 ## 一键网络重装纯净Ubuntu 18.04(推荐)
 bash Network-Reinstall-System-Modify.sh -Ubuntu_18.04
 
 ## 一键网络重装纯净Ubuntu 16.04
 bash Network-Reinstall-System-Modify.sh -Ubuntu_16.04
 
 ## 一键网络重装纯净Ubuntu 14.04
 bash Network-Reinstall-System-Modify.sh -Ubuntu_14.04
 
 4、安装Windows系统(任选其一)
 
 ## 注意:下方镜像为未授权Windows系统镜像,需购买授权或进入系统后破解
 
 ## 一键网络重装纯净Windows Server 2019(推荐)
 bash Network-Reinstall-System-Modify.sh -Windows_Server_2019
 
 ## 一键网络重装纯净Windows Server 2016
 bash Network-Reinstall-System-Modify.sh -Windows_Server_2016
 
 ## 一键网络重装纯净Windows Server 2012 R2
 bash Network-Reinstall-System-Modify.sh -Windows_Server_2012R2
 
 ## 一键网络重装纯净Windows Server 2008 R2
 bash Network-Reinstall-System-Modify.sh -Windows_Server_2008R2
 
 ## 一键网络重装纯净Windows 7
 bash Network-Reinstall-System-Modify.sh -Windows_7_Vienna
 
 ## 一键网络重装纯净Windows Server 2003
 bash Network-Reinstall-System-Modify.sh -Windows_Server_2003
 
 5、自定义安装系统镜像
 bash Network-Reinstall-System-Modify.sh -DD "你的系统镜像地址"


快速安装

  • 系统默认密码为:sunpma.com

安装 Ubuntu 16.04

 wget --no-check-certificate https://cdn.jsdelivr.net/gh/sunpma/cdn/other/dd/InstallNET.sh && chmod a+x InstallNEXT.sh && bash InstallNEXT.sh -u 16.04 -v 64 -a -p sunpma.com


安装 Ubuntu 18.04

 wget --no-check-certificate https://cdn.jsdelivr.net/gh/sunpma/cdn/other/dd/InstallNET.sh && chmod a+x InstallNEXT.sh && bash InstallNEXT.sh -u 18.04 -v 64 -a -p sunpma.com


安装 Ubuntu 20.04

 wget --no-check-certificate https://cdn.jsdelivr.net/gh/sunpma/cdn/other/dd/InstallNET.sh && chmod a+x InstallNEXT.sh && bash InstallNEXT.sh -u 20.04 -v 64 -a -p sunpma.com



版权声明:本文由 @许本聪 发布在 老许Blog,转载请注明出处!

更新时间 2023-12-21

有话要说...

评论列表

inst.sh
inst.sh 于 2023-08-01 21:51:21  回复
有显示进度的一键dd脚本可以用了《利用可显进度的一键DD脚本1keydd安装win10(同时支持bios,uefi,支持vps,独服,计算实例)》https://www.bilibili.com/video/BV17B4y1b79Y 命令:wget -qO- inst.sh|bash

搜索

最新文章

最新留言