DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2007-09-13 10:23:20

cybermike
Member
Registered: 2007-09-09
Posts: 18

CH3SNAS - iTunes Server refresh

Does the iTunes Server of the CH3SNAS automatically refresh the contents of the directory (like the uPNP Server) or do i manually have to push the refresh button every time i add new songs?

Michael

Offline

 

#2 2007-09-15 17:42:10

jbirney
Member
Registered: 2007-05-31
Posts: 28

Re: CH3SNAS - iTunes Server refresh

No idea but i dumped the build in itunes server for Firefly on my DNS-323 which does update its music files automaticly (you can set the refresh rate).

Last edited by jbirney (2007-09-15 17:42:35)

Offline

 

#3 2007-09-15 20:03:18

cybermike
Member
Registered: 2007-09-09
Posts: 18

Re: CH3SNAS - iTunes Server refresh

Well, first i was not sure if i should fun_plug my CH3SNAS because of my low Linux knowledge but now i decided to give it a try. Everything workes fine now, i run TwonkyMedia instead of the built in UPnP Server and i was also able to install FIREFLY :-)

This device really rocks :-)

But so far i have no idea how to autostart FIREFLY, where exactly should i put this code in?

Code:

#!/bin/sh
if [ -f /mnt/HD_a2/lnx_bin/mt-daapd ]
then
  export PATH=/mnt/HD_a2/lnx_bin:$PATH
  export LD_LIBRARY_PATH=/mnt/HD_a2/lnx_bin/lib
  /mnt/HD_a2/lnx_bin/mt-daapd -c /mnt/HD_a2/lnx_bin/mt-daapd.conf
fi

Into the fun_plug? My fun_plug currently ends with calling the TwonkyMedia Server, that works fine:

Code:

#!/bin/sh

VOL1=/mnt/HD_a2
VOL2=/mnt/HD_b2

...
all the standard fun_plug code here
...

# twonkymedia upnp server
/mnt/HD_a2/starttwonky.sh

Where should i put the code in to start FIREFLY? Anything important to know?

Thanks for Your patience :-)

Michael

Offline

 

#4 2007-09-18 14:09:39

jbirney
Member
Registered: 2007-05-31
Posts: 28

Re: CH3SNAS - iTunes Server refresh

Micheal,

yes put that in your fun-plug and reboot the NAS to see it take effect. Here is mine which I modified from Fronz version:

Code:

#
# fun_plug = enables telnet, twonkey and firefly music server
#


VOL1=/mnt/HD_a2
VOL2=/mnt/HD_b2
FUNPLUGTAR=${VOL1}/fun_plug.tar
FUNPLUGDIR=${VOL1}/fun_plug.d
ETCDIR=${FUNPLUGDIR}/etc
BINDIR=${FUNPLUGDIR}/bin
LOGDIR=${FUNPLUGDIR}/log
LOGFILE=${LOGDIR}/fun_plug.log
PATH=${BINDIR}:${PATH}

export VOL1
export VOL2
export FUNPLUGDIR
export ETCDIR
export BINDIR
export LOGDIR
export LOGFILE
export PATH

echo "**** fun_plug script for DNS-323 ****" >${LOGFILE}
date >>${LOGFILE}
#
# Start the telnet deamon
#
/mnt/HD_a2/fun_plug.d/start/telnetd.sh 1>>${LOGFILE} 2>&1


#
# Start the firefly music deamon
#
if [ -f /mnt/HD_a2/lnx_bin/mt-daapd ]
then
  echo "Starting FireFly Music Server..." >>${LOGFILE}
  export PATH=/mnt/HD_a2/lnx_bin:$PATH
  export LD_LIBRARY_PATH=/mnt/HD_a2/lnx_bin/lib
  /mnt/HD_a2/lnx_bin/mt-daapd -c /mnt/HD_a2/lnx_bin/mt-daapd.conf 1>>${LOGFILE} 2>&1
fi

#
# Start the twonkymedia Meida Server
#
echo "Starting Twonky Media Server..." >>${LOGFILE}
/mnt/HD_a2/starttwonky.sh 1>>${LOGFILE} 2>&1

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB