A quick and (very) dirty fix could be the following:

First of all I don't think you need to do anything special to set up
MIP headless, I didn't. To test try starting MIP headless by typing
'MusicMagicServer start' in a terminal. If it's not in you're path,
change to the directory where you have MIP installed and type
'./MusicMagicServer start', restart slimserver and see if that works.
When/if that works go to the next stop.

I'm assuming musicip is in your path so you can start musicmagic by
typing 'MusicMagicServer start' in a terminal. Otherwise you need to
substitute the full path e.g.

/home/diana/MusipIP/MusicMagicServer

for MusicMagicServer below. 

I'm also assuming your username on linux is 'diana' and that when you
manually start musicip you are logged in as diana. Otherwise substitute
as needed below.

1. Type 'gksudo gedit /etc/init.d/slimserver' in a terminal
2. After the line '# Updated By:Dan Sully' add the following lines

USER=diana
PROGRAM=MusicMagicServer
STATUS=`ps -e | grep $PROGRAM | grep -v grep | wc -l | awk '{print
$1}'`

if [ $STATUS -eq 0 ]
then
( sudo -u $USER -H $PROGRAM start & )
sleep 10
else
killall $PROGRAM
sleep 10
( sudo -u $USER -H MusicMagicServer start & )
fi

3. Save the file and try restarting slimserver.

I know it might sound terribly complicated but it isn't. The basic idea
is that you figure out what you would write in a terminal to start MIP
headless. This is then added to the file /etc/init.d/slimserver, which
is the file which starts slimserver. If you run into problems just
reply, and I'll try and walk you through. It's also a bit easier if I
know more about the setup you have.


-- 
bhaagensen
------------------------------------------------------------------------
bhaagensen's Profile: http://forums.slimdevices.com/member.php?userid=7418
View this thread: http://forums.slimdevices.com/showthread.php?t=35443

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/plugins

Reply via email to