Yeah, I got it working today... I think. There is a caveat that subsonic is running at root... but, I reckon since all of the other services are doing the same, what could possibly go wrong?

Also, I would rather use the openjdk jre, but it wasn't clear to me how to aquire it.
Also, I noticed the question was asked over at
http://openelec.tv/forum/128-addons/621 ... rver-addon as well.
The general idea is to download java, download subsonic, configure the environment a bit. Reboot. Simple.
So, I was hoping openelec was keeping a history of my command line... guess not, so, please bear with my commands. they are from memory and might not be 100% accurate. YMMV, read them and make sure they make sense.
INSTALL JAVA
Go to java.com and find your install of JRE 7. Then, with that URL,
- Code: Select all
mkdir java
wget <java_jre_url>
tar xvzf <downloaded file>
ln -s jre1.7.0_21 jre
Note that the download is going to download to a non-friendly name. That's fine. You can hit tab to autocomplete the file name
INSTALL SUBSONIC
Now, go to subsonic and get the URL for the the Standalone from
http://www.subsonic.org/pages/download.jsp .
- Code: Select all
cd ~
mkdir subsonic
cd subsonic
mkdir data
mkdir app
cd app
wget <subsonic_url>
tar xvzf <subsonic_tar_ball>
Easy, right?
SUBSONIC START
- Code: Select all
cd ~/subsonic
vi startSubsonic.sh
And, make it these contents:
- Code: Select all
#!/bin/sh
export JAVA_HOME=/storage/java/jre
/storage/subsonic/app/subsonic.sh --home=/storage/subsonic/data \
--host=192.168.1.71 --max-memory=512 \
--pidfile=/var/run/subsonic.pid \
--default-music-folder=/storage/music \
--default-podcast-folder=/storage/music/podcast \
--default-playlist-folder=/storage/playlist
Obviously, change it to whatever your system is... I have it bind to my wireless adapter, you can remove that if you want. See ~/subsonic/app/subsonic.sh for docs.
Finally, make it executeable:
- Code: Select all
chmod +x subsonic.sh
Now, lets test it: ./startSubsonic.sh
If everything is working, subsonic will have started. check it at the :4040 address.
Subsonic seems to be confused about ffmpeg, so do this:
- Code: Select all
cd ~/subsonic/data/transcode/
ln -s /usr/bin/ffmpeg ffmpeg
GET SUBSONIC TO START AT BOOT
- Code: Select all
vi ~/.config/autostart.sh
And, insert these contents
- Code: Select all
# cat ~/.config/autostart.sh
#!/bin/sh
# Subsonic
(
# sleep 10 sec to be ensure network is started
usleep 10000000
/storage/subsonic/startSubsonic.sh
)&
and, finally make it executable
- Code: Select all
chmod +x ~/.config/autostart.sh
And, give the system a reboot and 30 seconds for subsonic to come up! You should be in business!