{"id":167,"date":"2021-06-27T05:22:00","date_gmt":"2021-06-27T05:22:00","guid":{"rendered":"https:\/\/262235.xyz\/?p=159"},"modified":"2021-06-27T05:22:00","modified_gmt":"2021-06-27T05:22:00","slug":"159","status":"publish","type":"post","link":"https:\/\/lyvba.com\/index.php\/2021\/06\/27\/159\/","title":{"rendered":"\u7532\u9aa8\u6587\u4f7f\u7528VNC\u8fdc\u7a0b\u7ba1\u7406\uff0c\u8fdb\u5165EFI Shell\u65b9\u6cd5\u548c\u5de5\u5177"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/lyvba.com\/wp-content\/uploads\/2021\/06\/3068938818.png\" alt=\"VNC-Viewer.png\" title=\"VNC-Viewer.png\"><\/p>\n<h1>\u7532\u9aa8\u6587\u5b9e\u4f8b\u8fdc\u7a0bVNC\u4ee3\u7406\u767b\u9646\u4f7f\u7528\u8bf4\u660e<\/h1>\n<h2>VNC\u548c\u8bc1\u4e66\u8f6c\u6362\u7528\u5230\u7684\u8f6f\u4ef6\u5305: <a href=\"https:\/\/wwm.lanzout.com\/ikAJnqqlvla\">\u70b9\u51fb oci_console_vnc.zip \u4e0b\u8f7d<\/a><\/h2>\n<hr \/>\n<h2>1. \u5f00\u542f Console Connection<\/h2>\n<p><img decoding=\"async\" src=\"https:\/\/lyvba.com\/wp-content\/uploads\/2021\/06\/1244237409.png\" alt=\"vnc.png\" title=\"vnc.png\"><\/p>\n<h2>2. \u4e0b\u8f7d\u79c1\u94a5\u548c\u516c\u94a5\uff0c\u6216\u8005\u4e0a\u4f20\u672c\u5de5\u5177\u5305\u91cc\u7684 \u516c\u94a5 ssh-key-2021-06-27.key.pub<\/h2>\n<h2>3. \u53f3\u8fb9\u2234\u83dc\u5355 Copy VNC Connection for Windows \u83b7\u5f97\u5982\u4e0b\u4ee3\u7406API\u547d\u4ee4\uff0c\u590d\u5236\u53e6\u5b58\u8bb0\u4e8b\u672c\uff0c\u540e\u9762\u7528\u5230<\/h2>\n<pre><code>Start-Job { Echo N | plink.exe -i $env:homedrive$env:homepathociconsole.ppk -N -ssh -P 443 -l \\r\nocid1.instanceconsoleconnection.oc1.ap-tokyo-1 \\r\n-L 5905:ocid1.instance.oc1.ap-tokyo-1.anxhiljr2q:5905 \\r\ninstance-console.ap-tokyo-1.oci.oraclecloud.com }; sleep 5; \\r\nplink.exe -i $env:homedrive$env:homepathociconsole.ppk -N -L 5900:localhost:5900 -P 5905 \\r\nlocalhost -l ocid1.instance.oc1.ap-tokyo-1.anxhi\n<\/code><\/pre>\n<h2>4. \u4f7f\u7528putty\u5de5\u5177 PUTTYGEN.EXE\uff0c\u628a\u79c1\u94a5\u8f6c\u6362\u6210 ppk\u683c\u5f0f: console.ppk (\u672c\u5de5\u5177\u5305\u91cc\u5df2\u7ecf\u8f6c\u6210\u597d )<\/h2>\n<h2>5. Windows PowerShell  \u4ece\u5f00\u59cb\u83dc\u5355--&gt;\u9644\u4ef6--&gt; Windows PowerShell \u5f00\u542f<\/h2>\n<ul>\n<li>\u5efa\u7acb oci \u76ee\u5f55\uff0c\u628a console.ppk \u653e\u5230 \u7528\u6237home\u76ee\u5f55oci\u4e0b\uff0c<\/li>\n<li>\u628a putty\u5de5\u5177 PLINK.EXE \u653e\u5230 windows \u76ee\u5f55\u6216\u8005%PATH%\u53d8\u91cf\u76ee\u5f55<\/li>\n<\/ul>\n<pre><code>mkdir oci\ncd  oci\nstart .\n<\/code><\/pre>\n<h2>6. PowerShell \u8fd0\u884c VNC \u4ee3\u7406API\u547d\u4ee4\uff0c\u6309\u56de\u8f66\u786e\u8ba4\uff0c\u8fd0\u884cVNC-Viewer\uff0cIP\u5730\u5740\u586b 127.0.0.1<\/h2>\n<ul>\n<li>\u53ef\u4ee5\u5c3d\u60c5\u53bb\u6298\u817e\u4e86\uff0c\u6211\u5df2\u7ecf\u628a2\u53f0\u7532\u9aa8\u6587\u5c0f\u9e21\u90fd\u641e\u574f\u4e86\u3002<\/li>\n<\/ul>\n<pre><code>\u534a\u5e74\u524d \u811a\u672c\u5b89\u88c5 \u91cd\u65b0\u5b89\u88c5 debian 10\uff0c\u6628\u5929\u641e\u4e86ipv6\uff0c\u4eca\u5929\u91cd\u542f\u5c31\u5931\u8054\u4e86\n\n\u641e\u4e86\u534a\u5929\uff0c VNC \u8fde\u4e0a\u53bb\u4e00\u770b\uff0cEFI \u5f15\u5bfc\u914d\u7f6e\u4e22\u5931\u4e86\n\n\u7c7b\u4f3c\u6587\u7ae0     https:\/\/www.lyvba.com\/index.php\/archives\/97\/\n\n&lt;&lt;VM VirtualBox\u4f7f\u7528EFI\u4e0d\u80fd\u542f\u52a8ARCH Linux\u95ee\u9898\u89e3\u51b3&gt;&gt;\n\n\nVNC  \u70b9\u91cd\u542f\uff0c ESC \u8fdb\u5165 EFI \u5f15\u5bfc  \uff0c\u5982\u56fe\uff0c\u9009 EFI SHELL\n\n\n\nfs0:\ncd EFIBOOT\\r\nGRUBX64.EFI\n\u590d\u5236\u4ee3\u7801\n\n\n\u5f15\u5bfc\u83dc\u5355\u51fa\u6765\uff0c\u53ef\u4ee5\u542f\u52a8\u4e86\uff0c\n\n\u7f16\u8f91 startup.nsh \u90fd\u6ca1\u641e\u597d\u4e86\uff0c \u770b\u6765\u8981\u5907\u4efd\u6587\u4ef6 \u91cd\u65b0 dd  \u8bd5\u8bd5\uff0c\u4e5f\u53ef\u80fd DD \u540e\uff0c  \u5c0f\u9e21\u5c31\u771f\u7684\u627e\u4e0d\u56de\u6765\u4e86\n\nEFI SHELL   \u6309 ESC \uff0c\u76f4\u63a5\u8f93\u5165 GRUBX64.EFI  \u4e5f\u53ef\u4ee5\u5f15\u5bfc\u7684<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u7532\u9aa8\u6587\u5b9e\u4f8b\u8fdc\u7a0bVNC\u4ee3\u7406\u767b\u9646\u4f7f\u7528\u8bf4\u660e VNC\u548c\u8bc1\u4e66\u8f6c\u6362\u7528\u5230\u7684\u8f6f\u4ef6\u5305: \u70b9\u51fb oci_console_ [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,6],"tags":[17,32],"class_list":["post-167","post","type-post","status-publish","format-standard","hentry","category-linux","category-vps","tag-vps","tag-vnc"],"_links":{"self":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/posts\/167","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/comments?post=167"}],"version-history":[{"count":0,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/posts\/167\/revisions"}],"wp:attachment":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/media?parent=167"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/categories?post=167"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/tags?post=167"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}