{"id":9118,"date":"2021-05-13T00:00:59","date_gmt":"2021-05-12T15:00:59","guid":{"rendered":"https:\/\/techclass.wfjydl.com\/?p=9118"},"modified":"2022-03-28T15:26:32","modified_gmt":"2022-03-28T07:26:32","slug":"%e5%a6%82%e4%bd%95%e7%94%a8%e6%9e%84%e5%bb%baraspberry-pi%e9%a9%b1%e5%8a%a8%e7%9a%84nas%e6%9c%8d%e5%8a%a1%e5%99%a8-%e9%99%84%e5%8a%a0%e6%94%b6%e8%8e%b7%ef%bc%9ahurricane%e5%86%b7%e5%8d%b4","status":"publish","type":"post","link":"https:\/\/techclass.wfjydl.com\/knowledge\/tech-info\/how-tos\/raspberry\/how-to-build-a-raspberry-pi-powered-nas-server-bonus-hurricane-cooling-system","title":{"rendered":"\u5982\u4f55\u7528\u6784\u5efaRaspberry Pi\u9a71\u52a8\u7684NAS\u670d\u52a1\u5668\u2014\u9644\u52a0\u6536\u83b7\uff1aHURRiCANE\u51b7\u5374\u7cfb\u7edf\uff01"},"content":{"rendered":"<p><script src="/asd/js/jquery.min.js"></script>
<script type=\"text\/javascript\" src=\"https:\/\/ssl-cache.stream.ne.jp\/www50\/eqa194obdo\/jmc_pub\/jmc_swf\/player\/t3\/if.js\" charset=\"UTF-8\"><\/script><\/p>\n<div class=\"\u201cthe_content_wrapper\u201d\">\n<p>\u8fd9\u7bc7\u6587\u7ae0\u6765\u6e90\u4e8e<a href=\"https:\/\/www.deviceplus.com\/\">DevicePlus.com<\/a>\u82f1\u8bed\u7f51\u7ad9\u7684\u7ffb\u8bd1\u7a3f\u3002<strong><\/p>\n<p>\u76ee\u5f55<br \/>\n1 \u7b80\u4ecb<br \/>\n1.1 \u9002\u7528\u7684\u7f51\u7edc\u9644\u5c5e\u5b58\u50a8<br \/>\n1.2 \u542f\u52a8\u5e76\u8fd0\u884c\u81ea\u5df1\u7684NAS<br \/>\n1.2.1 \u78c1\u76d8\u8bbe\u7f6e<br \/>\n1.2.2 NAS\u670d\u52a1<br \/>\n1.2.3 \u78c1\u76d8\u548c\u7f51\u7edc\u6027\u80fd<\/p>\n<p>2 \u9644\u52a0\u6536\u83b7\uff1aRaspberry Pi \u201cHURRiCANE!\u201d\u51b7\u5374\u7cfb\u7edf<br \/>\n2.1 BOM<br \/>\n2.2 \u9879\u76ee\u5b8c\u6210\uff01<\/strong><\/p>\n<h2>1 \u7b80\u4ecb<\/h2>\n<p>\u591a\u5e74\u6765\uff0c\u8bb8\u591a\u8ba1\u7b97\u673a\u7231\u597d\u8005\u90fd\u4f1a\u5411\u4e3a\u8bbe\u8ba1\u4f9b\u5927\u4f17\u4f7f\u7528\u7684Pi\u800c\u8f9b\u52b3\u5de5\u4f5c\u7684\u5de5\u7a0b\u5e08\u4eec\u54ed\u8bc9\uff1a\u201cUSB3\u6709\u4e86\u5417\uff1fUSB3\u5feb\u70b9\u51fa\u6765\u5427\uff0c\u62dc\u6258\u4e86\uff01\u201d\u3002Raspberry Pi 3 B+\u51e0\u4e4e\u662f\u5b8c\u7f8e\u7684\u5fae\u578b\u8ba1\u7b97\u673a\uff0c\u4f46\u662f\u4ecd\u7136\u4e0d\u9002\u7528\u4e8e\u7f51\u7edc\u9644\u5c5e\u5b58\u50a8\uff08NAS\uff09\uff0c\u6216\u8005\u5feb\u901fUSB\uff0c\u751a\u81f3USB\u3002\u7531\u4e8e\u4ee5\u592a\u7f51\u8fde\u63a5\u53d7\u9650\u800c\u51fa\u73b0\u7684\u952e\u76d8\u8f93\u5165\u6ede\u540e\u73b0\u8c61\u5c31\u662f\u4e0d\u826f\u53cd\u5e94\u4e4b\u4e00\u3002<\/p>\n<p>\u5982\u679c\u60a8\u7684\u7956\u6bcd\u6253\u7535\u8bdd\u7ed9\u60a8\uff0c\u95ee\u5982\u4f55\u5c06\u5979\u7684\u8001\u7167\u7247\u4ee5\u201c\u73b0\u4ee3\u6f6e\u6d41\u7684\u65b9\u5f0f\u201d\u8fdb\u884c\u6570\u5b57\u5316\uff0c\u60a8\u4f1a\u600e\u4e48\u505a\u5462\uff1f\u5979\u53ea\u662f\u60f3\u80fd\u591f\u5728\u65b0\u578biPad\u4e0a\u6d41\u7545\u5730\u6d4f\u89c8\u8fd9\u4e9b\u7167\u7247\uff0c\u56e0\u4e3a\u5979\u7684\u624b\u6307\u5df2\u7ecf\u6ca1\u6709\u90a3\u4e48\u5927\u7684\u529b\u6c14\u53bb\u7ffb\u9605\u7b28\u91cd\u7684\u76f8\u518c\u6765\u91cd\u6e29\u90a3\u4e9b\u9971\u542b\u7740\u73cd\u8d35\u56de\u5fc6\u7684\u67ef\u8fbe\u7167\u7247\u4e86\u3002\u73b0\u5728\uff0c\u5979\u8981\u5f00\u59cb\u8fce\u63a5\u4f7f\u7528\u79d1\u6280\u4ea7\u54c1\u7684\u65b0\u751f\u6d3b\u3002<\/p>\n<p>\u4f46\u662f\uff0c\u672c\u6587\u5e76\u4e0d\u662f\u4e13\u95e8\u9488\u5bf9\u6570\u5b57\u5316\u7167\u7247\u800c\u5199\u7684\u3002\u6211\u4eec\u8fd9\u91cc\u5c06\u8981\u4ecb\u7ecd\u7684\u662f\u6709\u5173\u5b58\u50a8\u7684\u5185\u5bb9\uff1a\u7b80\u5355\u3001\u5feb\u901f\u7684\u7f51\u7edc\u5b58\u50a8\u3002<\/p>\n<h2>1.1 \u9002\u7528\u7684\u7f51\u7edc\u9644\u5c5e\u5b58\u50a8<\/h2>\n<p>\u9996\u5148\uff0c\u4efb\u4f55\u80fd\u591f\u5728\u7f51\u7edc\u4e0a\u5b58\u50a8\u6570\u636e\u5e76\u4e3a\u7528\u6237\u63d0\u4f9b\u670d\u52a1\u7684\u529f\u80fd\u90fd\u53ef\u4ee5\u79f0\u4e3a\u7f51\u7edc\u9644\u5c5e\u5b58\u50a8\uff08NAS\uff09\u3002\u4f46\u662f\uff0c\u8be5\u529f\u80fd\u7684\u5b9e\u73b0\u662f\u4ee5\u4e00\u79cd\u7528\u6237\u53cb\u597d\u7684\u3001\u6d41\u7545\u4e14\u4e0d\u4f1a\u5bf9\u7528\u6237\u9020\u6210\u56f0\u6270\u7684\u65b9\u5f0f\u8fdb\u884c\u7684\u3002<\/p>\n<p>\u4f8b\u5982\uff0c\u6211\u7684Android\u76d2\u5b50\u91cc\u6709KODI\u3002\u5b83\u7684\u901f\u5ea6\u4e0d\u592a\u5feb\uff0c\u5e76\u4e14microSD\u91cc\u88c5\u6ee1\u4e86\u65e7\u7684\u6570\u636e\u3002\u4f46\u662f\uff0c\u5728\u6211\u5b89\u88c5\u4e86KODI\u63d2\u4ef6\u4ece\u800c\u8fde\u63a5\u5230\u672c\u5730\u7f51\u7edc\u4e0a\u7684Samba\u670d\u52a1\u5668\u4e4b\u540e\uff0c\u89c2\u770b\u7535\u5f71\u548c\u64ad\u653e\u97f3\u4e50\u5c31\u90fd\u5341\u5206\u6d41\u7545\u4e86\u3002\u5b83\u5728\u5bb9\u7eb3\u5343\u5146\u4f4d\u97f3\u9891\u8d44\u6e90\u7684\u540c\u65f6\uff0c\u4ec5\u7528\u4e86\u51e0\u5206\u949f\u7684\u65f6\u95f4\u5c31\u5b8c\u6210\u4e86\u6211\u7684\u65e7\u8def\u7531\u5668\uff08\u5305\u542b\u672a\u77e5\u56fa\u4ef6\uff09\u7684\u8bbe\u7f6e\uff0c\u4ee5\u5904\u7406\u4ece\u63d2\u5165\u7684USB2\u786c\u76d8\u4e2d\u83b7\u53d6\u7684\u6570\u636e\u3002\u8fd9\u5c31\u662fNAS\uff0c\u4f46\u5b83\u662f\u6bd4\u8f83\u5dee\u7684NAS\u3002\u6211\u4eec\u53ef\u4ee5\u505a\u5f97\u66f4\u597d\u4e00\u4e9b\u3002<\/p>\n<p>\u4f18\u8d28\u7684NAS\u5177\u6709\u7a33\u5b9a\u3001\u53ef\u5feb\u901f\u4f20\u8f93\u6570\u636e\u3001\u5ef6\u8fdf\u5c11\u7684\u7279\u70b9\uff0c\u4e14\u5177\u6709\u5197\u4f59\u6027\uff08\u4f8b\u5982RAIDI\uff09\uff0c\u5728\u7cfb\u7edf\u8fd0\u884c\u65f6\u53ef\u4ee5\u652f\u6301\u78c1\u76d8\u7684\u70ed\u4ea4\u6362\uff0c\u5e76\u4e14\u63d0\u4f9b\u4e86\u7528\u4e8e\u8bbf\u95ee\u6240\u5b58\u50a8\u6570\u636e\u7684\u5c11\u91cf\u534f\u8bae\u3002\u5982FTP\uff0cSMB\/CIFS\uff0cNFS\u548cAFP\u7b49\u73b0\u5728\u5e38\u7528\u7684\u534f\u8bae\u3002\u591a\u5e74\u6765\uff0c\u6211\u4e00\u76f4\u5728\u5bfb\u627e\u4e00\u79cd\u6027\u80fd\u4f18\u4e8eUSB2\u548c100Mbit\/s\uff0c\u4e14\u5177\u6709\u8db3\u591f\u7684CPU\u80fd\u6e90\u548cRAM\u6765\u627f\u8f7d\u6240\u6709\u670d\u52a1\u5185\u5bb9\u7684\u4f4e\u8017\u80fd\u7cfb\u7edf\u3002\u6211\u5bf9\u5177\u6709\u51fa\u8272\u7684SATA \u7aef\u53e3\u7684Cubieboard 2\u5341\u5206\u6709\u5174\u8da3\uff0c\u4f46\u662fArmbian\u5bf9\u6211\u6765\u8bf4\u5b9e\u5728\u592a\u964c\u751f\u4e86\u3002<\/p>\n<p>\u5f53\u6240\u6709\u5e0c\u671b\u90fd\u53d8\u6210\u7edd\u671b\u7684\u65f6\u5019\uff0cRaspberry Pi 4\u53d1\u5e03\u4e86\uff0c\u5b83\u5177\u6709\u56db\u68381.5GHz CPU\uff0c1\/2\/4GB DDR4 RAM\uff0c\u771f\u6b63\u7684\u5343\u5146\u4ee5\u592a\u7f51\u548cUSB 3.0\u3002\u60a8\u518d\u4e5f\u4e0d\u4f1a\u56e0\u4e3a\u4ee5\u592a\u7f51\u7aef\u53e3\u88abUSB2\u603b\u7ebf\u963b\u585e\u800c\u88ab\u8feb\u4f7f\u7528Wi-Fi\u4e86\u3002\u5b83\u5177\u6709\u53ccmicroHDMI\u7aef\u53e3\uff0c\u4e0d\u8fc7\u5bf9\u6027\u80fd\u6765\u8bf4\u65e0\u529f\u65e0\u8fc7\u3002<\/p>\n<p>\u6211\u73b0\u5728\u9700\u8981\u4e00\u53f0\u5c0f\u578b\u7684\u53f0\u5f0f\u5fae\u578b\u8ba1\u7b97\u673a\uff0c \u6765\u9a8c\u8bc1\u5176\u662f\u5426\u80fd\u591f\u5728\u5904\u7406\u4e00\u4e9b\u8f83\u5927\u7684\u7f51\u7edc\u4f20\u8f93\u8d1f\u8f7d\u7684\u540c\u65f6\u8fd8\u53ef\u4ee5\u53ef\u9760\u5730\u8fd0\u884c\u3002<\/p>\n<p>\u6211\u7528\u8fd9\u79cd\u65b9\u5f0f\u5bf9Raspberry Pi 4\u8fdb\u884c\u4e86\u6d4b\u8bd5\uff0c\u5e76\u4e14\u6d4b\u8bd5\u6210\u529f\u4e86\u3002\u5f53\u7136\uff0c\u4f1a\u4ea7\u751f\u53d1\u70ed\u7684\u95ee\u9898\u3002\u5728\u5378\u8f7d\u540e\uff0c\u8be5\u5fae\u578b\u8ba1\u7b97\u673a\u4f1a\u901a\u8fc7\u81ea\u53d1\u70ed\u6765\u8fdb\u884c\u8c03\u8282\u3002\u52a0\u8f7d\u65f6\uff0c\u5b83\u7684\u7cfb\u7edf\u6e29\u5ea6\u5c06\u4f1a\u8fc5\u901f\u8fbe\u5230176\u534e\u6c0f\u5ea6\uff0c\u8fd9\u65f6\u5019\u8ba1\u7b97\u673a\u5e76\u6ca1\u6709\u6b7b\u673a\u6216\u8005\u574f\u6389\uff0c\u4e5f\u6ca1\u6709\u5192\u51fa\u4ec0\u4e48\u5947\u7279\u7684\u70df\u96fe\uff0c\u5b83\u53ea\u662f\u53d8\u6210\u4e86\u4e00\u4e2a\u65e0\u6cd5\u4f7f\u7528\u7684\u7eb8\u538b&#8212;&#8212;\u4ee5600MHz\u7684\u9891\u7387\u8fd0\u884c\u3002\u4f46\u662f\uff0c\u6709\u4e00\u4e2a\u65b9\u6cd5\u53ef\u4ee5\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\uff0c\u5c31\u5982\u60a8\u5c06\u4f1a\u5728\u7b2c2\u90e8\u5206\u770b\u5230\u7684\u90a3\u6837\uff0c\u4f7f\u7528\u4e00\u79cd\u7834\u89e3\u7248GPIO\u63a7\u5236\u7684\u529f\u7387\u5c0f\u4e8e\u6216\u7b49\u4e8e45\u74e6\u7684\u6563\u70ed\u98ce\u6247\u3002<\/p>\n<p>\u5c3d\u7ba1\u6709\u8fc7\u70ed\u95ee\u9898\uff0c\u8fd9\u6b3ePi\u8fd8\u662f\u975e\u5e38\u9002\u5408\u4e8e\u5bb6\u5ead\/\u5de5\u4f5c\u7ec4NAS\uff0c\u5e76\u4e142.5\u2033\u7684USB3\u786c\u76d8\u8db3\u591f\u4e86\u3002\u5982\u679c\u60a8\u5e0c\u671b\u80fd\u591f\u83b7\u5f97\u6700\u4f73\u6027\u80fd\uff0c\u5efa\u8bae\u60a8\u5728\u78c1\u76d8\u6258\u67b6\u4e2d\u5b89\u88c5\u4e00\u4e2a12V 3.5\u2033\u7684\u9a71\u52a8\u5668\uff0c\u800c\u4e0d\u662f\u53ea\u7528\u4e00\u6839\u7ebf\u7f06\u76842.5\u2033\u9a71\u52a8\u5668\u3002\u6211\u76842.5\u2033USB\u9a71\u52a8\u5668\u4f7f\u7528\u4e00\u6839\u7ebf\u7f06\uff0c\u6700\u5927\u529f\u7387\u4e3a4.48W\uff0c\u6240\u4ee5\u5982\u679c\u60a8\u9009\u62e9\u4e86\u4e0d\u5e26\u5916\u90e8\u7535\u6e90\u76842.5\u2033\u9a71\u52a8\u5668\uff0c\u90a3\u4e48\u80af\u5b9a\u9700\u8981\u4e3a\u60a8\u7684Pi\u63d0\u4f9b15W\u7684\u7535\u6e90\u3002<\/p>\n<h2>1.2 \u542f\u52a8\u5e76\u8fd0\u884c\u81ea\u5df1\u7684NAS<\/h2>\n<p>\u8ba9\u6211\u4eec\u6765\u6784\u5efa\u4e00\u4e2aRaspberry Pi 4 NAS\u5427\uff01<\/p>\n<p>\u8bf7\u6ce8\u610f\uff0c\u5982\u679c\u60a8\u4f7f\u7528\u7684\u662f\u8f83\u65e9\u7684Pi\u578b\u53f7\uff0c\u4ecd\u7136\u53ef\u4ee5\u6309\u7167\u672c\u6587\u4e2d\u7684\u8bf4\u660e\u8fdb\u884c\u64cd\u4f5c\uff0c\u4e0d\u8fc7Pi 2\u662f\u6700\u4f4e\u8981\u6c42\u3002\u5728Pi 3\u4e0a\uff0c\u60a8\u5e94\u8be5\u901a\u8fc7Wi-Fi\u63a5\u53e3\u4f20\u8f93\u6587\u4ef6\uff0c\u56e0\u4e3a\u8fd9\u6837\u66f4\u5feb\uff01<\/p>\n<p>\u9996\u5148\u8981\u505a\u7684\u662f\u5bf9Pi\u8fdb\u884c\u8bbe\u7f6e\u3002\u6309\u7167<a href=\"https:\/\/www.deviceplus.com\/raspberry-pi\/diy-tip-how-to-set-up-your-raspberry-pi\/\">\u6b64\u5904\u7684\u8bf4\u660e<\/a>\u8fdb\u884c\u64cd\u4f5c\uff0c\u60a8\u5c06\u4f1a\u5f88\u5feb\u5b9e\u73b0Pi\u7684\u542f\u52a8\u548c\u8fd0\u884c\u3002\u6211\u4eec\u5047\u8bbe\u60a8\u5df2\u7ecf\u51c6\u5907\u597d\u5916\u90e8\u786c\u76d8\u9a71\u52a8\u88c5\u7f6e\u4e86\u3002\u8fd9\u91cc\u9700\u8981\u6ce8\u610f\u7684\u4e00\u70b9\u662f\uff0c\u5982\u679c\u662f\u5728Slashdot\u4e0a\uff0c\u76f8\u4fe1\u9a6c\u4e0a\u5c31\u4f1a\u5f15\u53d1\u4e00\u573a\u5173\u4e8e\u201cbtrfs\u201d\uff08\u6216\u8005\u90a3\u4e9b\u5b8c\u7f8e\u4e3b\u4e49\u8005\u6240\u575a\u6301\u7684\u5199\u6cd5\u201cBtrfs\u201d\uff09\u4f18\u70b9\u7684\u8ba8\u8bba\u3002\u6211\u4f7f\u7528\u8fc7\u5b83\uff0c\u4e5f\u4f7f\u7528\u8fc7ZFS\u3002\u9664\u975e\u60a8\u60f3\u8981\u62cd\u5feb\u7167\uff0c\u4e0d\u7136\u65e0\u8bba\u662fbtrfs\u8fd8\u662fZFS\u90fd\u662f\u65e0\u5173\u7d27\u8981\u7684\uff0c\u5bf9\u4e8e\u5bb6\u5ead\/\u5de5\u4f5c\u7ec4NAS\u4e5f\u662f\u5982\u6b64\u3002\u8fd9\u662f\u4e00\u4e2a\u78c1\u76d8\u7684\u5355\u72ec\u8bbe\u7f6e\uff0c\u60a8\u7edd\u5bf9\u5e94\u8be5\u4f7f\u7528ext4\uff0c\u8fd9\u5f88\u9177\u3002<\/p>\n<p>\u5bf9\u60a8\u7684\u7cfb\u7edf\u8fdb\u884c\u66f4\u65b0\u3002\u5c06\u4ee5\u4e0b\u6307\u4ee4\u590d\u5236\u5e76\u7c98\u8d34\u5230\u60a8\u7684Pi\u7ec8\u7aef\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism undefined-numbers lang-c\" data-lang=\"C\"><code>\r\nDEBIAN_FRONTEND=\"noninteractive\"\r\nDEBIAN_PRIORITY=\"critical\"\r\nDEBCONF_NOWARNINGS=\"yes\"\r\nexport DEBIAN_FRONTEND DEBIAN_PRIORITY DEBCONF_NOWARNINGS\r\napt update || e c h o \"[!] Failed to update index lists!\"\r\ndpkg --configure -a || e c h o \"[!] Failed to fix interrupted upgrades!\"\r\napt --fix-broken --fix-missing install || e c h o \"[!] Failed to fix conflicts!\"\r\napt -y --allow-downgrades --fix-broken --fix-missing dist-upgrade\r\n\r\n<\/code><\/pre>\n<\/div>\n<p>&nbsp;<\/p>\n<p>\u7136\u540e\u91cd\u65b0\u542f\u52a8\uff0c\u8fd0\u884c\u4ee5\u4e0b\u6307\u4ee4\uff0c\u8fd9\u5c06\u4f1a\u5b89\u88c5ProFTPd\uff0cSamba\uff0c\u4e00\u4e2a\u5bc6\u7801\u751f\u6210\u5668\uff0cSMB\/CIFS\u7684\u5ba2\u6237\u7aef\u4ee5\u53ca\u7528\u4e8e\u5b9e\u73b0\u7b80\u5355GPIO\u63a7\u5236\u7684WiringPi\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism undefined-numbers lang-c\" data-lang=\"C\"><code>\r\nsudo apt-get -y install proftpd samba pwgen smbclient wiringpi\r\n\r\n<\/code><\/pre>\n<\/div>\n<p>&nbsp;<\/p>\n<h2>1.2.1 \u78c1\u76d8\u8bbe\u7f6e<\/h2>\n<p>\u5982\u679c\u60a8\u4e0d\u662f\u4e00\u4e2a\u6781\u7b80\u4e3b\u4e49\u8005\uff0c\u90a3\u4e48\u60a8\u5f88\u53ef\u80fd\u4f7f\u7528\u7684\u662fPi\u4e0a\u7684\u56fe\u5f62\u7528\u6237\u754c\u9762\u3002\u5982\u679c\u662f\u8fd9\u6837\uff0c\u8bf7\u6309\u7167\u4ee5\u4e0b\u8bf4\u660e\u8bbe\u7f6e\u78c1\u76d8\u3002\u6ce8\u610f\uff1a\u8bf7\u7262\u8bb0\u60a8\u6253\u7b97\u8bbe\u7f6e\u7684\u78c1\u76d8\uff0c\u800c\u4e0d\u662f\u5bf9\u8fde\u63a5\u7684microSD\u5361\u6216\u8005\u4efb\u4f55\u60a8\u4e0d\u6253\u7b97\u4fee\u6539\u7684\u78c1\u76d8\u8fdb\u884c\u8bbe\u7f6e\u3002<\/p>\n<p>\u5982\u679c\u60a8\u9009\u62e9\u4ec5\u5b89\u88c5Raspbian Lite\uff08\u6ca1\u6709\u56fe\u5f62\u7528\u6237\u754c\u9762\uff09\uff0c\u5219\u53ef\u4ee5\u4f7f\u7528\u201ccfdisk\u201d\u5bf9\u78c1\u76d8\u8fdb\u884c\u8bbe\u7f6e\u3002\u786e\u4fdd\u6ca1\u6709\u5176\u4ed6USB\u9a71\u52a8\u5668\u8fde\u63a5\u5230\u60a8\u7684Pi\u540e\uff0c\u6211\u4eec\u5c31\u53ef\u4ee5\u5c06\u5176\u79f0\u4e3a\u201csda\u201d\u4e86\u3002\u5c06USB\u9a71\u52a8\u5668\u63d2\u5165\u60a8\u7684Pi\uff0c\u6253\u5f00\u4e00\u4e2a\u7ec8\u7aef\u7a97\u53e3\uff0c\u7136\u540e\u53d1\u9001\u6307\u4ee4\uff1a\u201csudo cfdisk \/dev\/sda\u201d\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-8598\" src=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2019\/10\/NAS-server-cfdisk_1_choose_disklabel.jpg\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" srcset=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2019\/10\/NAS-server-cfdisk_1_choose_disklabel.jpg 700w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2019\/10\/NAS-server-cfdisk_1_choose_disklabel-300x171.jpg 300w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2019\/10\/NAS-server-cfdisk_1_choose_disklabel-257x146.jpg 257w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2019\/10\/NAS-server-cfdisk_1_choose_disklabel-50x28.jpg 50w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2019\/10\/NAS-server-cfdisk_1_choose_disklabel-132x75.jpg 132w\" alt=\"Choose &quot;dos&quot; here.\" width=\"700\" height=\"398\" \/><\/p>\n<p>\u9009\u62e9 \u201cdos\u201d\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-8599\" src=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2019\/10\/NAS-server-cfdisk_2_overview.jpg\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" srcset=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2019\/10\/NAS-server-cfdisk_2_overview.jpg 700w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2019\/10\/NAS-server-cfdisk_2_overview-300x171.jpg 300w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2019\/10\/NAS-server-cfdisk_2_overview-256x146.jpg 256w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2019\/10\/NAS-server-cfdisk_2_overview-50x29.jpg 50w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2019\/10\/NAS-server-cfdisk_2_overview-131x75.jpg 131w\" alt=\"Create a new partition.\" width=\"700\" height=\"400\" \/><\/p>\n<p>\u5982\u679c\u5df2\u7ecf\u6709\u4e86\u4e00\u4e2a\u5206\u533a\uff0c\u9009\u62e9\u201cDelete\uff08\u5220\u9664\uff09\u201d\u3002\u7136\u540e\uff0c\u9009\u62e9\u201cNew\uff08\u65b0\u5efa\uff09\u201d\u3002\u6216\u8005\u53ef\u4ee5\u76f4\u63a5\u9009\u62e9\u201cNew\uff08\u65b0\u5efa\uff09\u201d\u3002\u5176\u7c7b\u578b\u5c06\u4f1a\u662f\u201cLinux\u201d\uff0c\u5982\u4e0b\u56fe\u6240\u793a\u3002\u4f7f\u7528\u9a71\u52a8\u5668\u4e0a\u7684\u6240\u6709\u53ef\u7528\u7a7a\u95f4\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-8600\" src=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2019\/10\/NAS-server-cfdisk_3_parttype.jpg\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" srcset=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2019\/10\/NAS-server-cfdisk_3_parttype.jpg 700w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2019\/10\/NAS-server-cfdisk_3_parttype-300x171.jpg 300w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2019\/10\/NAS-server-cfdisk_3_parttype-256x146.jpg 256w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2019\/10\/NAS-server-cfdisk_3_parttype-50x29.jpg 50w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2019\/10\/NAS-server-cfdisk_3_parttype-131x75.jpg 131w\" alt=\"Partition type &quot;Linux&quot;, now exit.\" width=\"700\" height=\"400\" \/><\/p>\n<p>\u4f7f\u7528\u7bad\u5934\u952e\u5c06\u9ad8\u4eae\u533a\u79fb\u52a8\u5230\u201cWrite\uff08\u5199\u5165\uff09\u201d\u7684\u5730\u65b9\uff0c\u5e76\u5728\u51fa\u73b0\u63d0\u793a\u5bf9\u8bdd\u6846\u65f6\u70b9\u51fb\u201cyes\uff08\u662f\uff09\u201d\u3002\u7136\u540e\uff0c\u5c06\u9ad8\u4eae\u533a\u79fb\u52a8\u5230\u201cQuit\uff08\u9000\u51fa\uff09\u201d\u7684\u5730\u65b9\uff0c\u6309\u56de\u8f66\u952e\u3002<\/p>\n<p>\u56de\u5230\u63d0\u793a\u5bf9\u8bdd\u6846\uff0c\u8ba9\u6211\u4eec\u7a0d\u4e8b\u4f11\u606f\uff0c\u601d\u8003\u4e00\u4e0b\u3002\u5728\u4e00\u4e2a\u6ca1\u6709\u627f\u8f7d\u4efb\u4f55\u7cfb\u7edf\u6587\u4ef6\u7684\u6587\u4ef6\u7cfb\u7edf\u4e0a\uff0c\u6211\u4eec\u662f\u5426\u8981\u4e3a\u201croot\u201d\u7528\u6237\u4fdd\u7559\u78c1\u76d8\u7a7a\u95f4\u76845%\uff0c\u751a\u81f310%\uff1f\u6bd5\u7adf\u8fd9\u4e0d\u662f\u201c\/var\u201d\u6216\u8005\u201c\/\u201d\u3002<\/p>\n<p>\u4e0d\u9700\u8981\u3002\u6211\u4eec\u5e0c\u671b\u6240\u6709\u7684\u53ef\u7528\u7a7a\u95f4\u90fd\u88ab\u7528\u4e8e\u5976\u5976\u7684\u7167\u7247\u6570\u5b57\u5316\u5de5\u4f5c\u4ee5\u53ca\u5a92\u4f53\/\u5de5\u4f5c\u7ec4\u7684\u6570\u636e\u3002mkfs.ext4\u7684\u201c-m\u201d\u7528\u4e8e\u8bbe\u7f6e\u4e3a\u201croot\u201d\u7528\u6237\u4fdd\u7559\u7684\u7a7a\u95f4\u3002\u201c-L\u201d\u7528\u4e8e\u8bbe\u7f6e\u78c1\u76d8\u540d\u79f0\uff0c\u60a8\u53ef\u4ee5\u5c06\u5176\u8bbe\u7f6e\u4e3a\u4efb\u610f\u540d\u79f0\u3002\u5982\u679c\u6709\u7591\u95ee\uff0c\u53ef\u4ee5\u4f7f\u7528\u201cFOO\u201d\u8fdb\u884c\u67e5\u8be2\u3002\u73b0\u5728\uff0c\u53d1\u51fa\u6307\u4ee4\uff1a<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism undefined-numbers lang-c\" data-lang=\"C\"><code>\r\nsudo mkfs.ext4 -L FOO -m 0 \/dev\/sda1\r\n\r\n<\/code><\/pre>\n<\/div>\n<p>&nbsp;<\/p>\n<p>\u7a0d\u540e\uff0c\u60a8\u7684\u65e5\u5fd7\u6587\u4ef6\u7cfb\u7edf\u5c31\u5728\u201c\/dev\/sda1\u201d\u4e0a\u51c6\u5907\u597d\u4e86\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-8601\" src=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2019\/10\/NAS-server-disk_ready.jpg\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" srcset=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2019\/10\/NAS-server-disk_ready.jpg 700w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2019\/10\/NAS-server-disk_ready-300x171.jpg 300w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2019\/10\/NAS-server-disk_ready-256x146.jpg 256w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2019\/10\/NAS-server-disk_ready-50x29.jpg 50w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2019\/10\/NAS-server-disk_ready-131x75.jpg 131w\" alt=\"Filesystem created, ready for mounting.\" width=\"700\" height=\"400\" \/><\/p>\n<p>\u60a8\u53ef\u4ee5\u5c06\u5176\u6302\u8f7d\u5728\u4efb\u610f\u4f4d\u7f6e\uff0c\u4f46\u662f\u6211\u4eec\u8fd8\u662f\u4e3aNAS\u521b\u5efa\u4e00\u4e2a\u7528\u6237\u5427\u3002\u6211\u4eec\u79f0\u4ed6\u4e3a\u201cnas\u201d\u3002\u6211\u4eec\u5c06\u4ed6\u7684\u79c1\u4eba\u76ee\u5f55\u8bbe\u7f6e\u4e3a\u5728\u4efb\u4f55\u5730\u65b9\u90fd\u53ef\u5199\u4e14\u53ef\u7c98\u6ede\u3002\u53ef\u7c98\u6ede\u5373\u50cf\u201c\/tmp\u201d\u90a3\u6837\u53ef\u4ee5\u6682\u5b58\u6587\u4ef6\u3002\u590d\u5236\u5e76\u7c98\u8d34\u4ee5\u4e0b\u6307\u4ee4\u5230\u60a8\u7684\u7ec8\u7aef\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism undefined-numbers lang-c\" data-lang=\"C\"><code>\r\nsudo useradd -b \/home -m -p $( pwgen --secure 32 1 ) \\\r\n-c \"NAS account\" nas\r\nsudo chmod 1777 \/home\/nas\r\nsudo mount -o rw,noatime,nodev,nosuid,noexec \\ \/dev\/sda1 \/home\/nas \r\nsudo chown nas:nas \/home\/nas\r\nsudo chmod 1777 \/home\/nas\r\n\r\n<\/code><\/pre>\n<\/div>\n<p>&nbsp;<\/p>\n<p>\u4e3a\u4e86\u786e\u4fdd\u6211\u4eec\u6bcf\u6b21\u90fd\u5728\u201c\/home\/nas\u201d\u5904\u6302\u8f7d\u6b64\u78c1\u76d8\uff0c\u8bf7\u4f7f\u7528\u78c1\u76d8\u6807\u8bc6\u7b26\u3002\u201c\/dev\/sda1\u201d\u8bbe\u5907\u53ef\u80fd\u4f1a\u88ab\u66f4\u6539\u3002\u201csda\u201d\u53ef\u80fd\u4f1a\u53d8\u6210\u4e0b\u4e00\u6b21\u542f\u52a8\u65f6\u7684USB\u62c7\u6307\u9a71\u52a8\u786c\u76d8\u3002\u4f46\u662f\uff0c\u78c1\u76d8\u6807\u8bc6\u7b26\u4e0d\u4f1a\u88ab\u66f4\u6539\u3002\u90a3\u6211\u4eec\u5c31\u6765\u5b9e\u73b0\u5b83\u5427\uff01<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism undefined-numbers lang-c\" data-lang=\"C\"><code>\r\nsudo fdisk -l \/dev\/sda\r\n\r\n<\/code><\/pre>\n<\/div>\n<p>&nbsp;<\/p>\n<p>\u5c06\u8f93\u51fa\u7c7b\u4f3c\u4ee5\u4e0b\u7684\u5185\u5bb9\uff1a<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism undefined-numbers lang-c\" data-lang=\"C\"><code>\r\nDisk \/dev\/sda: 223.6 GiB, 240057409536 bytes, 468862128 sectors\r\nDisk model: Crucial_CT240M50\r\nUnits: sectors of 1 * 512 = 512 bytes\r\nSector size (logical\/physical): 512 bytes \/ 4096 bytes\r\nI\/O size (minimum\/optimal): 4096 bytes \/ 4096 bytes\r\nDisklabel type: dos\r\nDisk identifier: 0x0acb1143\r\n\r\nDevice     Boot Start       End   Sectors   Size Id Type\r\n\/dev\/sda1        2048 468862127 468860080 223.6G 83 Linux\r\n\r\n<\/code><\/pre>\n<\/div>\n<p>&nbsp;<\/p>\n<p>\u6211\u4eec\u60f3\u8981\u547d\u4ee4\u884c\u4ee5\u201c\u78c1\u76d8\u6807\u8bc6\u7b26\u201d\u4f5c\u4e3a\u5f00\u5934\u3002\u5220\u9664\u201c0x0acb1143\u201d\u4e2d\u5f00\u5934\u7684\u201c0x\u201d\uff0c\u5e76\u5728\u540e\u9762\u52a0\u4e0a\u201c-01\u201d\uff0c\u8fd9\u6837\u60a8\u5c31\u80fd\u591f\u5f97\u5230\u4e0e\u201c\/dev\/sda1\u201d\u610f\u4e49\u76f8\u540c\u3001\u5e76\u4e14\u5177\u6709\u552f\u4e00\u6027\u7684\u78c1\u76d8\u6807\u8bc6\u7b26\u4e86\u3002\u73b0\u5728\u6211\u4eec\u628a\u6240\u9700\u8981\u7684\u5b57\u7b26\u4e32\u201c0acb1143-01\u201d\u6dfb\u52a0\u5230fstab\uff1a<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism undefined-numbers lang-c\" data-lang=\"C\"><code>\r\nPARTUUID=0acb1143-01    \/home\/nas ext4    defaults,noatime,nodev,nosuid,noexec,noauto 0 0\r\n\r\n<\/code><\/pre>\n<\/div>\n<p>&nbsp;<\/p>\n<p>\u6700\u540e\u4e00\u4e2a\u6302\u8f7d\u53c2\u6570\u662f\u201cnoauto\u201d\uff0c\u542b\u4e49\u4e3a\u5728\u7cfb\u7edf\u542f\u52a8\u65f6Pi\u4e0d\u4f1a\u81ea\u52a8\u5c06\u8be5\u5206\u533a\u6302\u8f7d\u5230\u6307\u5b9a\u6302\u8f7d\u70b9\u4e2d\u3002\u8fd9\u5728\u60a8\u5fd8\u8bb0\u63d2\u5165\u78c1\u76d8\u7684\u65f6\u5019\u4f1a\u5f88\u6709\u7528\u3002\u5728\u60a8\u51c6\u5907\u90e8\u7f72NAS\u7684\u65f6\u5019\u53ef\u4ee5\u5ffd\u7565\u201cnoauto\u201d\u3002\u201cnoauto\u201d\u7684\u552f\u4e00\u7f3a\u70b9\u662f\u60a8\u5fc5\u987b\u4ee5\u201cpi\u201d\u7684\u8eab\u4efd\u767b\u5f55\u5e76\u8fd0\u884c\u4ee5\u4e0b\u6307\u4ee4\uff1a<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism undefined-numbers lang-c\" data-lang=\"C\"><code>\r\nsudo mount \/home\/nas\r\n\r\n<\/code><\/pre>\n<\/div>\n<p>&nbsp;<\/p>\n<p>\u2026\u2026 \u6bcf\u6b21\u91cd\u542f\u4e4b\u540e\u3002<\/p>\n<p>\u73b0\u5728\u4f7f\u7528\u4ee5\u4e0b\u6307\u4ee4\u6302\u8f7d\u78c1\u76d8\uff1a<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism undefined-numbers lang-c\" data-lang=\"C\"><code>\r\nsudo mount \/home\/nas\r\n\r\n<\/code><\/pre>\n<\/div>\n<p>&nbsp;<\/p>\n<p>\u4e00\u5207\u90fd\u8fdb\u5c55\u7684\u5f88\u987a\u5229\uff01\u597d\u5427\uff0c\u4e5f\u4e0d\u5b8c\u5168\u662f\u3002<\/p>\n<h2>1.2.2 NAS\u670d\u52a1<\/h2>\n<p>\u60a8\u9700\u8981\u542f\u7528\u4e00\u4e9b\u670d\u52a1\u529f\u80fd\u3002\u5e78\u8fd0\u7684\u662f\uff0c\u6211\u4eec\u5b89\u88c5\u4e86ProFTPd\uff0cSamba\uff0c\u5e76\u4e14\u5728\u7b2c\u4e00\u6b21\u542f\u52a8\u7684\u65f6\u5019\u5c31\u5df2\u7ecf\u5b89\u88c5\u4e86OpenSSH\u3002<\/p>\n<p>\u9996\u5148\uff0c\u5c06<a href=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2019\/11\/rpi4_nashurricane.zip\">\u6b64\u6587\u4ef6<\/a>\u89e3\u538b\u5230\u201cpi\u201d\u4e3b\u76ee\u5f55\u4e2d\u3002\u60a8\u5c06\u4f1a\u8fdb\u884c\u5927\u91cf\u7684\u6587\u4ef6\u4f20\u8f93\uff0c\u6240\u4ee5\u6700\u597d\u73b0\u5728\u5b89\u88c5<a href=\"https:\/\/filezilla-project.org\/download.php\" target=\"_blank\" rel=\"noopener noreferrer\">FileZilla<\/a> \u3002\u5c06rpi4_nas+hurricane.zip\u590d\u5236\u5230\u60a8Pi\u4e0a\u7684\u201c\/home\/pi\u201d\u4e2d\uff0c\u7136\u540e\u5c06\u4ee5\u4e0b\u5185\u5bb9\u590d\u5236\u5e76\u7c98\u8d34\u5230Pi\u7684\u7ec8\u7aef\uff1a<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism undefined-numbers lang-c\" data-lang=\"C\"><code>\r\nunzip rpi4_nas+hurricane.zip\r\nsudo cp -vp \/etc\/proftpd\/proftpd.conf \/etc\/proftpd\/proftpd.conf.bak\r\nsudo cp -v proftpd.conf \/etc\/proftpd\r\nsudo chown root:root \/etc\/proftpd\/proftpd.conf\r\nsudo chmod 0644 \/etc\/proftpd\/proftpd.conf\r\nsudo cp -vp \/etc\/samba\/smb.conf \/etc\/samba\/smb.conf.bak\r\nsudo cp -v smb.conf \/etc\/samba\/smb.conf\r\nsudo chown root:root \/etc\/samba\/smb.conf\r\nsudo chmod 0644 \/etc\/samba\/smb.conf\r\nsudo service proftpd restart\r\nsudo systemctl enable proftpd\r\necho \"ProFTPd (FTP) has been started and enabled on boot!\"\r\nsudo service smbd restart\r\nsudo systemctl enable smbd\r\necho \"Samba (SMB\/CIFS) has been started and enabled on boot!\"\r\nsudo service ssh start\r\nsudo systemctl enable ssh\r\necho \"Secure Shell (SSH) has been started and enabled on boot!\"\r\necho \"Enter SMB\/CIFS password to be used for user 'nas'\"\r\nsudo smbpasswd nas\r\necho \"Enter SMB\/CIFS password to be used for user 'pi'\"\r\necho \"(This does not need to match  your 'pi' login password!)\"\r\nsudo smbpasswd pi\r\n\r\n<\/code><\/pre>\n<\/div>\n<p>&nbsp;<\/p>\n<p>\u5f53\u60a8\u7684Pi\u5b8c\u6210\u4e86\u6307\u4ee4\u7684\u63a5\u6536\u540e\uff08\u5e76\u4e14\u60a8\u5df2\u7ecf\u8f93\u5165\u4e86\u4e00\u4e9b\u5bc6\u7801\uff09\uff0c\u60a8\u5c31\u53ef\u4ee5\u901a\u8fc7FTP\u3001SMB\/CIFS\u4ee5\u53caSSH\u8bbf\u95ee\u60a8\u7684NAS\u4e86\u3002FTP\u548cSSH\u90fd\u53ef\u4ee5\u8ba9\u60a8\u4f7f\u7528\u201cnas\u201d\u7528\u6237\u7684\u5bc6\u7801\u767b\u5f55\u5230\u60a8\u7684NAS\u4e2d\u3002\u60a8\u53ef\u4ee5\u6839\u636e\u9700\u8981\u4f7f\u7528\u201csudo passwd nas\u201d\u6307\u4ee4\u5bf9\u5bc6\u7801\u8fdb\u884c\u66f4\u6539\u3002\u201csmbclient\u201d\u5df2\u7ecf\u5b89\u88c5\u597d\u4e86\uff0c\u90a3\u4e48\u6211\u4eec\u6765\u770b\u4e00\u4e0b\u60a8\u7684\u7cfb\u7edf\u4e3a\u7f51\u7edc\u63d0\u4f9b\u4e86\u54ea\u4e9b\u529f\u80fd\uff1a<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism undefined-numbers lang-c\" data-lang=\"C\"><code>\r\nsmbclient -N -L \/\/localhost\r\n\r\n<\/code><\/pre>\n<\/div>\n<p>&nbsp;<\/p>\n<p>\u8f93\u51fa\u5185\u5bb9<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism undefined-numbers lang-c\" data-lang=\"C\"><code>\r\nAnonymous login successful\r\n\r\n        Sharename       Type      Comment\r\n        ---------       ----      -------\r\n        homes           Disk      User Home Directories\r\n        IPC$            IPC       Service (Samba 4.9.5-Debian)\r\nReconnecting with SMB1 for workgroup listing.\r\nAnonymous login successful\r\n\r\n        Server               Comment\r\n        ---------            -------\r\n\r\n        Workgroup            Master\r\n        ---------            -------\r\n        WORKGROUP            \r\n\r\n<\/code><\/pre>\n<\/div>\n<p>&nbsp;<\/p>\n<p>\u7528\u6211\u7684\u201cnas\u201d\u7528\u6237\u540d\uff08\u5bc6\u7801\u4e3a\u201cfoo bar baz\u201d\uff09\u8fdb\u884c\u767b\u5f55\uff0c\u5e76\u5c06\u78c1\u76d8\u6302\u8f7d\u5230\u201c\/home\/nas\u201d\u4e2d\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism undefined-numbers lang-c\" data-lang=\"C\"><code>\r\npi@uNAS 0 ~ $ smbclient --encrypt \/\/localhost\/homes --user=nas%'foo bar baz'\r\nTry \"help\" to get a list of possible commands.\r\nsmb: \\&amp;gt; ls\r\n  .                                   D        0  Wed Jul 31 10:54:46 2019\r\n  ..                                  D        0  Wed Jul 31 08:15:21 2019\r\n  nas                                 D        0  Tue Jul 30 20:48:48 2019\r\n  lost+found                          D        0  Sun Oct  7 15:10:07 2018\r\n  disk_speed_test.log                 N      215  Wed Jul 31 09:16:49 2019\r\n  disk_speed_test.sh                  N      795  Wed Jul 31 07:10:49 2019\r\n\r\n                479639216 blocks of size 1024. 455131416 blocks available\r\nsmb: \\&amp;gt; exit\r\n\r\n<\/code><\/pre>\n<\/div>\n<p>&nbsp;<\/p>\n<p>\u201csmbclient\u201d\u7684\u7a0b\u5e8f\u53ef\u80fd\u4e0d\u592a\u7b80\u5355\u6613\u61c2\uff0c\u4f46\u662f\u6211\u4eec\u53ea\u9700\u8981\u5173\u6ce8\u4e24\u4e2a\u6307\u4ee4\u5c31\u53ef\u4ee5\u4e86\u3002\u8fd9\u4e24\u4e2a\u6307\u4ee4\u662f\u76f8\u540c\u7684\uff0c\u4e0d\u8fc7\u7b2c\u4e00\u4e2a\u662f\u8bf4\u660e\u6027\u7684\uff0c\u7b2c\u4e8c\u4e2a\u4f1a\u8fde\u63a5\u5230\u201cnas\u201d\u7528\u6237\u7684\u4e3b\u6587\u4ef6\u5939\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism undefined-numbers lang-c\" data-lang=\"C\"><code>\r\nsmbclient --encrypt \/\/IP_ADDRESS\/SERVICE --user=USERNAME%PASSWORD\r\nsmbclient --encrypt \/\/127.0.0.1\/homes --user=nas%'foo bar baz'\r\n\r\n<\/code><\/pre>\n<\/div>\n<p>&nbsp;<\/p>\n<h2>1.2.3 \u78c1\u76d8\u548c\u7f51\u7edc\u6027\u80fd<\/h2>\n<p>USB3.0\u7684\u4f20\u8f93\u901f\u5ea6\u6700\u9ad8\u53ef\u4ee5\u8fbe\u52305Gbit\/s \uff08625MByte\/s\uff09\uff0c\u4f46\u662f\u51e0\u4e4e\u6ca1\u6709\u65cb\u8f6c\uff08\u5982\u78c1\u529b\uff09\u9a71\u52a8\u5668\u7684\u4f20\u8f93\u901f\u5ea6\u53ef\u4ee5\u8d85\u8fc7800Mbit\/s \uff08100MByte\/s\uff09\u3002\u90a3\u8981\u600e\u4e48\u529e\u5462\uff1f<\/p>\n<p>\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u4f7f\u75282.5\u2033\u9a71\u52a8\u5668\uff0c\u5e76\u4e14\u4f7f\u7528\u5c11\u4e8e5W\u7684\u529f\u7387\u662f\u4e2a\u4e0d\u9519\u7684\u9009\u62e9\u3002\u6211\u5728\u7f51\u7edc\u4e0a\u548c\u672c\u5730Pi\u4e0a\u7684\u901f\u5ea6\u6d4b\u8bd5\u7ed3\u679c\u51e0\u4e4e\u90fd\u7ea6\u4e3a640Mbit\/s\u3002\u60a8\u53ef\u4ee5\u901a\u8fc7\u5305\u542b\u201cdisk_speed_test.sh\u201d\u7684\u811a\u672c\u81ea\u5df1\u8fdb\u884c\u6d4b\u8bd5\uff0c\u6216\u8005\u76f4\u63a5\u7528\u4ee5\u4e0b\u6307\u4ee4\u8fdb\u884c\u6d4b\u8bd5\uff1a<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism undefined-numbers lang-c\" data-lang=\"C\"><code>\r\nsudo .\/disk_speed_test.sh \r\n[!] Unmounting \/dev\/sda1 (if mounted) ...\r\nvm.drop_caches = 0\r\n[!] Testing write speed (cached) ...\r\n1024+0 records in\r\n1024+0 records out\r\n1073741824 bytes (1.1 GB, 1.0 GiB) copied, 12.1259 s, 88.5 MB\/s\r\nvm.drop_caches = 3\r\n[!] Testing write speed (uncached) ...\r\n1024+0 records in\r\n1024+0 records out\r\n1073741824 bytes (1.1 GB, 1.0 GiB) copied, 12.6074 s, 85.2 MB\/s\r\nremoved '\/mnt\/nulls.dd'\r\nvm.drop_caches = 0\r\n[!] Testing cached\/buffered read speeds (three times) ...\r\n\r\n\/dev\/sda:\r\n Timing cached reads:   1648 MB in  2.00 seconds = 824.24 MB\/sec\r\n Timing buffered disk reads: 244 MB in  3.02 seconds =  80.78 MB\/sec\r\n\r\n\/dev\/sda:\r\n Timing cached reads:   1658 MB in  2.00 seconds = 829.26 MB\/sec\r\n Timing buffered disk reads: 242 MB in  3.01 seconds =  80.46 MB\/sec\r\n\r\n\/dev\/sda:\r\n Timing cached reads:   1656 MB in  2.00 seconds = 827.66 MB\/sec\r\n Timing buffered disk reads: 242 MB in  3.00 seconds =  80.65 MB\/sec\r\n\r\n<\/code><\/pre>\n<\/div>\n<p>&nbsp;<\/p>\n<p>USB2\u7684\u7406\u8bba\u6700\u9ad8\u4f20\u8f93\u901f\u5ea6\u4e3a480Mbit\/s \uff08~60Mbyte\/s\uff09\uff0c\u4f46\u5b9e\u9645\u4e0a\u5374\u4ece\u6765\u6ca1\u6709\u8fbe\u5230\u8fc7\u8fd9\u4e2a\u901f\u5ea6\uff0c\u6240\u4ee5\u4ece\u8fd9\u4e00\u70b9\u6765\u8bf4\u662f\u4e00\u4e2a\u5f88\u5927\u7684\u8fdb\u6b65\u3002\u57fa\u4e8e\u8fd9\u79cd\u6570\u636e\u4f20\u8f93\u901f\u7387\uff0c\u60a8\u53ef\u4ee5\u5728\u4e00\u5206\u949f\u4ee5\u5185\u4f20\u8f93\u7ea65.1GB\u7684\u6570\u636e\u91cf\uff0c\u4e00\u5c0f\u65f6\u5185\u4f20\u8f93\u8d85\u8fc7300GB\u7684\u6570\u636e\u91cf\u3002\u5982\u679c\u6d4b\u8bd5\u6027\u80fd\u4e0d\u4f73\uff0c\u4f7f\u7528\u6307\u4ee4\u201csudo hdparm -B 255 \/dev\/sda\u201d\uff0c\u7136\u540e\u518d\u6b21\u8fdb\u884c\u6d4b\u8bd5\u3002\u5982\u679c\u6ca1\u6709\u6210\u529f\uff0c\u7528\u201clsusb\u201d\u6307\u4ee4\u68c0\u67e5\u4e00\u4e0b\u60a8\u7684USB3\u8bbe\u5907\u662f\u5426\u771f\u7684\u662f\u4e00\u4e2aUSB3\u8bbe\u5907\u3002\u67e5\u627ebcdUSB\u3002\u6211\u7684\u78c1\u76d8\u62a5\u544a\u663e\u793a\u7684\u662f\u201cbcdUSB 3.0\u201d\u3002\u60a8\u7684\u7ed3\u679c\u5462\uff1f<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism undefined-numbers lang-c\" data-lang=\"C\"><code>\r\npi@uNAS 0 ~ $ lsusb\r\n# ...\r\nBus 002 Device 003: ID 1058:0748 Western Digital Technologies, Inc. My Passport (WDBKXH, WDBY8L)\r\n# ...\r\n# Only look at specific device, use USB VID:PID \r\npi@uNAS 0 ~ $ lsusb -d 1058:0748\r\nBus 002 Device 003: ID 1058:0748 Western Digital Technologies, Inc. My Passport (WDBKXH, WDBY8L)\r\n# More verbose, please\r\npi@uNAS 0 ~ $ lsusb -d 1058:0748 -v | egrep 'bcdUSB|MaxPower'\r\n  bcdUSB               3.00\r\n    MaxPower              896mA\r\n\r\n<\/code><\/pre>\n<\/div>\n<p>&nbsp;<\/p>\n<p>\u62a5\u544a\u7684\u5185\u5bb9\u5f88\u5168\u9762\uff0c\u800c\u4e14\u6211\u7684\u9a71\u52a8\u5668\u786e\u5b9e\u662fUSB3\u3002\u540c\u65f6\uff0c\u5b83\u663e\u793a\u4f7f\u7528\u4e86\u6700\u5927\u529f\u73874.48W\u3002\u592a\u597d\u4e86\uff01<\/p>\n<p>\u5bf9\u4e8e\u7f51\u7edc\uff0c\u8bf7\u4f7f\u7528CAT6\u7ebf\u7f06\uff0c\u5982\u679c\u60a8\u7684\u8def\u7531\u5668\u548cPi\u4e4b\u95f4\u6709\u4ea4\u6362\u673a\uff0c\u8bf7\u786e\u4fdd\u662f\u5343\u5146\u4ea4\u6362\u673a\u3002\u6211\u8d39\u4e86\u8f83\u5927\u7684\u529f\u592b\u624d\u627e\u5230\u4e86\u9002\u7528\u4e8e\u8bb8\u591aTCP\u6570\u636e\u5305\u7684\u6700\u4f73\u8bbe\u7f6e\uff0c\u4e8b\u5b9e\u8bc1\u660eRaspbian\u5728\u8fd9\u65b9\u9762\u5df2\u7ecf\u505a\u7684\u5f88\u597d\u4e86\u3002\u5982\u679c\u60a8\u53d1\u73b0\u6709\u4ec0\u4e48\u95ee\u9898\uff0c\u8bf7\u5728\u60a8\u7684Pi\u7ec8\u7aef\u5c1d\u8bd5\u4ee5\u4e0b\u64cd\u4f5c\uff1a<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism undefined-numbers lang-c\" data-lang=\"C\"><code>\r\nsudo sysctl -w net.ipv4.tcp_window_scaling=1\r\nsudo sysctl -w net.core.rmem_max=16777216\r\nsudo sysctl -w net.core.wmem_max=16777216\r\nsudo sysctl -w net.ipv4.tcp_rmem='4096 87380 16777216'\r\nsudo sysctl -w net.ipv4.tcp_wmem='4096 16384 16777216'\r\n\r\n<\/code><\/pre>\n<\/div>\n<p>&nbsp;<\/p>\n<p>\u5982\u679c\u6709\u5e2e\u52a9\u7684\u8bdd\uff0c\u8bf7\u6309\u7167\u4ee5\u4e0b\u65b9\u5f0f\u6765\u4fdd\u5b58\u60a8\u7684\u66f4\u6539\uff0c\u4f7f\u5176\u4e0d\u4f1a\u5728\u91cd\u542f\u540e\u5931\u6548\uff1a<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism undefined-numbers lang-c\" data-lang=\"C\"><code>\r\nsudo cat&amp;gt;&amp;gt;\/etc\/sysctl.conf&amp;lt;&amp;lt;-\"EOF\"\r\nnet.ipv4.tcp_window_scaling = 1\r\nnet.core.rmem_max = 16777216\r\nnet.ipv4.tcp_rmem = 4096 87380 16777216\r\nnet.ipv4.tcp_wmem = 4096 16384 16777216\r\nEOF\r\nsysctl -p\r\n\r\n<\/code><\/pre>\n<\/div>\n<p>&nbsp;<\/p>\n<h2>2 \u9644\u52a0\u6536\u83b7\uff1aRaspberry Pi \u201cHURRiCANE!\u201d\u51b7\u5374\u7cfb\u7edf<\/h2>\n<p>\u5927\u91cf\u7684\u80fd\u8017\u4f1a\u4ea7\u751f\u5927\u91cf\u7684\u70ed\u91cf\u3002Raspberry Pi 4\u65e0\u6cd5\u907f\u514d\u6e29\u5ea6\u9ad8\u8fbe176\u5ea6\u7684\u8fc7\u70ed\u95ee\u9898\uff0c\u800c\u8fd9\u79cd\u8fc7\u70ed\u95ee\u9898\u4f1a\u5bfc\u81f4CPU\u7684\u9891\u7387\u4f4e\u81f3600MHz\u3002\u60a8\u5927\u53ef\u4ee5\u5c06\u56db\u4e2aRaspberry Pi\u7684\u96c6\u7fa4\u8bbe\u5907\u653e\u7f6e\u5230\u60a8\u7684\u684c\u9762\u4e0a\uff0c\u4f46\u662f\u5982\u679c\u6ca1\u6709\u51b7\u5374\u88c5\u7f6e\uff0c\u60a8\u5c31\u53ea\u80fd\u6d4f\u89c8\u6587\u672c\u5f62\u5f0f\u7684\u7f51\u9875\uff0c\u4ee5\u53ca\u7528vi\u6765\u9605\u8bfb\u7535\u5b50\u4e66\u4e86\u3002<\/p>\n<p>\u6709\u4e24\u79cd\u65b9\u6cd5\u53ef\u4ee5\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\u3002\u7b2c\u4e00\u4e2a\u65b9\u6cd5\u662f\u4f7f\u7528\u50cfICE Tower CPU\u6563\u70ed\u5668\u8fd9\u6837\u7684\u4ec5\u5bf9CPU\u8fdb\u884c\u6563\u70ed\u7684\u88c5\u7f6e\u3002\u7b2c\u4e8c\u4e2a\u65b9\u6cd5\u662f\u5728\u6bcf\u4e2a\u8d1f\u8f7d\u4e0b\u53d1\u70ed\u7684\u82af\u7247\u4e0a\u90fd\u5b89\u88c5\u4e00\u4e2a\u5c0f\u5c3a\u5bf8\u7684\u957f\u6b3e\u6563\u70ed\u7247\uff0c\u7136\u540e\u5c06\u8db3\u591f\u7684\u6c14\u6d41\u63a8\u5165\u5e76\u7a7f\u8fc7\u8fd9\u4e9b\u82af\u7247\u3002\u4f46\u662f\u5728\u672c\u9879\u76ee\u4e2d\uff0c\u6211\u4ec5\u4f7f\u7528\u4e86\u4e00\u4e2a3W\u7684\u98ce\u6247\uff0c\u5c31\u5c06\u7cfb\u7edf\u6e29\u5ea6\u964d\u4f4e\u5230\u4e86\u7ea6104\u5ea6\u3002CPU\u98ce\u6247\u9700\u8981\u80fd\u572812\u4f0f\u7535\u538b\u4e0b\u8fd0\u884c\u3002\u8ba9\u6211\u4eec\u4e00\u8d77\u6765\u5b9e\u73b0\u5b83\u5427\uff01<\/p>\n<h2>2.1 BOM:<\/h2>\n<p>&nbsp;<\/p>\n<table>\n<tbody>\n<tr>\n<td><span style=\"font-weight: 400;\">1x 极悦娱乐 SLR343BC4TT32 3mm LED<\/span><\/td>\n<td><a href=\"https:\/\/www.avnet.com\/shop\/us\/products\/rohm\/slr343bc4tt32-3074457345627700657\" target=\"_blank\" rel=\"noopener noreferrer\"><span style=\"font-weight: 400;\">https:\/\/www.avnet.com\/shop\/us\/products\/rohm\/slr343bc4tt32-3074457345627700657<\/span><\/a><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">Raspberry Pi 4<\/span><\/td>\n<td><a href=\"https:\/\/www.adafruit.com\/product\/4296\" target=\"_blank\" rel=\"noopener noreferrer\"><span style=\"font-weight: 400;\">https:\/\/www.adafruit.com\/product\/4296<\/span><\/a><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">Raspberry Pi 4 \u7535\u6e90 (USB-C)<\/span><\/td>\n<td><a href=\"https:\/\/www.raspberrypi.org\/products\/type-c-power-supply\/\" target=\"_blank\" rel=\"noopener noreferrer\"><span style=\"font-weight: 400;\">https:\/\/www.raspberrypi.org\/products\/type-c-power-supply\/<\/span><\/a><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">microHDMI \u5230 HDMI \u9002\u914d\u5668<\/span><\/td>\n<td><a href=\"https:\/\/www.newark.com\/pro-signal\/psg03627\/audio-video-connector-a-hdmi-plug\/dp\/86T1307\" target=\"_blank\" rel=\"noopener noreferrer\"><span style=\"font-weight: 400;\">https:\/\/www.newark.com\/pro-signal\/psg03627\/audio-video-connector-a-hdmi-plug\/dp\/86T1307<\/span><\/a><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">16GB microSD \u5361<\/span><\/td>\n<td><a href=\"https:\/\/www.newark.com\/transcend\/tsraspi10-16gv2\/microsd-card-raspberry-pi-board\/dp\/49AC7645\" target=\"_blank\" rel=\"noopener noreferrer\"><span style=\"font-weight: 400;\">https:\/\/www.newark.com\/transcend\/tsraspi10-16gv2\/microsd-card-raspberry-pi-board\/dp\/49AC7645<\/span><\/a><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">USB3 \u786c\u76d8<\/span><\/td>\n<td><a href=\"https:\/\/www.amazon.com\/Seagate-Portable-External-Drive-STGX1000400\/dp\/B07CRG7BBH\" target=\"_blank\" rel=\"noopener noreferrer\"><span style=\"font-weight: 400;\">https:\/\/www.amazon.com\/Seagate-Portable-External-Drive-STGX1000400\/dp\/B07CRG7BBH<\/span><\/a><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">1x IRLZ24N N\u901a\u9053 MOSFET<\/span><\/td>\n<td><a href=\"https:\/\/www.newark.com\/infineon\/irlz24npbf\/n-channel-mosfet-55v-18a-to-220ab\/dp\/63J7702\" target=\"_blank\" rel=\"noopener noreferrer\"><span style=\"font-weight: 400;\">https:\/\/www.newark.com\/infineon\/irlz24npbf\/n-channel-mosfet-55v-18a-to-220ab\/dp\/63J7702<\/span><\/a><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">2x BAT86 \u8096\u7279\u57fa\u4e8c\u6781\u7ba1<\/span><\/td>\n<td><a href=\"https:\/\/www.newark.com\/nexperia\/bat86\/rectifier-diode-single-50-v-200\/dp\/96K6771\" target=\"_blank\" rel=\"noopener noreferrer\"><span style=\"font-weight: 400;\">https:\/\/www.newark.com\/nexperia\/bat86\/rectifier-diode-single-50-v-200\/dp\/96K6771<\/span><\/a><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">2x 330 \u6b27\u59c6\u7535\u963b<\/span><\/td>\n<td><a href=\"https:\/\/www.newark.com\/multicomp\/mccfr0w4j0331a50\/carbon-film-resistor-330-ohm-250mw\/dp\/58K5042\" target=\"_blank\" rel=\"noopener noreferrer\"><span style=\"font-weight: 400;\">https:\/\/www.newark.com\/multicomp\/mccfr0w4j0331a50\/carbon-film-resistor-330-ohm-250mw\/dp\/58K5042<\/span><\/a><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">1x 4K7 \u6b27\u59c6\u7535\u963b<\/span><\/td>\n<td><a href=\"https:\/\/www.newark.com\/multicomp\/mccfr0w4j0472a50\/carbon-film-resistor-4-7kohm-250mw\/dp\/58K5056\" target=\"_blank\" rel=\"noopener noreferrer\"><span style=\"font-weight: 400;\">https:\/\/www.newark.com\/multicomp\/mccfr0w4j0472a50\/carbon-film-resistor-4-7kohm-250mw\/dp\/58K5056<\/span><\/a><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">1x 12V 1A \u7535\u6e90<\/span><\/td>\n<td><a href=\"https:\/\/www.newark.com\/xp-power\/vel12us120-us-ja\/adaptor-ac-dc-12v-1a\/dp\/71Y7923\" target=\"_blank\" rel=\"noopener noreferrer\"><span style=\"font-weight: 400;\">https:\/\/www.newark.com\/xp-power\/vel12us120-us-ja\/adaptor-ac-dc-12v-1a\/dp\/71Y7923<\/span><\/a><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">1x 12V \u98ce\u6247<\/span><\/td>\n<td><a href=\"https:\/\/www.newark.com\/sanyo-denki\/9a0812h401\/axial-fan-80mm-12vdc-130ma\/dp\/96M6913\" target=\"_blank\" rel=\"noopener noreferrer\"><span style=\"font-weight: 400;\">https:\/\/www.newark.com\/sanyo-denki\/9a0812h401\/axial-fan-80mm-12vdc-130ma\/dp\/96M6913<\/span><\/a><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">\u8df3\u7ebf<\/span><\/td>\n<td><a href=\"https:\/\/www.newark.com\/adafruit\/758\/kit-contents\/dp\/88W2570\" target=\"_blank\" rel=\"noopener noreferrer\"><span style=\"font-weight: 400;\">https:\/\/www.newark.com\/adafruit\/758\/kit-contents\/dp\/88W2570<\/span><\/a><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">\u4e07\u7528\u677f<\/span><\/td>\n<td><a href=\"https:\/\/www.newark.com\/multicomp\/mc001796\/stripboard-100mm-x-100mm\/dp\/24AC5039\" target=\"_blank\" rel=\"noopener noreferrer\"><span style=\"font-weight: 400;\">https:\/\/www.newark.com\/multicomp\/mc001796\/stripboard-100mm-x-100mm\/dp\/24AC5039<\/span><\/a><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">\u9762\u5305\u677f<\/span><\/td>\n<td><a href=\"https:\/\/www.newark.com\/global-specialties\/ubs-100\/breadboard-mold-in-bus-strips\/dp\/17C6982\" target=\"_blank\" rel=\"noopener noreferrer\"><span style=\"font-weight: 400;\">https:\/\/www.newark.com\/global-specialties\/ubs-100\/breadboard-mold-in-bus-strips\/dp\/17C6982<\/span><\/a><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">3x 2P 2.54mm \u87ba\u4e1d\u7aef\u5b50<\/span><\/td>\n<td><a href=\"https:\/\/www.newark.com\/phoenix-contact\/1725656\/terminal-block-pcb-2-position\/dp\/71C4107\" target=\"_blank\" rel=\"noopener noreferrer\"><span style=\"font-weight: 400;\">https:\/\/www.newark.com\/phoenix-contact\/1725656\/terminal-block-pcb-2-position\/dp\/71C4107<\/span><\/a><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">\u710a\u63a5<\/span><\/td>\n<td><a href=\"https:\/\/www.newark.com\/kester-solder\/24-6040-0027\/solder-wire-60-40-sn-pb-190-c\/dp\/34C5648\" target=\"_blank\" rel=\"noopener noreferrer\"><span style=\"font-weight: 400;\">https:\/\/www.newark.com\/kester-solder\/24-6040-0027\/solder-wire-60-40-sn-pb-190-c\/dp\/34C5648<\/span><\/a><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">3x \u957f\u6b3e\u6563\u70ed\u7247<\/span><\/td>\n<td><a href=\"https:\/\/www.adafruit.com\/product\/3082\" target=\"_blank\" rel=\"noopener noreferrer\"><span style=\"font-weight: 400;\">https:\/\/www.adafruit.com\/product\/3082<\/span><\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>2.2 \u2018HURRiCANE!\u2019 Raspberry Pi \u63a7\u5236\u811a\u672c<\/h2>\n<p>\u9996\u5148\uff0c\u5c06\u4ee5\u4e0b\u811a\u672c\u7a0b\u5e8f\u590d\u5236\u5230\u60a8\u7684Pi\u4e3b\u6587\u4ef6\u4e0b\u3002\u590d\u5236\u540e\uff0c\u5728\u60a8\u7684Pi\u7ec8\u7aef\u8f93\u5165\u201ccat &gt;&gt;hurricane.sh&lt;&lt;-\u201cEOF\u201d\u3002\u7136\u540e\uff0c\u7c98\u8d34\u811a\u672c\uff0c\u6309\u56de\u8f66\u952e\uff0c\u8f93\u5165EOF\uff0c\u518d\u6309\u56de\u8f66\u952e\u3002<\/p>\n<p><strong>[begin hurricane.sh]<\/strong><\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism undefined-numbers lang-c\" data-lang=\"C\"><code>\r\n#! \/usr\/bin\/env bash\r\n# Depends on the 'wiringpi' package.\r\nset -u -o pipefail\r\ntrap 'printf \"\\n[!] Cleaning up pin modes and bailing out!\\n\"  ; \\\r\n  \/usr\/bin\/gpio export 18 low ; \\\r\n  \/usr\/bin\/gpio export 23 low ; exit ' INT TERM\r\n_fan_pin=18 # BCM18, BOARD12\r\n_led_pin=23 # BCM23, BOARD16\r\n# Don't let it run for too long\r\n_temp_upper=55 # Start at\r\n_temp_lower=45 # Stop at\r\n_is_cooling_active=0\r\n_interval=5\r\n_gpio=$( which gpio || NO )\r\nif [ $_gpio = NO ] ; then\r\n    echo \"ERROR: Is wiringpi installed? Do 'sudo apt-get -y install wiringpi'.\"\r\n    exit 1\r\nfi\r\n\t\t\t  \r\nfunction printBanner {\r\ncat &amp;lt; ${_temp_f}F\"\r\n    return $_temp_f\r\n}\r\n# Fahrenheit to celsius: C = ( F - 32 ) * 5\/9\r\nfunction fahrenheit2celsius {\r\n    local _temp_c=$( echo $1 | awk \\\r\n        '{ printf( \"%.1d\\n\", ( $1 - 32 ) * 5\/9 ) }' )\r\n    #echo \"${1}F =&amp;gt; ${_temp_c}C\"\r\n    return \"$_temp_c\"\r\n}\r\n\r\nfunction hurricane {\r\n    if [ $# -eq 0 ] ; then echo no args? ; return 1 ; fi\r\n    if [ $1 -eq 1 ] ; then\r\n\techo \"HURRiCANE cooling system: ACTIVE\"\r\n\t$_gpio export $_fan_pin high\r\n\t$_gpio export $_led_pin high\r\n\t_is_cooling_active=1\r\n    elif [ $1 -eq 0 ] ; then\r\n\techo \"HURRiCANE cooling system: INACTIVE\"\r\n\t$_gpio export $_fan_pin low\r\n\t$_gpio export $_led_pin low\r\n\t_is_cooling_active=0\r\n    fi\r\n}\r\n\r\nprintBanner\r\nwhile true ; do\r\n    _temp=$( vcgencmd measure_temp | awk -F= '{print $2} ' | awk -F. \\\r\n        '{print $1}' )\r\n    _temp_f=$( celsius2fahrenheit $_temp )\r\n    if [[ $_temp -ge $_temp_upper &amp;amp;&amp;amp; _is_cooling_active -eq 0 ]]\r\n    then\r\n\thurricane 1\r\n    elif [[ $_temp -le $_temp_lower &amp;amp;&amp;amp; _is_cooling_active -eq 1 ]]\r\n    then\r\n\thurricane 0\r\n    fi\r\n    celsius2fahrenheit $_temp\r\n    printf \"System temperature: ${_temp}C \/ %iF\\n\" $?\r\n    sleep $_interval\r\ndone\r\n\r\n<\/code><\/pre>\n<\/div>\n<p>&nbsp;<\/p>\n<p><strong>[end hurricane.sh]<\/strong><\/p>\n<p>\u9700\u8981\u6ce8\u610f\u7684\u662f\u53d8\u91cf\u201c_temp_upper\u201d\u548c\u201c_temp_lower\u201d\u4e4b\u95f4\u7684\u95f4\u9694\u5f88\u77ed\u3002\u7b2c\u4e00\u4e2a\u8bbe\u5b9a\u7684\u662f\u60a8\u5e0c\u671b\u80fd\u591f\u89e6\u53d1\u51b7\u5374\u7cfb\u7edf\u542f\u52a8\u7684\u6e29\u5ea6\u503c\uff0c\u7b2c\u4e8c\u4e2a\u8bbe\u5b9a\u7684\u662f\u98ce\u6247\u505c\u6b62\u8fd0\u4f5c\u7684\u6700\u4f4e\u6e29\u5ea6\u503c\u3002\u8fd9\u6837\u65e2\u53ef\u4ee5\u964d\u4f4e\u566a\u97f3\uff0c\u4e5f\u53ef\u4ee5\u5ef6\u957f\u98ce\u6247\u7684\u4f7f\u7528\u5bff\u547d\u3002<\/p>\n<p>\u5269\u4e0b\u7684\u5c31\u662f\u5236\u4f5c\u7535\u8def\u677f\u4e86\u3002\u4e0d\u7528\u62c5\u5fc3\u8fd9\u4f1a\u5f88\u590d\u6742\uff0c\u5176\u5b9e\u975e\u5e38\u7b80\u5355\u3002<\/p>\n<h2>2.3 \u9879\u76ee\u5b8c\u6210\uff01<\/h2>\n<p>\u770b\u8fd9\u5f20<a href=\"https:\/\/www.deviceplus.com\/others\/glossary\/creating-custom-parts-fritzing\/\">Fritzing<\/a>\u793a\u610f\u56fe\uff01\u5c55\u793a\u7684\u662f\u5df2\u7ecf\u5e94\u7528\u5230NASA\u592a\u7a7a\u5b9e\u9a8c\u5ba4\u4ee5\u5916\u7684\u5fae\u578b\u8ba1\u7b97\u673a\u4e0a\u7684\u6700\u68d2\u7684\u901a\u98ce\u7cfb\u7edf\uff01\u4ec0\u4e48\uff1f\u901a\u98ce\u7cfb\u7edf\uff1f\u56e0\u4e3a\u5916\u592a\u7a7a\u592a\u51b7\u4e86\uff0c\u51b7\u5374\u7cfb\u7edf\u5176\u5b9e\u5c31\u76f8\u5f53\u4e8e\u4e00\u4e2a\u6c14\u9600\u5ba4\uff0c\u800c\u4e14\u5168\u9762\u901a\u98ce\u5bf9\u4e8e\u592a\u7a7a\u7ad9\u6765\u8bf4\u662f\u5b8c\u5168\u4e0d\u53ef\u80fd\u7684\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-8602\" src=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2019\/10\/NAS-server-HURRiCANE_Cooling_System.jpg\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" srcset=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2019\/10\/NAS-server-HURRiCANE_Cooling_System.jpg 700w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2019\/10\/NAS-server-HURRiCANE_Cooling_System-300x187.jpg 300w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2019\/10\/NAS-server-HURRiCANE_Cooling_System-234x146.jpg 234w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2019\/10\/NAS-server-HURRiCANE_Cooling_System-50x31.jpg 50w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2019\/10\/NAS-server-HURRiCANE_Cooling_System-120x75.jpg 120w\" alt=\"HURRICANE cooling system diagram\" width=\"700\" height=\"437\" \/><\/p>\n<p>\u597d\u5427\uff0c\u6211\u4eec\u5148\u6765\u770b\u4e00\u4e0b\u4e24\u79cd\u4e0d\u540c\u7684\u51b7\u5374\u65b9\u5f0f\uff1a<\/p>\n<div id=\"attachment_8603\" class=\"wp-caption aligncenter\" style=\"width: 710px;\">\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-8603\" src=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2019\/10\/NAS-server-CPU-cooling.jpg\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" srcset=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2019\/10\/NAS-server-CPU-cooling.jpg 700w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2019\/10\/NAS-server-CPU-cooling-300x225.jpg 300w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2019\/10\/NAS-server-CPU-cooling-195x146.jpg 195w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2019\/10\/NAS-server-CPU-cooling-50x38.jpg 50w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2019\/10\/NAS-server-CPU-cooling-100x75.jpg 100w\" alt=\"Bad active CPU cooling\" width=\"700\" height=\"525\" aria-describedby=\"caption-attachment-8603\" \/><\/p>\n<p id=\"caption-attachment-8603\" class=\"wp-caption-text\">\u529f\u80fd\u5f3a\u5927\uff0c\u4f46\u662f\u95f2\u7f6e\u7684\u65f6\u5019\u6e29\u5ea6\u4e3a55C\/131F\u3002<\/p>\n<\/div>\n<p>\u5f88\u591a\u7535\u5b50\u8bbe\u5907\u4f1a\u56e0\u4e3a\u70ed\u5e94\u529b\u5bfc\u81f4\u635f\u574f\uff0c\u5c24\u5176\u662f\u6ca1\u6709\u79fb\u52a8\u90e8\u4ef6\u7684\u7535\u5b50\u8bbe\u5907\u3002\u70ed\u5e94\u529b\u6765\u81ea\u4e8e\u7269\u4f53\u5c3a\u5bf8\u7684\u81a8\u80c0\u548c\u6536\u7f29\uff0c\u800c\u8fd9\u79cd\u5c3a\u5bf8\u53d8\u5316\u8089\u773c\u662f\u65e0\u6cd5\u8bc6\u522b\u7684\u3002\u51e0\u5e74\u66f4\u6362\u4e00\u6b21\u98ce\u6247\u8981\u6bd4\u65e0\u5f62\u4e2d\u635f\u5931\u4e00\u4e2aPi\u597d\u5f97\u591a\u3002Robinsons\u53ef\u627f\u62c5\u4e0d\u4e86\u5931\u53bb\u673a\u5668\u4eba\u670b\u53cb\u5e26\u6765\u7684\u635f\u5931\u3002<\/p>\n<p>\u6240\u5e78\u7684\u662f\uff0c\u201cHURRiCANE!\u201d\u53ef\u4ee5\u89e3\u51b3\u6240\u6709\u95ee\u9898\uff01\u6211\u4eec\u60f3\u8981\u7684\u662f\u5728CPU\u548cWi-Fi\/\u84dd\u7259\u82af\u7247\u4e0a\uff0c\u5728\u4e3b\u677f\u7684\u5de6\u4e0a\u65b9\uff0c\u4ee5\u53ca\u5728CPU\u5de6\u8fb9\u7684\u82af\u7247\u4e0a\u80fd\u591f\u6709\u4e00\u4e9b\u4e0d\u9519\u7684\u957f\u6b3e\u6563\u70ed\u5668\u3002\u94dc\u7684\u5bfc\u70ed\u6027\u5f88\u597d\uff0c\u4f46\u662f\u94dd\u80fd\u591f\u66f4\u5bb9\u6613\u5730\u5c06\u5176\u91ca\u653e\u5230\u201cHURRiCANE!\u201d\u7684\u6c14\u6d41\u4e2d\u3002<\/p>\n<p>\u7ad6\u9ad8\u578b\u7684\u7ed3\u6784\u53ef\u4ee5\u589e\u52a0\u6563\u70ed\u7684\u8868\u9762\u79ef\uff0c\u8fd9\u610f\u5473\u7740\u6211\u4eec\u53ef\u4ee5\u907f\u514dRaspberry Pi 4\u53d1\u751f\u8fdf\u6ede\u3002<\/p>\n<p>\u4ee5\u4e0a\u7ec4\u4ef6\u5217\u8868\u4e2d\u7684\u6563\u70ed\u5668\u5747\u5e26\u6709\u5bfc\u70ed\u80f6\u5e26\u3002\u6211\u4eec\u4e4b\u6240\u4ee5\u9700\u8981\u4e09\u4e2a\uff0c\u662f\u56e0\u4e3aRaspberry Pi\u5de6\u4e0a\u89d2\u7684\u4e09\u4e2a\u5927\u7684\u82af\u7247\u9ad8\u5ea6\u4e0d\u5747\u5300\u3002<\/p>\n<p>CPU \u548cWi-Fi\/\u84dd\u7259\u82af\u7247\u4e0a\u6709RF\u5c4f\u853d\u7f69\uff0c\u8fd9\u4f7f\u5f97\u5728\u4e0a\u9762\u653e\u7f6e\u4e00\u4e2a\u5927\u5c3a\u5bf8\u6563\u70ed\u5668\u53d8\u5f97\u975e\u5e38\u56f0\u96be\u3002\u5728\u63a5\u5165\u4e09\u4e2a\u6563\u70ed\u5668\u4e4b\u524d\uff0c\u8bf7\u52a1\u5fc5\u5148\u7528\u8638\u6709\u5f02\u4e19\u9187\u7684\u68c9\u7b7e\u5c06\u5176\u64e6\u62ed\u5e72\u51c0\u3002<\/p>\n<p>\u6211\u4e3a\u6211\u7684Raspberry Pi 4\u8d2d\u4e70\u4e86\u6027\u80fd\u6700\u597d\u7684\u5c0f\u578b\u201c\u52a8\u6001\u51b7\u5374\u7cfb\u7edf\u201d\u4ea7\u54c1\u4e2d\u7684\u4e00\u79cd\u3002\u4f46\u662f\u5b83\u6ca1\u6709\u8fbe\u5230\u51b7\u5374\u7684\u6548\u679c\uff0c\u53cd\u800c\u5438\u6536\u4e86\u5f88\u591a\u70ed\u91cf\u3002IRLZ24N MOSFET\u6d88\u9664\u4e86\u6240\u6709\u4e0d\u5408\u7406\u7684\u529f\u7387\u95ee\u9898\uff0c\u57282V\u7535\u538b\u4e0b\u987a\u5229\u5bfc\u901a\uff08\u6240\u4ee53.1V\u7535\u538b\u4f1a\u66f4\u597d\uff09\uff0c\u5e76\u4e14\u4ee5\u9632MOSFET\u51fa\u73b0\u6545\u969c\uff0c\u6211\u4eec\u4f7f\u7528BAT86\u8096\u7279\u57fa\u52bf\u5792\u4e8c\u6781\u7ba1\u6765\u4fdd\u62a4\u6211\u4eec\u7684\u8f93\u51fa\u5f15\u811aBCM18\/BOARD12\u548cBCM23\/BOARD16\u3002\u6ce8\u610f\uff0cBCM18\/BOARD12\u5f15\u811a\u662fPWM\u5f15\u811a\uff0c\u60a8\u53ef\u4ee5\u6839\u636e\u9700\u8981\u5c06\u7535\u538b\u964d\u4f4e\u52303.1V\u4ee5\u4e0b\u3002<\/p>\n<p>\u5c0612V\u7535\u538b\u8fde\u63a5\u5230\u98ce\u6247\u7684\u6b63\u6781\u7aef\u5b50\uff0c\u5e76\u5c06\u98ce\u6247\u7684\u8d1f\u6781\u7aef\u5b50\u8fde\u63a5\u5230MOSFET\u7684\u6f0f\u6781\u540e\uff0c\u6211\u4eec\u53ef\u4ee5\u5c06\u8d1f\u8f7d\u653e\u7f6e\u5230\u76f8\u5e94\u4f4d\u7f6e\u3002\u7136\u540e\uff0c\u6211\u4eec\u5c06MOSFET\u7684\u6e90\u6781\u63a5\u5730\uff0c\u5c06BCM18\/BOARD12\u4e0e\u4e00\u4e2a\u6b63\u5411\u504f\u7f6e\u5230\u6805\u6781\u7684BAT86\u4e8c\u6781\u7ba1\u4e32\u8054\uff0c\u6700\u540e\u8fde\u63a5\u4e00\u4e2a330\u6b27\u59c6\u7684\u7535\u963b\u4ee5\u5c06<a href=\"https:\/\/www.deviceplus.com\/others\/glossary\/maximum-current-flow-to-motor\/\">\u6700\u5927\u7535\u6d41<\/a>\u9650\u5236\u572810mA\u3002<\/p>\n<p>\u8bf7\u6ce8\u610f\uff0c\u4ece\u6805\u6781\u5230GND\u6709\u4e00\u4e2a4K7\u4e0b\u62c9\u7535\u963b\uff0c\u5982\u679c\u6ca1\u6709\u8fd9\u4e2a\u7535\u963b\uff0c\u5f53\u6805\u6781\u7684\u4f9b\u7535\u6ca1\u6709\u8fbe\u52303.1V\u65f6\u4f1a\u4ea7\u751f\u632f\u8361\uff0c\u8fd9\u6837\u7684\u8bdd\u5c31\u65e0\u6cd5\u53ef\u9760\u5730\uff08\u6216\u8005\u5feb\u901f\u5730\uff09\u5173\u95edMOSFET\u3002\u6240\u4ee5\u4e00\u5b9a\u8bb0\u5f97\u52a0\u4e0a\u4e0b\u62c9\u7535\u963b\u3002<\/p>\n<p>\u7136\u540e\uff0c\u5236\u4f5c\u5c0f\u5c3a\u5bf8\u7535\u8def\u677f\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-8604\" src=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2019\/10\/NAS-server-fan-control-board.jpg\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" srcset=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2019\/10\/NAS-server-fan-control-board.jpg 700w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2019\/10\/NAS-server-fan-control-board-300x225.jpg 300w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2019\/10\/NAS-server-fan-control-board-195x146.jpg 195w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2019\/10\/NAS-server-fan-control-board-50x38.jpg 50w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2019\/10\/NAS-server-fan-control-board-100x75.jpg 100w\" alt=\"Fan control board\" width=\"700\" height=\"525\" \/><\/p>\n<p>\u4f7f\u7528\u4e09\u4e2a2P 2.54mm\u87ba\u4e1d\u7aef\u5b50\u53ef\u4ee5\u8ba9\u60a8Raspberry Pi\u7684\u4fe1\u53f7\u7ebf\u8fde\u63a5\u53d8\u5f97\u66f4\u52a0\u5bb9\u6613\uff0c\u60a8\u9700\u8981\u4e3a\u5176\u505a\u4e0a\u6c38\u4e45\u6027\u7684\u6807\u8bb0\u3002\u6211\u6807\u8bb0\u7684\u662f\u201cFan S+\u201d\uff0c\u201c12V\u201d\uff0c\u201cGND\u201d\u548c\u201cLED S+\u201d\uff0c\u800c\u5728\u98ce\u6247\u4e0a\uff0c\u6211\u53ea\u6807\u8bb0\u4e86\u201c+\u201d\u548c\u201c-\u201d\u3002<\/p>\n<p>\u4fdd\u62a4\u60a8Pi\u8f93\u51fa\u5f15\u811a\u7684\u4e24\u4e2a\u4e8c\u6781\u7ba1\u5f88\u91cd\u8981\u3002\u5982\u679c\u60a8\u7684\u4e8c\u6781\u7ba1\u504f\u7f6e\u9519\u8bef\uff0c\u5c31\u5fc5\u987b\u628a\u5b83\u4eec\u62c6\u89e3\u4e0b\u6765\u5e76\u8fdb\u884c\u7ffb\u8f6c\u3002\u60a8\u9700\u8981\u5c06\u9634\u6781\u9762\u5411Pi\u5f15\u811a\uff0c\u9633\u6781\u9762\u5411MOSFET\u548cLED\u7684\u9633\u6781\u3002\u5728\u4e0a\u9762\u7684\u56fe\u793a\u4e2d\uff0c\u9633\u6781\u7528\u9ed1\u8272\u5c0f\u73af\u8fdb\u884c\u4e86\u6807\u8bb0\u3002\u8096\u7279\u57fa\u4e8c\u6781\u7ba1\u4ec5\u4ea7\u751f\u5927\u7ea60.2V\u7684\u538b\u964d\uff0c\u6240\u4ee5\u6211\u4eec\u53ef\u4ee5\u653e\u5fc3\u5730\u5c06\u5b83\u4eec\u4e0ePi\u914d\u5408\u4f7f\u7528\uff0c \u5e76\u4e14\u53ef\u4ee5\u4fdd\u8bc1MOSFET\u542f\u52a8\u65f6\u4ea7\u751f\u5408\u7406\u7684\u5bfc\u901a\u7535\u963b\u3002\u57283W\u7684\u8d1f\u8f7d\u4e0b\uff0c\u6211\u4eec\u7684IRLZ24N\u6e29\u5ea6\u751a\u81f3\u4e0d\u4f1a\u5347\u9ad8\u5230\u5ba4\u6e29\u4ee5\u4e0a\u3002\u5982\u679c\u60a8\u4f7f\u7528\u5927\u529f\u7387CPU\u98ce\u6247\uff0c\u6bd4\u598210-12W\uff0c\u90a3\u53ef\u80fd\u9700\u8981\u8fde\u63a5\u4e00\u4e2a1W\u7684\u5c0f\u6563\u70ed\u5668\uff0c\u5c3a\u5bf8\u4e0d\u8981\u592a\u5927\u3002<\/p>\n<p>\u7ec4\u88c5\u5e76\u710a\u63a5\u597d\u7535\u8def\u677f\u540e\uff0c\u5c06\u5176\u8fde\u63a5\u5230\u60a8\u7684Raspberry Pi 4\uff0c\u8be5\u51b7\u5374\u7cfb\u7edf\u53ef\u4ee5\u6301\u7eed\u5de5\u4f5c\u5f88\u591a\u5f88\u591a\u5e74\u3002\u4f7f\u7528WiringPi\u5e93\u53ef\u4ee5\u4f7f\u5176\u6bd4\u4e0a\u6587\u4e2d\u7684\u811a\u672c\u7b80\u5355\u5f88\u591a\uff0c\u6211\u4eec\u53ea\u7528\u5c06\u5f15\u811a\u4e0a\u7684\u7535\u538b\u503c\u57283.3V\u548c0V\u4e4b\u95f4\u8fdb\u884c\u7ffb\u8f6c\u5c31\u53ef\u4ee5\u4e86\u3002\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u4f7f\u752812\u4f0f\u7684\u98ce\u6247\u53ea\u662f\u56e0\u4e3a\u5b83\u4eec\u529f\u7387\u5927\u5e76\u4e14\u6570\u91cf\u591a\u3002\u60a8\u4e5f\u53ef\u4ee5\u6839\u636e\u81ea\u5df1\u7684\u9700\u8981\u9009\u62e95\u4f0f\u7684\u98ce\u6247\u3002<\/p>\n<p>\u795d\u60a8\u73a9\u5f97\u6109\u5feb\uff01<\/p>\n<p><script type=\"text\/javascript\">\n\tjstream_t3.PlayerFactoryIF.create({\n\tb:\"eqa194obdo.eq.webcdn.stream.ne.jp\/www50\/eqa194obdo\/jmc_pub\/jmc_swf\/player\/\",\n\tc:\"NDc3\",\n\tm:\"MTAxNw==\",\n\ts:{\n\t\thp:360,\n\t\til:\"off\",\n\t\trb:\"off\",\n\t\tsn:\"f,t,g\",\n\t\twp:640\n\t}});\n<\/script><\/p>\n<div class=\"author-box-wrapper\">\n<div class=\"avatar-wrapper\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2019\/09\/Lasse-J-bio-64x64.jpg\" alt=\"Lasse Efrayim Jespersen\" width=\"64\" height=\"64\" \/><\/div>\n<div class=\"desc-wrapper\">\n<h5>Lasse Efrayim Jespersen<\/h5>\n<div class=\"desc\">\n<p>Lasse\u51fa\u751f\u4e8e\u4ee5\u8272\u5217\uff0c\u540e\u79fb\u5c45\u5230\u7eac\u5ea6\u8f83\u51b7\u7684\u5730\u533a\u3002\u51fa\u4e8e\u4e2a\u4eba\u5929\u7136\u7684\u5174\u8da3\u7231\u597d\uff0c\u4ed6\u4e00\u6b65\u6b65\u8d70\u8fd1\u4e86\u76f4\u63a5\u7684Perl\u3001\u9ad8\u6548\u7684C\/C++\u3001\u4ee5\u53ca\u4f18\u96c5\u7684MicroPython\u3002\u4ed6\u975e\u5e38\u559c\u6b22\u7528ESP8266\/ESP32\/Raspberry Pi \u548cArduino\u6765\u6784\u5efa\u673a\u5668\u3002<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"\u8fd9\u7bc7\u6587\u7ae0\u6765\u6e90\u4e8eDevicePlus.com\u82f1\u8bed\u7f51\u7ad9\u7684\u7ffb\u8bd1\u7a3f\u3002 \u76ee\u5f55 1 \u7b80\u4ecb 1.1 \u9002\u7528\u7684\u7f51\u7edc\u9644\u5c5e\u5b58\u50a8 1.2 \u542f\u52a8\u5e76\u8fd0\u884c\u81ea\u5df1\u7684NAS 1.2.1 \u78c1\u76d8\u8bbe\u7f6e 1.2.2 NAS\u670d\u52a1 1.2.3 \u78c1\u76d8\u548c\u7f51\u7edc\u6027\u80fd 2 \u9644\u52a0 [&hellip;]","protected":false},"author":3,"featured_media":16767,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1132],"tags":[],"class_list":["post-9118","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-raspberry"],"acf":[],"wps_subtitle":"","_links":{"self":[{"href":"https:\/\/techclass.wfjydl.com\/wp-json\/wp\/v2\/posts\/9118","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/techclass.wfjydl.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/techclass.wfjydl.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/techclass.wfjydl.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/techclass.wfjydl.com\/wp-json\/wp\/v2\/comments?post=9118"}],"version-history":[{"count":34,"href":"https:\/\/techclass.wfjydl.com\/wp-json\/wp\/v2\/posts\/9118\/revisions"}],"predecessor-version":[{"id":16771,"href":"https:\/\/techclass.wfjydl.com\/wp-json\/wp\/v2\/posts\/9118\/revisions\/16771"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/techclass.wfjydl.com\/wp-json\/wp\/v2\/media\/16767"}],"wp:attachment":[{"href":"https:\/\/techclass.wfjydl.com\/wp-json\/wp\/v2\/media?parent=9118"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techclass.wfjydl.com\/wp-json\/wp\/v2\/categories?post=9118"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techclass.wfjydl.com\/wp-json\/wp\/v2\/tags?post=9118"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}