{"id":534977,"date":"2021-09-18T00:38:32","date_gmt":"2021-09-17T16:38:32","guid":{"rendered":"http:\/\/4563.org\/?p=534977"},"modified":"2021-09-18T00:38:32","modified_gmt":"2021-09-17T16:38:32","slug":"netboot%e5%ae%89%e8%a3%85alpine%ef%bc%8c%e6%94%af%e6%8c%81%e7%94%b2%e9%aa%a8%e6%96%87oraclecloud","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=534977","title":{"rendered":"netboot\u5b89\u88c5alpine\uff0c\u652f\u6301\u7532\u9aa8\u6587oraclecloud"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>52Fancy<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3>netboot\u5b89\u88c5alpine\uff0c\u652f\u6301\u7532\u9aa8\u6587oraclecloud<\/h3>\n<p>  \t\t \u672c\u5e16\u6700\u540e\u7531 52Fancy \u4e8e 2021-9-17 19:51 \u7f16\u8f91 <\/p>\n<p> oraclecloud\u4f7f\u7528\u65b9\u6cd5\uff1a<br \/>  wget https:\/\/github.com\/52fancy\/alpine-netboot\/raw\/main\/ipxe.efi -O \/boot\/efi\/EFI\/ipxe.efi<br \/>  VNC\u63a7\u5236\u53f0\u9009\u62e9\u4eceipxe.efi\u542f\u52a8<\/p>\n<p>  \u4f20\u7edfBIOS\u4f7f\u7528\u65b9\u6cd5\uff08\u4ee5CentOS7\u4e3a\u4f8b\uff09<br \/>  wget https:\/\/github.com\/52fancy\/alpine-netboot\/raw\/main\/ipxe.lkrn -O \/boot\/ipxe.lkrn<br \/>  cat &gt; \/boot\/netboot.initrd &lt;&lt;EOF<br \/>  #!ipxe<\/p>\n<p>  imgfree<br \/>  dhcp<br \/>  set dns 8.8.8.8<br \/>  ifopen net0<br \/>  chain &#8211;autofree https:\/\/github.com\/52fancy\/alpine-netboot\/raw\/main\/alpine<br \/>  EOF<br \/>  cat &gt; \/etc\/grub.d\/40_custom &lt;&lt; EOF<br \/>  exec tail -n +3 $0<br \/>  # This file provides an easy way to add custom menu entries.Simply type the<br \/>  # menu entries you want to add after this comment.Be careful not to change<br \/>  # the &#8216;exec tail&#8217; line above.<br \/>  menuentry &#8216;alpine&#8217; {<br \/>  set root=&#8217;hd0,msdos1&#8242;<br \/>  linux16 \/boot\/ipxe.lkrn<br \/>  initrd16 \/boot\/netboot.initrd<br \/>  }<br \/>  EOF<br \/>  sed -i &#8216;\/^GRUB_TIMEOUT\/d&#8217; \/etc\/default\/grub<br \/>  echo &quot;GRUB_TIMEOUT=60&quot; &gt;&gt; \/etc\/default\/grub<br \/>  grub2-mkconfig -o \/etc\/grub2.cfg<br \/>  VNC\u63a7\u5236\u53f0\u9009\u62e9\u4ecealpine\u542f\u52a8<\/p>\n<p>  \u91cd\u70b9\u6765\u4e86\uff01\uff01\uff01<\/p>\n<p>  \u7b49\u5f85\u5927\u7ea65\u5206\u949f\uff0cssh\u94fe\u63a5\u670d\u52a1\u5668\uff0c\u8d26\u53f7root\uff0c\u5bc6\u94a5StartKey\u767b\u5f55<br \/>  &#8212;&#8211;BEGIN RSA PRIVATE KEY&#8212;&#8211;<br \/>  MIIEoQIBAAKCAQEAqNOStr2WhVIysV06wTfZJDn5t1WCg3x9gqS+JIVFVKySD7FI<br \/>  MR\/nGonRX9leOzbClWYHxm9oBpFdym+i87XfMUD+y4CcaTxOZcz514pyV37dT\/Nw<br \/>  EP1jU1il3lBgn1Jpw3unHB1nq18+1lwIxmT5RVnrcUWZ\/mb7C8SpkPVXXpJ\/V5fE<br \/>  pNswMCvHJkOiNNfL72f5\/Zt0jjNRSum6OPENP6AG62YlKlA8j9tqpSi8BpXkIYSl<br \/>  QZhaYCyZnOXmgamWDSeVnzStH5sC7+gJT5K9ahmx0vIOZDIYydAEvd1lb1bFr+qE<br \/>  AfHz4hSKEVRzZuJva5i+d\/JRfmaA1XQH9eajNwIBIwKCAQBbpg3Q6pOKM++iHKrd<br \/>  6x4a+ualWk4qHwJOPCy0vWAmptLyk3BVLpNmLY7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z6f6zK6JxLM8aLWt9pyA<br \/>  AQcCgYAuY0\/YJ3xLOz9AwOj+A0Wy9Nz\/4JjDEJNNrQ7qZUvIwfpg564dwDkwW0LX<br \/>  OupIGhmQkxSgzMkLi0dAPi0ObkuApiNZi0R919gvJ0VmLjKBEpaexj7HrBaHyfAN<br \/>  vS7nR7sZUqWEzbiY67y+GWbkbD0EeT0B2Vxg7ahnkeP66sWj3w==<br \/>  &#8212;&#8211;END RSA PRIVATE KEY&#8212;&#8211;<br \/>  \u5b89\u88c5\u8fc7\u7a0b\u4e2d\u5176\u4ed6\u9009\u9879\u770b\u81ea\u5df1\u9700\u6c42\u3002<br \/>  Which SSH server? (&#8216;openssh&#8217;, &#8216;dropbear&#8217; or &#8216;none&#8217;)  dropbear<\/p>\n<p>  \u8fd9\u4e00\u6b65\uff0c\u4e00\u5b9a\u4e00\u5b9a\u8981\u9009\u62e9dropbear\uff01\uff01\uff01<br \/>  \u8fd9\u4e00\u6b65\uff0c\u4e00\u5b9a\u4e00\u5b9a\u8981\u9009\u62e9dropbear\uff01\uff01\uff01<br \/>  \u8fd9\u4e00\u6b65\uff0c\u4e00\u5b9a\u4e00\u5b9a\u8981\u9009\u62e9dropbear\uff01\uff01\uff01<\/p>\n<p>  \u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u91cd\u542f<br \/>  \u767b\u5f55\u670d\u52a1\u5668\u63a7\u5236\u53f0<br \/>  sed -i &quot;s\/#PermitRootLogin.*\/PermitRootLogin yes\/g&quot; \/etc\/ssh\/sshd_config<br \/>  rc-update add sshd<br \/>  rc-update del dropbear<br \/>  apk del dropbear<br \/>  rm -rf \/etc\/dropbear  \t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>loveqianool<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u597d\u8036:lol:lol:lol&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; \t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u544a\u8f9e<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u6280\u672f\u8d34\u652f\u6301yc018thttps:\/\/cdn.jsdelivr.net\/gh\/master-of-forums\/master-of-forums\/public\/images\/patch.gif\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>optimism<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u6280\u672f\u8d34\u9876\u4e00\u4e0b\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>Red-Black-Tree<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u8fd9\u4e2a\u65b9\u5f0f\u548cdd \u5b89\u88c5\uff0c\u54ea\u4e2a\u66f4\u597d\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>52Fancy<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tRed-Black-Tree \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2021-9-17 20:01<br \/>  \u8fd9\u4e2a\u65b9\u5f0f\u548cdd \u5b89\u88c5\uff0c\u54ea\u4e2a\u66f4\u597d<\/p>\n<p> alpine\u7cfb\u7edf\u65e0\u6cd5\u5b8c\u7f8e\u4e00\u952edd\uff0c\u6298\u817e\u4e86\u597d\u4e45\u641e\u51fa\u6765\u8fd9\u4e2a\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>hcyme<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u8fd9\u4e2a\u597d\u4f7f\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u767d\u9762\u9992\u5934<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u4e4c\u9f9f\u58f3\u7ed9\u7684\u8d44\u6e90\u90a3\u4e48\u5927\uff0c\u88c5ALPINE\u6709\u5565\u4f18\u52bf\u5417\uff1f\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>whiler<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u5c11\u6709\u89c1\u5230\u5b89\u88c5 ALPINE \u7684\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>52Fancy<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\twhiler \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2021-9-17 20:19<br \/>  \u5c11\u6709\u89c1\u5230\u5b89\u88c5 ALPINE \u7684<\/p>\n<p> :'(\u8fd9\u4e2a\u5f88\u96be\u627e\u5230\u5b89\u88c5\u8d44\u6599\u7684\u3002\u3002\u3002\u3002\u8d39\u4e86\u8001\u5927\u52b2\u4e86\t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>52Fancy \u5927\u4f6c\u6709\u8bdd\u8bf4 : n&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/534977"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=534977"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/534977\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=534977"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=534977"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=534977"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}