<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>gHacks technology news &#187; DAAP</title>
	<atom:link href="http://www.ghacks.net/tag/daap/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ghacks.net</link>
	<description>A technology blog covering software, mobile phones, gadgets, security, the Internet and other relevant areas.</description>
	<lastBuildDate>Tue, 24 Nov 2009 22:02:10 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Set up a Linux media server</title>
		<link>http://www.ghacks.net/2009/10/29/set-up-a-linux-media-server/</link>
		<comments>http://www.ghacks.net/2009/10/29/set-up-a-linux-media-server/#comments</comments>
		<pubDate>Thu, 29 Oct 2009 17:51:54 +0000</pubDate>
		<dc:creator>Jack Wallen</dc:creator>
				<category><![CDATA[Advice]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Music and Video]]></category>
		<category><![CDATA[Networks]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Tutorials Basic]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[DAAP]]></category>
		<category><![CDATA[itunes]]></category>
		<category><![CDATA[mp3 server]]></category>
		<category><![CDATA[multimedia server]]></category>
		<category><![CDATA[music server]]></category>
		<category><![CDATA[songbird]]></category>

		<guid isPermaLink="false">http://www.ghacks.net/?p=17860</guid>
		<description><![CDATA[Do you have multiple machines around your house that would like to share a centralized server for multi-media? Having such a server for music allows for consolidation, ease of use, and space saving on client PCs. Of course to many users, the idea of setting up a multi-media server sounds like it would be a [...]]]></description>
			<content:encoded><![CDATA[<p>Do you have multiple machines around your house that would like to share a centralized server for multi-media? Having such a server for music allows for consolidation, ease of use, and space saving on client PCs. Of course to many users, the idea of setting up a multi-media server sounds like it would be a nightmare&#8230;especially on the Linux platform. That couldn&#8217;t be further from the truth.</p>
<p><a title="Firefly Media Server" href="http://www.fireflymediaserver.org/" target="_blank">The Firefly Media Server</a> (formerly mt-daap) is a fast DAAP server that is simple to install and even easier to configure. Firefly resides on a single Linux machine that doesn&#8217;t have to be a powerhouse. In fact, you can install this lightweight server on Ubuntu Server and you&#8217;re almost ready to go. In this article you will see how to do just that &#8211; install and configure Firefly Media Server on Ubuntu Server.</p>
<p><span id="more-17860"></span><strong>Features</strong></p>
<p>The Firefly server has all of the features you will want in a DAAP server:</p>
<ul>
<li><span style="background-color: #ffffff">Supports Unix/POSIX</span></li>
<li><span style="background-color: #ffffff">Beta for Windows in the works</span></li>
<li><span style="background-color: #ffffff">On the fly transcoding of OGG, FLAC, Apple Lossless, and WM</span></li>
<li><span style="background-color: #ffffff">User-created smart playlist support</span></li>
<li><span style="background-color: #ffffff">Integrates with iTunes and many other DAAP-supporting media players</span></li>
<li><span style="background-color: #ffffff">Serve streaming radio stations</span></li>
</ul>
<p><strong>Installation</strong></p>
<p>Since we are installing on a Ubuntu Server, the installation is simple:</p>
<ol>
<li><span style="background-color: #ffffff">Open up a terminal (or just log into your servers&#8217; console)</span></li>
<li><span style="background-color: #ffffff">Issue the command <em>sudo apt-get install mt-daap</em></span></li>
<li><span style="background-color: #ffffff">Enter your user password</span></li>
</ol>
<p>That&#8217;s it. Now it&#8217;s time to set it up.</p>
<p><strong>Configuration file</strong></p>
<p>There is only one configuration file for Firefly: <strong>/etc/mt-daapd.conf</strong>. This file is quite easy to set up. For a basic DAAP server, out of the box, there is really only one option you must configure. If you open up the configuration file look for the line:</p>
<p><em>mp3_dir = /home/media/music</em></p>
<p>This is the line you will need to change to reflect the directory you will serve your media from. For my setup I created a new sub-directory in <strong>/opt </strong>called <strong>music</strong>. Do this with the command:</p>
<p><em>sudo mkdir /opt/media</em></p>
<p>Now you have to make that directory readable by the DAAP server with the command:</p>
<p><em>sudo chmod ug+r -R /opt/media</em></p>
<p>Now all files and sub-directories created with the <strong>/opt/media</strong> directory will have the proper permissions such that the DAAP server can serve up the files.</p>
<p>Of course what you have just set up is a very basic DAAP server. There are a lot of other options within the configuration file you can set up, such as:</p>
<ul>
<li><span style="background-color: #ffffff">servername: This is the name your DAAP server will broadcast. By default the server will be listed as Firefly <em>RELEASE_NUMBER HOSTNAME</em> (Where <em>RELEASE_NUMBER </em>is the release number of the Firefly installation and <em>HOSTNAME</em> is the hostname of the server.)</span></li>
<li><span style="background-color: #ffffff">password protection: This will cause any user attempting to access the DAAP server to have to enter a password in order to see the files. </span></li>
<li><span style="background-color: #ffffff">port: If you need to use a port other than the default (3689), configure it here.</span></li>
<li><span style="background-color: #ffffff">extensions: The file types you want to allow to be served by your DAAP server.</span></li>
<li><span style="background-color: #ffffff">Valid codectypes: These are the configurations for the format conversion. There are already lines for this in the configuration file &#8211; you just have to uncomment the ones you want to add for internal conversion.</span></li>
<li><span style="background-color: #ffffff">rescan_interval: If you want to enable background scanning you need to uncomment this entry and set an interval. This will enable you to add new files without having to restart the DAAP server to pick up the new files. Very handy if you frequently add new files.</span></li>
</ul>
<p>There are other configuration options, but those are the ones you will want to focus on first.</p>
<p><strong>Start the daemon</strong></p>
<p>After your configuration file is complete, go ahead and move your media files into the directory and then start the server with the command:</p>
<p><em>sudo /etc/init.d/mt-daap start</em></p>
<p>With the server up and running you can fire up a DAAP enabled client, like iTunes or Songbird (Note: Songbird requires the addition of a DAAP add on), and you should automatically see the files on the DAAP server.</p>
<p><strong>Final thoughts</strong></p>
<p>Setting up a DAAP server is a great idea for a small internal network where you want to be able to share out a multi-media library. Anyone looking to set this up, and has a Linux server up and running, would do well to give Firefly a try. The simplicity, size, and speed of this server makes it the perfect candidate.</p>

	Tags: <a href="http://www.ghacks.net/tag/daap/" title="DAAP" rel="tag">DAAP</a>, <a href="http://www.ghacks.net/tag/itunes/" title="itunes" rel="tag">itunes</a>, <a href="http://www.ghacks.net/tag/mp3-server/" title="mp3 server" rel="tag">mp3 server</a>, <a href="http://www.ghacks.net/tag/multimedia-server/" title="multimedia server" rel="tag">multimedia server</a>, <a href="http://www.ghacks.net/tag/music-server/" title="music server" rel="tag">music server</a>, <a href="http://www.ghacks.net/tag/songbird/" title="songbird" rel="tag">songbird</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.ghacks.net/2008/08/03/songbird-07-rc1-released/" title="Songbird 0.7 RC1 Released (August 3, 2008)">Songbird 0.7 RC1 Released</a> (3)</li>
	<li><a href="http://www.ghacks.net/2009/05/29/itunes-music-server-pulptunes/" title="iTunes Music Server pulpTunes (May 29, 2009)">iTunes Music Server pulpTunes</a> (7)</li>
	<li><a href="http://www.ghacks.net/2008/07/16/winamp-ipod-plugin-2/" title="Winamp iPod Plugin (July 16, 2008)">Winamp iPod Plugin</a> (5)</li>
	<li><a href="http://www.ghacks.net/2007/06/11/view-and-edit-information-about-songs-with-more-tunes/" title="View and Edit information of songs with More Tunes (June 11, 2007)">View and Edit information of songs with More Tunes</a> (1)</li>
	<li><a href="http://www.ghacks.net/2008/08/22/the-complete-media-player-review-part-1-2/" title="The Complete Media Player Review (Part 1) (August 22, 2008)">The Complete Media Player Review (Part 1)</a> (15)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.ghacks.net/2009/10/29/set-up-a-linux-media-server/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Connecting Linux to a Bubba 2</title>
		<link>http://www.ghacks.net/2009/05/03/connecting-linux-to-a-bubba-2/</link>
		<comments>http://www.ghacks.net/2009/05/03/connecting-linux-to-a-bubba-2/#comments</comments>
		<pubDate>Sun, 03 May 2009 14:08:02 +0000</pubDate>
		<dc:creator>Jack Wallen</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Music and Video]]></category>
		<category><![CDATA[Networks]]></category>
		<category><![CDATA[Online Services]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Tutorials Basic]]></category>
		<category><![CDATA[Bubba 2]]></category>
		<category><![CDATA[DAAP]]></category>
		<category><![CDATA[file-sharing]]></category>
		<category><![CDATA[samba]]></category>

		<guid isPermaLink="false">http://www.ghacks.net/?p=12550</guid>
		<description><![CDATA[If you don&#8217;t know, the Bubba 2 is a piece of hardware, driven by the Linux operating system, created by ecXito. The Bubba 2 can stream media, serve files, share printers, and more. How? The Bubba 2 uses Samba to share out services and files. Because it uses Samba, connecting to the Bubba 2 is [...]]]></description>
			<content:encoded><![CDATA[<p>If you don&#8217;t know, the Bubba 2 is a piece of hardware, driven by the Linux operating system, created by <a title="eXcito" href="http://www.excito.com" target="_blank">ecXito</a>. The Bubba 2 can stream media, serve files, share printers, and more. How? The Bubba 2 uses Samba to share out services and files. Because it uses Samba, connecting to the Bubba 2 is simple &#8211; that&#8217;s what Samba does best. But when you have a Linux machine you want to connect to the Bubba 2 you won&#8217;t find anything helpful in the manuals.</p>
<p>In fact even getting to the web-based administration screen isn&#8217;t easy from the Linux point of view. The instructions say point your browser to http://bubba and log in. When using a browser on Linux this will take you to search results for &#8220;bubba&#8221;. And the only mention of an IP address in the instructions is 192.168.10.1. Since my local network uses 192.168.1.x I couldn&#8217;t see the address. So what could I do? Let&#8217;s take a look.</p>
<p><span id="more-12550"></span></p>
<div id="attachment_12552" class="wp-caption alignleft" style="width: 283px"><a href="http://www.ghacks.net/wp-content/uploads/2009/05/wireshark.png"><img class="size-full wp-image-12552" src="http://www.ghacks.net/wp-content/uploads/2009/05/wireshark.png" alt="Figure 1" width="273" height="205" /></a><p class="wp-caption-text">Figure 1</p></div>
<p>Once you have the Bubba 2 plugged in (the instructions are quite clear and simple for this step) your first task is to locate the IP address for the machine. For this I employed <a title="Wireshark" href="http://www.wireshark.org/" target="_blank">Wireshark</a>. As you can see, in Figure 1, there is some external traffic (some of which is from <a href="http://www.ghacks.net/2009/10/17/facebook-login/">Facebook</a> &#8211; must look into that) but the IP address of interest is the .16 address. Since there is a lot of traffic coming from that address it is a safe bet that address is attached to the Bubba 2.</p>
<p>So I point my browser to 192.168.1.16 and voila!, the Bubba 2 network admin screen is up. Wireshark has done its job for the day.</p>
<p>Since the Bubba 2 can stream music there has to be a way to place music into the <strong>/home/storage/music</strong> folder. Any music in this folder will be served up via DAAP. Problem is, how to get it there? It took me a bit of time, but I found a solution.</p>
<p>The first thing to do is to log into the web admin tool. By default the user/password is admin/admin. You can change this to meet your needs of course. Log in as your admin and click on the Fileserver section. Here you can upload all the music you need. Problem is, you can only load one file at a time (you can&#8217;t load directories.) With over 15,000 music files to copy this wasn&#8217;t an option. My next attempt found me using FTP to transfer directories to the Bubba 2. This worked to a point. What I now had was a standard user with a directory full of music which could not be streamed. This lead me to my next problem: I couldn&#8217;t move the directories from the users ~/ directory to <strong>/home/storage/music</strong> because of permissions issues.</p>
<p>The work around came about with the help of an external USB hard drive. This is the same drive that contains my entire music collection. By connecting this drive to the Bubba 2 I was then able to copy the entire contents of this drive to the <strong>/home/storage/music</strong> directory which was then ready for streaming.</p>
<p><strong>Streaming to Linux</strong></p>
<div id="attachment_12554" class="wp-caption alignright" style="width: 231px"><a href="http://www.ghacks.net/wp-content/uploads/2009/05/rhythmbox.png"><img class="size-full wp-image-12554" src="http://www.ghacks.net/wp-content/uploads/2009/05/rhythmbox.png" alt="Figure 2" width="221" height="173" /></a><p class="wp-caption-text">Figure 2</p></div>
<p>The easiest method of listening to the music on the Bubba 2 is with a DAAP-enalbed piece of software. Out of the box Rhythmbox was able to connect to the stream. To do this you right click in an empty area of the left nav where a new menu will open (see Figure 2). In this new menu you will see an entry &#8220;Connect to DAAP share&#8221;. Select that and enter the IP address of your Bubba 2.</p>
<p>Shortly after you do this, your Shared library will populate with music from your Bubba 2. Listen away.</p>
<p><strong>Final Thoughts</strong></p>
<p>The Bubba 2 isn&#8217;t limited to only music streaming. You can share out printers and email as well. But when you&#8217;re having to connect from a Linux box, you might have to go through a few more steps than you would with either Windows or Mac. Even with these extra steps, it&#8217;s worth it. The Bubba 2 is an outstanding piece of hardware that makes sharing to small networks a snap.</p>

	Tags: <a href="http://www.ghacks.net/tag/bubba-2/" title="Bubba 2" rel="tag">Bubba 2</a>, <a href="http://www.ghacks.net/tag/daap/" title="DAAP" rel="tag">DAAP</a>, <a href="http://www.ghacks.net/tag/file-sharing/" title="file-sharing" rel="tag">file-sharing</a>, <a href="http://www.ghacks.net/tag/linux/" title="Linux" rel="tag">Linux</a>, <a href="http://www.ghacks.net/tag/samba/" title="samba" rel="tag">samba</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.ghacks.net/2009/02/06/get-to-know-linux-understanding-smbconf/" title="Get To Know Linux: Understanding smb.conf (February 6, 2009)">Get To Know Linux: Understanding smb.conf</a> (3)</li>
	<li><a href="http://www.ghacks.net/2009/09/04/set-up-your-new-ubuntu-server-as-a-samba-server/" title="Set up your new Ubuntu Server as a Samba Server (September 4, 2009)">Set up your new Ubuntu Server as a Samba Server</a> (3)</li>
	<li><a href="http://www.ghacks.net/2009/04/19/auto-mounting-a-samba-share-in-linux/" title="Auto mounting a Samba share in Linux (April 19, 2009)">Auto mounting a Samba share in Linux</a> (5)</li>
	<li><a href="http://www.ghacks.net/2008/07/28/you-are-sharing-files/" title="You Are Sharing Files (July 28, 2008)">You Are Sharing Files</a> (4)</li>
	<li><a href="http://www.ghacks.net/2008/02/07/yoggie-pico-personal-mobile-security-computer/" title="Yoggie PICO Personal Mobile Security Computer (February 7, 2008)">Yoggie PICO Personal Mobile Security Computer</a> (3)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.ghacks.net/2009/05/03/connecting-linux-to-a-bubba-2/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
