{"id":6717,"date":"2024-09-11T23:14:14","date_gmt":"2024-09-11T15:14:14","guid":{"rendered":"http:\/\/wordpress.jiyun.net\/?p=6608"},"modified":"2024-09-11T23:14:14","modified_gmt":"2024-09-11T15:14:14","slug":"%e6%a0%91%e8%8e%93%e6%b4%be%e3%80%81%e4%b8%aa%e4%ba%ba%e7%94%b5%e8%84%91%e4%b8%8e%e4%b8%80%e5%8f%b0%e5%ae%b6%e5%ba%ad%e5%ad%98%e5%82%a8%e6%9c%8d%e5%8a%a1%e5%99%a8%e7%9a%84%e6%90%ad%e5%bb%ba%e5%8a%9f-2","status":"publish","type":"post","link":"http:\/\/puo.cn\/?p=6717","title":{"rendered":"\u6811\u8393\u6d3e\u3001\u4e2a\u4eba\u7535\u8111\u4e0e\u4e00\u53f0\u5bb6\u5ead\u5b58\u50a8\u670d\u52a1\u5668\u7684\u642d\u5efa(\u529f\u80fd\u5b9e\u73b0)"},"content":{"rendered":"<div style=\"position: relative; width: 100%; max-width: 800px; height: 300px; background-color: #eee; border-bottom: 2px solid #0059b3;\"><span class=\"wbspy-placeholder-tip\" style=\"position: absolute; top: 50%; left: 0; width: 100%; text-align: center; line-height: 20px; font-size: 16px; margin-top: -10px;\">imgSpider \u91c7\u96c6\u4e2d&#8230;<\/span><\/div>\n<p>\u8fd9\u662f\u7b2c\u4e8c\u4e2a\u7ae0\u8282, \u672c\u7ae0\u8282\u4e3b\u8981\u8bb2\u8ff0\u6811\u8393\u6d3e\u6216\u8005\u4e2a\u4eba\u7535\u8111\u5b9e\u73b0\u57fa\u7840\u7684\u5bb6\u5ead\u5b58\u50a8\u670d\u52a1\u5668\u529f\u80fd, \u672c\u6587\u4f1a\u5148\u8bb2\u8ff0\u9488\u5bf9\u6811\u8393\u6d3e\u57fa\u7840\u7cfb\u7edf\u7684\u5b89\u88c5, \u4e4b\u540e\u4f1a\u53bb\u8bb2\u8ff0\u5728\u7cfb\u7edf\u4e0a\u505a\u5bb6\u5ead\u5b58\u50a8\u670d\u52a1\u5668\u7684\u642d\u5efa\u5de5\u4f5c, \u53ef\u4ee5\u628a\u8fd9\u4e2a\u6587\u7ae0\u5f53\u505a\u6070\u996d\u8bfb\u7269, \u4e5f\u53ef\u4ee5\u5f53\u505a\u4e00\u4e2a\u6559\u7a0b, \u672c\u7ae0\u8282\u4e0ddocker, \u4e5f\u4e0d\u4f9d\u8d56\u592a\u591a\u7b2c\u4e09\u65b9, \u610f\u65e8\u901a\u8fc7\u6700\u4f20\u7edf\u7684linux\u529f\u80fd\u5305\u6765\u5b9e\u73b0\u5bb6\u5ead\u5b58\u50a8\u670d\u52a1\u5668\u8fd9\u4e2a\u529f\u80fd, \u8fde\u6280\u672f\u7684\u540c\u65f6, \u8ba9\u5bb6\u91cc\u5403\u7070\u7684\u8bbe\u5907\u53d1\u6325\u9884\u70ed;<br \/>\n\u5982\u679c\u6ca1\u6709\u770b\u8fc7\u4e0a\u4e00\u7bc7, \u8bf7\u70b9\u51fb\u4e0b\u9762\u94fe\u63a5\u67e5\u770b\u4e0a\u4e00\u7bc7\u6587\u7ae0:<br \/>\n<a rel=\"nofollow\" href=\"http:\/\/mp.weixin.qq.com\/s?__biz=MzU0MzkzMDQ2Nw==&amp;mid=2247484427&amp;idx=1&amp;sn=d55f3409afdab4bd1de890741e5a85bb&amp;chksm=fb02a507cc752c1157f9c877d7851296a9ced02c0c0ae04a248cbbfd2109612b478f99272a3a&amp;scene=21#wechat_redirect\" target=\"_blank\" rel=\"noopener\" data-itemshowtype=\"0\" data-linktype=\"2\">\u6811\u8393\u6d3e\u3001\u4e2a\u4eba\u7535\u8111\u4e0e\u4e00\u53f0\u5bb6\u5ead\u5b58\u50a8\u670d\u52a1\u5668\u7684\u642d\u5efa(\u8d77\u6e90)<\/a><\/p>\n<p># \u51c6\u5907\u5de5\u4f5c #<\/p>\n<div style=\"position: relative; width: 100%; max-width: 800px; height: 300px; background-color: #eee; border-bottom: 2px solid #0059b3;\"><span class=\"wbspy-placeholder-tip\" style=\"position: absolute; top: 50%; left: 0; width: 100%; text-align: center; line-height: 20px; font-size: 16px; margin-top: -10px;\">imgSpider \u91c7\u96c6\u4e2d&#8230;<\/span><\/div>\n<p><em>\u6b64\u5904\u4ee3\u8868\u786c\u4ef6\u7684\u524d\u671f\u51c6\u5907\u5de5\u4f5c, \u76ee\u524d\u6211\u624b\u91cc\u7684\u662frpi 4b,\u00a0\u6240\u4ee5\u6211\u4ee5\u4ed6\u4f5c\u4e3a\u4e3b\u8bb2\u8ff0\u4e0b\u9762\u7684\u6240\u6709\u64cd\u4f5c,\u00a0\u51c6\u5907\u4f7f\u7528\u53f0\u5f0f\u673a\u7684\u7528\u6237, \u8bf7\u5148\u5ffd\u7565\u8fd9\u4e2a\u6bb5\u843d.<\/em><\/p>\n<blockquote class=\"js_blockquote_wrap\" data-type=\"2\" data-url=\"\" data-author-name=\"\" data-content-utf8-length=\"47\" data-source-title=\"\u6765\u81ea\u4f5c\u8005\u5a46\u5a46\u5988\u5988\u7684\u5631\u5490\">\n<section class=\"js_blockquote_digest\">\u518d\u8bf4\u4e00\u904d:\u00a0\u6ca1\u6709\u8fd9\u4e2a\u8bbe\u5907\u7684\u53ea\u9700\u8981\u770b\u770b\u8fd9\u6bb5\u5c31\u53ef\u4ee5\u4e86,\u00a0\u4e0d\u8981\u8d2d\u4e70,\u00a0\u4e70\u5b8c\u4e3a\u4e86\u642d\u5efa\u8fd9\u4e2aNAS\u4e0d\u503c\u5f97.&nbsp;<\/p>\n<\/section>\n<section class=\"blockquote_info js_blockquote_source\" data-json=\"&lt;\/blockquote\">\u2013\u00a0\u6811\u8393\u6d3e 4b x 1 (\u5185\u5b58\u8d8a\u5927\u8d8a\u597d)<br \/>\n\u2013 16GB tf\u5b58\u50a8\u5361\u548c\u8bfb\u5361\u5668\u00a0x 1 (\u8bfb\u5199\u901f\u5ea6\u8d8a\u5feb\u8d8a\u597d,\u5b58\u50a8\u5361\u522b\u6709\u6709\u7528\u7684\u6587\u4ef6,\u4e00\u4f1a\u513f\u5f97\u6e05\u7a7a)<br \/>\n\u2013 usb-c 5v 3A\u5145\u7535\u5668 x 1\u00a0(\u8d28\u91cf\u8d8a\u597d\u8d8a\u597d, \u56e0\u4e3a\u672a\u6765\u8fd9\u4e2a\u5c0f\u76d2\u5b50\u8981\u5e38\u5e74\u5f00\u673a\u4e0d\u65ad\u7535)<br \/>\n\u2013 USB\u7684\u9f20\u6807,\u952e\u76d8 x 1 (2.5g\u65e0\u7ebf\u7684\u66f4\u597d)<br \/>\n\u2013 HDMI\u7ebf\u4e0e\u663e\u793a\u5668\u6216\u8005\u7535\u89c6<br \/>\n\u2013 \u4e00\u53f0\u597d\u7528, \u80fd\u4e0a\u7f51, \u80fd\u4e0b\u8f7d\u4e1c\u897f, \u80fd\u63d2\u8bfb\u5361\u5668\u7684\u7535\u8111 x 1(windows,mac,linux)\u90fd\u53ef\u4ee5<\/p>\n<div style=\"position: relative; width: 100%; max-width: 800px; height: 300px; background-color: #eee; border-bottom: 2px solid #0059b3;\"><span class=\"wbspy-placeholder-tip\" style=\"position: absolute; top: 50%; left: 0; width: 100%; text-align: center; line-height: 20px; font-size: 16px; margin-top: -10px;\">imgSpider \u91c7\u96c6\u4e2d&#8230;<\/span><\/div>\n<section>\u63a5\u4e0b\u6765, \u6211\u4eec\u4ee5windows\u4e3e\u4f8b, \u6211\u4eec\u9700\u8981\u5728\u7535\u8111\u4e0a\u5b89\u88c5\u955c\u50cf\u70e7\u5f55\u5de5\u5177: raspberry pi imager .\u6b64\u6b65\u9aa4\u7535\u8111\u7528\u6237\u548c\u6811\u8393\u6d3e\u7528\u6237\u90fd\u9700\u8981\u505a.<\/section>\n<section><strong>\u5b98\u7f51\u4e0b\u8f7d\u9875\u9762:<\/strong>\u00a0Raspberry Pi OS \u2013 Raspberry Pi<\/section>\n<section>\u8fdb\u5165\u5b98\u7f51\u9875\u9762, \u70b9\u51fb\u201d[ Download For Windows ]\u201c\u5f00\u59cb\u4e0b\u8f7d,\u00a0\u5176\u4ed6\u4e24\u4e2a\u7cfb\u7edf\u70b9\u51fb\u5bf9\u5e94\u7684\u4e0b\u8f7d\u94fe\u63a5,\u00a0\u4e0b\u8f7d\u5b8c\u6210\u540e, \u6267\u884c\u5b89\u88c5<\/section>\n<blockquote class=\"js_blockquote_wrap\" data-type=\"2\" data-url=\"\" data-author-name=\"\" data-content-utf8-length=\"94\" data-source-title=\"\u5199\u7ed9\u4f7f\u7528Linux\u4f5c\u4e3a\u7535\u8111\u64cd\u4f5c\u7cfb\u7edf\u7684\u7528\u6237\">\n<section class=\"js_blockquote_digest\">\u5982\u679c\u7535\u8111\u662fFedora\u7b49\u975eUbuntu,Debian\u00a0Linux,\u00a0\u5ffd\u7565\u6b64\u6b65\u9aa4,\u00a0\u6216\u8005Linux\u5c31\u53ef\u4ee5\u76f4\u63a5\u5ffd\u7565\u4e0b\u8f7d\u8fd9\u4e2a\u6b65\u9aa4,\u00a0\u56e0\u4e3a\u5728\u00a0Linux\u4e2d,\u00a0\u6709\u66f4\u7b80\u5355\u7684\u547d\u4ee4\u53ef\u4ee5\u5b9e\u73b0\u955c\u50cf\u70e7\u5f55\u7684\u52a8\u4f5c.&nbsp;<\/p>\n<\/section>\n<section class=\"blockquote_info js_blockquote_source\" data-json=\"&lt;\/blockquote\">\u81f3\u6b64,\u524d\u671f\u7684\u6240\u6709\u786c\u4ef6\u51c6\u5907\u5de5\u4f5c\u5df2\u7ecf\u5b8c\u6210, \u786e\u4fdd\u51c6\u5907\u70e7\u5f55\u7684tf\u5361\u5185\u6ca1\u6709\u4efb\u4f55\u91cd\u8981\u6570\u636e\u4e4b\u540e, \u6211\u4eec\u5f00\u59cb\u4e0b\u8f7d\u955c\u50cf.<\/p>\n<p># \u4e0b\u8f7d\u955c\u50cf\u00a0#<\/p>\n<div style=\"position: relative; width: 100%; max-width: 800px; height: 300px; background-color: #eee; border-bottom: 2px solid #0059b3;\"><span class=\"wbspy-placeholder-tip\" style=\"position: absolute; top: 50%; left: 0; width: 100%; text-align: center; line-height: 20px; font-size: 16px; margin-top: -10px;\">imgSpider \u91c7\u96c6\u4e2d&#8230;<\/span><\/div>\n<p>\u867d\u7136\u6811\u8393\u5b98\u65b9\u76ee\u524d\u5e76\u6ca1\u6709\u5c06fedora\u52a0\u5165\u5230\u5b98\u65b9\u4e0b\u8f7d\u7684\u955c\u50cf\u5217\u8868\u4e2d, \u4f46\u662f\u672c\u7740\u5bf9fedora\u719f\u6089\u7684\u539f\u5219, \u8fd9\u6b21\u4f9d\u65e7\u9009\u62e9fedora\u4f5c\u4e3a\u6211\u4eec\u6587\u4ef6\u670d\u52a1\u5668\u7684\u57fa\u7840\u64cd\u4f5c\u7cfb\u7edf, \u4ee5\u672c\u4eba\u5bf9fedora\u7684\u7406\u89e3, \u76ee\u524d\u7248\u672c\u7684fedora\u5728x86,x86_64\u548carm\u5e73\u53f0\u90fd\u6709\u4e86\u7279\u522b\u5927\u7684\u6539\u5584.&nbsp;<\/p>\n<p><strong>fedora\u5b98\u7f51:<\/strong>\u00a0Fedora Workstation | The Fedora Project<\/p>\n<div style=\"position: relative; width: 100%; max-width: 800px; height: 300px; background-color: #eee; border-bottom: 2px solid #0059b3;\"><span class=\"wbspy-placeholder-tip\" style=\"position: absolute; top: 50%; left: 0; width: 100%; text-align: center; line-height: 20px; font-size: 16px; margin-top: -10px;\">imgSpider \u91c7\u96c6\u4e2d&#8230;<\/span><\/div>\n<p>\u5982\u4e0a\u56fe\u6240\u793a, \u4e0a\u56fe\u4e3afedora\u9ed8\u8ba4\u684c\u9762\u73af\u5883\u7684\u5b98\u65b9\u4e0b\u8f7d\u9875\u9762, \u5176\u4e2d\u5305\u542b\u4e24\u79cd\u5185\u5bb9:\u00a0<strong>Fedora Media Writer<\/strong>\u548c<strong>\u7cfb\u7edfISO<\/strong>.<br \/>\n<strong>Fedora Media Writer:<\/strong>\u00a0\u955c\u50cf\u70e7\u5f55\u5de5\u5177, \u5e76\u975e\u771f\u6b63\u7cfb\u7edf, \u548cRaspberry Pi Image\u5dee\u4e0d\u591a, \u662f\u7528\u6765\u628aFedora\u64cd\u4f5c\u7cfb\u7edf\u7684ISO\u955c\u50cf\u5199\u5165U\u76d8\u7684\u5de5\u5177.<br \/>\n<strong>\u7cfb\u7edfISO:<\/strong>\u00a0\u771f\u6b63\u7684\u64cd\u4f5c\u7cfb\u7edf\u955c\u50cf,\u00a0\u4f5c\u4e3a\u6811\u8393\u6d3e\u7528\u6237,\u00a0\u9700\u8981\u9009\u62e9\u53f3\u4fa7\u7b2c\u4e8c\u884c\u7684\u201d\u9002\u7528\u4e8e ARM aarch 64\u7cfb\u7edf\u201d; \u800c\u9700\u8981\u5c06\u5b58\u50a8\u670d\u52a1\u5668\u642d\u5efa\u5728\u666e\u901a\u7535\u8111\u4e0a\u7684\u7528\u6237\u53ef\u4ee5\u9009\u62e9\u7b2c\u4e00\u884c\u201d\u9002\u7528\u4e8e Intel \u548c AMD x86_64\u7cfb\u7edf\u201d; \u7136\u540e\u70b9\u51fb\u4e0b\u8f7d\u5c0f\u56fe\u6807\u5f00\u59cb\u4e0b\u8f7d.<\/p>\n<blockquote class=\"js_blockquote_wrap\" data-type=\"2\" data-url=\"\" data-author-name=\"\" data-content-utf8-length=\"178\" data-source-title=\"Fedora\u7684\u684c\u9762\u73af\u5883\">\n<section class=\"js_blockquote_digest\">\u5173\u4e8e\u684c\u9762\u73af\u5883,\u00a0\u662fLinux\u7684\u4e00\u5927\u7279\u70b9\u4e4b\u4e00,\u00a0\u533a\u522b\u4e8ewindows,\u00a0Linux\u53ef\u4ee5\u9009\u62e9\u4e0d\u540c\u7684\u684c\u9762\u73af\u5883\u4ee5\u4fbf\u7528\u6237\u80fd\u591f\u5728\u56fe\u5f62\u5316\u4e0b\u66f4\u65b9\u4fbf\u7684\u64cd\u4f5cLinux\u64cd\u4f5c\u7cfb\u7edf,\u00a0\u6211\u66fe\u7ecf\u5728\u516c\u4f17\u53f7\u53e6\u4e00\u7bc7\u6587\u7ae0\u6709\u8bf4\u8fc7,\u00a0\u800c\u5bf9\u4e8efedora\u6765\u8bf4,\u00a0\u4f60\u53ef\u4ee5\u5728\u4e0b\u8f7dFedora\u7684\u65f6\u5019\u5c31\u9009\u62e9\u4e0d\u540c\u7684\u684c\u9762\u73af\u5883.&nbsp;<\/p>\n<p>\u5b98\u65b9\u684c\u9762\u73af\u5883\u5217\u8868:\u00a0https:\/\/fedoraproject.org\/zh-Hans\/spins\/<\/p>\n<\/section>\n<section class=\"blockquote_info js_blockquote_source\" data-json=\"&lt;\/blockquote\">\u5173\u4e8eFedora\u56fe\u5f62\u5316\u7684\u95ee\u9898,\u00a0\u539f\u672c\u6211\u5728\u5b9e\u73b0\u8fd9\u4e2a\u9700\u6c42\u7684\u65f6\u5019, \u5e76\u6ca1\u6709\u62a5\u592a\u5927\u5e0c\u671b\u80fd\u6307\u671b\u5728rpi 4b\u4e0a\u8dd1\u670d\u52a1\u7684\u540c\u65f6\u518d\u8dd1\u4e00\u4e2a\u56fe\u5f62\u5316\u7684\u754c\u9762, \u4f46\u662f\u540e\u6765\u8fdb\u884c\u9ed8\u8ba4\u5b89\u88c5(\u4e5f\u5c31\u662f\u5e26\u56fe\u5f62\u5316)\u540e, \u53d1\u73b0\u5185\u5b58\u4f7f\u7528\u91cf\u4ec5\u67092G\u4e0d\u5230(\u6211\u7684\u662frpi 4b 8GB\u7248\u672c),\u00a0<strong>\u6240\u4ee5\u5018\u82e5\u4f60\u7684rpi \u5185\u5b58\u5927\u4e8e\u7b49\u4e8e4GB\u7684\u8bdd, \u5b8c\u5168\u4e0d\u7528\u53bb\u7ba1\u56fe\u5f62\u5316\u7684\u8d44\u6e90\u5360\u7528<\/strong>, \u6bd5\u7adf\u6709\u4e86\u56fe\u5f62\u5316\u4e4b\u540e, \u4e00\u4e9b\u57fa\u64cd\u76f8\u5bf9\u4e8e\u547d\u4ee4\u884c\u64cd\u4f5c\u6765\u8bf4\u4f1a\u7b80\u5355\u4e00\u4e9b, \u5f53\u7136\u4f4e\u5185\u5b58\u7248\u672c\u4e5f\u53ef\u4ee5\u4e0b\u8f7d, \u4e00\u4f1a\u513f\u53ef\u4ee5\u628a\u56fe\u5f62\u5316\u8c03\u6ca1\u4e86.<\/p>\n<blockquote class=\"js_blockquote_wrap\" data-type=\"2\" data-url=\"\" data-author-name=\"\" data-content-utf8-length=\"100\" data-source-title=\"\u5bf9\u4e8e\u5f31\u8005\u7684\u5fe0\u544a\">\n<section class=\"js_blockquote_digest\">\u4f60\u4eec\u77e5\u9053windows\u4e5f\u6709arm\u7248\u672c\u7684\u4e48? \u5ea6\u5a18\u641c\u4e00\u4e0b\u5982\u4f55\u5728raspberry PI\u4e0a\u5b89\u88c5windows,\u00a0\u7136\u540e\u8fde\u4e0a\u79fb\u52a8\u786c\u76d8,\u00a0\u8fde\u4e0a\u7f51\u7ebf,\u00a0\u53f3\u952e\u9009\u62e9\u5171\u4eab,\u00a0\u5c31\u5b8c\u6210\u4e86\u8fd9\u7bc7\u6587\u7ae0\u7684\u6240\u6709\u9700\u6c42\u5566. \u4e0d\u8fc7\u5c31\u5931\u53bb\u4e86\u6298\u817e\u7684\u610f\u4e49\u4e86.&nbsp;<\/p>\n<\/section>\n<section class=\"blockquote_info js_blockquote_source\" data-json=\"&lt;\/blockquote\">\n<section># \u7cfb\u7edf\u70e7\u5f55\u00a0#<\/section>\n<div style=\"position: relative; width: 100%; max-width: 800px; height: 300px; background-color: #eee; border-bottom: 2px solid #0059b3;\"><span class=\"wbspy-placeholder-tip\" style=\"position: absolute; top: 50%; left: 0; width: 100%; text-align: center; line-height: 20px; font-size: 16px; margin-top: -10px;\">imgSpider \u91c7\u96c6\u4e2d&#8230;<\/span><\/div>\n<section><\/section>\n<section>\u4e0b\u8f7d\u5b8c\u6210\u540e, \u4f60\u4f1a\u5f97\u5230\u4e00\u4e2a\u201dFedora-XXX-40-1.14.aarch64.raw.xz\u201d\u8fd9\u6837\u4ee5\u201draw.xz\u201d\u7ed3\u5c3e\u7684\u6587\u4ef6, \u8fd9\u4e2a\u5c31\u662f\u7cfb\u7edf\u7684\u955c\u50cf\u5566, \u63a5\u4e0b\u6765\u6253\u5f00raspberry pi imager, \u5728\u754c\u9762\u4e2d\u95f4\u70b9\u51fb\u201d[ \u9009\u62e9\u64cd\u4f5c\u7cfb\u7edf ]\u201d\u6309\u94ae, \u4e0b\u62c9\u5230\u6700\u5e95\u4e0b\u9009\u62e9\u201dUse Custom\u201d, \u7136\u540e\u627e\u5230\u4f60\u521a\u624d\u4e0b\u8f7d\u7684\u90a3\u4e2a\u6587\u4ef6\u5e76\u4e14\u786e\u8ba4\u9009\u62e9, \u5982\u4e0a\u56fe\u6240\u793a.<br \/>\n\u7136\u540e,\u00a0\u5c06\u4f60\u7684tf\u5361\u63d2\u5165\u8bfb\u5361\u5668\u6216\u5361\u5957, \u63d2\u5165\u5230\u7535\u8111\u5185,\u00a0\u70b9\u51fb[ NEXT ]\u6309\u94ae,\u8df3\u8fc7\u914d\u7f6e\u5bf9\u8bdd\u6846\u540e, \u4fbf\u5f00\u59cb\u4e86\u6f2b\u957f\u7684\u70e7\u5f55\u8fc7\u7a0b, \u8fd9\u4e2a\u6f2b\u957f\u53d6\u51b3\u4e8e\u4f60tf\u5361\u7684\u8bfb\u5199\u901f\u5ea6, \u4f60USB\u63a5\u53e3\u7684\u901f\u5ea6.<br \/>\n\u4e0b\u9762\u8fd9\u6bb5\u662f\u5199\u7ed9Fedora\u7528\u6237\u548c\u5176\u4ed6Linux\u53d1\u884c\u7248\u7528\u6237\u5173\u4e8e\u5982\u4f55\u641e\u8fd9\u4e2a\u955c\u50cf\u7684:<\/section>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"apache\"><code><span class=\"code-snippet_outer\"># fedora \u7528\u6237<\/span><\/code><code><span class=\"code-snippet_outer\">#\u00a0\u770b\u6211\u8fc7\u4e4b\u524d\u6587\u7ae0\u7684\u8001\u94c1\u5e94\u8be5\u77e5\u9053\u8fd9\u5c31\u662f\u5b89\u88c5\u4e00\u4e2a\u8f6f\u4ef6<\/span><\/code><code><span class=\"code-snippet_outer\">dnf install -y arm-image-installer<\/span><\/code><code><span class=\"code-snippet_outer\">#\u00a0\u7136\u540e\u4f7f\u7528arm-image-installer\u8fd9\u4e2a\u7a0b\u5e8f\u628a\u955c\u50cf\u641e\u5230\u4f60\u7684tf\u5361\u91cc\u9762<\/span><\/code><code><span class=\"code-snippet_outer\">#\u00a0\u7b80\u5355\u89e3\u91ca\u4e00\u4e0b:\u00a0<\/span><\/code><code><span class=\"code-snippet_outer\"># --image\u00a0\u5c31\u662f\u4f60\u521a\u624d\u4e0b\u8f7d\u90a3\u4e2araw.xz\u955c\u50cf\u6587\u4ef6\u653e\u7684\u4f4d\u7f6e<\/span><\/code><code><span class=\"code-snippet_outer\">#\u00a0--target\u00a0\u5c31\u662f\u4f60\u76ee\u6807\u7684\u6811\u8393\u6d3e\u5e73\u53f0\u7248\u672c\u00a0\u8fd9\u91cc\u7528\u76844b\u00a0\u90a3\u4e48\u5c31\u662frpi4<\/span><\/code><code><span class=\"code-snippet_outer\">#\u00a0--media\u00a0\u5c31\u662f\u4f60\u521a\u624d\u67e5\u5230\u4f60\u7535\u8111\u4e0a\u90a3\u4e2a\u63d2\u4e86tf\u5361\u7684\u8bfb\u5361\u5668,\u00a0\u901a\u8fc7fdisk\u00a0-l\u00a0\u770b\u770b\u662f\u54ea\u4e2a\u78c1\u76d8\u8bbe\u5907<\/span><\/code><code><span class=\"code-snippet_outer\">#\u00a0\u7136\u540e\u586b\u5230\u8fd9\u91cc, \u4e0d\u77e5\u9053\u600e\u4e48\u770b\u7684\u516c\u4f17\u53f7\u56de\u590d\u6216\u8005\u770b\u6211\u4e4b\u524d\u53d1\u7684\u6587\u7ae0\u6709\u5f88\u8be6\u7ec6\u7684\u8bb2<\/span><\/code><code><span class=\"code-snippet_outer\">#\u00a0--resizefs \u70e7\u5f55\u6210\u529f\u540e, \u5c06\u672b\u7aef\u5269\u4f59\u7a7a\u95f4\u5206\u914d\u7ed9\u7cfb\u7edf\u7528.<\/span><\/code><code><span class=\"code-snippet_outer\">arm-image-installer --image=&lt;\/path\/to\/fedora_image&gt; --target=rpi4 --media=\/dev\/__&lt;sd_card_device&gt; --resizefs<\/span><\/code><\/pre>\n<\/section>\n<section><\/section>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"apache\"><code><span class=\"code-snippet_outer\"># \u975efedora\u7684\u5176\u4ed6Linux\u53d1\u884c\u7248\u7528\u6237<\/span><\/code><code><span class=\"code-snippet_outer\">#\u00a0\u5148xzcat\u00a0\u4e34\u65f6\u89e3\u538b,\u00a0\u7136\u540e\u901a\u8fc7dd\u5757\u64cd\u4f5c\u5199\u5165\u5230\u4f60\u7684tf\u5361\u91cc\u9762<\/span><\/code><code><span class=\"code-snippet_outer\">#\u00a0\u5927\u4f53\u64cd\u4f5c\u5c31\u597d\u6bd4\u4f60\u4e0b\u4e2arar\u538b\u7f29\u5305,\u00a0\u7136\u540e\u4f60\u5148\u5f97\u89e3\u538b\u51fa\u6765,\u00a0\u518d\u628a\u89e3\u538b\u7684\u4e1c\u897f\u653e\u5230tf\u5361<\/span><\/code><code><span class=\"code-snippet_outer\"># \u4f46\u4e0b\u9762\u8fd9\u4e2a\u548c\u624b\u52a8\u4e0d\u4e00\u6837, \u6240\u4ee5\u6309\u7167\u4e0b\u9762\u6572<\/span><\/code><code><span class=\"code-snippet_outer\">#\u00a0&lt;\/path\/to\/fedora_image&gt;\u00a0\u8fd9\u4e2a\u4f4d\u7f6e\u5c31\u662f\u4f60\u4e0b\u8f7d\u90a3\u4e2araw.xz\u7684\u955c\u50cf\u6587\u4ef6\u653e\u7684\u4f4d\u7f6e<\/span><\/code><code><span class=\"code-snippet_outer\">#\u00a0of=\/dev\/XXX\u00a0\u5c31\u662f\u4f60\u78c1\u76d8\u7684\u8bbe\u5907\u8def\u5f84,\u00a0\u901a\u8fc7fdisk\u00a0-l\u53bb\u770b<\/span><\/code><code><span class=\"code-snippet_outer\">xzcat\u00a0&lt;\/path\/to\/fedora_image&gt;\u00a0|\u00a0dd\u00a0status=progress\u00a0bs=4M\u00a0of=\/dev\/XXX<\/span><\/code><code><span class=\"code-snippet_outer\">#\u00a0\u4f7f\u7528\u6b64\u79cd\u65b9\u5f0f,\u00a0\u9700\u8981\u5728\u5199\u5165\u5b8c\u6210\u540e\u8c03\u6574\u5206\u533a\u7684\u5927\u5c0f,\u00a0\u5426\u5219,\u00a0\u7eb5\u4f7f\u4f60\u6709128\u4e2aG<\/span><\/code><code><span class=\"code-snippet_outer\">#\u00a0\u7cfb\u7edf\u91cc\u9762\u663e\u793a\u4f60\u4e5f\u53ef\u80fd\u53ea\u670910\u4e2aG\u5de6\u53f3,\u00a0\u61c2\u6211\u610f\u601d\u5427?<\/span><\/code><code><span class=\"code-snippet_outer\">#\u00a0\u5f53\u7136\u4f60\u53ef\u4ee5\u5728\u5b89\u88c5\u597d\u7cfb\u7edf\u540e,\u00a0\u5728\u5b89\u88c5\u597d\u7684\u7cfb\u7edf\u5185\u6267\u884c.<\/span><\/code><\/pre>\n<\/section>\n<blockquote class=\"js_blockquote_wrap\" data-type=\"2\" data-url=\"\" data-author-name=\"\" data-content-utf8-length=\"213\" data-source-title=\"\u5173\u4e8e--resizefs\">\n<section class=\"js_blockquote_digest\">\u56e0\u4e3a\u5236\u4f5c\u955c\u50cf\u7684\u65f6\u5019,\u00a0\u7cfb\u7edf\u4ee5\u4e00\u4e2a\u6700\u5c0f\u7684\u6807\u51c6\u5927\u5c0f\u538b\u7f29\u4e86\u4e00\u4e2a\u955c\u50cf(raw),\u00a0\u540c\u65f6\u88ab\u538b\u7f29\u4e3a\u4e00\u4e2a\u7cfb\u7edf\u955c\u50cf\u7684\u538b\u7f29\u5305(xz).\u00a0\u8fd9\u6837\u505a\u4e0d\u4f46\u63d0\u9ad8\u4e86\u955c\u50cf\u6587\u4ef6\u5728\u7f51\u7edc\u4e0a\u4f20\u8f93\u7684\u6548\u7387,\u00a0\u540c\u65f6\u4e5f\u4fdd\u8bc1\u4e86\u8fd9\u4e2a\u955c\u50cf\u53ef\u4ee5\u5728\u7edd\u5927\u591a\u6570\u7684\u786c\u4ef6\u73af\u5883\u4e0a\u5f97\u5230\u91ca\u653e,\u00a0\u70e7\u5f55\u7a0b\u5e8f\u64cd\u4f5c\u5757\u5c06\u6570\u636e\u4ece\u78c1\u76d8\u9996\u90e8\u7684\u6307\u5b9a\u533a\u57df\u5c06\u955c\u50cf\u5199\u5165\u78c1\u76d8(tf\u5361),\u00a0\u5f53\u5199\u5165\u5230\u955c\u50cf\u6587\u4ef6\u672b\u7aef\u540e,\u00a0\u5982\u679c\u78c1\u76d8\u4ecd\u6709\u7a7a\u95f2\u533a\u57df,\u00a0\u2013resizefs\u5c06\u4f1a\u81ea\u52a8\u5c06\u7a7a\u95f2\u533a\u57df\u53d8\u4e3a\u7cfb\u7edf\u53ef\u7528\u533a\u57df,\u00a0\u4ee5\u4fdd\u8bc1\u5f53\u524d\u78c1\u76d8\u7684\u6700\u5927\u53ef\u7528\u6027.&nbsp;<\/p>\n<\/section>\n<section class=\"blockquote_info js_blockquote_source\" data-json=\"&lt;\/blockquote\"># \u7cfb\u7edf\u57fa\u7840\u914d\u7f6e #<\/p>\n<div style=\"position: relative; width: 100%; max-width: 800px; height: 300px; background-color: #eee; border-bottom: 2px solid #0059b3;\"><span class=\"wbspy-placeholder-tip\" style=\"position: absolute; top: 50%; left: 0; width: 100%; text-align: center; line-height: 20px; font-size: 16px; margin-top: -10px;\">imgSpider \u91c7\u96c6\u4e2d&#8230;<\/span><\/div>\n<p>\u5230\u6b64, \u7cfb\u7edf\u5e94\u8be5\u4e5f\u5c31\u8fdb\u5230\u4e86\u4f60\u7684tf\u5361\u91cc\u9762, \u53ef\u4ee5\u627e\u4e2a\u79e4\u79f0\u4e00\u4e0b, tf\u5361\u662f\u4e0d\u662f\u91cd\u4e86\u4e00\u4e9b?<\/p>\n<div style=\"position: relative; width: 100%; max-width: 800px; height: 300px; background-color: #eee; border-bottom: 2px solid #0059b3;\"><span class=\"wbspy-placeholder-tip\" style=\"position: absolute; top: 50%; left: 0; width: 100%; text-align: center; line-height: 20px; font-size: 16px; margin-top: -10px;\">imgSpider \u91c7\u96c6\u4e2d&#8230;<\/span><\/div>\n<p>\u7136\u540e\u2026<br \/>\n\u5c06tf\u5361\u63d2\u5165rpi 4b<br \/>\n\u5404\u79cd\u7ebf\u5b89\u6392\u4e0a<br \/>\n\u63d2\u7535!<br \/>\n\u5f00\u673a!<\/p>\n<div style=\"position: relative; width: 100%; max-width: 800px; height: 300px; background-color: #eee; border-bottom: 2px solid #0059b3;\"><span class=\"wbspy-placeholder-tip\" style=\"position: absolute; top: 50%; left: 0; width: 100%; text-align: center; line-height: 20px; font-size: 16px; margin-top: -10px;\">imgSpider \u91c7\u96c6\u4e2d&#8230;<\/span><\/div>\n<p>\u7b49\u5230\u7cfb\u7edf\u542f\u52a8\u540e, \u7cfb\u7edf\u4f1a\u5c55\u793a\u5b89\u88c5\u540e\u7684\u914d\u7f6e\u5411\u5bfc, \u4ed6\u4f1a\u8ba9\u4f60\u5728\u8fd9\u91cc\u8bbe\u7f6e\u4e00\u4e2a\u65b0\u7684\u7528\u6237, \u8bbe\u7f6e\u4e00\u4e0broot\u7684\u5bc6\u7801\u4ee5\u53ca\u5176\u4ed6\u7684\u4e00\u4e9b\u5185\u5bb9, \u8bbe\u7f6e\u597d\u4e4b\u540e\u4f60\u4fbf\u53ef\u4ee5\u8fdb\u5165\u5230\u7cfb\u7edf\u7684\u684c\u9762.<br \/>\n\u9700\u8981\u6ce8\u610f\u7684\u662f:<br \/>\n1. \u5b89\u88c5\u540e\u914d\u7f6e\u7b2c\u4e00\u5c4f\u6709\u65f6\u5019\u5c4f\u5e55\u663e\u793a\u4e0d\u6b63\u5e38, \u4f46\u662f\u660e\u663e\u80fd\u611f\u89c9\u5230\u9f20\u6807\u662f\u6709\u53cd\u5e94\u7684, \u8fd9\u79cd\u60c5\u51b5\u662f\u56e0\u4e3a\u9a71\u52a8\u4e0d\u517c\u5bb9\u7684\u60c5\u51b5, \u8fd9\u79cd\u60c5\u51b5\u4e0b, \u9700\u8981\u5728\u542f\u52a8\u83dc\u5355\u90a3\u91cc\u72c2\u70b9e, \u8fd9\u6837\u5c31\u80fd\u8fdb\u5165\u5230\u542f\u52a8\u83dc\u5355\u7684\u5185\u6838\u542f\u52a8\u53c2\u6570\u90a3\u91cc, \u53ea\u9700\u8981\u5728vmlinuz\u90a3\u4e00\u884cquiet \u540e\u9762\u52a0\u4e00\u4e2a:\u00a0xdriver=vesa, \u8bb0\u5f97quiet\u548cxdriver\u4e2d\u95f4\u6709\u7a7a\u683c, \u7136\u540e\u4f7f\u7528F10\u6267\u884c\u5c31\u53ef\u4ee5\u6b63\u5e38\u663e\u793a\u4e86.<br \/>\n2. \u540e\u9762\u6211\u4eec\u4f1a\u7528\u5230\u8fd9\u91cc\u521b\u5efa\u7684\u65b0\u7528\u6237.<\/p>\n<section>\n<div style=\"position: relative; width: 100%; max-width: 800px; height: 300px; background-color: #eee; border-bottom: 2px solid #0059b3;\"><span class=\"wbspy-placeholder-tip\" style=\"position: absolute; top: 50%; left: 0; width: 100%; text-align: center; line-height: 20px; font-size: 16px; margin-top: -10px;\">imgSpider \u91c7\u96c6\u4e2d&#8230;<\/span><\/div>\n<p>\u6211\u5b89\u88c5\u7684kde\u684c\u9762,\u53ef\u4ee5\u770b\u5230\u7cfb\u7edf\u5df2\u7ecf\u542f\u52a8\u6210\u529f\u4e86<\/section>\n<section># \u5c0f\u63d2\u66f2: VLC \u82b1\u5c4f #<br \/>\n\u65e2\u7136\u8fdb\u4e86\u684c\u9762,\u60f3\u7740\u8981\u4e0d\u76f4\u63a5\u5b89\u88c5\u4e00\u4e2avlc\u5c1d\u8bd5\u4e00\u4e0b\u76f4\u63a5\u64ad\u653e\u7535\u5f71\u7684\u6548\u679c, \u7ed3\u679c\u82b1\u5c4f<\/p>\n<div style=\"position: relative; width: 100%; max-width: 800px; height: 300px; background-color: #eee; border-bottom: 2px solid #0059b3;\"><span class=\"wbspy-placeholder-tip\" style=\"position: absolute; top: 50%; left: 0; width: 100%; text-align: center; line-height: 20px; font-size: 16px; margin-top: -10px;\">imgSpider \u91c7\u96c6\u4e2d&#8230;<\/span><\/div>\n<\/section>\n<div style=\"position: relative; width: 100%; max-width: 800px; height: 300px; background-color: #eee; border-bottom: 2px solid #0059b3;\"><span class=\"wbspy-placeholder-tip\" style=\"position: absolute; top: 50%; left: 0; width: 100%; text-align: center; line-height: 20px; font-size: 16px; margin-top: -10px;\">imgSpider \u91c7\u96c6\u4e2d&#8230;<\/span><\/div>\n<section>\u5f53\u7136\u8fd9\u4f5c\u4e3a\u4e00\u53f0\u5b58\u50a8\u670d\u52a1\u5668\u6765\u8bf4, \u56fe\u5f62\u5316\u754c\u9762\u5e76\u4e0d\u662f\u5f88\u91cd\u8981, \u6240\u4ee5\u5148\u5ffd\u7565\u8fd9\u4e2a\u95ee\u9898, \u6709\u65f6\u95f4\u518d\u641e\u8fd9\u4e2a<\/p>\n<div style=\"position: relative; width: 100%; max-width: 800px; height: 300px; background-color: #eee; border-bottom: 2px solid #0059b3;\"><span class=\"wbspy-placeholder-tip\" style=\"position: absolute; top: 50%; left: 0; width: 100%; text-align: center; line-height: 20px; font-size: 16px; margin-top: -10px;\">imgSpider \u91c7\u96c6\u4e2d&#8230;<\/span><\/div>\n<p>.<\/section>\n<p># \u57fa\u7840\u7cfb\u7edf\u914d\u7f6e #<\/p>\n<div style=\"position: relative; width: 100%; max-width: 800px; height: 300px; background-color: #eee; border-bottom: 2px solid #0059b3;\"><span class=\"wbspy-placeholder-tip\" style=\"position: absolute; top: 50%; left: 0; width: 100%; text-align: center; line-height: 20px; font-size: 16px; margin-top: -10px;\">imgSpider \u91c7\u96c6\u4e2d&#8230;<\/span><\/div>\n<p>\u4e0a\u56fe\u662f\u6211\u5df2\u7ecf\u5b89\u88c5\u4e86\u76f8\u5173\u5404\u79cd\u529f\u80fd\u670d\u52a1\u7684\u5185\u5b58\u4f7f\u7528\u60c5\u51b5, \u5927\u4f53\u6765\u8bf4\u7528\u4e862\u4e2aG, \u8fd8\u5269\u4e0b5.7\u4e2aG\u5de6\u53f3, \u8fd8\u597d\u8fd8\u597d<\/p>\n<div style=\"position: relative; width: 100%; max-width: 800px; height: 300px; background-color: #eee; border-bottom: 2px solid #0059b3;\"><span class=\"wbspy-placeholder-tip\" style=\"position: absolute; top: 50%; left: 0; width: 100%; text-align: center; line-height: 20px; font-size: 16px; margin-top: -10px;\">imgSpider \u91c7\u96c6\u4e2d&#8230;<\/span><\/div>\n<p>\u2013\u00a0<em>\u5f00\u542fssh\u8fdc\u7a0b\u670d\u52a1\u4ee5\u53caroot\u7528\u6237ssh\u8fdc\u7a0b\u767b\u5f55(\u6ce8\u91ca\u5185\u5bb9)<\/em><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"apache\"><code><span class=\"code-snippet_outer\">#\u00a0\u8ba9ssh\u81ea\u52a8\u542f\u52a8<\/span><\/code><code><span class=\"code-snippet_outer\">systemctl enable sshd<\/span><\/code><code><span class=\"code-snippet_outer\">#\u00a0\u542f\u52a8ssh\u670d\u52a1\u7aef<\/span><\/code><code><span class=\"code-snippet_outer\">systemctl\u00a0start sshd<\/span><\/code><code><span class=\"code-snippet_outer\">#\u00a0\u9632\u706b\u5899\u914d\u7f6e<\/span><\/code><code><span class=\"code-snippet_outer\">firewall-cmd\u00a0--permanent --add-port=22\/tcp<\/span><\/code><code><span class=\"code-snippet_outer\">firewall-cmd --reload<\/span><\/code><code><span class=\"code-snippet_outer\">#\u00a0\u8fd9\u6837\u5982\u679c\u4f7f\u7528root\u767b\u5f55, \u5373\u4fbf\u662f\u8f93\u5165\u4e86\u6b63\u786e\u7684\u5bc6\u7801\u90fd\u6ca1\u6cd5\u767b\u5f55,\u9700\u8981\u4fee\u6539<\/span><\/code><code><span class=\"code-snippet_outer\">#\u00a0\/etc\/ssh\/sshd_config\u4e2d\u7684PermitRootLogin\u4e3a\u00a0Yes\u624d\u53ef\u4ee5<\/span><\/code><code><span class=\"code-snippet_outer\"># \u7136\u540e\u8bb0\u5f97\u4fdd\u5b58\u91cd\u542f\u670d\u52a1\u5668<\/span><\/code><\/pre>\n<\/section>\n<p>\u00a0\u2013\u00a0<em>\u4fee\u6539\u4e3b\u673a\u540d<\/em><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"nginx\"><code><span class=\"code-snippet_outer\">vi \/etc\/hostname<\/span><\/code><code><span class=\"code-snippet_outer\">Home-NAS<\/span><\/code><code><span class=\"code-snippet_outer\">#\u00a0\u5728\u7b2c\u4e00\u884c\u8f93\u5165\u4e3b\u673a\u540d\u5c31\u6210\u4e86<\/span><\/code><code><span class=\"code-snippet_outer\"># \u91cd\u542f\u751f\u6548, \u6216\u8005\u901a\u8fc7hostname -f \/etc\/hostname\u7acb\u5373\u751f\u6548.<\/span><\/code><\/pre>\n<\/section>\n<p>\u00a0\u2013\u00a0\u4fee\u6539\u7f51\u5361IP<\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"apache\"><code><span class=\"code-snippet_outer\">#\u00a0\u8fd9\u91cc\u6709\u4e09\u79cd\u65b9\u6cd5<\/span><\/code><code><span class=\"code-snippet_outer\">#\u00a01. \u4f7f\u7528nmcli connection \u8fdb\u884c\u4fee\u6539<\/span><\/code><code><span class=\"code-snippet_outer\"> nmcli connection modify XXXX ipv4.addresses xxx.xxx.xxx.xxx ...<\/span><\/code><code><span class=\"code-snippet_outer\">#\u00a02.\u00a0\u4f7f\u7528\u56fe\u5f62\u5316\u76f4\u63a5\u7f16\u8f91 \u7b80\u5355\u7c97\u66b4<\/span><\/code><code><span class=\"code-snippet_outer\">#\u00a03.\u00a0\u4f7f\u7528ifconfig\u00a0XXX\u627e\u5230\u6307\u5b9a\u7f51\u5361\u7684ether\u00a0MAC\u5730\u5740,\u00a0\u5230\u8def\u7531\u5668\u7ed9\u5b83\u4e00\u4e2a\u56fa\u5b9a\u7684IP\u5730\u5740.<\/span><\/code><\/pre>\n<\/section>\n<p>\u00a0\u2013 \u4e00\u5207\u5c31\u7eea, \u6765\u505a\u7cfb\u7edf\u5b89\u88c5\u540e\u7684\u7b2c\u4e00\u6b21\u66f4\u65b0<\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"nginx\"><code><span class=\"code-snippet_outer\">dnf\u00a0update<\/span><\/code><\/pre>\n<\/section>\n<p>\u00a0\u2013\u00a0<em>\u786e\u8ba4\u78c1\u76d8\u4e0e\u7a7a\u95f4<\/em><br \/>\n\u6bd5\u7adf\u8981\u641e\u4e00\u4e2a\u78c1\u76d8\u5171\u4eab\u7684\u670d\u52a1\u5668,\u00a0\u6240\u4ee5\u786e\u4fdd\u4f60\u5e94\u8be5\u6709\u8db3\u591f\u7684\u7a7a\u95f4\u80fd\u591f\u8ba9\u4f60\u901a\u8fc7\u5171\u4eab\u7684\u65b9\u5f0f\u628a\u4f60\u9700\u8981\u5b58\u50a8\u7684\u6587\u4ef6\u653e\u5230\u4f60\u8db3\u591f\u7684\u7a7a\u95f4\u7684\u5206\u533a\u4e0b.<\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"nginx\"><code><span class=\"code-snippet_outer\"># \u4f7f\u7528\u4f60\u7684root\u8d26\u6237\u67e5\u770b\u4f60\u5f53\u524d\u7684\u6240\u6709\u78c1\u76d8\u548c\u5206\u533a<\/span><\/code><code><span class=\"code-snippet_outer\">fdisk -l<\/span><\/code><code><span class=\"code-snippet_outer\">Disk \/dev\/mmcblk1: 29.72 GiB, 31914983424 bytes, 62333952 sectors<\/span><\/code><code><span class=\"code-snippet_outer\">Units: sectors of 1 * 512 = 512 bytes<\/span><\/code><code><span class=\"code-snippet_outer\">Sector size (logical\/physical): 512 bytes \/ 512 bytes<\/span><\/code><code><span class=\"code-snippet_outer\">I\/O size (minimum\/optimal): 512 bytes \/ 512 bytes<\/span><\/code><code><span class=\"code-snippet_outer\">Disklabel type: dos<\/span><\/code><code><span class=\"code-snippet_outer\">Disk identifier: 0x282f94a7<\/span><\/code><code>\n<\/code><code><span class=\"code-snippet_outer\">Device         Boot   Start      End  Sectors  Size Id Type<\/span><\/code><code><span class=\"code-snippet_outer\">\/dev\/mmcblk1p1 *       2048  1230847  1228800  600M  6 FAT16<\/span><\/code><code><span class=\"code-snippet_outer\">\/dev\/mmcblk1p2      1230848  3327999  2097152    1G 83 Linux<\/span><\/code><code><span class=\"code-snippet_outer\">\/dev\/mmcblk1p3      3328000 62333951 59005952 28.1G 83 Linux<\/span><\/code><code>\n<\/code><code>\n<\/code><code><span class=\"code-snippet_outer\">Disk \/dev\/sda: 931.51 GiB, 1000204886016 bytes, 1953525168 sectors<\/span><\/code><code><span class=\"code-snippet_outer\">Disk model: Generic<\/span><\/code><code><span class=\"code-snippet_outer\">Units: sectors of 1 * 512 = 512 bytes<\/span><\/code><code><span class=\"code-snippet_outer\">Sector size (logical\/physical): 512 bytes \/ 512 bytes<\/span><\/code><code><span class=\"code-snippet_outer\">I\/O size (minimum\/optimal): 512 bytes \/ 512 bytes<\/span><\/code><code><span class=\"code-snippet_outer\">Disklabel type: dos<\/span><\/code><code><span class=\"code-snippet_outer\">Disk identifier: 0xd46f93d4<\/span><\/code><code>\n<\/code><code><span class=\"code-snippet_outer\">Device     Boot Start        End    Sectors   Size Id Type<\/span><\/code><code><span class=\"code-snippet_outer\">\/dev\/sda1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a063\u00a01953525167\u00a01953525105\u00a0931.5G\u00a083\u00a0Linux<\/span><\/code><\/pre>\n<\/section>\n<p>\u4e0a\u9762\u8fd9\u6bb5,\u6211\u4eec\u770b\u5230\u9664\u4e86mmcblk1\u8fd9\u4e2a\u78c1\u76d8\u662f\u6211\u4eec\u5b89\u88c5\u7cfb\u7edf\u7684\u78c1\u76d8\u4e4b\u5916,\u00a0\u6211\u6709\u4e00\u4e2a\u5916\u63a5\u7684\u786c\u76d8sda,\u5927\u5c0f900\u591a\u4e2aG,\u8fd9\u4e2a\u5c31\u662f\u672a\u6765\u6211\u53ef\u4ee5\u5171\u4eab\u5b58\u50a8\u5c0f\u7247\u513f\u4e4b\u7c7b\u7684\u78c1\u76d8, \u6211\u4eec\u9700\u8981\u628a\u8fd9\u4e2a\u78c1\u76d8\u6302\u8f7d\u5230\u5148\u524d\u521b\u5efa\u7684\u90a3\u4e2a\u7528\u6237\u7684\u5bb6\u76ee\u5f55\u4e0b,\u00a0\u5982\u679c\u6211\u4eec\u521b\u5efa\u7684\u7528\u6237\u540d\u4e3anasuser,\u6211\u4eec\u4f7f\u7528\u4e0b\u9762\u7684\u547d\u4ee4:<\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"nginx\"><code><span class=\"code-snippet_outer\"># \u9996\u5148\u4f7f\u7528switchuser(su)\u547d\u4ee4\u5207\u6362\u81f3nasuser\u8fd9\u4e2a\u7528\u6237\u4e0b<\/span><\/code><code><span class=\"code-snippet_outer\">su\u00a0-\u00a0nasuser<\/span><\/code><code><span class=\"code-snippet_outer\"># su \u540e\u9762\u8ddf-\u548c\u7528\u6237\u540d\u5c31\u662f\u5207\u6362\u5230\u8fd9\u4e2a\u7528\u6237, \u5982\u679csu\u548c\u7528\u6237\u540d\u4e2d\u95f4\u6709-,\u5c31\u4ee3\u8868\u52a0\u8f7d\u7528\u6237\u73af\u5883\u53d8\u91cf<\/span><\/code><code><span class=\"code-snippet_outer\"># \u5982\u679csu\u540e\u9762\u6ca1\u6709\u7528\u6237\u540d\u53c2\u6570, \u5c31\u662f\u5207\u6362\u5230root\u7528\u6237<\/span><\/code><code><span class=\"code-snippet_outer\"># \u7136\u540e\u4f7f\u7528make directory(mkdir)\u547d\u4ee4\u5728\u5bb6\u76ee\u5f55\u4e0b\u521b\u5efa\u4e00\u4e2a\u53eb\u505ashare\u7684\u76ee\u5f55<\/span><\/code><code><span class=\"code-snippet_outer\">mkdir\u00a0~\/share<\/span><\/code><code><span class=\"code-snippet_outer\">#\u00a0\u968f\u540e\u5207\u6362\u5230root<\/span><\/code><code><span class=\"code-snippet_outer\">su -<\/span><\/code><code><span class=\"code-snippet_outer\">#\u00a0\u5c06sda1\u5206\u533a\u6302\u8f7d\u5230\u521a\u624d\u521b\u5efa\u7684share\u4e0a<\/span><\/code><code><span class=\"code-snippet_outer\">mount \/dev\/sda1 \/home\/nasuser\/share<\/span><\/code><code><span class=\"code-snippet_outer\">#\u00a0\u6b64\u65f6\u9ed8\u8ba4\u6302\u8f7d\u7684share\u4e0b\u7684\u6240\u6709\u6587\u4ef6nasuser\u53ef\u80fd\u6ca1\u6cd5\u5199\u5165, \u8fd9\u65f6\u5019\u9700\u8981\u521b\u5efanasuser\u80fd\u591f\u8bfb\u5199\u7684\u76ee\u5f55, \u6216\u8005\u901a\u8fc7chmod\u8fdb\u884c\u6743\u9650\u66f4\u6539.<\/span><\/code><code><span class=\"code-snippet_outer\">\u6b64\u547d\u4ee4\u7565<\/span><\/code><\/pre>\n<\/section>\n<p>\u4ee5\u4e0a\u77e5\u8bc6\u70b9,\u8bf7\u9605\u8bfb\u4e0b\u9762\u4e5f\u5c31\u662f\u4e4b\u524d\u53d1\u5e03\u7684\u6587\u7ae0:<br \/>\n<a rel=\"nofollow\" href=\"http:\/\/mp.weixin.qq.com\/s?__biz=MzU0MzkzMDQ2Nw==&amp;mid=2247483945&amp;idx=1&amp;sn=9332b07773e8427e40a2caf1745e30f5&amp;chksm=fb02a325cc752a3347e0bfe85f8eea4e3578437c687519d495d5530f585608408c754e0d4aa7&amp;scene=21#wechat_redirect\" target=\"_blank\" rel=\"noopener\" data-itemshowtype=\"0\" data-linktype=\"2\">Linux\u4e2d\u5e38\u89c1\u7684\u76ee\u5f55\u548c\u4f5c\u7528<\/a><\/p>\n<p><em>\u00a0\u2013 \u5b89\u88c5sama\u670d\u52a1\u5668<\/em><br \/>\n\u6838\u5fc3\u64cd\u4f5c, \u8fd9\u4e2a\u6700\u5173\u952e, \u548cwindows\u5171\u4eab\u4e00\u6837, \u8fd9\u4e2asamba\u7684\u670d\u52a1\u7aef\u5c31\u662f\u5b9e\u73b0\u6587\u4ef6\u5171\u4eab\u7684\u7a0b\u5e8f, \u9996\u5148\u6211\u4eec\u9700\u8981\u5b89\u88c5\u5b83, \u5728fedora\u91cc\u9762,\u4f7f\u7528yum\u6216\u8005dnf\u6765\u8fdb\u884c\u5b89\u88c5:<\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"nginx\"><code><span class=\"code-snippet_outer\">#\u00a0\u4e0b\u9762-y \u8868\u793a\u4e0d\u7528\u4ea4\u4e92, \u627e\u5230\u76f4\u63a5\u8fdb\u884c\u4e0b\u8f7d\u5b89\u88c5\u7684\u610f\u601d<\/span><\/code><code><span class=\"code-snippet_outer\">dnf install samba -y<\/span><\/code><\/pre>\n<\/section>\n<p>\u8fd9\u4e2a\u8fc7\u7a0b\u4f1a\u5f88\u5feb, \u8fd9\u4e2a\u8f6f\u4ef6\u5927\u5c0f3MB\u5de6\u53f3, \u6240\u4ee5\u5e76\u6ca1\u6709\u50cfwindows\u4e00\u6837\u7684\u4e0b\u4e00\u6b65\u4e0b\u4e00\u6b65\u4e0b\u4e00\u6b65\u5b8c\u6210\u90a3\u79cd.<\/p>\n<p><em>\u00a0\u2013 \u914d\u7f6eSELINUX<\/em><br \/>\n\u60f3\u8981samba\u8fd9\u4e2a\u8f6f\u4ef6\u80fd\u6b63\u5e38\u63d0\u4f9b\u670d\u52a1\u5668, \u9700\u8981\u914d\u7f6esamba\u7684SELINUX\u914d\u7f6e, \u5e38\u89c4\u6765\u8bf4\u5e94\u8be5\u5141\u8bb8samba\u8bbf\u95ee\u5bb6\u76ee\u5f55\u548c\u4e00\u4e9b\u5e38\u89c4\u7684\u76ee\u5f55\u4ee5\u53ca\u64cd\u4f5c, \u6240\u4ee5\u9700\u8981\u4e0b\u9762\u7684\u64cd\u4f5c<\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"nginx\"><code><span class=\"code-snippet_outer\">setsebool -P samba_enable_home_dirs on<\/span><\/code><code><span class=\"code-snippet_outer\">setsebool\u00a0-P\u00a0use_samba_home_dirs\u00a0on<\/span><\/code><\/pre>\n<\/section>\n<p>\u4ee5\u4e0a\u4e24\u4e2a\u6b65\u9aa4\u4f1a\u5141\u8bb8samba\u4f7f\u7528\u5bb6\u76ee\u5f55, \u56e0\u4e3a\u6211\u4eec\u7684\u76ee\u6807\u662f\u521b\u5efa\u4e00\u4e2a\u5e26\u6709\u57fa\u672c\u8eab\u4efd\u8ba4\u8bc1\u529f\u80fd\u7684\u6587\u4ef6\u5171\u4eab\u670d\u52a1\u5668, \u800c\u57fa\u672c\u7684\u8eab\u4efd\u8ba4\u8bc1\u6765\u81ea\u4e8efedora\u7684\u57fa\u672c\u7528\u6237\u8ba4\u8bc1\u7cfb\u7edf, \u6211\u4eec\u501f\u52a9\u5e38\u89c4fedora\u7cfb\u7edf\u521b\u5efa\u7684\u7528\u6237\u6765\u8fdc\u7a0b\u8bbf\u95ee\u5230\u8be5\u7528\u6237\u7684\u5bb6\u76ee\u5f55,\u6240\u4ee5\u6211\u4eec\u9700\u8981\u914d\u7f6e\u4e0a\u8ff0\u7684SELINUX\u914d\u7f6e.<\/p>\n<blockquote class=\"js_blockquote_wrap\" data-type=\"2\" data-url=\"\" data-author-name=\"\" data-content-utf8-length=\"84\" data-source-title=\"\u7ecf\u9a8c\u4e4b\u8c08\">\n<section class=\"js_blockquote_digest\">\u5bf9\u4e8e\u5176\u4ed6\u76ee\u5f55\u5728SELINUX\u6a21\u5f0f\u4e0b\u7684\u8bbf\u95ee,\u6211\u4eec\u9700\u8981\u7ed9\u8be5\u76ee\u5f55\u589e\u52a0samba_share_t\u7684\u4e0a\u4e0b\u6587,\u00a0\u624d\u80fd\u4fdd\u8bc1\u76ee\u5f55\u53ef\u4ee5\u901a\u8fc7samba\u6b63\u5e38\u8bbf\u95ee\u5230,\u00a0\u5426\u5219\u5c31\u4f1a\u51fa\u73b0\u7981\u6b62\u8bbf\u95ee\u7684\u95ee\u9898.&nbsp;<\/p>\n<\/section>\n<section class=\"blockquote_info js_blockquote_source\" data-json=\"&lt;\/blockquote\">&nbsp;<\/p>\n<p><em>\u00a0\u2013 \u914d\u7f6eSAMBA<\/em><br \/>\n1\u901a\u5e38\u60c5\u51b5\u4e0b, samba\u7684\u914d\u7f6e\u6587\u4ef6\u5728\/etc\/samba\/smb.conf, \u5bf9\u4e8e\u6211\u4eec\u73b0\u5982\u4eca\u7684\u9700\u6c42, \u6211\u4eec\u53ea\u9700\u8981\u6253\u5f00\u6b64\u6587\u4ef6,\u786e\u8ba4\u8be5\u6587\u4ef6\u7684[homes]\u6807\u7b7e\u4e0b\u548c\u6211\u7684\u4e00\u6837\u5373\u53ef<\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"sql\"><code><span class=\"code-snippet_outer\">[homes]<\/span><\/code><code><span class=\"code-snippet_outer\">        comment = Home Directories<\/span><\/code><code><span class=\"code-snippet_outer\">        valid users =\n<\/span><\/code><\/pre>\n<\/section>\n<p><code><\/code>&nbsp;<\/p>\n<p><code><\/code><em>\u00a0\u2013 \u914d\u7f6e\u9632\u706b\u5899<\/em><br \/>\nfedora\u4e2d\u4f7f\u7528firewalld\u4f5c\u4e3a\u57fa\u7840\u9632\u706b\u5899, \u4f7f\u7528firewall-cmd\u64cd\u4f5c\u9632\u706b\u5899, firewall-cmd\u6709\u5bf9samba\u7684\u5b9a\u5f0f\u6807\u7b7e, \u6240\u4ee5\u9ed8\u8ba4\u60c5\u51b5\u4e0b, \u6211\u4eec\u53ea\u9700\u8981\u589e\u52a0\u5bf9samba\u7684\u653e\u884c,\u65e0\u9700\u77e5\u9053samba\u7528\u4e86\u90a3\u4e2a\u7aef\u53e3<\/p>\n<p><code><\/code><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"swift\"><code><span class=\"code-snippet_outer\">firewall-cmd\u00a0--permanent --add-service=samba<\/span><\/code><code><span class=\"code-snippet_outer\">#\u00a0\u6211\u7b80\u5355\u89e3\u91ca\u4e00\u4e0b,\u00a0--permanent\u8868\u793a\u6c38\u4e45\u751f\u6548, \u4e0d\u52a0\u8fd9\u4e2a\u4f60\u6267\u884c\u5b8c\u4ed6\u5c31\u751f\u6548\u4e86, <\/span><\/code><code><span class=\"code-snippet_outer\">#\u00a0\u4f46\u662f\u91cd\u542f\u5c31\u6ca1\u4e86,\u00a0\u4f46\u662f\u4f60\u5982\u679c\u52a0\u4e86,\u00a0\u6267\u884c\u5b8c\u8fd9\u6761\u547d\u4ee4\u4ed6\u4e0d\u4f1a\u751f\u6548, \u4f60\u9700\u8981\u6267\u884c\u4e0b\u9762\u8fd9\u4e2a\u547d\u4ee4:<\/span><\/code><code><span class=\"code-snippet_outer\">firewall-cmd --reload<\/span><\/code><code><span class=\"code-snippet_outer\">#\u00a0\u6267\u884c\u5b8c\u4e0a\u9762\u8fd9\u4e2a\u00a0samba\u5c31\u88ab\u9632\u706b\u5899\u653e\u884c\u4e86,\u00a0\u522b\u4eba\u5c31\u53ef\u4ee5\u8bbf\u95ee\u5230\u4e86<\/span><\/code><code><span class=\"code-snippet_outer\">#\u00a0\u540c\u65f6,\u00a0\u901a\u8fc7--list-services\u53ef\u770b\u5230\u73b0\u5728\u653e\u884c\u7684\u670d\u52a1, \u5176\u4ed6\u90a3\u4e9b\u547d\u4ee4\u901a\u8fc7--help\u53bb\u770b<\/span><\/code><code><span class=\"code-snippet_outer\">firewall-cmd --list-services<\/span><\/code><code><span class=\"code-snippet_outer\">dhcpv6-client ftp mdns samba samba-client ssh<\/span><\/code><code><span class=\"code-snippet_outer\">#\u00a0\u4e0a\u9762\u662f\u6211\u7684\u91cc\u9762\u5f00\u7684<\/span><\/code><\/pre>\n<\/section>\n<p><code><\/code>&nbsp;<\/p>\n<p><code><\/code><em>\u00a0\u2013 \u914d\u7f6esamba\u7528\u6237<\/em><br \/>\n\u867d\u7136, \u6211\u4eec\u662f\u4f7f\u7528fedora\u4e2d\u7684\u57fa\u7840\u7528\u6237\u6765\u505asamba\u7684\u7528\u6237\u8ba4\u8bc1, \u4f46\u4e8b\u5b9e\u4e0a, \u9ed8\u8ba4\u60c5\u51b5\u4e0bsamba\u4f1a\u6709\u4e00\u5957\u81ea\u5df1\u7684\u7528\u6237\u9a8c\u8bc1\u6570\u636e\u4f53\u7cfb, \u5b83\u5e76\u4e0d\u4f1a\u76f4\u63a5\u8bfb\u53d6\u6211\u4eec\u7684\u7cfb\u7edf\u7528\u6237\u6570\u636e\u4fe1\u606f, \u6240\u4ee5\u5982\u679c\u6211\u4eec\u9700\u8981\u4f7f\u7528\u6211\u4eecfedora\u7684\u7528\u6237, \u8fd8\u9700\u8981\u505a\u4e00\u6b65\u6240\u8c13\u7684\u201d\u6620\u5c04\u201d. \u64cd\u4f5c\u5982\u4e0b:<\/p>\n<p><code><\/code><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"nginx\"><code><span class=\"code-snippet_outer\">smbpasswd -a nasuser<\/span><\/code><code><span class=\"code-snippet_outer\">#\u00a0\u4f7f\u7528smbpasswd\u547d\u4ee4\u5bf9samba\u670d\u52a1\u505a\u57fa\u7840\u7528\u6237\u7ba1\u7406\u64cd\u4f5c.<\/span><\/code><code><span class=\"code-snippet_outer\">#\u00a0-a \u4ee3\u8868\u5411\u73b0\u6709samba\u7684\u9a8c\u8bc1\u4f53\u7cfb\u91cc\u9762\u6dfb\u52a0\u4e00\u4e2a\u65b0\u7684\u7528\u6237,\u540e\u9762\u7684nasuser\u662f\u7528\u6237\u540d, \u4e5f\u662ffedora\u6211\u4eec\u521b\u5efa\u7684\u7528\u6237<\/span><\/code><code><span class=\"code-snippet_outer\">New SMB password:<\/span><\/code><code><span class=\"code-snippet_outer\">Retype new SMB password:<\/span><\/code><code><span class=\"code-snippet_outer\">#\u00a0\u968f\u540e\u4fbf\u662f\u8ba9\u4f60\u8f93\u5165\u4e00\u4e2a\u901a\u8fc7\u5171\u4eab\u8bbf\u95ee\u7684\u5bc6\u7801,\u00a0\u8fd9\u91cc\u7684\u5bc6\u7801\u53ef\u4ee5\u4e0e\u7cfb\u7edf\u7528\u6237\u4e0d\u4e00\u6837.<\/span><\/code><\/pre>\n<\/section>\n<p><code><\/code>&nbsp;<\/p>\n<p><code><\/code><em>\u00a0\u2013 \u7ec8\u6781\u5927\u62db!\u542f\u52a8\u670d\u52a1!<\/em><br \/>\n\u5982\u4eca\u4e00\u5207\u90fd\u641e\u5b9a\u4e86!\u4e0b\u9762\u5c31\u662f\u89c1\u8bc1\u5947\u8ff9\u7684\u65f6\u523b\u4e86,\u5176\u5b9e\u4e5f\u6ca1\u5565\u5947\u8ff9\u4e0d\u5947\u8ff9\u7684,\u5c31\u662f\u4e2a\u6587\u4ef6\u5171\u4eab\u7684\u529f\u80fd\u800c\u5df2~~<\/p>\n<p><code><\/code><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"nginx\"><code><span class=\"code-snippet_outer\">systemctl start smb<\/span><\/code><code><span class=\"code-snippet_outer\">#\u00a0systemctl\u662f\u7cfb\u7edf\u57fa\u64cd, \u7528\u6765\u64cd\u4f5c\u4e00\u4e9b\u7cfb\u7edf\u670d\u52a1\u4e4b\u7c7b\u7684\u547d\u4ee4<\/span><\/code><code><span class=\"code-snippet_outer\"># \u901a\u8fc7systemctl start \u540e\u9762\u8ddf\u4e00\u4e2a\u670d\u52a1\u53ef\u4ee5\u542f\u52a8\u4e00\u4e2a\u670d\u52a1, samba\u7684\u670d\u52a1\u540d\u79f0\u53eb\u505asmb<\/span><\/code><code><span class=\"code-snippet_outer\">#\u00a0\u5f53\u7136\u4e5f\u6709stop\u505c\u6b62,restart\u91cd\u542f\u4e4b\u7c7b\u7684,\u8fd8\u53ef\u4ee5\u7528status\u68c0\u67e5\u670d\u52a1\u6709\u6ca1\u6709\u542f\u52a8.<\/span><\/code><\/pre>\n<\/section>\n<p><code><\/code>&nbsp;<\/p>\n<p><code><\/code><em>\u00a0\u2013 \u9a8c\u8bc1\u73af\u8282<\/em><br \/>\n\u5728\u4f60\u7684\u53e6\u5916\u4e00\u53f0\u80fd\u548c\u8fd9\u53f0\u5171\u4eab\u670d\u52a1\u5668\u80fd\u8054\u901a\u7684\u7535\u8111\u4e0a, \u6211\u4eec\u6765\u9a8c\u8bc1\u6211\u4eec\u521a\u624d\u642d\u5efa\u7684\u670d\u52a1\u662f\u5426\u5df2\u7ecf\u6210\u529f\u4e86.<\/p>\n<p><code><\/code><strong>Windows\u7684\u7535\u8111:<\/strong><br \/>\n\u6253\u5f00\u6587\u4ef6\u6d4f\u89c8\u5668, \u5728\u5730\u5740\u680f\u8f93\u5165: \\ipnasuser \u8fd9\u91cc\u7684ip\u5730\u5740\u662f\u4f60\u7684nas\u7684ip\u5730\u5740, \u540e\u9762\u5c31\u662f\u4f60\u521a\u624d\u521b\u5efa\u7684\u90a3\u4e2a\u7528\u6237\u540d, \u5982\u679c\u6ca1\u6709\u610f\u5916, windows\u4f1a\u8ba9\u4f60\u8f93\u5165\u9a8c\u8bc1\u7684\u7528\u6237\u540d\u548c\u5bc6\u7801, \u8f93\u5165\u4f60\u521a\u624d\u521b\u5efa\u7684\u7528\u6237\u540d\u548c\u5bc6\u7801,\u5982\u4e0b\u56fe\u6240\u793a:<\/p>\n<p><code><\/code><\/p>\n<div style=\"position: relative; width: 100%; max-width: 800px; height: 300px; background-color: #eee; border-bottom: 2px solid #0059b3;\"><span class=\"wbspy-placeholder-tip\" style=\"position: absolute; top: 50%; left: 0; width: 100%; text-align: center; line-height: 20px; font-size: 16px; margin-top: -10px;\">imgSpider \u91c7\u96c6\u4e2d&#8230;<\/span><\/div>\n<p><code><\/code><\/p>\n<blockquote class=\"js_blockquote_wrap\" data-type=\"2\" data-url=\"\" data-author-name=\"\" data-content-utf8-length=\"100\" data-source-title=\"\">\n<section class=\"js_blockquote_digest\">\u6211\u7684ip\u5730\u5740\u662f192.168.31.224,\u00a0\u7528\u6237\u540d\u662fsensirx,\u00a0\u6240\u4ee5\u6211\u5728\u5730\u5740\u680f\u8f93\u5165\u4e86\\192.168.31.224sensirx,\u00a0\u4fbf\u5f39\u51fa\u4e86\u8fd9\u4e2a\u5bf9\u8bdd\u6846,\u00a0\u8fd9\u91cc\u9700\u8981\u6ce8\u610f\u7684\u662f\u659c\u6760\u65b9\u5411\u4e0d\u80fd\u5f04\u53cd.&nbsp;<\/p>\n<\/section>\n<\/blockquote>\n<p><code><\/code>\u8f93\u5165smbpasswd\u90a3\u65f6\u5019\u7684\u7528\u6237\u540d\u548c\u5bc6\u7801, \u4f60\u4fbf\u770b\u5230\u4e86\u4f60\u5171\u4eab\u7684\u76ee\u5f55, \u81f3\u6b64, \u6211\u4eec\u7684\u9a8c\u8bc1\u4fbf\u6210\u529f\u4e86<\/p>\n<p><code><\/code><\/p>\n<div style=\"position: relative; width: 100%; max-width: 800px; height: 300px; background-color: #eee; border-bottom: 2px solid #0059b3;\"><span class=\"wbspy-placeholder-tip\" style=\"position: absolute; top: 50%; left: 0; width: 100%; text-align: center; line-height: 20px; font-size: 16px; margin-top: -10px;\">imgSpider \u91c7\u96c6\u4e2d&#8230;<\/span><\/div>\n<p><code><\/code>\u4e0a\u56fe\u4fbf\u662f\u4f60\u7528\u6237\u5bb6\u76ee\u5f55\u91cc\u9762\u7684\u4e1c\u897f, \u6240\u521b\u5efa\u7684share\u91cc\u9762\u4fbf\u662f\u4f60\u90a3\u5757\u786c\u76d8\u7684\u5206\u533a!<br \/>\n\u5f53\u7136\u4e3a\u4e86\u7a33\u59a5\u8d77\u89c1, \u6211\u4eec\u9700\u8981\u6bcf\u6b21\u670d\u52a1\u5668\u5173\u673a\u91cd\u542f\u540e, samba\u670d\u52a1\u90fd\u80fd\u81ea\u52a8\u8fd0\u884c, \u540c\u65f6\u6211\u4eec\u7684\u5206\u533a\u90fd\u80fd\u6b63\u5e38\u6302\u8f7d\u5230\u6307\u5b9a\u7684\u90a3\u4e2ashare\u76ee\u5f55\u4e2d, \u6211\u4eec\u53ea\u9700\u8981\u5982\u4e0b\u64cd\u4f5c<\/p>\n<p><code><\/code><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"apache\"><code><span class=\"code-snippet_outer\"># \u8ba9samba\u670d\u52a1\u6bcf\u6b21\u5f00\u673a\u81ea\u52a8\u542f\u52a8<\/span><\/code><code><span class=\"code-snippet_outer\">systemctl enable smb<\/span><\/code><code><span class=\"code-snippet_outer\"># \u6240\u4ee5\u505c\u7528\u5c31\u662fdisable, \u4ee5\u6b64\u7c7b\u63a8<\/span><\/code><code><span class=\"code-snippet_outer\"># \u7136\u540e\u5c31\u662f\u8ba9\u521a\u624d\u90a3\u4e2asda1\u5206\u533a\u80fd\u6b63\u5e38\u6302\u8f7d\u5230\/home\/nasuser\/share\u4e0a, \u6211\u8fd9\u91cc\u662f\/home\/sensirx\/share<\/span><\/code><code><span class=\"code-snippet_outer\">vi \/etc\/fstab<\/span><\/code><code><span class=\"code-snippet_outer\">\/dev\/sda1\u00a0\u00a0\u00a0\/home\/nasuser\/share    ext4   default 0,0<\/span><\/code><code><span class=\"code-snippet_outer\">#\u00a0\u4e0a\u9762\u8fd9\u4e2a\u5c31\u662f\u5206\u533a   \u6302\u8f7d\u70b9      \u78c1\u76d8\u7c7b\u578b   0,0<\/span><\/code><code><span class=\"code-snippet_outer\"># \u5177\u4f53\u53ef\u4ee5\u53bb\u770b\u6211\u4e4b\u524d\u5199\u7684\u6587\u7ae0<\/span><\/code><\/pre>\n<\/section>\n<p><code><\/code>\u5173\u4e8e\u5206\u533a\u7684\u6587\u7ae0\u53c2\u8003:<br \/>\n<a rel=\"nofollow\" href=\"http:\/\/mp.weixin.qq.com\/s?__biz=MzU0MzkzMDQ2Nw==&amp;mid=2247483925&amp;idx=1&amp;sn=aeb4d79ed07dabfc92d691675d261bc0&amp;chksm=fb02a319cc752a0f8c80cfff29bfc618ebe780bd49ac48bb5819b1ddbf37844e84ff85d9727b&amp;scene=21#wechat_redirect\" target=\"_blank\" rel=\"noopener\" data-itemshowtype=\"0\" data-linktype=\"2\">Linux\u7cfb\u7edf\u4e2d\u7684\u786c\u76d8\u548c\u5206\u533a<\/a><\/p>\n<p><code><\/code><strong>\u2013 iPhone\u6216\u8005iPad<\/strong><br \/>\n\u5047\u5982\u4f60\u7684\u624b\u673a\u6216\u8005ipad\u5728\u540c\u4e00\u4e2a\u5c40\u57df\u7f51, \u5bf9\u4e8e\u82f9\u679c\u7684\u7cfb\u7edf\u6765\u8bf4, \u4f60\u53ef\u4ee5\u4f7f\u7528\u81ea\u5e26\u7684\u201d\u6587\u4ef6\u201d\u5e94\u7528\u8fdc\u7a0b\u8fde\u63a5\u5230\u4f60\u7684\u5171\u4eab\u670d\u52a1\u5668\u4e0a\u8fdb\u884c\u6587\u4ef6\u64cd\u4f5c, \u5982\u4e0b\u56fe\u6240\u793a:<\/p>\n<p><code><\/code><\/p>\n<div style=\"position: relative; width: 100%; max-width: 800px; height: 300px; background-color: #eee; border-bottom: 2px solid #0059b3;\"><span class=\"wbspy-placeholder-tip\" style=\"position: absolute; top: 50%; left: 0; width: 100%; text-align: center; line-height: 20px; font-size: 16px; margin-top: -10px;\">imgSpider \u91c7\u96c6\u4e2d&#8230;<\/span><\/div>\n<p><code><\/code>\u64cd\u4f5c\u6b65\u9aa4<\/p>\n<p><code><\/code><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"markdown\"><code><span class=\"code-snippet_outer\">1. \u6253\u5f00\"\u6587\u4ef6\"\u5e94\u7528<\/span><\/code><code><span class=\"code-snippet_outer\">2.\u00a0\u70b9\u51fb\u5de6\u8fb9\u680f\u4e0a\u9762\u7684\"...\"\u5c0f\u5706\u7403<\/span><\/code><code><span class=\"code-snippet_outer\">3. \u70b9\u51fb\u8fde\u63a5\u670d\u52a1\u5668<\/span><\/code><code><span class=\"code-snippet_outer\">4.\u00a0\u5728\u91cc\u9762\u8f93\u5165smb:\/\/\u4f60\u7684ip\u5730\u5740<\/span><\/code><code><span class=\"code-snippet_outer\">5.\u00a0\u7136\u540e\u4e0b\u4e00\u4e2a\u754c\u9762\u9009\u62e9\u6ce8\u518c\u7528\u6237,\u00a0\u540c\u65f6\u8f93\u5165\u7528\u6237\u540d\u548c\u5bc6\u7801, \u70b9\u51fb\u4e0b\u4e00\u6b65<\/span><\/code><code><span class=\"code-snippet_outer\">6.\u00a0\u968f\u540e\u4fbf\u770b\u5230\u4e86\u4f60\u7684\u5bb6\u76ee\u5f55,\u00a0\u70b9\u8fdb\u53bb\u5c31\u662f\u6211\u4e0a\u56fe\u7684\u6837\u5b50,\u00a0\u5c31\u53ef\u4ee5\u5404\u79cd\u64cd\u4f5c\u4e86.<\/span><\/code><\/pre>\n<\/section>\n<p><code><\/code>MacOSX\u7528\u6237\u5176\u5b9e\u540c\u7406, \u4e0d\u660e\u767d\u7684\u53ef\u4ee5\u7559\u8a00.<\/p>\n<p><code><\/code><strong>\u2013 \u5b89\u5353\u7528\u6237<\/strong><br \/>\n\u800c\u5bf9\u4e8e\u5b89\u5353\u7528\u6237, \u56e0\u4e3a\u5b89\u5353\u5df2\u7ecf\u5c06\u5171\u4eab\u529f\u80fd(cifs)\u4ece\u4f20\u7edf\u7684\u53d1\u884c\u7248\u672c\u5185\u6838\u4e2d\u5254\u9664, \u6240\u4ee5\u7edd\u5927\u591a\u6570\u5b89\u5353\u624b\u673a\u65e0\u6cd5\u901a\u8fc7\u81ea\u8eab\u7cfb\u7edf\u8fdb\u884c\u5171\u4eab\u7684\u8bbf\u95ee\u548c\u6302\u8f7d, \u4f46\u662f\u5927\u591a\u6570\u8bf8\u5982\u201dES\u6587\u4ef6\u6d4f\u89c8\u5668\u201d\u7b49\u6587\u4ef6\u64cd\u4f5c\u7ba1\u7406\u8f6f\u4ef6\u90fd\u542b\u6709\u5185\u7f6e\u7684\u5171\u4eab\u6587\u4ef6\u8bbf\u95ee\u529f\u80fd, \u6211\u4eec\u53ef\u4ee5\u501f\u52a9\u8fd9\u4e9b\u8f6f\u4ef6\u8fdb\u884c\u5171\u4eab\u6587\u4ef6\u7684\u6d4f\u89c8\u548c\u64cd\u4f5c, \u5982\u4e0b\u56fe\u6240\u793a:<\/p>\n<p><code><\/code><\/p>\n<div style=\"position: relative; width: 100%; max-width: 800px; height: 300px; background-color: #eee; border-bottom: 2px solid #0059b3;\"><span class=\"wbspy-placeholder-tip\" style=\"position: absolute; top: 50%; left: 0; width: 100%; text-align: center; line-height: 20px; font-size: 16px; margin-top: -10px;\">imgSpider \u91c7\u96c6\u4e2d&#8230;<\/span><\/div>\n<p><code><\/code>\u81f3\u6b64, \u6211\u4eec\u5b8c\u5b8c\u5168\u5168\u5b8c\u6210\u4e86\u4e2a\u6587\u4ef6\u5171\u4eab\u670d\u52a1\u7684\u642d\u5efa, \u8fd9\u4e2a\u6811\u8393\u6d3e\u4e5f\u53d8\u6210\u4e86\u4e00\u4e2a\u5fae\u578b\u7684NAS\u670d\u52a1\u5668, \u6211\u4eec\u7ec8\u4e8e\u53ef\u4ee5\u628a\u5b66\u4e60\u8d44\u6599\u653e\u5230\u6211\u4eec\u7684\u8fd9\u53f0mini-NAS\u670d\u52a1\u5668\u4e0a, \u540c\u65f6\u53ef\u4ee5\u8eba\u5728\u5e8a\u4e0a\u4f7f\u7528\u624b\u673a\u67e5\u770bNAS\u4e0a\u9762\u6240\u6709\u7684\u8d44\u6599\u4e86\u5462, \u8fd9\u6837\u6211\u4eec\u662f\u4e0d\u662f\u53ef\u4ee5\u628a\u624b\u673a\u5185\u5b58\u7684\u9884\u7b97\u653e\u5230\u8fd9\u53f0mini\u670d\u52a1\u5668\u4e0a\u5462?<\/p>\n<div style=\"position: relative; width: 100%; max-width: 800px; height: 300px; background-color: #eee; border-bottom: 2px solid #0059b3;\"><span class=\"wbspy-placeholder-tip\" style=\"position: absolute; top: 50%; left: 0; width: 100%; text-align: center; line-height: 20px; font-size: 16px; margin-top: -10px;\">imgSpider \u91c7\u96c6\u4e2d&#8230;<\/span><\/div>\n<p><em>\u6211\u66fe\u7ecf\u601d\u8003\u8fc7\u8fd9\u4e2a\u95ee\u9898, \u6211\u4e70\u4e00\u5757256G\u7684\u786c\u76d8\u53ef\u80fd\u9700\u8981300\u5757, \u6211\u4e70\u4e00\u4e2a500G\u7684\u786c\u76d8\u53ef\u80fd400\u5757, \u6211\u4e70\u4e00\u53f0256G\u7684\u624b\u673a\u53ef\u80fd3000\u5757, \u4f46\u662f\u6211\u4e70\u4e00\u53f0512G\u7684\u624b\u673a\u89814500\u5757\u2026\u61c2\u6211\u610f\u601d\u5427?<\/em>&nbsp;<\/p>\n<p><code><\/code><br \/>\n# \u540e\u8bb0 #<br \/>\n\u4e8b\u5b9e\u4e0a\u770b\u8fc7\u5b66\u4e60\u8fc7\u6b64\u6587\u7ae0\u7684\u540c\u5b66\u4ecd\u65e7\u89c9\u5f97\u4f5c\u8005\u5176\u5b9e\u5c31\u662f\u4e2a\u5751, \u539f\u56e0\u5728\u4e8e\u8fd9\u53f0\u5171\u4eab\u670d\u52a1\u5668\u867d\u7136\u80fd\u7528,\u00a0\u4f46\u662f\u8fdb\u8fdb\u5c40\u9650\u4e8e\u5728\u8fd9\u4e2a\u5c40\u57df\u7f51\u5185\u662f\u53ef\u4ee5\u7528,\u00a0\u5e76\u4e0d\u80fd\u5b9e\u73b0\u4eba\u5728\u5929\u6daf\u6d77\u89d2\u90fd\u53ef\u4ee5\u8fdc\u7a0b\u8bbf\u95ee\u8fd9\u53f0\u6587\u4ef6\u670d\u52a1\u5668. \u5176\u5b9e\u786e\u5b9e\u662f\u8fd9\u6837,\u00a0\u76f8\u5bf9\u4e8e\u4e00\u53f0NAS\u6216\u8005\u5982\u4eca\u5e02\u573a\u4e0a\u7684\u6d88\u8d39\u578bNAS\u6765\u8bf4, \u6211\u4eec\u7684\u8fd9\u53f0\u6587\u4ef6\u670d\u52a1\u5668\u5dee\u5f97\u529f\u80fd\u8fd8\u5f88\u591a,\u00a0\u6240\u4ee5\u2026<\/p>\n<p><code><\/code><strong>\u6211\u4f1a\u5728\u63a5\u4e0b\u6765\u7684\u6587\u7ae0\u4e2d, \u9646\u7eed\u5b9e\u73b0\u5916\u7f51\u8bbf\u95ee\u7b49\u529f\u80fd.<\/strong><\/p>\n<p><code><\/code>\u516c\u4f17\u53f7: CookieX<br \/>\n\u5982\u679c\u60a8\u559c\u6b22\u6b64\u6587\u7ae0, \u6b22\u8fce\u70b9\u8d5e\u5e76\u5206\u4eab\u7ed9\u60a8\u7684\u670b\u53cb.<br \/>\n\u6587\u7ae0\u4e2d\u76f8\u5173\u914d\u56fe\u4ec5\u505a\u5b66\u4e60\u4ea4\u6d41\u4f7f\u7528, \u65e0\u610f\u4fb5\u72af\u4efb\u4f55\u4eba\u7684\u6743\u5229, \u5982\u82e5\u5192\u72af\u5230, \u8bf7\u79c1\u4fe1\u544a\u77e5, \u6211\u4f1a\u5220\u9664\u76f8\u5173\u5185\u5bb9!<br \/>\n\u4e5f\u5e0c\u671b\u60a8\u80fd\u591f\u5173\u6ce8\u6b64\u516c\u4f17\u53f7.<\/p>\n<\/section>\n<\/blockquote>\n<\/section>\n<\/blockquote>\n<\/section>\n<\/blockquote>\n<\/section>\n<\/blockquote>\n<\/section>\n<\/blockquote>\n<\/section>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>imgSpider \u91c7\u96c6\u4e2d&#8230; \u8fd9\u662f\u7b2c\u4e8c\u4e2a\u7ae0\u8282, \u672c\u7ae0\u8282\u4e3b\u8981\u8bb2\u8ff0\u6811\u8393\u6d3e\u6216\u8005\u4e2a\u4eba\u7535\u8111\u5b9e\u73b0\u57fa\u7840\u7684\u5bb6\u5ead\u5b58\u50a8\u670d\u52a1\u5668\u529f\u80fd, \u672c\u6587\u4f1a\u5148\u8bb2\u8ff0\u9488\u5bf9\u6811\u8393\u6d3e\u57fa\u7840\u7cfb\u7edf\u7684\u5b89\u88c5, \u4e4b\u540e\u4f1a\u53bb\u8bb2\u8ff0\u5728\u7cfb\u7edf\u4e0a\u505a\u5bb6\u5ead\u5b58\u50a8\u670d\u52a1\u5668\u7684\u642d\u5efa\u5de5\u4f5c, \u53ef\u4ee5\u628a\u8fd9\u4e2a\u6587\u7ae0\u5f53\u505a\u6070\u996d\u8bfb\u7269&#8230;<\/p>\n","protected":false},"author":1,"featured_media":6614,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[136],"tags":[],"topic":[],"class_list":["post-6717","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-136"],"_links":{"self":[{"href":"http:\/\/puo.cn\/index.php?rest_route=\/wp\/v2\/posts\/6717","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/puo.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/puo.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/puo.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/puo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6717"}],"version-history":[{"count":0,"href":"http:\/\/puo.cn\/index.php?rest_route=\/wp\/v2\/posts\/6717\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/puo.cn\/index.php?rest_route=\/"}],"wp:attachment":[{"href":"http:\/\/puo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6717"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/puo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6717"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/puo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6717"},{"taxonomy":"topic","embeddable":true,"href":"http:\/\/puo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftopic&post=6717"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}