Mengka one click Network reload script supports Tencent cloud Alibaba cloud Huawei cloud Oracle Oracle Amazon Google cloud Microsoft cloud

Posted by $Three3 on Mon, 07 Mar 2022 16:02:20 +0100

Monitoring software such as yundun is installed on the machines of big factories, and it can't be deleted cleanly. Here, record the DD script of mengga guy and 94ish for your own use 21-10-8:

vv latest one button: 1. Add full support for Oracle AMD and Oracle ARM It can support network reinstallation from Ubuntu, Oracle, Linux and other systems 2. Update the basic system version of dd image 3. Remove the dependence on external wget 4. Add the - port parameter to change the default SSH port 5. Update the built-in network parameter calculation logic 6. Update the location logic of grub configuration file to support any system that boots grub The following systems have passed the test (other self tests): Debian: 9, 10, 11; Ubuntu: 18.04, 20.04; CentOS: 6.10; The following platforms have passed the test (other self tests): Oracle,Do,Azure

Example:

bash <(wget --no-check-certificate -qO- 'https://raw.githubusercontent.com/MoeClub/Note/master/InstallNET.sh') -d 10 -v 64 -p "custom root password" - port "custom ssh port"

One click of 94ish:

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

One click of hicasper:

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

Cute script:

first Debian/Ubuntu:

apt-get update

RedHat/CentOS:

yum update

Ensure that the required software is installed:

Debian/Ubuntu:

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

RedHat/CentOS:

yum install -y xz openssl gawk file

System after DD User name: root Password: laome com

One click to Debian 10:

Huawei, Tencent and Arico download images on their intranet very quickly

Huawei

bash <(wget --no-check-certificate -qO- 'http://kefu-service-it.oss-cn-shenzhen.aliyuncs.com/xlorder/label/ba48163d-110e-4882-8bd1-e6cd5de01bd2.sh') -d 10 -v 64 -a --mirror 'https://mirrors.huaweicloud.com/debian/'

Ali

bash <(wget --no-check-certificate -qO- 'http://kefu-service-it.oss-cn-shenzhen.aliyuncs.com/xlorder/label/ba48163d-110e-4882-8bd1-e6cd5de01bd2.sh') -d 10 -v 64 -a --mirror 'https://mirrors.aliyun.com/debian/'

tencent

bash <(wget --no-check-certificate -qO- 'http://kefu-service-it.oss-cn-shenzhen.aliyuncs.com/xlorder/label/ba48163d-110e-4882-8bd1-e6cd5de01bd2.sh') -d 10 -v 64 -a --mirror 'https://mirrors.cloud.tencent.com/debian/'

Oracle debian9 firmware

bash <(wget --no-check-certificate -qO- 'http://kefu-service-it.oss-cn-shenzhen.aliyuncs.com/xlorder/label/ba48163d-110e-4882-8bd1-e6cd5de01bd2.sh') -d 9 -v 64 -a -firmware

To customize the system image, first download the script:

wget --no-check-certificate -qO InstallNET.sh 'http://kefu-service-it.oss-cn-shenzhen.aliyuncs.com/xlorder/label/ba48163d-110e-4882-8bd1-e6cd5de01bd2.sh' && chmod a+x InstallNET.sh

Specific 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: release version code Dist version: release version number -apt/-yum/--mirror: use to define a mirror -a/-m: ask whether you can enter VNC for self operation- a means no prompt (generally used for full-automatic installation), - m means prompt# For example:**

Fully automatic installation of debian 9 64 bit

bash InstallNET.sh -d 9 -v 64 -a --mirror 'http://mirrors.ustc.edu.cn/debian/'

Automatic installation of ubuntu 18.10 64 bit

bash InstallNET.sh -u 18.10 -v 64 -a --mirror 'http://archive.ubuntu.com/ubuntu/'

Fully automatic installation of CentOS 6.10 64 bit

bash InstallNET.sh -c 6.10 -v 64 -a --mirror 'http://mirror.centos.org/centos'

In the following example, replace X.X.X.X with your own network parameters --IP addr: IP address / IP address --IP gateway: gateway / gateway --IP mask: netmask / subnet mask

Automatic installation using custom image and custom network parameters

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'

Automatic dd installation using custom network parameters

bash InstallNET.sh --ip-addr x.x.x.x --ip-gate x.x.x.x --ip-mask x.x.x.x -dd 'Mirror straight chain'

DD Win10 64 bit mengka LTSC2019 [account Administrator password Vicer]

wget --no-check-certificate -qO InstallNET.sh 'http://kefu-service-it.oss-cn-shenzhen.aliyuncs.com/xlorder/label/ba48163d-110e-4882-8bd1-e6cd5de01bd2.sh' && bash InstallNET.sh -dd 'https://api.moeclub.org/GoogleDrive/1BZa8klp2zyI0hXervHy7PESTcSHDY1uD'

DDwin custom image

wget --no-check-certificate -qO InstallNET.sh 'http://kefu-service-it. oss-cn-shenzhen. aliyuncs. com/xlorder/label/ba48163d-110e-4882-8bd1-e6cd5de01bd2. sh' && bash InstallNET. SH -dd 'win mirror straight chain'

GCP DDwin Win10 64 bit mengga LTSC2019 [account Administrator password Vicer]: Remember to change your intranet and gateway:

sudo -i
wget --no-check-certificate -qO InstallNET.sh 'http://kefu-service-it.oss-cn-shenzhen.aliyuncs.com/xlorder/label/ba48163d-110e-4882-8bd1-e6cd5de01bd2.sh' && bash InstallNET.sh --ip-addr 10.142.0.3 --ip-mask 255.255.255.0 --ip-gate 10.142.0.1 -dd 'https://api.moeclub.org/GoogleDrive/1BZa8klp2zyI0hXervHy7PESTcSHDY1uD'

If Debian9 and Ubuntu 16 are installed, the following problems occur: Auto Mode insatll [Debian] [stretch] [amd64]. [Debian] [stretch] [amd64] Downloading... Error, Not found interfaces config.

ssh: run the following two commands dd: Command 1

mkdir /etc/network/interfaces.d

Command 2

echo "# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug ens3
iface ens3 inet dhcp

" > /etc/network/interfaces

echo "# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug ens3
iface ens3 inet dhcp

" > /etc/network/interfaces