How to get subsonic to work on Synology DS1511+ (10/17/2012)
Posted: Sat Mar 05, 2011 1:32 pm
If you like me and want to manually install subsonic follow the steps below if you want a automatic way try gigon installer
Note: <version> is the version number of the java you downloaded so say if its version 30 replace 30 where u see <version>
Install Java
know you are done with java, its that simple since we have a intel based nas it can run the standard linux version of java.
Install Subsonic
now this part is kinda tricky because i cant stand the telnet edit client. so what i did make make a tmp share on volume1
now on the windows u browse to that share (/volume1/tmp) opened the subsonic.sh in notepad and change on about line 97
From
TO
Note: if the java <version> is less then ten add a 0 before it. example... <version> is 9 so i put 09.
now save the file
Type the next step in the termanel or copy/paste it, its up to you
press CTRL+D to save file (hold done CTRL, and will still holding down CTRL push "D". Then let go of CTRL)
Optional Steps
Transcoding
Must have a "hacked" bootstrap in order to do the the next few steps
If you dont understand any of the parts or it dont work let me no and ill see if i can help u out any
Note: <version> is the version number of the java you downloaded so say if its version 30 replace 30 where u see <version>
Install Java
- Code: Select all
mkdir /usr/java
- Code: Select all
cd /usr/java
- Code: Select all
wget http://javadl.sun.com/webapps/download/AutoDL?BundleId=69465
- Code: Select all
mv jre-7u<version>-linux-i586.tar.gz* jre-7u<version>-linux-i586.tar.gz
- Code: Select all
tar -zx -f jre-7u<version>-linux-i586.tar.gz -C /usr/java
know you are done with java, its that simple since we have a intel based nas it can run the standard linux version of java.
Install Subsonic
- Code: Select all
mkdir /var/subsonic
- Code: Select all
mkdir /var/subsonic/standalone
- Code: Select all
cd /var/subsonic/standalone
- Code: Select all
wget http://superb-dca3.dl.sourceforge.net/project/subsonic/subsonic/4.7/subsonic-4.7-standalone.tar.gz
- Code: Select all
tar -zx -f subsonic-4.7-standalone.tar.gz -C /var/subsonic/standalone
now this part is kinda tricky because i cant stand the telnet edit client. so what i did make make a tmp share on volume1
- Code: Select all
cp /var/subsonic/standalone/subsonic.sh /volume1/tmp
now on the windows u browse to that share (/volume1/tmp) opened the subsonic.sh in notepad and change on about line 97
From
- Code: Select all
JAVA=java
TO
- Code: Select all
JAVA=/usr/java/jre1.7.0_<version>/bin/java
Note: if the java <version> is less then ten add a 0 before it. example... <version> is 9 so i put 09.
now save the file
- Code: Select all
cp /volume1/tmp/subsonic.sh /var/subsonic/standalone
- Code: Select all
chmod 777 /var/subsonic/standalone/subsonic.sh
- Code: Select all
cat > /usr/syno/etc/rc.d/S99Subsonic.sh
Type the next step in the termanel or copy/paste it, its up to you
- Code: Select all
#!/bin/sh
subsonic_start() {
if [ "$(ps |grep java | grep subsonic | grep -v grep)" > /dev/null ]; then
echo "Subsonic already running, use restart instead"
else
echo "Starting subsonic..."
sh /var/subsonic/standalone/subsonic.sh
fi
}
subsonic_stop() {
echo "Stopping subsonic..."
kill -9 $(ps | grep java | grep subsonic | awk '{print $1}')
}
subsonic_restart() {
subsonic_stop
sleep 1
subsonic_start
}
case "$1" in
'start')
subsonic_start
;;
'stop')
subsonic_stop
;;
'restart')
subsonic_restart
;;
*)
subsonic_start
esac
press CTRL+D to save file (hold done CTRL, and will still holding down CTRL push "D". Then let go of CTRL)
- Code: Select all
chmod 777 /usr/syno/etc/rc.d/S99Subsonic.sh
- Code: Select all
reboot
Optional Steps
Transcoding
- Code: Select all
mkdir /var/subsonic/transcode
- Code: Select all
ln -s /usr/syno/bin/ffmpeg /var/subsonic/transcode/ffmpeg
Must have a "hacked" bootstrap in order to do the the next few steps
- Code: Select all
ipkg update
- Code: Select all
ipkg install lame
- Code: Select all
ln -s /opt/bin/lame /var/subsonic/transcode/lame
If you dont understand any of the parts or it dont work let me no and ill see if i can help u out any