{"id":660,"date":"2011-10-18T23:31:59","date_gmt":"2011-10-18T14:31:59","guid":{"rendered":"http:\/\/jose.mydns.jp\/wp\/?p=660"},"modified":"2011-10-18T23:31:59","modified_gmt":"2011-10-18T14:31:59","slug":"%ef%bd%84%ef%bd%8c%ef%bd%8e%ef%bd%81%e3%82%b5%e3%83%bc%e3%83%90%e5%86%8d%e8%a8%ad%e5%ae%9a%ef%bc%88mediatomb%ef%bc%89","status":"publish","type":"post","link":"http:\/\/jose.mydns.jp\/?p=660","title":{"rendered":"\uff24\uff2c\uff2e\uff21\u30b5\u30fc\u30d0\u518d\u8a2d\u5b9a\uff08mediatomb\uff09"},"content":{"rendered":"<p>\u4ee5\u524d\u306b\u7acb\u3061\u4e0a\u3052\u305fDLNA\u30b5\u30fc\u30d0(mediatomb)\u3067\u3059\u304c\u3001\u30a4\u30de\u30a4\u30c1\u8abf\u5b50\u304c\u60aa\u3044\u3067\u3059\u3002<br \/>\nmediatomb\u306e\u8a2d\u5b9a\u753b\u9762\u3067DATABASE\u304c\u3046\u307e\u304f\u66f4\u65b0\u3055\u308c\u306a\u3044\u306e\u3067<br \/>\n\u518d\u5ea6DATABASE\u306e\u8a2d\u5b9a\u3092\u3084\u308a\u76f4\u3059\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<br \/>\n\u53c2\u8003\u307e\u3067\u306b\u74b0\u5883\u306f\u3001<br \/>\nubuntu9.10<br \/>\n\uff4d\uff59\uff53\uff51\uff4c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6e08\u307f<br \/>\napache2\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6e08\u307f<br \/>\n\u3067\u3059\u3002<br \/>\n\u307e\u305a\u306f\u3001<br \/>\n\u300c\/etc\/mediatomb\/config.xml\u300d\u306e\u7de8\u96c6\u4f5c\u696d\u304b\u3089\u958b\u59cb\u3067\u3059\u3002<br \/>\n$ sudo vi \/etc\/mediatomb\/config.xml<br \/>\n\u3067\u7de8\u96c6\u3092\u958b\u59cb<br \/>\n\uff1cprotocolInfo extend=&#8221;no&#8221;\/\uff1e\u3092\uff1cprotocolInfo extend=&#8221;yes&#8221;\/\uff1e\u3000\u306b\u5909\u66f4\u3057\u307e\u3059\u3002<br \/>\n\u3064\u3065\u3044\u3066DATABASE\u306e\u8a2d\u5b9a\u3067\u3059\u304c<br \/>\n\u300cMediaTomb\u300d\u306f\u6a19\u6e96\u3067\u300cSQLite3\u300d\u3092\u4f7f\u3046\u3088\u3046\u306a\u306e\u3067\u3001<br \/>\n\u300cmysql\u300d\u306b\u5909\u66f4\u3059\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<br \/>\n\u3044\u307e\u307e\u3067\u4f7f\u3048\u3066\u3044\u305f\u3068\u3044\u3046\u3053\u3068\u306f\u3001mediatomb\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6642\u306b<br \/>\n\u300cSQLite3\u300d\u3082\u5165\u3063\u3066\u3057\u307e\u3046\u306e\u3067\u306f\u306a\u3044\u304b\u3068\u601d\u3044\u307e\u3059\uff1f\uff1f\uff1f<br \/>\nconfig.xml\u306e\u4fee\u6b63\u3067\u3059\u304c<br \/>\n\uff1cstorage\uff1e<br \/>\n\uff1csqlite3 enabled=&#8221;yes&#8221;\uff1e<br \/>\n\uff1cdatabase&#45;file\uff1emediatomb.db\uff1c\/database&#45;file\uff1e<br \/>\n\uff1c\/sqlite3\uff1e<br \/>\n\uff1cmysql enabled=&#8221;no&#8221;\uff1e<br \/>\n\uff1chost\uff1elocalhost\uff1c\/host\uff1e<br \/>\n\uff1cusername\uff1emediatomb\uff1c\/username\uff1e<br \/>\n\uff1cdatabase\uff1emediatomb\uff1c\/database\uff1e<br \/>\n\uff1c\/mysql\uff1e<br \/>\n\uff1c\/storage\uff1e<br \/>\n\u3059\u3067\u306b\u300cMySQL\u300d\u306f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3001<br \/>\n\uff1csqlite3 enabled=&#8221;yes&#8221;\uff1e\u3092\u300cno\u300d\u306b\u3057\u3066\u3001\uff1cmysql enabled=&#8221;no&#8221;\uff1e\u3092\u300cyes\u300d\u306b\u5909\u66f4\u3057\u307e\u3059\u3002<br \/>\n\u3064\u3065\u3044\u3066\u306f\u3001MySQL\u306e\u8a2d\u5b9a\u3067\u3059\u3002<br \/>\n$ mysql &#45;u root &#45;p<br \/>\n\u3067\u8a2d\u5b9a\u958b\u59cb<br \/>\n\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5165\u529b\u3057\u3066<br \/>\n$ show databases;<br \/>\n\u3067database\u306e\u78ba\u8a8d\u3092\u3057\u307e\u3059\u3002\u6211\u304c\u5bb6\u30b5\u30fc\u30d0\u3067\u306fmaediatomb\u306f\u8a2d\u5b9a\u3055\u308c\u3066\u306a\u304b\u3063\u305f\u306e\u3067<br \/>\nmediatomb\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u65b0\u898f\u306b\u4f5c\u6210\u3057\u307e\u3059\u3002<br \/>\n$ create database mediatomb;<br \/>\n$ grant all on mediatomb.* to &#8216;mediatomb&#8217;@&#8217;localhost&#8217;;<br \/>\n$ flush privileges;<br \/>\n$ quit<br \/>\n\u7d9a\u3044\u3066mediatomb DB\u306b\u521d\u671f\u306e\u30c6\u30fc\u30d6\u30eb\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<br \/>\n\u3053\u308c\u306fmediatomb\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u306b\u542b\u307e\u308c\u3066\u3044\u308bsql\u30d5\u30a1\u30a4\u30eb\u3092\u4f7f\u3044\u307e\u3059\u3002<br \/>\n$ mysql &#45;u root &#45;p < \/usr\/share\/mediatomb\/mysql.sql\n\u3053\u308c\u3092\u5b9f\u884c\u3059\u308b\u306e\u3067\u3059\u304c\u3001\u30a8\u30e9\u30fc\u304c\u51fa\u3066\u30c6\u30fc\u30d6\u30eb\u304c\u51fa\u6765\u307e\u305b\u3093\u3002\n\u30cd\u30c3\u30c8\u8abf\u67fb\u3057\u3066\u307f\u307e\u3059\u3068\nmysql.sql\u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6\u3057\u3066\u4e00\u756a\u5148\u982d\u306b \u300cuse mediatomb; \u300d\n\u3092\u8ffd\u52a0\u3057\u3066\u304b\u3089\u518d\u5ea6\u5b9f\u884c\u3059\u308b\u3068\u3059\u3093\u306a\u308a\u3068\u30c6\u30fc\u30d6\u30eb\u304c\u4f5c\u6210\u3055\u308c\u308b\u3088\u3046\u3067\u3059\u3002\n\u6b21\u306f\u3001http:\/\/\u30b5\u30fc\u30d0\u540d:49152\/\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u8a2d\u5b9a\uff06\u767b\u9332\u4f5c\u696d\u3092\n\u884c\u3044\u307e\u3059\u3002\n\n<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4ee5\u524d\u306b\u7acb\u3061\u4e0a\u3052\u305fDLNA\u30b5\u30fc\u30d0(mediatomb)\u3067\u3059\u304c\u3001\u30a4\u30de\u30a4\u30c1\u8abf\u5b50\u304c\u60aa\u3044\u3067\u3059\u3002 mediatomb\u306e\u8a2d\u5b9a\u753b\u9762\u3067DATABASE\u304c\u3046\u307e\u304f\u66f4\u65b0\u3055\u308c\u306a\u3044\u306e\u3067 \u518d\u5ea6DATABASE\u306e\u8a2d\u5b9a\u3092\u3084\u308a\u76f4\u3059\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002 \u53c2\u8003\u307e\u3067 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/jose.mydns.jp\/?p=660\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;\uff24\uff2c\uff2e\uff21\u30b5\u30fc\u30d0\u518d\u8a2d\u5b9a\uff08mediatomb\uff09&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-660","post","type-post","status-publish","format-standard","hentry","category-6"],"_links":{"self":[{"href":"http:\/\/jose.mydns.jp\/index.php?rest_route=\/wp\/v2\/posts\/660","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/jose.mydns.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/jose.mydns.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/jose.mydns.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/jose.mydns.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=660"}],"version-history":[{"count":0,"href":"http:\/\/jose.mydns.jp\/index.php?rest_route=\/wp\/v2\/posts\/660\/revisions"}],"wp:attachment":[{"href":"http:\/\/jose.mydns.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=660"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/jose.mydns.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=660"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/jose.mydns.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=660"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}