{"id":1612,"date":"2014-04-21T23:27:23","date_gmt":"2014-04-21T15:27:23","guid":{"rendered":"http:\/\/www.gejoin.com\/?p=1612"},"modified":"2014-04-21T23:27:23","modified_gmt":"2014-04-21T15:27:23","slug":"ubuntu12-04-%e4%b8%8bdlnaupnp-server%e5%ae%89%e8%a3%85%e9%85%8d%e7%bd%ae","status":"publish","type":"post","link":"https:\/\/www.mujins.com\/?p=1612","title":{"rendered":"Ubuntu12.04 \u4e0bDLNA\/UPnP Server\u5b89\u88c5\u914d\u7f6e"},"content":{"rendered":"<p>PC\u4e0b\u914d\u7f6eDLNA\u5f88\u65b9\u4fbf\uff0c\u4f7f\u7528\u5bb6\u5ead\u7ec4\u548cWindow Media Player\u5f88\u5bb9\u6613\u5b9e\u73b0\u5a92\u4f53\u5c40\u57df\u7f51\u5185\u5171\u4eab\u3002\u524d\u9762\u6587\u7ae0\u6709\u63d0\u8fc7\u8fd9\u4e9b\u8bdd\u9898\uff0c\u5305\u62ecAndroid\u5ba2\u6237\u7aef\u548cChrome\u4ee5\u53ca\u5c0f\u7c73\u76d2\u5b50\u4e0a\u7684\u4f7f\u7528\u3002<\/p>\n<p><a href=\"https:\/\/www.gigiwangs.com\/wp-content\/uploads\/2014\/04\/ubuntu-logo14.png\" data-lightbox=\"gal[1612]\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-1615\" src=\"https:\/\/www.gigiwangs.com\/wp-content\/uploads\/2014\/04\/ubuntu-logo14.png\" alt=\"ubuntu-logo14\" width=\"540\" height=\"243\" \/><\/a><a href=\"https:\/\/www.gigiwangs.com\/wp-content\/uploads\/2014\/04\/ABC_DLNA.png\"><br \/>\n<\/a><br \/>\n\u8fd9\u91cc\u6765\u8bb0\u5f55\u4e0bUbuntu12.04 \u4e0b\u7684\u5b89\u88c5\u914d\u7f6e minidlna\u3002<br \/>\n1.\u5b89\u88c5\u670d\u52a1\u7aef<\/p>\n<pre># apt-get install minidlna<\/pre>\n<p>2.\u914d\u7f6e\u6587\u4ef6\u5728\/etc\/ \u76ee\u5f55\u4e0b\u7684<strong>minidlna.conf.\u5176\u4e2d\u4e3b\u8981\u914d\u7f6e<img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-1614\" src=\"https:\/\/www.gigiwangs.com\/wp-content\/uploads\/2014\/04\/ABC_DLNA.png\" alt=\"ABC_DLNA\" width=\"232\" height=\"215\" \/><\/strong><\/p>\n<p>\u914d\u7f6e\u5a92\u4f53\u76ee\u5f55\uff0c\u53ef\u4ee5\u5206\u884c\u6dfb\u52a0\u591a\u4e2a\u76ee\u5f55\uff0c\u540c\u65f6\u4e5f\u53ef\u6307\u5b9a\u5a92\u4f53\u7c7b\u578b\u3002<\/p>\n<p># set this to the directory you want scanned.<br \/>\n# * if have multiple directories, you can have multiple media_dir= lines<br \/>\n# * if you want to restrict a media_dir to a specific content type,you<br \/>\n# can prepend the type, followed by a comma, to the directory:<br \/>\n# + &#8220;A&#8221; for audio (eg. media_dir=A,\/home\/jmaggard\/Music)<br \/>\n# + &#8220;V&#8221; for video (eg. media_dir=V,\/home\/jmaggard\/Videos)<br \/>\n# + &#8220;P&#8221; for images (eg. media_dir=P,\/home\/jmaggard\/Pictures)<\/p>\n<p>media_dir=\/media\/MData\/media<br \/>\nmedia_dir=\/media\/Times\/Downloads<br \/>\nmedia_dir=\/home\/XXX\/Videos<\/p>\n<p>friendly_name=My DLNA Server<\/p>\n<p>3.\u81f3\u6b64\u914d\u7f6e\u7ed3\u675f\uff0c\u91cd\u542f\u670d\u52a1\u6216\u8005\u91cd\u8f7d<\/p>\n<pre># service minidlna force-reload\n<\/pre>\n<pre># service minidlna restart<\/pre>\n<p>TIPS\uff1a \u8fd9\u91cc\u6211\u6302\u8f7d\u7684\u5a92\u4f53\u76ee\u5f55\u4f4d\u4e8e\u79fb\u52a8\u786c\u76d8\u4e0a\uff0cubuntu\u9ed8\u8ba4\u65e0\u6cd5\u4fee\u6539\u79fb\u52a8\u5b58\u50a8\u8bbe\u5907\u7684\u6302\u8f7d\u6743\u9650\uff0c\u9ed8\u8ba4\u90fd\u662f 700.\u8fd9\u91cc\u9700\u8981\u624b\u52a8\u91cd\u65b0\u6302\u8f7d\uff0c\u624d\u53ef\u4ee5\u66f4\u6539\u8bfb\u5199\u6743\u9650\uff0c\u4f7f\u670d\u52a1\u751f\u6548\u3002<br \/>\n\u65b0\u5efa\u6302\u8f7d\u70b9 \/media\/MData,\u6302\u8f7dsdb3.<\/p>\n<pre>#mount \/dev\/sdb3 \/media\/MData -o nls=tf-8,umask=000,uid=1000,gid=1000<\/pre>\n<p>\u518d\u63a8\u8350\u4e00\u6b3eAndroid\u4e0b\u7684DLNA\u5ba2\u6237\u7aefAPP\uff1a<span style=\"font-weight: 300; color: #333333;\"><a href=\"https:\/\/play.google.com\/store\/apps\/details?id=com.cajor.dk.dlna&amp;hl=zh_CN\" target=\"_blank\">Slick UPnP<\/a>\uff08<a href=\"https:\/\/play.google.com\/store\/apps\/details?id=com.cajor.dk.dlna&amp;hl=zh_CN\" target=\"_blank\">\u524d\u5f80Google Play\u4e0b\u8f7d<\/a>).<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>PC\u4e0b\u914d\u7f6eDLNA\u5f88\u65b9\u4fbf\uff0c\u4f7f\u7528\u5bb6\u5ead\u7ec4\u548cWindow Media Player\u5f88\u5bb9\u6613\u5b9e\u73b0\u5a92\u4f53\u5c40\u57df\u7f51\u5185\u5171\u4eab\u3002\u524d\u9762\u6587\u7ae0\u6709\u63d0\u8fc7\u8fd9\u4e9b\u8bdd\u9898\uff0c\u5305\u62ecAndroid\u5ba2\u6237\u7aef\u548cChrome\u4ee5\u53ca\u5c0f\u7c73\u76d2\u5b50\u4e0a\u7684\u4f7f\u7528\u3002 \u8fd9\u91cc\u6765\u8bb0\u5f55\u4e0bUbuntu12.04 \u4e0b\u7684\u5b89\u88c5\u914d\u7f6e minidlna\u3002 1.\u5b89\u88c5\u670d\u52a1\u7aef # apt-get install minidlna 2.\u914d\u7f6e\u6587\u4ef6\u5728\/etc\/ \u76ee\u5f55\u4e0b\u7684minidlna.conf.\u5176\u4e2d\u4e3b\u8981\u914d\u7f6e \u914d\u7f6e\u5a92\u4f53\u76ee\u5f55\uff0c\u53ef\u4ee5\u5206\u884c\u6dfb\u52a0\u591a\u4e2a\u76ee\u5f55\uff0c\u540c\u65f6\u4e5f\u53ef\u6307\u5b9a\u5a92\u4f53\u7c7b\u578b\u3002 # set this to the directory you want scanned. # * if have multiple directories, you can have multiple media_dir= lines # * if you want to restrict a media_dir to a specific content type,you # [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1615,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[6,4,21,59,5,17,68],"tags":[74],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.mujins.com\/index.php?rest_route=\/wp\/v2\/posts\/1612"}],"collection":[{"href":"https:\/\/www.mujins.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mujins.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mujins.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mujins.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1612"}],"version-history":[{"count":0,"href":"https:\/\/www.mujins.com\/index.php?rest_route=\/wp\/v2\/posts\/1612\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.mujins.com\/index.php?rest_route=\/"}],"wp:attachment":[{"href":"https:\/\/www.mujins.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1612"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mujins.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1612"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mujins.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1612"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}