Monday, 19 August 2013

Subsonic on openelec

mkdir java
cd java
wget
tar xvzf
ln -s jre1.7.0_21 jre (* make sure this is the correct folder name)
(*make sure java unpacks properly)

cd ~
mkdir subsonic
cd subsonic
mkdir data
mkdir app
cd app
wget
tar xvzf

cd ~/subsonic
nano startsubsonic.sh

#!/bin/sh
export JAVA_HOME=/storage/java/jre; ~/subsonic/app/subsonic.sh --home=/storage/subsonic/data \--pidfile=/var/run/subsonic.pid

(*make sure that this is all on the same line ? may have to edit from main file)

chmod +x startsubsonic.sh

check with ./startsubsonic.sh



cd ~/subsonic/data/transcode/
ln -s /usr/bin/ffmpeg ffmpeg

nano ~/.config/autostart.sh

# cat ~/.config/autostart.sh 
#!/bin/sh

# Subsonic
(
   # sleep 10 sec to be ensure network is started
   
   /storage/subsonic/startsubsonic.sh
)&


chmod +x ~/.config/autostart.sh

nano ~/subsonic/app/subsonic.sh

change max memory to ?256 and change home file