前两个可以复制到为甲骨文开机时cloud-init中使用,第三个只是正常的脚本

原装系统,root登录(密码password),开放所有端口,apt安装部分工具

#!/bin/bash
echo root:password |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 iptables -P INPUT ACCEPT
sudo iptables -P FORWARD ACCEPT
sudo iptables -P OUTPUT ACCEPT
sudo iptables -F
sudo apt update && sudo apt install htop zip sudo git wget curl screen fuse virt-what vim nano ca-certificates python3-pip -y
sudo reboot


甲骨文amd机器重装Debian11,密码password

apt-get update && apt-get install -y xz-utils openssl gawk file && bash <(wget --no-check-certificate -qO- 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh') -d 11 -v 64 -a -p password -firmware


armbox脚本,用于arm机器的一些脚本,里面有arm重装(这个不是cloud-init)

wget -O box.sh https://raw.githubusercontent.com/BlueSkyXN/SKY-BOX/main/armbox.sh && chmod +x box.sh && clear && ./box.sh
最后修改:2022 年 04 月 19 日 10 : 51 AM