{"id":123,"date":"2025-11-09T16:52:20","date_gmt":"2025-11-09T08:52:20","guid":{"rendered":"http:\/\/175.178.117.18\/?p=123"},"modified":"2025-11-10T11:04:20","modified_gmt":"2025-11-10T03:04:20","slug":"%e5%9f%ba%e4%ba%8e%e6%a0%91%e8%8e%93%e6%b4%be%e4%ba%94%e7%9a%84%e5%ad%a6%e4%b9%a0%e8%ae%b0%e5%bd%95","status":"publish","type":"post","link":"https:\/\/starhill.online\/index.php\/2025\/11\/09\/%e5%9f%ba%e4%ba%8e%e6%a0%91%e8%8e%93%e6%b4%be%e4%ba%94%e7%9a%84%e5%ad%a6%e4%b9%a0%e8%ae%b0%e5%bd%95\/","title":{"rendered":"\u57fa\u4e8e\u6811\u8393\u6d3e\u4e94\u7684\u5b66\u4e60\u8bb0\u5f55"},"content":{"rendered":"<h1>\u673a\u68b0\u786c\u76d8usb3.0\u6302\u8f7d<\/h1>\n<p>\u5148\u68c0\u67e5\u5404\u4e2ausb\u9a71\u52a8\u662f\u5426\u6b63\u5e38 <code>lsusb<\/code><\/p>\n<p>\u63a5\u5165\u673a\u68b0\u786c\u76d8\u67e5\u770b\u662f\u5426\u8bc6\u522b\u5230 <code>lsblk<\/code><\/p>\n<blockquote>\n<p>sda           8:0    0   1.8T  0 disk\n\u251c\u2500sda1        8:1    0 800.3G  0 part\n\u2514\u2500sda2        8:2    0     1T  0 part\nmmcblk0     179:0    0 116.5G  0 disk\n\u251c\u2500mmcblk0p1 179:1    0   512M  0 part \/boot\/firmware\n\u2514\u2500mmcblk0p2 179:2    0   116G  0 part \/<\/p>\n<\/blockquote>\n<p><code>\u8fd9\u91cc\u770b\u5230\u673a\u68b0\u786c\u76d8\u5df2\u7ecf\u88ab\u8bc6\u522b\u5230<\/code><\/p>\n<blockquote>\n<p><strong>1.8TB \u673a\u68b0\u786c\u76d8\uff08sda\uff09<\/strong> \u5df2\u88ab\u7cfb\u7edf\u8bc6\u522b\uff0c\u5e76\u5305\u542b\u4e24\u4e2a\u5206\u533a\uff1a<\/p>\n<ul>\n<li><strong>sda1<\/strong>\uff08800.3GB\uff09<\/li>\n<li><strong>sda2<\/strong>\uff081TB\uff09<\/li>\n<\/ul>\n<p>\u4f46\u5b83\u4eec\u5c1a\u672a\u6302\u8f7d\u5230\u4efb\u4f55\u76ee\u5f55\u3002<\/p>\n<\/blockquote>\n<p>\u786e\u5b9e\u5206\u533a\u6587\u4ef6\u7c7b\u578b<\/p>\n<pre><code class=\"lang-bash language-bash bash\">sudo blkid \/dev\/sda1\nsudo blkid \/dev\/sda2<\/code><\/pre>\n<p>\u5982\u679c\u662f <strong>NTFS<\/strong>\uff0c\u9700\u8981\u5b89\u88c5 <code>ntfs-3g<\/code>\uff1a<\/p>\n<pre><code class=\"lang-bash language-bash bash\">sudo apt update\nsudo apt install -y ntfs-3g<\/code><\/pre>\n<p>\u5982\u679c\u662f <strong>exFAT<\/strong>\uff0c\u9700\u8981\u5b89\u88c5 <code>exfat-utils<\/code>\uff1a<\/p>\n<pre><code class=\"lang-bash language-bash bash\">sudo apt install -y exfat-fuse exfat-utils<\/code><\/pre>\n<p>\u8fd9\u91cc\u6211\u81ea\u5df1\u662fNTFS\u7684\uff0c\u6240\u4ee5\u5b89\u88c5NTFS\u652f\u6301  [<code>\u5207\u6362\u5230root\u7528\u6237\u4e0b<\/code>]<\/p>\n<pre><code class=\"lang-bash language-bash bash\">sudo apt update\nsudo apt install -y ntfs-3g<\/code><\/pre>\n<h1>\u8fdc\u7a0b\u8bbf\u95eeVNC + \u8fdc\u7a0b\u8de8\u5e73\u53f0GUI\u7ba1\u7406\u6587\u4ef6<\/h1>\n<blockquote>\n<p>\u8fd9\u91cc\u70e7\u5f55\u7684\u662f\u6811\u8393\u6d3e\u5b98\u65b9\u7684\u7cfb\u7edf<\/p>\n<\/blockquote>\n<p>\u9996\u5148\u8fdb\u5165\u914d\u7f6e\u754c\u9762<\/p>\n<pre><code class=\"lang-bash language-bash bash\">sudo raspi-config<\/code><\/pre>\n<p>Interfacing Options -&gt; VNC -&gt; Yes  \u7cfb\u7edf\u63d0\u793a\u662f\u5426\u5b89\u88c5VNC\u670d\u52a1\uff0c\u9009\u62e9yes\u5373\u53ef\u5b89\u88c5<\/p>\n<h2>\u5b89\u88c5 <code>VNC<\/code> \u5ba2\u6237\u7aef<\/h2>\n<p>\u5728window\u5ba2\u6237\u7aef\u8fdb\u884c\u6811\u8393\u6d3e\u7684\u53ef\u89c6\u5316\u5c4f\u5e55\u63a7\u5236\uff0c\u8fd9\u91cc\u9009\u62e9\u5b89\u88c5windows\u7684\u4e3a\u4f8b<\/p>\n<p>\u94fe\u63a5\uff1a<a href=\"https:\/\/www.realvnc.com\/en\/connect\/download\/viewer\/\">https:\/\/www.realvnc.com\/en\/connect\/download\/viewer\/<\/a><\/p>\n<p>\u5b89\u88c5\u5b8c\u540e\u65b0\u5efa\u4e00\u4e2a\u94fe\u63a5\uff0c\u8f93\u5165\u6811\u8393\u6d3e\u7684IP\uff0c\u4e0d\u77e5\u9053\u7684\u53ef\u4ee5\u4f7f\u7528\u5982\u4e0b\u547d\u4ee4\u770b\u5230<\/p>\n<pre><code class=\"lang-bash language-bash bash\">ip -a<\/code><\/pre>\n<p>\u8f93\u5165 ip \u540e\u8f93\u5165\u81ea\u5df1\u7684username \u548c password \u5373\u53ef\u94fe\u63a5<\/p>\n<blockquote>\n<p>\u6b64\u65f6\u5c31\u53ef\u4ee5\u770b\u5230\u6811\u8393\u6d3e\u7684\u754c\u9762\u4e86<\/p>\n<\/blockquote>\n<h2>\u6587\u4ef6\u5171\u4eab<\/h2>\n<p>\u529f\u80fd\uff1a\u5728windows\u7684\u6587\u4ef6\u8d44\u6e90\u7ba1\u7406\u5668\u4e2d\u4f7f\u7528windows\u7684\u65b9\u5f0f\u53bb\u7ba1\u7406\u6811\u8393\u6d3e\u4e2d\u7684\u6587\u4ef6<\/p>\n<p>\u9996\u5148\u66f4\u65b0\u8f6f\u4ef6\u5217\u8868<\/p>\n<pre><code class=\"lang-bash language-bash bash\">sudo apt-get update     #\u9996\u5148\u66f4\u65b0\u8f6f\u4ef6\u5217\u8868\nsudo apt-get install samba samba-common-bin -y      #\u5b89\u88c5samba\nsudo vim \/etc\/samba\/smb.conf        #\u4fee\u6539\u914d\u7f6e\u6587\u4ef6.\u8fd9\u91cc\u4f7f\u7528\u7684\u662fvim,\u4e5f\u53ef\u4ee5\u81ea\u884c\u66ff\u6362\u4e3anano<\/code><\/pre>\n<p>\u8fdb\u5165\u6587\u4ef6\u540e \u6309i\u952e \u6765\u8fdb\u884c\u5185\u5bb9\u4fee\u6539<\/p>\n<p>\u627e\u5230read only = yes ,\u5c06 <code>yes<\/code> \u6539\u4e3a <code>no<\/code><\/p>\n<blockquote>\n<p>\u539f\u5bb9\u5982\u4e0b\uff1a<\/p>\n<\/blockquote>\n<pre><code class=\"lang-bash language-bash bash\"># By default, the home directories are exported read-only. change the\n# next parameter to &#039;no&#039; if you want to be able to write to them.\n    read only = yes<\/code><\/pre>\n<p>\u4fee\u6539\u5b8c\u540e \u6309 <code>esc<\/code> \u952e\u9000\u51fa\u7f16\u8f91\u6a21\u5f0f\uff0c\u518d\u6b21\u8f93\u5165 <code>:wq<\/code> \u8fdb\u884c\u9000\u51fa\u5e76\u4fdd\u5b58<\/p>\n<p>\u91cd\u65b0\u542f\u52a8\u670d\u52a1\uff1a<\/p>\n<pre><code class=\"lang-bash language-bash bash\">sudo \/etc\/init.d\/samba-ad-dc restart<\/code><\/pre>\n<p>\u6dfb\u52a0\u9ed8\u8ba4\u7528\u6237PI5\u5230samba     <\/p>\n<pre><code class=\"lang-bash language-bash bash\">sudo smbpasswd -a PI5   #\u8fd9\u91cc\u540d\u5b57\u548c\u5bc6\u7801\u968f\u610f,\u4f5c\u4e3awindows\u7aef\u8bbf\u95ee\u7684\u51ed\u636e\uff0c\u65e0\u9700\u548c\u767b\u5f55\u5bc6\u7801\u4e00\u6837<\/code><\/pre>\n<p>\u8fdb\u5165windows\u7aef\u7684\u6587\u4ef6\u7ba1\u7406\u5668\u4e2d\uff0c\u5728\u641c\u7d22\u680f\u641c\u7d22 <code>\\\\192.168.x.xxx\\PI5<\/code> (\\192.168.x.xxx\\ \u5c31\u662f\u6811\u8393\u6d3e\u7684ip)<\/p>\n<p>\u8f93\u5165\u521a\u521a\u4f5c\u4e3awindows\u8bbf\u95ee\u51ed\u636e\u7684\u8d26\u6237\u4ee5\u53ca\u5bc6\u7801\uff0c\u5373\u53ef\u8bbf\u95ee\u6811\u8393\u6d3e\u6587\u4ef6\u4e86<\/p>\n<h2>\u5f02\u5e38\u60c5\u51b5<\/h2>\n<p>\u5982\u679c\u51fa\u73b0\uff1a<\/p>\n<blockquote>\n<p>\u4f60\u4e0d\u80fd\u8bbf\u95ee\u6b64\u5171\u4eab\u6587\u4ef6\u5939,\u56e0\u4e3a\u4f60\u7ec4\u7ec7\u7684\u5b89\u5168\u7b56\u7565\u7ec4\u7ec7\u672a\u7ecf\u8eab\u4efd\u9a8c\u8bc1\u7684\u6765\u5bbe\u8bbf\u95ee\u3002<\/p>\n<\/blockquote>\n<p>\u89e3\u51b3\u65b9\u5f0f\uff1a<a href=\"https:\/\/zhuanlan.zhihu.com\/p\/164721714\">https:\/\/zhuanlan.zhihu.com\/p\/164721714<\/a><\/p>\n<blockquote>\n<p>\u63d0\u793a\u201c\u8bf7\u68c0\u67e5\u540d\u79f0\u7684\u62fc\u5199\u5426\u5219\u7f51\u7edc\u53ef\u80fd\u6709\u95ee\u9898\u201d<\/p>\n<\/blockquote>\n<p>\u89e3\u51b3\u65b9\u5f0f\uff1a<a href=\"https:\/\/zhuanlan.zhihu.com\/p\/344523212\">https:\/\/zhuanlan.zhihu.com\/p\/344523212<\/a><\/p>\n<p>\u5982\u679c\u51fa\u73b0\u5176\u4ed6\u5f02\u5e38\uff0c\u5219\u53ef\u4ee5\u91cd\u65b0\u770b\u770b\u6811\u8393\u6d3e\u7684ip ,\u6811\u8393\u6d3eip\u662f\u52a8\u6001\u7684\uff0c\u4e5f\u5c31\u662f\u4f1a\u53d1\u9001\u6539\u53d8<\/p>","protected":false},"excerpt":{"rendered":"<p>\u673a\u68b0\u786c\u76d8usb3.0\u6302\u8f7d \u5148\u68c0\u67e5\u5404\u4e2ausb\u9a71\u52a8\u662f\u5426\u6b63\u5e38 lsusb \u63a5\u5165\u673a\u68b0\u786c\u76d8\u67e5\u770b\u662f\u5426\u8bc6\u522b\u5230 lsblk s [&hellip;]<\/p>","protected":false},"author":1,"featured_media":146,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[11],"class_list":["post-123","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-17","tag-linux"],"_links":{"self":[{"href":"https:\/\/starhill.online\/index.php\/wp-json\/wp\/v2\/posts\/123","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/starhill.online\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/starhill.online\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/starhill.online\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/starhill.online\/index.php\/wp-json\/wp\/v2\/comments?post=123"}],"version-history":[{"count":2,"href":"https:\/\/starhill.online\/index.php\/wp-json\/wp\/v2\/posts\/123\/revisions"}],"predecessor-version":[{"id":159,"href":"https:\/\/starhill.online\/index.php\/wp-json\/wp\/v2\/posts\/123\/revisions\/159"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/starhill.online\/index.php\/wp-json\/wp\/v2\/media\/146"}],"wp:attachment":[{"href":"https:\/\/starhill.online\/index.php\/wp-json\/wp\/v2\/media?parent=123"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/starhill.online\/index.php\/wp-json\/wp\/v2\/categories?post=123"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/starhill.online\/index.php\/wp-json\/wp\/v2\/tags?post=123"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}