This the way I have gone installing Madsonic.
Been lookin over and over again. and finaly it is up and running.
This is how I did.
apt-get install openjdk-6-jre
apt-get install openjdk-7-jre
apt-get install lame
wget
http://madsonic.org/download/20130718_m ... eta4XE.rpm
install 20130718_madsonic-5.0.3560.beta4XE.rpm madsonic
cd /var/Madsonic
mkdir transcode
cd transcode
ln -s /usr/bin/lame lame
Create a new .sh file somewhere. I created it in /home/film/madsonic_launcher.sh.
Copy the following, save.
#!/bin/bash
PID=""
function get_pid {
PID=`ps ax |grep java |grep Madsonic |cut -d " " -f 1`
}
function stop {
get_pid
if [ -z $PID ]; then
echo "Madsonic is not running."
exit 1
else
echo -n "Stopping Madsonic.."
kill $PID
sleep 1
echo ".. Done."
fi
}
function start {
get_pid
if [ -z $PID ]; then
echo "Starting Madsonic.."
/var/Madsonic/usr/share/madsonic/madsonic.sh
get_pid
echo "Done. PID=$PID"
else
echo "Subsonic is already running, PID=$PID"
fi
}
function restart {
echo "Restarting Madsonic.."
get_pid
if [ -z $PID ]; then
start
else
stop
start
fi
}
function status {
get_pid
if [ -z $PID ]; then
echo "Madsonic is not running."
exit 1
else
echo "Madsonic is running, PID=$PID"
fi
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
restart
;;
status)
status
;;
*)
echo "Usage: $0 {start|stop|restart|status}"
esac
chmod +x /var/Madsonic/usr/share/madsonic/madsonic.sh
chmod +x /home/film/madsonic_launcher.sh
/home/film/madsonic_launcher.sh start
And then I got it up and running
seems I had the files in the wrong directory.
Now All I have to do is find the files on the nas but it seems it is missing.
thank U skopo for Your time
/best regards swee