{"id":70,"date":"2011-12-22T16:37:13","date_gmt":"2011-12-22T22:37:13","guid":{"rendered":"https:\/\/www.asberry.org\/blog_tech\/?p=70"},"modified":"2011-12-22T16:47:38","modified_gmt":"2011-12-22T22:47:38","slug":"mediatomb-media-server","status":"publish","type":"post","link":"https:\/\/asberry.org\/blog_tech\/?p=70","title":{"rendered":"MediaTomb Media Server"},"content":{"rendered":"<p>I bought a new 4 bedroom house that has 2 living room back in September and I&#8217;m just now getting around to furnishing it.\u00a0 The one thing I got was a new Toshiba TV.\u00a0 I noticed that you could plug a USB flash drive into it and so I put one in and launch the media player on the TV and was shocked to see my tablet on there.\u00a0 After some investigating these new TV&#8217;s are UPnP aware and have a media player that can play from a UPnP server.\u00a0 Turns out it&#8217;s incredibly easy to do this on FC16 using MediaTomb as the server.\u00a0 Let me relay the steps to doing this.<\/p>\n<ol>\n<li>In this case I&#8217;m using FC16 stock install with MySQL installed, let me point out it&#8217;s the default MySQL install, see the post on starting MySQL to hear about that nightmare, this is the reason that I had to do that.<\/li>\n<li>Instal MediaTomb by typing &#8216;yum install mediatomb&#8217;.\u00a0 This will also create the mediatomb user in the system that the service will use to run as (although not the home directory which is a great place to house the media, more later on this point).<\/li>\n<li>You&#8217;ll have to create a new MySQL database, this should be second nature but if not <a title=\"Link to Initial Installation\" href=\"http:\/\/mediatomb.cc\/pages\/documentation#id2855459\" target=\"_blank\">here<\/a> is a link to the documentation on it.<\/li>\n<li>Now you&#8217;ll have to edit the mediatomb.conf which is located \/etc\/mediatomb.conf directory.\u00a0 It&#8217;s nice and easy as the only thing you really need to do is bind it to an interface with the MT_INTERFACE =&#8221;[interface]&#8221;.\u00a0 To find what you need to put in here, do an ifconfig and put in whatever is the active network connection is.\u00a0 Oh make note of the MT_PORT number while you are here.<\/li>\n<li>Now we are ready to start the service, done by typing &#8216;service mediatomb start&#8217; into BASH.\u00a0 By extension stop, restart and status work too.<\/li>\n<li>You are up and running and from the server type in the following in for the URL:\u00a0 http:\/\/localhost:[MT_PORT] where the port is what you made note of in the mediatomb.conf in step 4.<\/li>\n<li>You can now use the <a title=\"MediaTomb UI Guide\" href=\"http:\/\/mediatomb.cc\/pages\/userinterface\" target=\"_blank\">UI (user interface)<\/a> to add directories to the server.<\/li>\n<\/ol>\n<p>I would be derelict in my reporting without telling you the last steps but at this point the server is up and running so here is the rest of the story.<\/p>\n<p>You&#8217;ll need to get the media over there.\u00a0 I&#8217;d recommend FTP (see related post).\u00a0 And you&#8217;ll need a directory to store this media.\u00a0 What I did was create a \/home\/mediatomb and then uploaded the media via FTP.\u00a0 Just chown the media to mediatomb and place it in this directory and then using the user interface specify \/home\/mediatomb as the directory to check, do so recrusive and I&#8217;m using the timed (I&#8217;ve heard bad things about Inotify and MP3&#8217;s set to full and recursive.\u00a0 I didn&#8217;t include hidden anything and left the scan interval at 30 minutes (1800 seconds).<\/p>\n<p>That&#8217;s it, you&#8217;re done.\u00a0 I put about 110Gb of music into the directory and it took about 3 or 4 hours to move, and it&#8217;s now in the process of scanning them in no apparent order.\u00a0 I&#8217;m not sure how long it will take but will try to update if I can figure it out.\u00a0 But if you&#8217;re anything like me it&#8217;s time to go make a drink and I&#8217;ll check back on it tomorrow when I can almost guarantee that it&#8217;ll be done:)\u00a0 Okay here is the update, takes about as long as it does to transfer as it does to index.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I bought a new 4 bedroom house that has 2 living room back in September and I&#8217;m just now getting around to furnishing it.\u00a0 The one thing I got was a new Toshiba TV.\u00a0 I noticed that you could plug a USB flash drive into it and so I put one in and launch the [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_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":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[6],"tags":[],"class_list":["post-70","post","type-post","status-publish","format-standard","hentry","category-linux","author-aron"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p4bBkH-18","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=\/wp\/v2\/posts\/70","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=70"}],"version-history":[{"count":3,"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=\/wp\/v2\/posts\/70\/revisions"}],"predecessor-version":[{"id":73,"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=\/wp\/v2\/posts\/70\/revisions\/73"}],"wp:attachment":[{"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=70"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=70"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=70"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}