<?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>Felipe Alfaro Solana &#187; Multimedia</title>
	<atom:link href="http://www.felipe-alfaro.org/blog/category/multimedia/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.felipe-alfaro.org/blog</link>
	<description>A little bit of technology, security and networking with Linux, FreeBSD and Mac OS X, plus some personal opinions.</description>
	<lastBuildDate>Sun, 23 Oct 2011 16:46:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Playing music remotely using MPD</title>
		<link>http://www.felipe-alfaro.org/blog/2007/07/16/playing-music-remotely-using-mpd/</link>
		<comments>http://www.felipe-alfaro.org/blog/2007/07/16/playing-music-remotely-using-mpd/#comments</comments>
		<pubDate>Sun, 15 Jul 2007 20:56:42 +0000</pubDate>
		<dc:creator>Felipe Alfaro Solana</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Multimedia]]></category>

		<guid isPermaLink="false">http://felipe-alfaro.org/blog/2007/07/16/playing-music-remotely-using-mpd/</guid>
		<description><![CDATA[From the home page of MPD: Music Player Daemon (MPD) allows remote access for playing music (MP3, Ogg Vorbis, FLAC, AAC, Mod, and wave files) and managing playlists. MPD is designed for integrating a computer into a stereo system that provides control for music playback over a local network. It is also makes a great [...]]]></description>
			<content:encoded><![CDATA[<p>From the home page of <a href="http://www.musicpd.org/">MPD</a>:</p>
<blockquote><p>
Music Player Daemon (MPD) allows remote access for playing music (MP3, Ogg Vorbis, FLAC, AAC, Mod, and wave files) and managing playlists. MPD is designed for integrating a computer into a stereo system that provides control for music playback over a local network. It is also makes a great desktop music player, especially if you are a console junkie, like frontend options, or restart X often.
</p></blockquote>
<p>The idea behind using <a href="http://www.musicpd.org/">MPD</a> was to be able to set up a multimedia computer that I could manage either locally or remotely. When I mean remotely, I don&#8217;t mean via <a href="http://en.wikipedia.org/wiki/VNC">VNC</a> or <a href="http://www.x.org/">X11</a>/<a href="http://www.nomachine.com/">NX</a>. For example, I don&#8217;t need the overhead of a full X11 session just to play music over the sound card of my multimedia computer. I might do that using <a href="http://www.mplayerhq.hu/">MPlayer</a> over a <a href="http://www.openssh.org/">SSH</a>/<a href="http://www.gnu.org/software/screen/">screen</a> session or a text-based, command-line music player, but sometimes I like GUI applications too!</p>
<p>Also, detaching the music player controller (the daemon) from the client allows me to use different clients from different computers. Sometimes I&#8217;m using one of my Apple computers. Sometimes I&#8217;m using one of Linux boxes. Using a client that matches natively my operating system is something that I really appreciate.</p>
<p>For Linux I use <a href="http://sonata.berlios.de/">Sonata</a>. For Mac OS X I use <a href="https://theremin.sigterm.eu/">Theremin</a>.</p>
<h2>Installing MPD on Ubuntu Feisty Fawn</h2>
<p>Installing MPD in Ubuntu Linux, as usual, it&#8217;s pretty straightforward:</p>
<pre>
sudo apt-get install mpd
</pre>
<p>By default, Ubuntu will install MPD, start it up and create the symbolic links under <code>/etc/rc[0123456].d</code> to make sure it gets started at the next system boot.</p>
<p>You might also want to edit MPD&#8217;s configuration file:</p>
<pre>
$EDITOR /etc/mpd.conf
</pre>
<p>In my case, the only thing I changed in this file is the <code>bind_to_address</code> directive to allow clients to connect remotely. It looks like this:</p>
<pre>
bind_to_address                 "0.0.0.0"
</pre>
<h2>Installing Sonata on Ubuntu Feisty Fawn</h2>
<p>Sonata is a nice Python-based, GTK+2.0-based MPD client. Thus, it&#8217;s multi-platform and can be run on Linux, *BSD, Solaris, Mac OS X and (I guess) even Windows.</p>
<p>To install Sonata on Ubuntu Linux, run <code>apt-get</code> as usual:</p>
<pre>
sudo apt-get install sonata
</pre>
<p>The first time you run Sonata, either from the command-line or from the menu, it will ask you where the MPD daemon is running. It defaults to <code>localhost</code> (and port <code>6600</code>) so I changed that to point to the hostname of my multimedia computer.</p>
<h2>Installing Sonata on Mac OS X</h2>
<p>Installing Sonata on Mac OS X is a little bit more elaborated, since some of the components that Sonata requires are not installed by default on Mac OS X.</p>
<p>Sonata requires Python and, more concretely, PyGTK. Since I am already using <a href="http://www.macports.org/">MacPorts</a>, getting PyGTK installed was a matter of running:</p>
<pre>
sudo /opt/local/bin/port install py-gtk2
</pre>
<p>The rest is pretty much the same as for Linux.</p>
<h2>Installing Theremin.app on Mac OS X</h2>
<p>Theremin.app is a nice, native Cocoa application for Mac OS X that sports <a href="http://growl.info/">Growl</a> integration. For example, when MPD starts playing a new song, Theremin.app notifies the user via a Growl notification.</p>
<p>Download <a href="http://theremin.amd.co.at/0.5.1/Theremin_0.5.1.tbz">Theremin.app</a> from <a href="https://theremin.sigterm.eu/">Theremin&#8217;s Web site</a>.</p>
<p>Extract it and run it:</p>
<pre>
tar jxvf Theremin_0.5.1.tbz
open Theremin.app
</pre>
<p>Theremin.app can also be compiled from sources by downloading the source code from the Subversion repository and using Xcode to compile it. I must confess that I was lazy to that, so I chose to run the pre-compiled binaries.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.felipe-alfaro.org/blog/2007/07/16/playing-music-remotely-using-mpd/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

