{"id":2115,"date":"2014-10-28T13:49:04","date_gmt":"2014-10-28T04:49:04","guid":{"rendered":"https:\/\/je1sgh.mydns.jp\/?page_id=2115"},"modified":"2014-10-28T13:49:04","modified_gmt":"2014-10-28T04:49:04","slug":"yosemite","status":"publish","type":"page","link":"https:\/\/je1sgh.mydns.jp\/?page_id=2115","title":{"rendered":"Yosemite"},"content":{"rendered":"<h1>rsync\u306e\u30c7\u30fc\u30e2\u30f3\u5316<\/h1>\n<p>Mountain Lion\u307e\u3067\u306f\uff0cStartupItems\u3067\u52d5\u304b\u3057\u3066\u3044\u307e\u3057\u305f\u304c\uff0cYosemite\u3067\u306fStartupItems\u306f\u7121\u52b9\u5316\u3055\u308c\u3066\u3057\u307e\u3044\u307e\u3057\u305f\uff0e<\/p>\n<p>\u3067\uff0c\u3042\u3061\u3053\u3061\u8abf\u3079\u305f\u3068\u3053\u308d\uff0c\u6b63\u3057\u3044\u65b9\u6cd5\u3068\u3057\u3066\u306f\uff0c\/Library\/LaunchDaeoms\u306bplist\u3068\u3057\u3066\u7f6e\u304f\u306e\u304c\u826f\u3055\u305d\u3046\u3067\u3059\uff0e<\/p>\n<p>\u307e\u305a\uff0c\u3053\u306e\u30c6\u30ad\u30b9\u30c8\u3092Xcode\u306a\u3069\u3067plist\u5316\u3057\u3066\u9069\u5f53\u306a\u3068\u3053\u308d\u306b\u4fdd\u5b58\u3057\u307e\u3059\uff0e<\/p>\n<pre>{\n\tLabel = \"local.rsyncd\";\n\tProgramArguments = (\n\t\t\"\/usr\/bin\/rsync\",\n\t\t\"--daemon\",\n\t);\n\tinetdCompatibility = {\n\t\tWait = NO;\n\t};\n\tSockets = {\n\t\tListeners = {\n\t\t\tSockServiceName = rsync;\n\t\t\tSockType = stream;\n\t\t};\n\t};\n}\n<\/pre>\n<p>\u30d5\u30a1\u30a4\u30eb\u540d\u306f\uff0cLabel\u3068\u4e00\u81f4\u3055\u305b\u308b\u305f\u3081\u306b\uff0c\u3053\u306e\u4f8b\u3067\u306f\uff0clocal.rsyncd.plist\u3068\u3057\u307e\u3059\uff0e<\/p>\n<p>\u305d\u3057\u3066\uff0clocal.rsyncd.plist\u304c\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u30fc\u306b\u3042\u308b\u3068\u3057\u3066\uff0c<\/p>\n<pre>cd \/Library\/LaunchDaemons\nsudo cp ~\/local.rsyncd.plist .\nsudo chmod a+x local.rsyncd.plist\nsudo launchctl load local.rsyncd.plist<\/pre>\n<p>\u3067\u3088\u3055\u305d\u3046\u3067\u3059<sup class=\"modern-footnotes-footnote \" data-mfn=\"1\" data-mfn-post-scope=\"00000000000002f60000000000000000_2115\"><a href=\"javascript:void(0)\"  role=\"button\" aria-pressed=\"false\" aria-describedby=\"mfn-content-00000000000002f60000000000000000_2115-1\">1<\/a><\/sup><span id=\"mfn-content-00000000000002f60000000000000000_2115-1\" role=\"tooltip\" class=\"modern-footnotes-footnote__note\" tabindex=\"0\" data-mfn=\"1\"><strong>\/System\/Library\/LaunchDaemons<\/strong>\u306f\uff0c<strong>El Capitan<\/strong>\u3067\u306f\u66f8\u304d\u8fbc\u307f\u30fb\u4fee\u6b63\u3067\u304d\u306a\u3044\u306e\u3067\uff0c<strong>\/Library\/LaunchDaemons<\/strong>\u306b\u5909\u66f4\u3057\u307e\u3057\u305f\uff0e<\/span>\uff0e<\/p>\n<p>\u306a\u304a\uff0cMac OS X\u306b\u4ed8\u5c5e\u306ersync\u306f\u9673\u8150\u5316\u3057\u3066\u3044\u308b\u4e0a\u306b\u30d0\u30b0\u304c\u3042\u308a\u307e\u3059\u306e\u3067\uff0c\u81ea\u5206\u3067\u6700\u65b0\u306e\u516c\u5f0f\u30bd\u30fc\u30b9\u3092<a href=\"https:\/\/je1sgh.mydns.jp\/?page_id=1185#Mac_OS_X\">build\u3057\u3066<\/a>\u5dee\u3057\u66ff\u3048\u308b\u3053\u3068\u3092\u5f37\u304f\u304a\u3059\u3059\u3081\u3057\u307e\u3059\uff0e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306f\uff0c\/etc\u5185\u306ersyncd.secrets\u3068rsyncd.conf\u3067\u3059\uff0e<\/p>\n<h1>Static\u306a\u30eb\u30fc\u30c8\u306e\u8ffd\u52a0<\/h1>\n<p>\u306a\u3093\u304b\uff0c\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u5074\u3067\u3084\u308b\u3079\u304d\u3068\u306f\u601d\u308f\u306a\u3044\u306e\u3067\u3059\u304c\uff0cLinux\u306e\u30eb\u30fc\u30bf\u30fc\u304cARP\u3092\u767a\u3057\u3066\u3082\u5168\u7136\u52b9\u304b\u306a\u3044\u3088\u3046\u306a\u306e\u3067\uff0c\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3067\u3042\u308bMac\u306e\u307b\u3046\u3067Statc\u306a\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u3092\u8a66\u3057\u3066\u307f\u307e\u3059\uff0e<\/p>\n<pre>{\n\tLabel = \"local.routeadd\";\n\tRunAtLoad = YES;\n\tKeepAlive = NO;\n\tProgramArguments = (\n\t\t\"\/sbin\/route\",\n\t\tadd,\n\t\t\"-net\",\n\t\t\"192.168.99.0\",\n\t\t\"-netmask\",\n\t\t\"255.255.255.0\",\n\t\t\"-gateway\",\n\t\t\"192.168.1.99\",\n\t);\n\tStartInterval = 1200;\n}\n<\/pre>\n<p>\u3053\u3093\u306a\u3093\u3067\u3069\u3046\u3067\u3057\u3087\u3046\uff0e\u4e0b\u8a18\u30ea\u30f3\u30af\u306e\u30da\u30fc\u30b8\u3092\u53c2\u8003\u306b\u3057\u3066\u3044\u3066\uff0c20\u5206\u3054\u3068\u306b<strong>route add&#8230;<\/strong>\u304c\u5b9f\u884c\u3055\u308c\u307e\u3059\uff0e<\/p>\n<h2>\u53c2\u8003\u306b\u3057\u305f\u30da\u30fc\u30b8<\/h2>\n<p>&#8220;\u53c2\u8003&#8221;\u3067\u306a\u304f\uff0c\u305d\u306e\u307e\u3093\u307e\u304b\u3082^^;<\/p>\n<ul>\n<li><a href=\"http:\/\/www.andre-aulich.de\/en\/perm\/setting-static-routes-in-mac-os-x-104105-client-and-server\">Setting static routes in Mac OS X 10.4\/10.5 client and server<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>rsync\u306e\u30c7\u30fc\u30e2\u30f3\u5316 Mountain Lion\u307e\u3067\u306f\uff0cStartupItems\u3067\u52d5\u304b\u3057\u3066\u3044\u307e\u3057\u305f\u304c\uff0cYosemite\u3067\u306fStartupItems\u306f\u7121\u52b9\u5316\u3055\u308c\u3066\u3057\u307e\u3044\u307e\u3057\u305f\uff0e \u3067\uff0c\u3042\u3061\u3053\u3061\u8abf\u3079\u305f\u3068\u3053\u308d\uff0c\u6b63\u3057\u3044\u65b9\u6cd5\u3068\u3057\u3066\u306f\uff0c\/Library\/LaunchDaeoms\u306bplist\u3068\u3057\u3066\u7f6e\u304f\u306e\u304c\u826f\u3055\u305d\u3046\u3067\u3059\uff0e \u307e\u305a\uff0c\u3053\u306e\u30c6\u30ad\u30b9\u30c8\u3092Xcode\u306a\u3069\u3067plist\u5316\u3057\u3066\u9069\u5f53\u306a\u3068\u3053\u308d\u306b\u4fdd\u5b58\u3057\u307e\u3059\uff0e { Label = &#8220;local.rsyncd&#8221;; ProgramArguments = ( &#8220;\/usr\/bin\/rsync&#8221;, &#8220;&#8211;daemon&#8221;, ); inetdCompatibility = { Wait = NO; }; Sockets = { Listeners = { SockServiceName = rsync; SockType = stream; }; }; } \u30d5\u30a1\u30a4\u30eb\u540d\u306f\uff0cLabel\u3068\u4e00\u81f4\u3055\u305b\u308b\u305f\u3081\u306b\uff0c\u3053\u306e\u4f8b\u3067\u306f\uff0clocal.rsyncd.plist\u3068\u3057\u307e\u3059\uff0e \u305d\u3057\u3066\uff0clocal.rsyncd.plist\u304c\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u30fc\u306b\u3042\u308b\u3068\u3057\u3066\uff0c cd \/Library\/LaunchDaemons sudo cp ~\/local.rsyncd.plist . sudo chmod a+x local.rsyncd.plist sudo launchctl load local.rsyncd.plist \u3067\u3088\u3055\u305d\u3046\u3067\u3059\uff0e \u306a\u304a\uff0cMac &hellip; <a href=\"https:\/\/je1sgh.mydns.jp\/?page_id=2115\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Yosemite&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":1620,"menu_order":0,"comment_status":"closed","ping_status":"open","template":"","meta":{"footnotes":""},"class_list":["post-2115","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/je1sgh.mydns.jp\/index.php?rest_route=\/wp\/v2\/pages\/2115","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/je1sgh.mydns.jp\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/je1sgh.mydns.jp\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/je1sgh.mydns.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/je1sgh.mydns.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2115"}],"version-history":[{"count":0,"href":"https:\/\/je1sgh.mydns.jp\/index.php?rest_route=\/wp\/v2\/pages\/2115\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/je1sgh.mydns.jp\/index.php?rest_route=\/wp\/v2\/pages\/1620"}],"wp:attachment":[{"href":"https:\/\/je1sgh.mydns.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2115"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}