{"id":2399,"date":"2013-10-03T22:17:36","date_gmt":"2013-10-03T14:17:36","guid":{"rendered":"http:\/\/blog.pighead.cc\/whsyu\/?p=2399"},"modified":"2013-10-03T22:17:36","modified_gmt":"2013-10-03T14:17:36","slug":"netatalk-3","status":"publish","type":"post","link":"https:\/\/blog.pighead.cc\/whsyu\/2013\/10\/03\/netatalk-3\/","title":{"rendered":"Netatalk 3"},"content":{"rendered":"<p class=\"bb-post-separator\"><strong>[\u83ef\u8a9e, cmn-Hant-TW]  <\/strong><\/p><p>\u4e4b\u524d<a title=\"AFP Server\" href=\"http:\/\/blog.pighead.cc\/whsyu\/2011\/05\/04\/afp-server\/\">\u9019\u7bc7<\/a>\u6709\u63d0\u5230 AFP Server \u7684\u76f8\u95dc\u8a2d\u5b9a\uff0c\u5176\u4e2d Netatalk \u5f9e 2.x \u5230 3.x \u6709\u76f8\u7576\u5927\u7684\u6539\u8b8a\uff0c\u9996\u5148\u662f afpd \u8ddf cnid_metad \u90fd\u4e0d\u7528\u4e86\uff0c<code>\/etc\/rc.conf<\/code> \u53ea\u8981\u7559 netatalk \u5c31\u597d<\/p>\n<h5><strong>\/etc\/rc.conf<\/strong><\/h5>\n<pre lang=\"bash\">netatalk_enable=\"YES\"\r\n#afpd_enable=\"YES\"\r\n#cnid_metad_enable=\"YES\"<\/pre>\n<p>\u7136\u5f8c netatalk.conf \u8ddf AppleVolumes.default \u4e5f\u7528\u4e0d\u5230\u4e86\uff0c\u6539\u6210\u5f88\u6709 samba \u98a8\u683c\u7684 afpd.conf<\/p>\n<h5><strong>\/usr\/local\/etc\/netatalk.conf<\/strong><\/h5>\n<pre lang=\"ini\">\r\n[Global]\r\n; Global server settings\r\n hostname = Pighead\r\n mac charset  = 'UTF8-MAC'\r\n unix charset = 'UTF8'\r\n\r\n; [Homes]\r\n; basedir regex = \/xxxx\r\n\r\n[Time Machine]\r\n path = \/pub\/backup\r\n time machine = yes\r\n valid users = pig\r\n<\/pre>\n<p>\u7136\u5f8c <code>afp_signature.conf<\/code> \u8ddf <code>afp_voluuid.conf<\/code> \u6703\u81ea\u52d5\u7522\u751f\uff0c\u6574\u500b\u8a2d\u5b9a\u7c21\u55ae\u975e\u5e38\u591a\uff0cFreeBSD \u7684 ports \u653e\u5728 <code>\/usr\/ports\/netatalk3<\/code>\uff0c\u5728 make config \u7684\u6642\u5019\u6253\u958b ZEROCONF \u7684\u8a71\u66f4\u7701\u4e8b\uff0cavahi \u8ddf howl \u4e0d\u7528\u8a2d\u4e5f\u7121\u59a8 (netatalk3 \u7528 avahi)\u3002\u7576\u7136\u4e86\uff0c\u9700\u8981\u8a73\u7d30\u8a2d\u5b9a\u7684\u8a71\uff0c\u9084\u662f\u4e56\u4e56\u8a2d\u4e00\u4e0b\u76f8\u95dc\u8a2d\u5b9a\u6bd4\u8f03\u597d\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[\u83ef\u8a9e, cmn-Hant-TW] \u4e4b\u524d\u9019\u7bc7\u6709\u63d0\u5230 AFP Server \u7684\u76f8\u95dc\u8a2d\u5b9a\uff0c\u5176\u4e2d Netatalk \u5f9e 2.x \u5230 3.x \u6709\u76f8\u7576\u5927\u7684\u6539\u8b8a\uff0c\u9996\u5148\u662f afpd \u8ddf cnid_metad \u90fd\u4e0d\u7528\u4e86\uff0c\/etc\/rc.conf \u53ea\u8981\u7559 netatalk \u5c31\u597d \/etc\/rc.conf netatalk_enable=&#8221;YES&#8221; #afpd_enable=&#8221;YES&#8221; #cnid_metad_enable=&#8221;YES&#8221; \u7136\u5f8c netatalk.conf \u8ddf AppleVolumes.default \u4e5f\u7528\u4e0d\u5230\u4e86\uff0c\u6539\u6210\u5f88\u6709 samba \u98a8\u683c\u7684 afpd.conf \/usr\/local\/etc\/netatalk.conf [Global] ; Global server settings hostname = Pighead&hellip; <\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[4478,4591,168,4567,98],"class_list":["post-2399","post","type-post","status-publish","format-standard","hentry","category-freebsd","tag-afp","tag-freebsd","tag-mac-os-x","tag-netatalk","tag-time-machine"],"_links":{"self":[{"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/posts\/2399","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/comments?post=2399"}],"version-history":[{"count":4,"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/posts\/2399\/revisions"}],"predecessor-version":[{"id":2404,"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/posts\/2399\/revisions\/2404"}],"wp:attachment":[{"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/media?parent=2399"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/categories?post=2399"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/tags?post=2399"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}