netboot安装alpine,支持甲骨文oraclecloud
oraclecloud使用方法:wget https://github.com/52fancy/alpine-netboot/raw/main/ipxe.efi -O /boot/efi/EFI/ipxe.efi
VNC控制台选择从ipxe.efi启动
传统BIOS使用方法(以CentOS7为例)
wget https://github.com/52fancy/alpine-netboot/raw/main/ipxe.lkrn -O /boot/ipxe.lkrncat > /boot/netboot.initrd <<EOF#!ipxeimgfreedhcpset dns 8.8.8.8ifopen net0chain --autofree https://github.com/52fancy/alpine-netboot/raw/main/alpineEOFcat > /etc/grub.d/40_custom << EOFexec 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 'alpine' {set root='hd0,msdos1'linux16 /boot/ipxe.lkrninitrd16 /boot/netboot.initrd}EOFsed -i '/^GRUB_TIMEOUT/d' /etc/default/grubecho "GRUB_TIMEOUT=60" >> /etc/default/grubgrub2-mkconfig -o /etc/grub2.cfg
VNC控制台选择从alpine启动
重点来了!!!
等待大约5分钟,ssh链接服务器,账号root,密钥StartKey登录
-----BEGIN RSA PRIVATE KEY-----MIIEoQIBAAKCAQEAqNOStr2WhVIysV06wTfZJDn5t1WCg3x9gqS+JIVFVKySD7FIMR/nGonRX9leOzbClWYHxm9oBpFdym+i87XfMUD+y4CcaTxOZcz514pyV37dT/NwEP1jU1il3lBgn1Jpw3unHB1nq18+1lwIxmT5RVnrcUWZ/mb7C8SpkPVXXpJ/V5fEpNswMCvHJkOiNNfL72f5/Zt0jjNRSum6OPENP6AG62YlKlA8j9tqpSi8BpXkIYSlQZhaYCyZnOXmgamWDSeVnzStH5sC7+gJT5K9ahmx0vIOZDIYydAEvd1lb1bFr+qEAfHz4hSKEVRzZuJva5i+d/JRfmaA1XQH9eajNwIBIwKCAQBbpg3Q6pOKM++iHKrd6x4a+ualWk4qHwJOPCy0vWAmptLyk3BVLpNmLY7q47bPsAM7KMJkaF0K4TLqPJpJySFj4XRf2BplA3sEEC/baGn0+7n4M7HdVl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iY67y+GWbkbD0EeT0B2Vxg7ahnkeP66sWj3w==-----END RSA PRIVATE KEY-----
安装过程中其他选项看自己需求。
Which SSH server? ('openssh', 'dropbear' or 'none') dropbear
这一步,一定一定要选择dropbear!!!
这一步,一定一定要选择dropbear!!!
这一步,一定一定要选择dropbear!!!
安装完成后,重启
登录服务器控制台
sed -i "s/#PermitRootLogin.*/PermitRootLogin yes/g" /etc/ssh/sshd_configrc-update add sshdrc-update del dropbearapk del dropbearrm -rf /etc/dropbear 好耶:lol:lol:lol 技术贴支持https://cdn.jsdelivr.net/gh/master-of-forums/master-of-forums/public/images/patch.gif 技术贴顶一下 这个方式和dd 安装,哪个更好 alpine系统无法完美一键dd,折腾了好久搞出来这个 这个好使 乌龟壳给的资源那么大,装ALPINE有啥优势吗? 少有见到安装 ALPINE 的 :'(这个很难找到安装资料的。。。。费了老大劲了
页:
[1]