<?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>Lindesk &#187; daemon</title>
	<atom:link href="http://lindesk.com/tag/daemon/feed/" rel="self" type="application/rss+xml" />
	<link>http://lindesk.com</link>
	<description>Linux - on the Desktop</description>
	<lastBuildDate>Tue, 23 Jun 2009 14:03:08 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>MPD &#8211; Music Player Daemon</title>
		<link>http://lindesk.com/2008/04/mpd-music-player-daemon/</link>
		<comments>http://lindesk.com/2008/04/mpd-music-player-daemon/#comments</comments>
		<pubDate>Mon, 14 Apr 2008 18:30:58 +0000</pubDate>
		<dc:creator>BinnyVA</dc:creator>
				<category><![CDATA[Audio]]></category>
		<category><![CDATA[Configuration]]></category>
		<category><![CDATA[daemon]]></category>
		<category><![CDATA[mp3]]></category>
		<category><![CDATA[mpd]]></category>
		<category><![CDATA[music]]></category>
		<category><![CDATA[player]]></category>

		<guid isPermaLink="false">http://lindesk.com/?p=105</guid>
		<description><![CDATA[MPD is not for everyone.

Before continuing into the article, a word of warning. MPD is not for everyone. If you are a casual desktop linux user with zero geek genes, stay away from this player. There are many other simpler players for you.

But then again, &#8216;casual desktop linux user&#8217; &#8211; that sounds like a contradiction [...]]]></description>
			<content:encoded><![CDATA[<blockquote class="pullquote"><p>MPD is not for everyone.</p>
</blockquote>
<p class="intro">Before continuing into the article, a word of warning. <strong class="highlight">MPD is not for everyone.</strong> If you are a casual desktop linux user with zero geek genes, stay away from this player. There are <a href="http://lindesk.com/2008/03/top-10-linux-mp3-players/">many other simpler players</a> for you.</p>
<p><a href='http://lindesk.com/wp-content/uploads/2008/04/mpd_logo.png'><img src="http://lindesk.com/wp-content/uploads/2008/04/mpd_logo.png" alt="" title="Mpd Logo" width="359" height="156" class="intro alignright size-full wp-image-106" /></a></p>
<p>But then again, &#8216;casual desktop linux user&#8217; &#8211; that sounds like a contradiction in terms. The very fact that you are reading this means that you are a geek.</p>
<h2>Getting Started with MPD</h2>
<p>Setting up MPD is not as simple as other music players.</p>
<h3>Installation</h3>
<p>To see MPD in action, first we have to install MPD &#8211; and a client. I installed the following&#8230;</p>
<ul>
<li>MPD server</li>
<li>MPC &#8211; A command line MPD client</li>
<li>gmpc &#8211; A GUI client for Gnome</li>
</ul>
<p>In a RedHat based system, you can install these using the command&#8230;</p>
<p><code>yum install mpd mpc gmpc</code></p>
<h3>Configuration</h3>
<p>Here is where it starts to get a bit confusing. MPD don&#8217;t have a pretty GUI to go along with it. It has to be configured using a text file. Create a file &#8216;.mpdconf&#8217; in your home folder and enter the following in it&#8230;</p>
<pre><code class="cli">
port					"6600"
music_directory         "~/Songs"
playlist_directory      "~/.mpd/playlists"
db_file                 "~/.mpd/mpd.db"
log_file                "~/.mpd/mpd.log"
error_file              "~/.mpd/mpd.error"
</code></pre>
<p>The &#8216;music_directory&#8217;(&#8220;~/Songs&#8221; in our example) must point to the folder where you keep your music. If you have your music in multiple folders then I cannot help you. MPD was designed with just one music root directory in mind.</p>
<p>It is a good idea to create the playlist folder now &#8211; it will prevent errors later on. To do that run the command&#8230;</p>
<p><code>mkdir -p ~/.mpd/playlists</code></p>
<p>Next run these commands&#8230;</p>
<pre><code class="cli">mpd --create-db
mpc update
mpc add /
mpc play</code></pre>
<p>If all went well, you must be hearing sweet music now. Here is an explanation of the commands we used and their purpose&#8230;</p>
<dl>
<dt>mpd &#8211;create-db</dt>
<dd>This will start the daemon. The &#8216;&#8211;create-db&#8217; argument will read the contents of the root music directory and add the Music files to a text database. You should see the list of files being added into the DB. This may take some time to complete &#8211; based on size of your music collection.</dd>
<dt>mpc update</dt>
<dd>The command used here is &#8216;mpc&#8217; &#8211; not &#8216;mpd&#8217;. We are using a command line client now. This command scans the root music directory for updates.</dd>
<dt>mpc add /</dt>
<dd>This command will add all the files in the music directory to the current playlist. Please note that the &#8216;/&#8217; here means root music directory &#8211; and not the global linux root.</dd>
<dt>mpc play</dt>
<dd>This will start playing the files in the current playlist.</dd>
</dl>
<h2>GUI Clients</h2>
<p>There are many GUI clients for MPD &#8211; the ones I would recommend are&#8230;</p>
<ul>
<li>Gnome Music Player Client(gmpc)</li>
<li>Sonata</li>
</ul>
<p>Once the mpd daemon is up and running, just open these clients and click on the connect button to control the daemon using these clients.</p>
]]></content:encoded>
			<wfw:commentRss>http://lindesk.com/2008/04/mpd-music-player-daemon/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
