<?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>blog.lundscape.com &#187; Media</title>
	<atom:link href="http://blog.lundscape.com/category/media/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.lundscape.com</link>
	<description>The Linux Journey</description>
	<lastBuildDate>Thu, 15 Apr 2010 20:06:18 +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>Install Subsonic on Ubuntu Server</title>
		<link>http://blog.lundscape.com/2009/05/install-subsonic-on-ubuntu-server/</link>
		<comments>http://blog.lundscape.com/2009/05/install-subsonic-on-ubuntu-server/#comments</comments>
		<pubDate>Mon, 04 May 2009 20:11:49 +0000</pubDate>
		<dc:creator>Zachary Lund</dc:creator>
				<category><![CDATA[Media]]></category>
		<category><![CDATA[Firefly Media Server]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Jinzora]]></category>
		<category><![CDATA[LDAP]]></category>
		<category><![CDATA[Sockso]]></category>
		<category><![CDATA[Subsonic]]></category>
		<category><![CDATA[Tomcat]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://blog.lundscape.com/?p=113</guid>
		<description><![CDATA[Subsonic is a free, web-based media streaming application. After evaluating it alongside Jinzora and Sockso, I selected it for use on my servers. Internally, I have been using Firefly Media Server (previously called mt-daapd) to make music available to different desktop music players. Subsonic had several features that made it a good choice including allowing [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://subsonic.sourceforge.net/">Subsonic</a> is a free, web-based media streaming application. After evaluating it alongside <a href="http://en.jinzora.com/">Jinzora</a> and <a href="http://sockso.pu-gh.com/">Sockso</a>, I selected it for use on my servers. Internally, I have been using <a href="http://www.fireflymediaserver.org/">Firefly Media Server</a> (previously called mt-daapd) to make music available to different desktop music players. Subsonic had several features that made it a good choice including allowing music from several different directories, <a href="http://www.last.fm/">Last.fm</a> scrobbling support/integration, and multiple users with passwords and support for LDAP integration.</p>
<p>I installed Subsonic on a server running <a href="http://www.ubuntu.com/">Ubuntu</a> Hardy Heron Server. I built on a previous <a href="http://onlyubuntu.blogspot.com/2008/09/how-to-install-subsonic-ubuntu-hardy.html">tutorial</a> for installing Subsonic on Ubuntu.</p>
<p>First, I install the necessary Java packages, Tomcat, and Lame. I broke it into three installs to be safe. It could probably be done in one.</p>
<pre>apt-get install java-common sun-java6-bin sun-java6-jdk sun-java6-jre
apt-get install tomcat5.5
apt-get install lame</pre>
<p>Next, I stopped Tomcat before changing the Tomcat configuration and installing the Subsonic web application.</p>
<pre>/etc/init.d/tomcat5.5 stop</pre>
<p>Next, I disabled the Tomcat security stuff. It&#8217;s required for Subsonic to work. You could do this by editing the file directly (/etc/init.d/tomcat5.5), but I use Sed so that I can automate the installation process in a script.</p>
<pre>cd /etc/init.d/
mv tomcat5.5 tomcat5.5.bak
sed "s/TOMCAT5_SECURITY=yes/TOMCAT5_SECURITY=no/" tomcat5.5.bak > tomcat5.5
chmod +x tomcat5.5
rm tomcat5.5.bak</pre>
<p>Next, I downloaded, decompressed, and installed the subsonic application.</p>
<pre>cd /tmp/
wget http://superb-east.dl.sourceforge.net/sourceforge/subsonic/subsonic-3.6-war.zip
unzip subsonic-3.6-war.zip -d subsonic
mv subsonic/subsonic.war /var/lib/tomcat5.5/webapps/</pre>
<p>Subsonic expects certain directories to exist. The following creates those directories and sets the permissions.</p>
<pre>mkdir /var/subsonic
mkdir /var/subsonic/playlists
mkdir /var/subsonic/transcode
chown -R tomcat55:nogroup /var/subsonic</pre>
<p>Subsonic uses Lame to transcode/compress mp3s for streaming. The next two lines make Lame available to Subsonic.</p>
<pre>cd /var/subsonic/transcode
ln -s /usr/bin/lame lame</pre>
<p>Now we can start Tomcat again.</p>
<pre>/etc/init.d/tomcat5.5 start</pre>
<p>I always like to clean up after my installs. This removes the files we downloaded and no longer need any more.</p>
<pre>rm -R /tmp/subsonic*</pre>
<p>Subsonic should now be running and available at <a href="http://localhost:8180/subsonic/">http://localhost:8180/subsonic/</a>. The port might vary depending on the installation of Tomcat. Log in. You can change the password by clicking on &#8220;Settings&#8221; and then &#8220;Users&#8221; and then selecting the admin account.</p>
<p>Next, I configured LDAP authentication. It was as simple as clicking on &#8220;Settings&#8221; and then &#8220;Advanced&#8221; and then &#8220;Enable LDAP authentication.&#8221; I then filled in the following:</p>
<ul>
<li>LDAP URL: ldap://athos.lund:389/dc=lund</li>
<li>LDAP search filter: (uid={0})</li>
</ul>
<p>I left the &#8220;LDAP manager DN&#8221; and &#8220;Password&#8221; blank. I checked &#8220;Automatically create users in Subsonic&#8221; so that any user in LDAP can automatically log into Subsonic.</p>
<p>If you would like to make Subsonic available on port 80 like most web applications instead of port 8180, check out my post on <a href="http://blog.lundscape.com/2009/05/configure-a-reverse-proxy-with-apache/">Reverse Proxies</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.lundscape.com/2009/05/install-subsonic-on-ubuntu-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
