Sunday, 21 September 2008

How to install Subsonic Ubuntu Hardy

Subsonic is a free, web-based media streamer, providing access to your entire music collection wherever you are. Use it to share your music with friends, or to listen to your own music while at work. You can stream to multiple players simultaneously, for instance to one player in your kitchen and another in your living room.



Subsonic is designed to handle very large music collections (many thousand albums). It uses a combination of directory structure and tag parsing to organize the music. Although optimized for MP3 streaming, it works for any audio or video format that can stream over HTTP (for instance AAC and OGG). By using transcoder plug-ins, Subsonic supports on-the-fly conversion and streaming of virtually any audio format, including WMA, FLAC, APE, Musepack, WavPack, Shorten and OptimFROG.

Step1: Dependencies

sudo apt-get install tomcat5.5

cd; wget http://prdownloads.sourceforge.net/subsonic/subsonic-3.4.zip

Step2: Modify Init For Tomcat & Start

sudo nano /etc/init.d/tomcat5.5

Change TOMCAT_SECURITY=yes to TOMCAT_SECURITY=no

*If anyone has a better solution for this please post.

sudo /etc/init.d/tomcat5.5 start

Step3: Unzip/Install Subsonic

unzip subsonic-3.4.zip

mv subsonic.war /var/lib/tomcat5.5/webapps/

mkdir /var/subsonic

chown tomcat55:nogroup /var/subsonic

Step4: Test

firefox http://127.0.0.1:8180/subsonic

4 comments:

Kimme Utsi said...

I get an error in the first line when I try to install tomcat5.5 already....

Setting up tomcat5.5 (5.5.25-5ubuntu1.1) ...
Adding system user `tomcat55' (UID 116) ...
Adding new user `tomcat55' (UID 116) with group `nogroup' ...
Not creating home directory `/usr/share/tomcat5.5'.
* no JDK found - please set JAVA_HOME
invoke-rc.d: initscript tomcat5.5, action "start" failed.
dpkg: error processing tomcat5.5 (--configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
tomcat5.5
E: Sub-process /usr/bin/dpkg returned an error code (1)

oker1 said...

install a jdk package (openjdk-jdk or sun-java5-jdk etc.)

CR insider said...

followed install guide without a problem but when i launch in firefox , i get an error...

HTTP Status 404 -

type Status report

message

description The requested resource () is not available.
Apache Tomcat/5.5

i assume i have a problem with apache or a permission problem ?

dk said...

You forgot to mention that you have to restart the tomcat server in order for it to work. I was looking at the last comment, and had the same issue and a restart of tomcat was all it needed to work :)