本来是放到别的文章下面的.后来发现经常用到,还是独立写个文章吧

此为甲骨文 ORACLE Centos7 系统专用哦!

Centos7重装

首次从C7重装为C7

将以下代码全部复制后到ssh粘贴回车即可

主要是使用initrd.imgvmlinuz来运行网络VNC

yum -y install wget vim lsof net-tools

cat << EOF >/boot/Reinstall.sh
#!/bin/bash
rm -rf /boot/initrd77.img /boot/vmlinuz77
wget -P /boot/ http://vault.centos.org/7.2.1511/os/x86_64/images/pxeboot/initrd.img -O /boot/initrd77.img
wget -P /boot/ http://vault.centos.org/7.2.1511/os/x86_64/images/pxeboot/vmlinuz -O /boot/vmlinuz77
cat << EOFEOF>/etc/grub.d/40_custom
#!/bin/sh
exec tail -n +3 \\\$0
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
menuentry "VNCInstallCentos7" {
    set root='(hd0,gpt3)'
    linuxefi /boot/vmlinuz77 inst.vnc inst.vncpassword=11223355 inst.headless ip=dhcp nameserver=114.114.114.114 inst.repo=http://vault.centos.org/7.2.1511/os/x86_64/ inst.lang=en_US inst.keymap=us
    initrdefi /boot/initrd77.img
}

EOFEOF
#sed -i 's/GRUB_DEFAULT=saved/g' /etc/default/grub
grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg
grub2-reboot VNCInstallCentos7
reboot
EOF

bash /boot/Reinstall.sh

等待网络核心启动完成,然后用vnc连接机器IP:1 密码为11223355

再次从C7重装为C7

将以下代码全部复制后到ssh粘贴回车即可(注意这里的gpt2,有些机器可能是gpt3)

yum -y install wget vim lsof net-tools

cat << EOF >/boot/Reinstall.sh
#!/bin/bash
rm -rf /boot/initrd77.img /boot/vmlinuz77
wget -P /boot/ http://vault.centos.org/7.2.1511/os/x86_64/images/pxeboot/initrd.img -O /boot/initrd77.img
wget -P /boot/ http://vault.centos.org/7.2.1511/os/x86_64/images/pxeboot/vmlinuz -O /boot/vmlinuz77
cat << EOFEOF>/etc/grub.d/40_custom
#!/bin/sh
exec tail -n +3 \\\$0
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
menuentry "VNCInstallCentos7" {
    set root='(hd0,gpt2)'
    linuxefi /vmlinuz77 inst.vnc inst.vncpassword=11223355 inst.headless ip=dhcp nameserver=114.114.114.114 inst.repo=http://vault.centos.org/7.2.1511/os/x86_64/ inst.lang=en_US inst.keymap=us
    initrdefi /initrd77.img
}

EOFEOF
#sed -i 's/GRUB_DEFAULT=saved/g' /etc/default/grub
grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg
grub2-reboot VNCInstallCentos7
reboot
EOF

bash /boot/Reinstall.sh

等待网络核心启动完成,然后用vnc连接机器IP:1 密码为11223355

从原生Linux系统重装为C7

将以下代码全部复制后到ssh粘贴回车即可

yum -y install wget vim lsof net-tools

cat << EOF >/boot/Reinstall.sh
#!/bin/bash
rm -rf /boot/initrd77.img /boot/vmlinuz77
wget -P /boot/ http://vault.centos.org/7.2.1511/os/x86_64/images/pxeboot/initrd.img -O /boot/initrd77.img
wget -P /boot/ http://vault.centos.org/7.2.1511/os/x86_64/images/pxeboot/vmlinuz -O /boot/vmlinuz77
cat << EOFEOF>/etc/grub.d/40_custom
#!/bin/sh
exec tail -n +3 \\\$0
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
menuentry "VNCInstallCentos7" {
    set root='(hd0,gpt3)'
    linuxefi /boot/vmlinuz77 inst.vnc inst.vncpassword=11223355 inst.headless ip=dhcp nameserver=114.114.114.114 inst.repo=http://vault.centos.org/7.2.1511/os/x86_64/ inst.lang=en_US inst.keymap=us
    initrdefi /boot/initrd77.img
}

EOFEOF
#sed -i 's/GRUB_DEFAULT=saved/g' /etc/default/grub
grub2-mkconfig -o /boot/efi/EFI/redhat/grub.cfg
grub2-reboot VNCInstallCentos7
reboot
EOF

bash /boot/Reinstall.sh

等待网络核心启动完成,然后用vnc连接机器IP:1 密码为11223355

Win7

  • 此DD包仅适用于Oracle甲骨文Ubuntu DD Win使用

说明:Oracle是采用UEFI启动,普通DD包均不支持UEFI启动

DD Windows 7 64位旗舰精简版 Oracle甲骨文专用 [账户Administrator密码www.nat.ee]

apt-get install -y xz-utils openssl gawk file
wget --no-check-certificate -qO InstallNET.sh 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh' && bash InstallNET.sh -dd 'https://api.moeclub.org/GoogleDrive/1NHKdm3xfQ3HySNCGvrzgdz7RMVCI1qGy'

激活可使用Chew-WGA0.9完美激活器

KMS 激活方案

2017-1-1 0

Centos7开启bbr

作者测试成功的方法,供大家参考
2020年8月2日 甲骨文韩国 尝试使用最新版本5.8.0安装启动使用正常

wget http://mirror.rc.usf.edu/elrepo/kernel/el7/x86_64/RPMS/kernel-ml-5.8.0-1.el7.elrepo.x86_64.rpm
yum install -y ./kernel-ml-5.8.0-1.el7.elrepo.x86_64.rpm

# 重新创建内核配置
grub2-mkconfig -o /boot/grub2/grub.cfg

# 查看系统中已有内核:
awk -F\' '$1=="menuentry " {print i++ " : " $2}' /boot/grub2/grub.cfg

# 调整默认内核
grub2-set-default 0

# 开启BBR+fq
echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf
echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf

# 关闭selinux
vi /etc/sysconfig/selinux
SELINUX=disabled

# 重启
reboot
# 然后查看bbr状态
lsmod |grep bbr
sysctl net.ipv4.tcp_available_congestion_control
------------------------------------------------------------
# 显示所有内核
rpm -qa | grep kernel
# 最后,删除不能启动的内核以及旧内核
yum remove kernel-ml-5.5.7-1.el7.elrepo.x86_64
yum remove kernel-3.10.0-327.el7.x86_64
# 清理之后可能需要重新创建内核配置
grub2-mkconfig -o /boot/grub2/grub.cfg

# 其他
# 开启BBR+cake
echo "net.core.default_qdisc=cake" >> /etc/sysctl.conf
echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf
# 然后查看bbr状态
sysctl net.ipv4.tcp_available_congestion_control

error

  • Error, Not found interfaces config.
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