小沨的天空

  • 首页
  • Code
  • 图床
  • 网盘
  • 赞助
私人小天地
谈天说地,学习笔记
  1. 首页
  2. Linux
  3. 正文

VPS或服务器一键网络重装系统(linux or win)

2018年11月29日 3478点热度 0人点赞 0条评论

重要的事情说3次,2个脚本都不支持openvz,不支持openvz,不支持openvz
 

萌咖重装系统/纯净安装一键脚本</strong>
全自动安装默认root密码:MoeClub.org,安装完成后请立即更改密码。
能够全自动重装Debian/Ubuntu/CentOS等系统。
同时提供dd安装镜像功能,例如: 全自动无救援dd安装windows系统。
全自动安装CentOS时默认提供VNC功能,可使用VNC Viewer查看进度。
VNC端口为1或者5901,可自行尝试连接。(成功后VNC功能会消失)
目前CentOS系统只支持任意版本重装为 CentOS 6.x 及以下版本。
特别注意:
萌咖提供的dd安装镜像
远程登陆账号为: Administrator
远程登陆密码为: Vicer
仅修改了主机名,可放心使用.(建议自己制作.)
 
确保安装了所需软件:

#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

 
快速使用示例:

bash <(wget --no-check-certificate -qO- 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh') -d 8 -v 64 -a

 
下载及说明:

wget --no-check-certificate -qO InstallNET.sh 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh' && chmod a+x InstallNET.sh
Usage:
        bash InstallNET.sh      -d/--debian [dist-name]
                                -u/--ubuntu [dist-name]
                                -c/--centos [dist-version]
                                -v/--ver [32/i386|64/amd64]
                                --ip-addr/--ip-gate/--ip-mask
                                -apt/-yum/--mirror
                                -dd/--image
                                -a/-m

# dist-name: 发行版本代号
# dist-version: 发行版本号
# -apt/-yum/--mirror : 使用定义镜像
# -a/-m : 询问是否能进入VNC自行操作. -a 为不提示(一般用于全自动安装), -m 为提示.

 
使用示例:

#使用默认镜像全自动安装
bash InstallNET.sh -d 8 -v 64 -a

#使用自定义镜像全自动安装
bash InstallNET.sh -c 6.9 -v 64 -a --mirror 'http://mirror.centos.org/centos'


# 以下示例中,将X.X.X.X替换为自己的网络参数.
# --ip-addr :IP Address/IP地址
# --ip-gate :Gateway   /网关
# --ip-mask :Netmask   /子网掩码

#使用自定义镜像自定义网络参数全自动安装
#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 --mirror 'http://archive.ubuntu.com/ubuntu'

#使用自定义网络参数全自动dd方式安装
#bash InstallNET.sh --ip-addr x.x.x.x --ip-gate x.x.x.x --ip-mask x.x.x.x -dd 'https://moeclub.org/get-win7embx86-auto'

#使用自定义网络参数全自动dd方式安装存储在谷歌网盘中的镜像(调用文件ID的方式)
#bash InstallNET.sh --ip-addr x.x.x.x --ip-gate x.x.x.x --ip-mask x.x.x.x -dd "$(echo "1cqVl2wSGx92UTdhOxU9pW3wJgmvZMT_J" |xargs -n1 bash <(wget --no-check-certificate -qO- 'https://moeclub.org/get-gdlink'))"

#使用自定义网络参数全自动dd方式安装存储在谷歌网盘中的镜像
#bash InstallNET.sh --ip-addr x.x.x.x --ip-gate x.x.x.x --ip-mask x.x.x.x -dd "$(echo "https://drive.google.com/open?id=1cqVl2wSGx92UTdhOxU9pW3wJgmvZMT_J" |xargs -n1 bash <(wget --no-check-certificate -qO- 'https://moeclub.org/get-gdlink'))"

 
<strong>cxthhhhh[魔改版]一键网络重装系统</strong>
 

重装系统前环境需求
1. 当前已安装任意由GRUB or GRUB2引导Linux系统(RedHat/CentOS/Debian/Ubuntu/Etc.)
2. 安装重装系统的前提组件
①. RedHat/CentOS:

yum install -y xz openssl gawk file

 
②. Debian/Ubuntu:

apt-get install -y xz-utils openssl gawk file

 
仅需复制粘贴两行代码+等待15-45分钟完成,因硬件配置和网络环境不同,安装全程需要15-60分钟,请耐心等待。安装完成即可通过IP:22(Linux SSH)/IP:3389(Windows RDP)进行连接。
密码不变,所有的系统都是[cxthhhhh.com]。
 

一、下载脚本(通过root用户运行)

wget --no-check-certificate -qO ~/Network-Reinstall-System-Modify.sh 'https://tech.cxthhhhh.com/tech-tools/Network-Reinstall-System-Modify/Network-Reinstall-System-Modify.sh' && chmod a+x ~/Network-Reinstall-System-Modify.sh

 
二、安装系统 (任选其一)

bash ~/Network-Reinstall-System-Modify.sh -CentOS_6

bash ~/Network-Reinstall-System-Modify.sh -CentOS_7

bash ~/Network-Reinstall-System-Modify.sh -Debian_7

bash ~/Network-Reinstall-System-Modify.sh -Debian_8

bash ~/Network-Reinstall-System-Modify.sh -Debian_9

bash ~/Network-Reinstall-System-Modify.sh -Ubuntu_14.04

bash ~/Network-Reinstall-System-Modify.sh -Ubuntu_16.04

bash ~/Network-Reinstall-System-Modify.sh -Ubuntu_18.04

bash ~/Network-Reinstall-System-Modify.sh -Windows_Server_2003

bash ~/Network-Reinstall-System-Modify.sh -Windows_7_Vienna

bash ~/Network-Reinstall-System-Modify.sh -Windows_Server_2008R2

bash ~/Network-Reinstall-System-Modify.sh -Windows_Server_2012R2

bash ~/Network-Reinstall-System-Modify.sh -Windows_Server_2016

bash ~/Network-Reinstall-System-Modify.sh -Windows_Server_2019

 
需要啥系统自己直接安装吧,<a href="https://d.cao.by/os/dd/" rel="noopener" target="_blank">https://d.cao.by/os/dd/</a>也备份的压缩文件包
脚本代码如下:

#!/bin/bash

## This is the magically modified version of the one-click reload script.
## It can reinstall CentOS, Debian, Ubuntu and other Linux systems (continuously added) over the network in one click.
## It can reinstall Windwos 2003, 7, 2008R2, 2012R2, 2016, 2019 and other Windows systems (continuously added) via the network in one click.
## Technical support is provided by the technical blog. (based on the original version of Vicer)

## Magic Modify version author:
## Support GRUB or GRUB2 for installing a clean minimal system.
## Default root password: cxthhhhh.com
## Blog: https://tech.cxthhhhh.com
## Written By Technical Blog

## Original version author:
## Suitable for using by GRUB.
## Blog: https://moeclub.org
## Written By Vicer


echo -e "\n\n\n"
clear
echo -e "\n"
echo "---------------------------------------------------------------------------------------------------------------------"
echo -e "\033[33m [Magic Modify] Reinstall the system (any Windows / Linux) requires only network and one click \033[0m"
echo -e "\033[33m System requirements: Any Linux system with GRUB or GRUB2, recommended CentOS7/Debian9/Ubuntu18.04 \033[0m"
echo -e "\033[33m Test version, not released, only for testing within the group. \033[0m"
echo "---------------------------------------------------------------------------------------------------------------------"
echo -e "\n"
sleep 5s


if [ $1 = '-CentOS_6' ]
then
    wget --no-check-certificate -qO koiok.sh 'https://tech.cxthhhhh.com/tech-tools/Network-Reinstall-System-Modify/koiok.sh' && bash koiok.sh -c 6.9 -v 64 -a
fi

if [ $1 = '-CentOS_7' ]
then
    wget --no-check-certificate -qO koiok.sh 'https://tech.cxthhhhh.com/tech-tools/Network-Reinstall-System-Modify/koiok.sh' && bash koiok.sh -dd 'https://opendisk.cxthhhhh.com/OperatingSystem/CentOS/CentOS_7.X_NetInstall_AutoPartition.vhd.gz'
fi

if [ $1 = '-Debian_7' ]
then
    wget --no-check-certificate -qO koiok.sh 'https://tech.cxthhhhh.com/tech-tools/Network-Reinstall-System-Modify/koiok.sh' && bash koiok.sh -d 7 -v 64 -a
fi

if [ $1 = '-Debian_8' ]
then
    wget --no-check-certificate -qO koiok.sh 'https://tech.cxthhhhh.com/tech-tools/Network-Reinstall-System-Modify/koiok.sh' && bash koiok.sh -d 8 -v 64 -a
fi

if [ $1 = '-Debian_9' ]
then
    wget --no-check-certificate -qO koiok.sh 'https://tech.cxthhhhh.com/tech-tools/Network-Reinstall-System-Modify/koiok.sh' && bash koiok.sh -d 9 -v 64 -a
fi

if [ $1 = '-Ubuntu_14.04' ]
then
    wget --no-check-certificate -qO koiok.sh 'https://tech.cxthhhhh.com/tech-tools/Network-Reinstall-System-Modify/koiok.sh' && bash koiok.sh -u 14.04 -v 64 -a
fi

if [ $1 = '-Ubuntu_16.04' ]
then
    wget --no-check-certificate -qO koiok.sh 'https://tech.cxthhhhh.com/tech-tools/Network-Reinstall-System-Modify/koiok.sh' && bash koiok.sh -u 16.04 -v 64 -a
fi

if [ $1 = '-Ubuntu_18.04' ]
then
    wget --no-check-certificate -qO koiok.sh 'https://tech.cxthhhhh.com/tech-tools/Network-Reinstall-System-Modify/koiok.sh' && bash koiok.sh -u 18.04 -v 64 -a
fi

if [ $1 = '-Windows_Server_2003' ]
then
    wget --no-check-certificate -qO koiok.sh 'https://tech.cxthhhhh.com/tech-tools/Network-Reinstall-System-Modify/koiok.sh' && bash koiok.sh -dd 'https://opendisk.cxthhhhh.com/OperatingSystem/Windows/Disk_Windows_DD/Disk_Windows_Server_2003_DataCenter_CN.vhd.gz'
fi

if [ $1 = '-Windows_7_Vienna' ]
then
    wget --no-check-certificate -qO koiok.sh 'https://tech.cxthhhhh.com/tech-tools/Network-Reinstall-System-Modify/koiok.sh' && bash koiok.sh -dd 'https://opendisk.cxthhhhh.com/OperatingSystem/Windows/Disk_Windows_DD/Disk_Windows_7_Vienna_Ultimate_CN.vhd.gz'
fi

if [ $1 = '-Windows_Server_2008R2' ]
then
    wget --no-check-certificate -qO koiok.sh 'https://tech.cxthhhhh.com/tech-tools/Network-Reinstall-System-Modify/koiok.sh' && bash koiok.sh -dd 'https://opendisk.cxthhhhh.com/OperatingSystem/Windows/Disk_Windows_DD/Disk_Windows_Server_2008R2_DataCenter_CN.vhd.gz'
fi

if [ $1 = '-Windows_Server_2012R2' ]
then
    wget --no-check-certificate -qO koiok.sh 'https://tech.cxthhhhh.com/tech-tools/Network-Reinstall-System-Modify/koiok.sh' && bash koiok.sh -dd 'https://opendisk.cxthhhhh.com/OperatingSystem/Windows/Disk_Windows_DD/Disk_Windows_Server_2012R2_DataCenter_CN.vhd.gz'
fi

if [ $1 = '-Windows_Server_2016' ]
then
    wget --no-check-certificate -qO koiok.sh 'https://tech.cxthhhhh.com/tech-tools/Network-Reinstall-System-Modify/koiok.sh' && bash koiok.sh -dd 'https://opendisk.cxthhhhh.com/OperatingSystem/Windows/Disk_Windows_DD/Disk_Windows_Server_2016_DataCenter_CN.vhd.gz'
fi

if [ $1 = '-Windows_Server_2019' ]
then
    wget --no-check-certificate -qO koiok.sh 'https://tech.cxthhhhh.com/tech-tools/Network-Reinstall-System-Modify/koiok.sh' && bash koiok.sh -dd 'https://opendisk.cxthhhhh.com/OperatingSystem/Windows/Disk_Windows_DD/Disk_Windows_Server_2019_DataCenter_CN.vhd.gz'
fi


echo "---------------------------------------------------------------------------------------------------------------------"
echo -e "\033[31m !!!!!!!!Error!!!!!!!!Error!!!!!!!!Error!!!!!!!! \033[0m"
echo -e "\033[31m Please check if the options are correct. For example [-CentOS_7/-Windows_Server_2019] \033[0m"
echo "---------------------------------------------------------------------------------------------------------------------"
echo -e "\n"
exit

 
分享的是<a href="https://moeclub.org/2018/04/03/603/?v=476">萌咖的一键脚本</a>和<a href="https://tech.cxthhhhh.com/linux/2018/11/29/original-one-click-network-reinstall-system-magic-modify-version-for-linux-windows-cn.html">cxthhhhh</a>一键包,2个都非常好用,感谢有这么多的开源大佬,让网络世界更美好!!!!

标签: vps 服务器 重装系统
最后更新:2019年9月24日

mikj

这个人很懒,什么都没留下

打赏 点赞
< 上一篇
下一篇 >

文章评论

您需要 登录 之后才可以评论
站内搜索
最新 热点 随机
最新 热点 随机
网站Cloudflare使用CDN后如何获取前端真实客户IP Win10 共享文件夹(设置账户密码与终止所有连接) 戴尔PowerEdge R430设置RAID0 安装WINDOWS10 实践Google Voice号码转移到Ultra Mobile Paygo套餐的实体sim卡 Giffgaff英国+44手机SIM卡免费领取 Server酱和Qmsg酱两个好用的推送服务 linux的ssh服务升级后无法启动修复 linux服务器的硬盘使用时间查询 启用chrome浏览器内置的二维码生成插件 宝塔面板或者LNMP下安装php的mongodb扩展
网站Cloudflare使用CDN后如何获取前端真实客户IP
各大银行可免年费的白金卡 BackLinks卖链接赚美元 设置IIS中最小权限分配的批处理文件(安全配置) Ubuntu/debian 网络安装或者重装centos6.9系统,适用大部分云 CentOS/RHEL Linux安装EPEL第三方软件源 WordPress静态化实用插件cos-html-cache使用方法 mysql5.0忘记ROOT密码解决办法 Gost配合iptables转发反代cloudflare加速网站(转) AWS lightsail Ubuntu系统替换内核启用BBR加速(转sandy) Windows PowerShell批量创建Office 365 子账户(转)
标签聚合
域名 DirectAdmin 网盘 安装 ubuntu vps linux 系统 wordpress 免费 Cloudflare centos 月捐 debian 服务器 面板 代码 php 插件 升级
分类
  • Linux
  • VPS服务器
  • windows
  • wordpress
  • 域名相关
  • 建站分享
  • 教程学习
  • 数据库类
  • 未分类
  • 资源分享
友情链接
  • 我喔喔喔
  • 怪鸟博客
  • QQTM论坛
  • vzone
  • LiCEO
  • logdns.free.fr
  • 我的图库
  • 寥寥后花园
  • QQPCC
  • 撸羊毛
  • 娃娃博客
  • 爱购啦
  • semnew
  • 夜狐
  • 小沨记事本
  • xiaofengsky.free.fr
  • 回到未来博客
  • 豆博
  • 午夜客
  • 陈否否
  • 麦麦同学
  • 2.int.ru
  • 轨迹博客
  • 傻子-跸西的blog
  • 李子博客
  • 天下无鱼
  • 死老鬼
  • 朱志瑞
AD

COPYRIGHT © 2022 Xinai.De. ALL RIGHTS RESERVED.@ 网站运行:@ 服务器运行状态

THEME KRATOS MADE BY VTROIS