Oracle reinstall system

0.自动执行脚本:

oraclecloud-lambda-1-min

1.参考文章https://www.tok9.com/archives/543/

#下载及说明:

InstallNET.sh

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 为提示.

#安装debian9 (-firmware 额外驱动支持)

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

#安装ubuntu16.04 (-firmware 额外驱动支持)

bash <(wget --no-check-certificate -qO- 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh') -u 16.04 -v 64 -a -firmware
bash <(wget --no-check-certificate -qO- 'https://www.dream88.net/wp-content/uploads/2020/11/InstallNET.sh') -u 16.04 -v 64 -a -firmware

安装Debian9Ubuntu16出现以下问题:

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

[Debian] [stretch] [amd64] Downloading

Error, Not found interfaces config.

ssh运行下面 两个命令就可以dd了

mkdir /etc/network/interfaces.d

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

重装后SSH登录,用户名root,密码:MoeClub.org

修改root密码

passwd
Enter new UNIX password:

连续输入两次新密码就可以

 

CentOS 6.9 64位:

bash <(wget –no-check-certificate -qO- ‘https://moeclub.org/attachment/LinuxShell/InstallNET.sh’) -c 6.9 -v 64 -a

CentOS 6.9 32位:

bash <(wget –no-check-certificate -qO- ‘https://moeclub.org/attachment/LinuxShell/InstallNET.sh’) -c 6.9 -v 32 -a
重装为Debian:
以下命令中的 -d 后面为Debian版本号,-v 后面为64位/32位,可根据需求进行替换。

Debian 8 64位:

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

Debian 9 64位:

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

重装为Ubuntu:
以下命令中的 -u 后面为Ubuntu版本号,-v 后面为64位/32位,可根据需求进行替换。

Ubuntu 12.04 64位:

bash <(wget –no-check-certificate -qO- ‘https://moeclub.org/attachment/LinuxShell/InstallNET.sh’) -u 12.04 -v 64 -a

Ubuntu 14.04 64位:

bash <(wget –no-check-certificate -qO- ‘https://moeclub.org/attachment/LinuxShell/InstallNET.sh’) -u 14.04 -v 64 -a

Ubuntu 16.04 64位:

bash <(wget –no-check-certificate -qO- ‘https://moeclub.org/attachment/LinuxShell/InstallNET.sh’) -u 16.04 -v 64 -a

Ubuntu 18.04 64位:

bash <(wget –no-check-certificate -qO- ‘https://moeclub.org/attachment/LinuxShell/InstallNET.sh’) -u 18.04 -v 64 -a

passwd root 修改密码