GithubHelp home page GithubHelp logo

meowlove / network-reinstall-system-modify Goto Github PK

View Code? Open in Web Editor NEW
1.1K 17.0 375.0 155.31 MB

It can reinstall CentOS, Debian, Ubuntu, Windows 2003, 7, 2008R2, 2012R2, 2016, 2019 and other systems (continuously added) via the Internet, and can install any system via mounting remote network ISO.

Home Page: https://cxthhhhh.com/

License: GNU General Public License v3.0

Shell 100.00%

network-reinstall-system-modify's Issues

时区的问题

希望DD完之后,时区默认设置为Asia/Shanghai

用的Debian 11

可否设置带自定义安装源?

使用这个脚本安装在外国服务器/VPS速度是非常快的,
然而使用在 阿里云,腾讯云上时,有时候速度很慢,检查网络的时候。发现软件 下载速度为 10多KB/s ~

如果能有一条自定义安装源(参数)的话。也许是很不错的方案,
当然也希望 自定义几条 官方版本的 安装源~ 这样方便小白~

Presente [invalid mirror] after executing [bash ~/Network-Reinstall-System-Modify.sh -CentOS_7]

You have chosen to install the latest CentOS_7

Check Dependence

[ok] iconv
[ok] wget
[ok] awk
[ok] grep
[ok] sed
[ok] cut
[ok] cat
[ok] cpio
[ok] gzip
[ok] find
[ok] dirname
[ok] basename
Error! Invaild mirror!
example: http://deb.debian.org/debian

Usage:
bash Core_Install.sh -d/--debian [dists-name]
-u/--ubuntu [dists-name]
-c/--centos [dists-verison]
-v/--ver [32/i386|64/amd64]
--ip-addr/--ip-gate/--ip-mask
-apt/-yum/--mirror
-dd/--image
-a/--auto
-m/--manual

Start Installation
Start Installation

/root/Network-Reinstall-System-Modify.sh: line 77: i: command not found

Start Installation
Start Installation

Ubuntu 20 dd成debian 10报错

# Install

Auto Mode insatll [Debian] [buster] [amd64]. 

[Debian] [buster] [amd64] Downloading...
Error, Not found interfaces config.
---------------------------------------------------------------------------------------------------------------------
 启动 安装 
 Start Installation 
---------------------------------------------------------------------------------------------------------------------


---------------------------------------------------------------------------------------------------------------------
 启动 安装 
 Start Installation 

root@ubuntu:~# 

网络配置在/etc/netplan/01-netcfg.yaml内

#This file describes the network interfaces available on your system
# For more information, see netplan(5).
network:
  version: 2
  renderer: networkd
  ethernets:
    ens3:
      addresses: [ aaa.bbb.ccc.196/24 ]
      gateway4: aaa.bbb.ccc.254
      nameservers:
          addresses:
              - "1.1.1.1"

谷歌云

谷歌云不能DD,不知道大佬那边能不能DD,我试了乌班图跟得班。

为什么总有人想着靠捐赠来钱

同等的条件下。有人靠自己的双手光明赚钱,任劳任怨,有人却打起了水滴筹这些工具的主意,靠出卖亲人的惨状来赚钱,想着一夜来钱
不管实与不实,这对普通人来说,公平吗?


翻着支付宝几百几十点偷偷领取捐款的那点面目,不可憎吗?属实穷想钱疯
在后台提取10W几十W的嘴脸,想着来钱这么容易,一边暗喜一边嘲笑别人人傻钱多,不知道有多难看。

比如hostloc上那位

月薪4k求捐20W要钱又要脸又毒又菜hostloc某打包怪natee

https://hostloc.com/thread-850951-1-1.html
请欣赏natee爽文片断:

你们怎么也不敢相信,会喊爸爸妈妈爷爷奶奶的小宝贝,居然患病这么久,才两岁半,就要承受大手术!在身体上开如此多刀!看到他浑身插满管子虚弱地躺在ICU病房里,真希望自己能分担他的痛苦!我现在真是心如刀割!家人也每天以泪洗面!

以下是网友一些评论:


月薪4k求捐20W,技术菜,又要钱又要脸,作恶多端,他不倒霉谁倒霉,可怜他孩子帮他受 ----- 某网友

"天爷开眼呐。恶有恶报呗。哭捐作文写真惨专行恶毒陷害之事,恶毒还作恶,很难给这种人共情" ----- 某网友

他孩子有多可怜,他这个父亲面目就有多可憎 ----- 某网友

站在道义上讲我希望他儿子康复,站在他的父亲所作所为来讲,如果可以与他儿子换,我希望他父亲可以双倍承受 ----- 某网友

每天看一次,把孩子设想为他父亲,心情莫名畅快 ----- 某网友

一个男人最怕的不是装B,而是在比他技术还好的人面前装错了B,技不如人话术不如人,还找了个某版主当爹每次都能惯着他,哈哈 ----- 某网友


一个人应该靠自己的双手赚钱,而不是拿自己儿子赚钱,背后对一个人凶狠明面对一群人哭穷装狗,翻着支付宝几百几十点偷偷领取捐款的那点面目,不可憎吗?属实穷想钱疯 ----- 某网友

一个只会打包缝合win的人,爱以大佬自喜,却去带风陷害一个会写脚本的,人家明码标价光明赚钱,这个却只会点假技术,乞讨哭穷四处,拿儿子揽钱,状如行骗,高下立判。 ----- 某网友

natee敢不敢来qqvps.com来继续对线 ----- 某网友

无限循环,无法完成重装

已经试过阿里云ecs、轻量云,腾讯云cvm,Vultr和本地虚拟机,试用大佬的脚本重装系统,连续跑三天三夜还无法完成重装,一直在重复那几个弹窗和流程

CentOS_7.X_NetInstall_AutoPartition 404

https://opendisk.cxthhhhh.com/OperatingSystem/CentOS/CentOS_7.X_NetInstall_Partition.sh
404 ~
Unable to partition automatically

Can you provide this file download?

自定义远程端口

VPS,限制端口,没有22/3389
如果服务商还没有提供VNC就很麻烦
希望可以自定义远程端口

Core_Install.sh: line 656: /tmp/initrd.img.gz: No such file or directory

After run
bash ./Network-Reinstall-System-Modify.sh -Ubuntu_20.04

It shows:

# Install

Auto Mode install [Ubuntu] [focal] [amd64].

[Ubuntu] [focal] [amd64] Downloading...
Core_Install.sh: line 656: /tmp/initrd.img.gz: No such file or directory
.
./preseed.cfg
6 blocks
---------------------------------------------------------------------------------------------------------------------
 Start Installation
 Start Installation
---------------------------------------------------------------------------------------------------------------------


root@xxx:~/Network-Reinstall-System-Modify-Stable_Version-3.1.1# Connection to xxxx closed by remote host.
Connection to xxx closed.

and I can't connect to my server through vnc
image

Please to have a look.

dd 失败

dd centos 系统的时候出现 。服务商为virmach 原因是virmach迁移到 锐龙新平台手贱折腾了一下

1656040449781

dd debian 无问题。

It does not support Google Cloud VM

As title said, this script does not support google cloud. No matter what the initial system is, after use this script it will be loss connection to ssh.

line 95: [: ==: unary operator expected

---------------------------------------------------------------------------------------------------------------------
 对当前系统环境进行处理. . .  【OK】                            
 Pre-environment preparation. . .  【OK】                          
                                                                
                                                                
 检测系统信息. . .                                              
 Detection system information. . .                              
---------------------------------------------------------------------------------------------------------------------

                                               
/root/Network-Reinstall-System-Modify.sh: line 95: [: ==: unary operator expected
/root/Network-Reinstall-System-Modify.sh: line 95: [: ==: unary operator expected
Legacy...     

arch linux 运行脚本后 选择 10) Ubuntu 22【Recommend】 报错

当前系统是 arch linux 运行脚本后 选择 10) Ubuntu 22【Recommend】 报错

请选择(Your option):
10

Install...Ubuntu 22

任意键继续(Press any key to continue...)Error! Not Found grub.

然后就退出了

重新运行脚本发现
发现是系统判断错误了

当前系统 是 CentOS/Rocky/Oracle/RHEL
Current system is CentOS/Rocky/Oracle/RHEL
/root/Network-Reinstall-System-Modify.sh: line 79: yum: command not found
/root/Network-Reinstall-System-Modify.sh: line 80: dnf: command not found

linode not work

7台LinodeVPS测试都失联了。
预计是网卡识别问题?
其其实挺建议在VPS启用net.ifnames=0
也就是重命名成ethx的..

unreachable gateway

在rfchost vps上使用安装脚本,会提示unreachable gateway,安装进度卡死,通过vnc链接,选中continue并回车也还是这个页面
image

添加 Ubuntu 20.04 LTS (Focal)

[[ "$isDigital" == '12.04' ]] && DIST='precise';
[[ "$isDigital" == '14.04' ]] && DIST='trusty';
[[ "$isDigital" == '16.04' ]] && DIST='xenial';
[[ "$isDigital" == '18.04' ]] && DIST='bionic';

上面这里加 20.04 的话下面这行使用 20.04 的话需要把 /current/images/netboot/... 改成 /current/legacy-images/netboot/...

wget --no-check-certificate -qO '/boot/initrd.img' "${LinuxMirror}/dists/${DIST}${inUpdate}/main/installer-${VER}/current/images/netboot/${linux_relese}-installer/${VER}/initrd.gz"

Not found `ip command`, It will use `route command`. Error! Not configure network. RUVDS 运行出错


# Install

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

[Ubuntu] [focal] [amd64] Downloading...
Not found `ip command`, It will use `route command`.
Error! Not configure network.
---------------------------------------------------------------------------------------------------------------------
 启动 安装
 Start Installation
---------------------------------------------------------------------------------------------------------------------


root@ruvds-0rbry:/root #

net-tools 已经安装。

【bug】alibabacloud ecs Infinite loop installation

When I executed your installation script, everything looked fine.

No errors were reported.

I executed the following script to install cents7:
Bash ~/Network-Reinstall-System-Modify.sh -CentOS_7

After the server restarts, it enters an infinite loop of install process.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.