|
MusicMagicMixer MediaServer.MusicMagicMixer HistoryHide minor edits - Show changes to output April 11, 2007, at 06:47 PM
by -
Deleted lines 6-11:
(:toggle div=box222 init=hide:) >>id=box222 border='1px solid #999' padding=5px bgcolor=#fed<< The text in this section can be hidden/shown >><< April 11, 2007, at 06:41 PM
by -
Changed line 8 from:
(:toggle div=box222:) to:
(:toggle div=box222 init=hide:) April 11, 2007, at 06:34 PM
by -
Changed lines 8-9 from:
(:toggle div=box2:) >>id=box2 border='1px solid #999' padding=5px bgcolor=#fed<< to:
(:toggle div=box222:) >>id=box222 border='1px solid #999' padding=5px bgcolor=#fed<< April 11, 2007, at 06:33 PM
by -
Added lines 6-7:
April 11, 2007, at 06:30 PM
by -
Changed lines 6-10 from:
to:
(:toggle div=box2:) >>id=box2 border='1px solid #999' padding=5px bgcolor=#fed<< The text in this section can be hidden/shown >><< April 11, 2007, at 06:12 PM
by -
Added lines 1-83:
I've installed Music Magic Mixer from [[MusicIp|http://musicip.com/mixer/index.jsp]]. Basically, it indexes your music collection based on some audio algorithm so that it is 'fingerprinted.' After going through your MP3 collection, MusicIP can create mixes, custom playlists based on a song that you select. To get it started I found the following start-up script that I put as /etc/init.d/musicmagicserver [@ #!/bin/sh # # $Id$ # # MusicMagicServer startup script # This file should be placed in /etc/init.d. # # A cruel distortion of the work of Mattias Holmlund and Dan Scully # # Updated By: Russell Craig set -e PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin DESC="Predixis MusicMagic Server" NAME=MusicMagicServer # insert the desired user name as MMMUSER MMMUSER=blader export MUSICHOME=/opt/MusicMagicMixer DAEMON=$MUSICHOME/$NAME SCRIPTNAME=/etc/init.d/musicmagicserver # Read config file if it is present. if [ -r /etc/default/$NAME ] then . /etc/default/$NAME fi # # Function that starts the daemon/service. # d_start() { su - $MMMUSER -c $DAEMON" start & >/dev/null" } # Function that stops the daemon/service. # d_stop() { su - $MMMUSER -c $DAEMON" stop & >/dev/null" } case "$1" in start) echo -n "Starting $DESC" d_start echo "." ;; stop) echo -n "Stopping $DESC" d_stop echo "." ;; *) # echo "Usage: $SCRIPTNAME {start|stop}" >&2 echo "Usage: $SCRIPTNAME {start|stop}" >&2 exit 1 ;; esac exit 0 @] To register this as a startup script in ubuntu you can do [@% sudo update-rc.d musicmagicserver defaults@] which is a Debian utility to install scripts. The option “defaults” puts a link to start musicmagicserver in run levels 2, 3, 4 and 5. (and puts a link to stop musicmagicserver into 0, 1 and 6.) If you ever would like to remove the links, you can use [@% sudo update-rc.d musicmagicserver remove@] |