最近Oracle Cloud甲骨文上线了免费云套餐.
甲骨文声称永远免费使用,服务包括Oracle数据库,云计算主机,对象存储

Oracle Cloud注册地址

https://www.oracle.com/cloud/free/#always-free

韩国区域控制面板登录地址

https://console.ap-seoul-1.oraclecloud.com/

官方网站

oraclecloud.com

创建实例时必须粘贴SSH公钥
下面是我创建的,你自己需要重新生成

ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAwOVpNIr+W8t/trkcGdGqIfw8p9zScTMEyL0cTqadx6s3p2clwkFpenBsfgW54X9v+NmfsIR595lWAQ158y1h2AjHx83Wt1C3Ph2GQv4VDyA7r/mJuSsOX2Agcz8Ut5PWNi9MQrrVCwWQutgr3y4k+JB/JjAMihu2ZVDB0QUH+uYU50BdNMI2Rd6z9e4RuiU71SRmip5M6gn4c4A1kLAzIOk0kteOlKnq5S42+Xpg/1XkULe2Q69FAky8XWhejvrwShDDtrovl9ggjW6XE3ZgCcsHVAgCrfa2Gt+JnlLVNSAthaQCxtIMm6sNy/wxeNzeb7I6jST9Y5DFZ/GP3XQjwQ== rsa 2048-091819

Oracle使用root用户密码登录
将下面的代码粘贴到init-cloud

#!/bin/bash
echo root:rootpasswd |sudo chpasswd root
sudo sed -i 's/^#\?PermitRootLogin.*/PermitRootLogin yes/g' /etc/ssh/sshd_config;
sudo sed -i 's/^#\?PasswordAuthentication.*/PasswordAuthentication yes/g' /etc/ssh/sshd_config;
sudo reboot

Oracle自动提交代码
F12贴到Console然后回车,可以在Out of host capacity 时自动循环提交创建实例

var i = 1;

function myLoop () {
   setTimeout(function () {
      document.getElementsByClassName('oui-button oui-button-primary')[0].click();
      i++;
      if (i < 36000) {
         myLoop();
      }
   }, 10000)
}

myLoop();

甲骨文创建实例时未上传公钥的解决方法

访问官方博客按步骤解决

https://blogs.oracle.com/cloud-infrastructure/recovering-opc-user-ssh-key-on-oracle-cloud-infrastructure

甲骨文实例临时更换IP

打开实例,进入实例详细信息
打开左侧附加的VNIC
编辑当前IP,选择没有公共IP,更新
再次编辑一下,选择临时/公共IP,更新
IP更换完成
甲骨文云实例重装操作系统(centos7)

甲骨文的实例都带有VNC,可以进入VNC进行网络重装(密码在下面自定义)
来源 https://file.bani99.com/oracle_centos7x.txt

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.0.1406/os/x86_64/images/pxeboot/initrd.img -O /boot/initrd77.img
wget -P /boot/ http://vault.centos.org/7.0.1406/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=vnc12345678 inst.headless ip=dhcp nameserver=8.8.8.8 inst.repo=http://vault.centos.org/7.0.1406/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

甲骨文云实例f防火墙设置ICMP允许PING

f防火墙默认值允许22端口访问,我们需要放行其他端口
按路径打开网络->虚拟云网络->虚拟云网络详细信息->安全列表->安全列表详细信息->入站规则
添加一个入站规则允许所有协议即可
注意删除默认的ICMP规则,会冲突
ubuntu16一键网络重装正式支持 Oracle/甲骨文机器

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

root密码: MoeClub.org

https://kernel.ubuntu.com/~kernel-ppa/mainline/

来源: https://www.hostloc.com/thread-587961-1-1.html
甲骨文云实例一键网络重装更换windows7

#说明:Oracle是采用UEFI启动,普通DD包均不支持UEFI启动
#DD Windows 7 64位旗舰精简版 Oracle甲骨文专用 [账户Administrator密码www.nat.ee]

wget --no-check-certificate -qO InstallNET.sh 
'https://moeclub.org/attachment/LinuxShell/InstallNET.sh' && bash InstallNET.sh -dd 
'https://image.moeclub.org/GoogleDrive/1VQ9FUXaU9pyVL5WzgD2lfP1h-qNYNvf2'

来源: https://sunpma.com/137.html
甲骨文云实例更换centos7内核

先生成grub2配置,然后切换root安装内核

grub2-mkconfig -o /boot/grub2/grub.cfg
grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg

:
1. 切换成 root
2. 重新生成 grub2.cfg, 命令如下:
grub2-mkconfig -o /boot/grub2/grub.cfg
3. 跑你要跑的 bbr.sh

可以解决CentOS 7系统无法安装BBR的问题
甲骨文注册神秘代码
启用同意按钮

$("#main > div > div.col-md-8.col-xs-12.mainContainer > div.contentContainer > div.agreementComponent > label > input[type=checkbox]").removeAttr("disabled");

间隔10秒自动点击同意

setInterval(function(){
    document.getElementsByClassName('checkmark')[0].click();
    document.getElementById('startMyTrialBtn').click()},10000);

来源 https://www.livelu.com/201909364.html

最后编辑:2023年12月07日

发表评论