甲骨文云(Oracle)DD系统教程

甲骨文云DD系统教程

如果创建选择系统Canonical Ubuntu 16.04的话,复制下面代码放CLOUD-INIT即可,不需要密钥 直接用root账号登录 初始账号root 密码Abc123456

#!/bin/bash
echo root:Abc123456 |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 service sshd restart

DD

debian 10 64bit:

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

Ubuntu 16.04 64bit(未实验,谨慎使用):

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

centOS 6.9 64bit(未实验,谨慎使用):

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

dd时间大概15分钟左右 初始账号root 密码MoeClub.org

原文教程 https://www.hostloc.com/thread-776004-1-1.html

国内鸡用这个

自己更换国内源也可以,什么设置密码 -p passwd,或者用默认密码
是: MoeClub.org
http://mirrors.cloud.tencent.com/debian/
https://mirrors.cloud.tencent.com/ubuntu/
更多https://hostloc.com/thread-856508-1-1.html

bash <(wget --no-check-certificate -qO- 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh') -d 10 -v 64 -a -firmware --mirror 'http://mirrors.ustc.edu.cn/debian/'
bash <(wget --no-check-certificate -qO- 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh')  -u 18.04 -v 64 -a -firmware --mirror 'http://mirrors.ustc.edu.cn/ubuntu/'

Vicer 大佬2021.8.22更新

1.新增对 Oracle AMD,Oracle ARM全面支持. 可支持从 Ubuntu, Oracle Linux 等系统网络重装.
2.更新 dd 镜像的基础系统版本.
3.移除对外部 wget 的依赖.
4.新增 -port 参数, 可更改默认SSH端口.
5.更新 内置的网络参数计算 逻辑.
6.更新 grub 配置文件定位逻辑, 可支持任意引导grub的系统.

以下系统已通过测试(其他自测):
Debian: 9, 10, 11;
Ubuntu: 18.04, 20.04;
CentOS: 6.10;
以下平台已通过测试(其他自测):
Oracle、Do、Azure

示例:

bash <(wget --no-check-certificate -qO- 'https://raw.githubusercontent.com/MoeClub/Note/master/InstallNET.sh') -d 10 -v 64 -p "自定义root密码" -port "自定义ssh端口"

开机改密:

#!/bin/bash
echo root:Vicer |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

url: https://hostloc.com/thread-882460-1-1.html