{"id":449,"date":"2016-08-10T14:28:33","date_gmt":"2016-08-10T12:28:33","guid":{"rendered":"http:\/\/www.mariusb.net\/blog\/?p=449"},"modified":"2016-08-10T14:29:43","modified_gmt":"2016-08-10T12:29:43","slug":"how-to-ubuntu-16-04-lts-minidlna-fixes-after-upgrade-from-ubuntu-14-04-lts","status":"publish","type":"post","link":"https:\/\/www.mariusb.net\/blog\/2016\/08\/how-to-ubuntu-16-04-lts-minidlna-fixes-after-upgrade-from-ubuntu-14-04-lts\/","title":{"rendered":"How-to: Ubuntu 16.04 LTS minidlna fixes after upgrade from Ubuntu 14.04 LTS"},"content":{"rendered":"<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignleft wp-image-451 size-medium\" src=\"https:\/\/i0.wp.com\/www.mariusb.net\/blog\/wp-content\/uploads\/2016\/08\/Ubuntu-minidlna.jpg?resize=300%2C169\" alt=\"Ubuntu 16.04 LTS minidlna\" width=\"300\" height=\"169\" srcset=\"https:\/\/i0.wp.com\/www.mariusb.net\/blog\/wp-content\/uploads\/2016\/08\/Ubuntu-minidlna.jpg?resize=300%2C169&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.mariusb.net\/blog\/wp-content\/uploads\/2016\/08\/Ubuntu-minidlna.jpg?resize=768%2C432&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.mariusb.net\/blog\/wp-content\/uploads\/2016\/08\/Ubuntu-minidlna.jpg?resize=1024%2C576&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.mariusb.net\/blog\/wp-content\/uploads\/2016\/08\/Ubuntu-minidlna.jpg?w=1280&amp;ssl=1 1280w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><br \/>\nThis is how I solved the problem with Ubuntu 16.04 LTS <a href=\"https:\/\/wiki.debian.org\/minidlna\" target=\"_blank\">minidlna<\/a> after upgrading from Ubuntu 14.04 LTS to Ubuntu 16.04 LTS.<\/p>\n<p>MiniDLNA is a lightweight DLNA\/UPnP media server. The MiniDNLA daemon serves media files (music, pictures, and video) to clients on a network.<\/p>\n<p>My setup before the upgrade was as follows:<\/p>\n<ul>\n<li>Ubuntu 14.04 LTS<\/li>\n<li>Media files on both the first disk but also spread across various other disks.<\/li>\n<\/ul>\n<p>The main issue I had was that although the config file at <code>\/etc\/minidlna.conf<\/code> was read, it did not process the media files that was on disk other than the first disk. By default the daemon run under the USER minidlna and for some reason this user did not have permission to read the media files on the other disks. I changed the USER variable in the .conf file but it did not take either, not sure why.<\/p>\n<h3>How to fix<\/h3>\n<p>So I diged a bit deeper and found that the USER is also specified in the <code>\/etc\/init.d\/minidlna<\/code> executable file. So all I did was changed the USER and GROUP variable to root in the\u00a0<code>\/etc\/init.d\/minidlna<\/code>\u00a0file as indicated below.<code><br \/>\nCONFIGFILE=\/etc\/minidlna.conf<br \/>\nLOGFILE=\/var\/log\/minidlna.log<br \/>\nUSER=root<br \/>\nGROUP=root<br \/>\nDAEMON_OPTS=\"\"<br \/>\n<\/code><br \/>\nI restarted the daemon by executing <code>sudo \/etc\/init.d\/minidlna force-reload<\/code> and voila everything was fine and all my media files available to watch from any device on my network.<\/p>\n<p>Hope this is helpful.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is how I solved the problem with Ubuntu 16.04 LTS minidlna after upgrading from Ubuntu 14.04 LTS to Ubuntu 16.04 LTS. MiniDLNA is a lightweight DLNA\/UPnP media server. The MiniDNLA daemon serves media files (music, pictures, and video) to clients on a network. My setup before the upgrade was as follows: Ubuntu 14.04 LTS [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[5,4],"tags":[153,118,154],"class_list":["post-449","post","type-post","status-publish","format-standard","hentry","category-linux","category-ubuntu","tag-minidlna","tag-ubuntu","tag-ubuntu-16-04"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p1SHVw-7f","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.mariusb.net\/blog\/wp-json\/wp\/v2\/posts\/449","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mariusb.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mariusb.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mariusb.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mariusb.net\/blog\/wp-json\/wp\/v2\/comments?post=449"}],"version-history":[{"count":5,"href":"https:\/\/www.mariusb.net\/blog\/wp-json\/wp\/v2\/posts\/449\/revisions"}],"predecessor-version":[{"id":455,"href":"https:\/\/www.mariusb.net\/blog\/wp-json\/wp\/v2\/posts\/449\/revisions\/455"}],"wp:attachment":[{"href":"https:\/\/www.mariusb.net\/blog\/wp-json\/wp\/v2\/media?parent=449"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mariusb.net\/blog\/wp-json\/wp\/v2\/categories?post=449"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mariusb.net\/blog\/wp-json\/wp\/v2\/tags?post=449"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}