{"id":1081,"date":"2014-11-08T18:40:46","date_gmt":"2014-11-08T17:40:46","guid":{"rendered":"https:\/\/www.hutsky.cz\/blog\/?p=1081"},"modified":"2014-11-20T18:11:40","modified_gmt":"2014-11-20T17:11:40","slug":"centos-6-and-minidlna","status":"publish","type":"post","link":"https:\/\/www.hutsky.cz\/blog\/2014\/11\/centos-6-and-minidlna\/","title":{"rendered":"CentOS 6 and MiniDLNA"},"content":{"rendered":"<p><a href=\"https:\/\/www.hutsky.cz\/blog\/2014\/11\/centos-6-and-minidlna\/screenshot_2014-06-01-23-24-11\/\" rel=\"attachment wp-att-1106\"><img loading=\"lazy\" decoding=\"async\" class=\"alignright size-medium wp-image-1106\" src=\"https:\/\/www.hutsky.cz\/blog\/wp-content\/uploads\/Screenshot_2014-06-01-23-24-11-180x300.png\" alt=\"Screenshot_2014-06-01-23-24-11\" width=\"180\" height=\"300\" srcset=\"https:\/\/www.hutsky.cz\/blog\/wp-content\/uploads\/Screenshot_2014-06-01-23-24-11-180x300.png 180w, https:\/\/www.hutsky.cz\/blog\/wp-content\/uploads\/Screenshot_2014-06-01-23-24-11.png 480w\" sizes=\"auto, (max-width: 180px) 100vw, 180px\" \/><\/a>I&#8217;ve got a small home server made from a half-broken laptop nobody wanted any more. The screen was&#8217;t working, but otherwise the machine was fine, so I took it, shipped Centos 6 on it and it&#8217;s been serving as a media center at home for nearly two years now.<\/p>\n<p>Now, I wanted to put MiniDLNA on it so that various small Android devices could stream video and music from there. In Debian, it&#8217;s as a straightforward task as installing the <em>minidlna<\/em> package (kudos to the maintainers). But in Centos, things got more complicated. There was no package in the main repositories. I could find some RPMs to download here and there, but it seemed like compiling the software from scratch would be the best option here.<\/p>\n<p>The source can be found here:<br \/>\n<a href=\"http:\/\/sourceforge.net\/projects\/minidlna\/\">http:\/\/sourceforge.net\/projects\/minidlna\/<\/a> <a href=\"https:\/\/www.hutsky.cz\/blog\/wp-content\/uploads\/external_link.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11\" src=\"https:\/\/www.hutsky.cz\/blog\/wp-content\/uploads\/external_link.png\" alt=\"external_link\" width=\"10\" height=\"10\" \/><\/a><\/p>\n<p>However, the<\/p>\n<pre>.configure<\/pre>\n<p>ended in an error:<\/p>\n<pre>configure: error: libavutil headers not found or not usable<\/pre>\n<p>There could be some packages starting with <em>libav*<\/em> found in the current repos, but none of them helped. Eventually, it turned out that the problem could be solved by installing <em>ffmpeg<\/em> package. One way to get it is to use the media-oriented ATrpms repository.<\/p>\n<pre>vim \/etc\/yum.repos.d\/atrpms.repo<\/pre>\n<pre>[atrpms]\r\nname=Fedora Core $releasever - $basearch - ATrpms\r\nbaseurl=http:\/\/dl.atrpms.net\/f$releasever-$basearch\/atrpms\/stable\r\ngpgkey=http:\/\/ATrpms.net\/RPM-GPG-KEY.atrpms\r\nenabled=1\r\ngpgcheck=1<\/pre>\n<p>After installing <em>ffmpeg<\/em>, compilation went just fine and I can now play cartoons for the kids or listen to music on any device at home.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve got a small home server made from a half-broken laptop nobody wanted any more. The screen was&#8217;t working, but otherwise the machine was fine, so I took it, shipped Centos 6 on it and it&#8217;s been serving as a &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"more-link\" href=\"https:\/\/www.hutsky.cz\/blog\/2014\/11\/centos-6-and-minidlna\/\"> <span class=\"screen-reader-text\">CentOS 6 and MiniDLNA<\/span> Read More &raquo;<\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[39,13],"class_list":["post-1081","post","type-post","status-publish","format-standard","hentry","category-operatingsystems","tag-centos","tag-os"],"_links":{"self":[{"href":"https:\/\/www.hutsky.cz\/blog\/wp-json\/wp\/v2\/posts\/1081","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hutsky.cz\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hutsky.cz\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hutsky.cz\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hutsky.cz\/blog\/wp-json\/wp\/v2\/comments?post=1081"}],"version-history":[{"count":15,"href":"https:\/\/www.hutsky.cz\/blog\/wp-json\/wp\/v2\/posts\/1081\/revisions"}],"predecessor-version":[{"id":1154,"href":"https:\/\/www.hutsky.cz\/blog\/wp-json\/wp\/v2\/posts\/1081\/revisions\/1154"}],"wp:attachment":[{"href":"https:\/\/www.hutsky.cz\/blog\/wp-json\/wp\/v2\/media?parent=1081"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hutsky.cz\/blog\/wp-json\/wp\/v2\/categories?post=1081"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hutsky.cz\/blog\/wp-json\/wp\/v2\/tags?post=1081"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}