Compiled programs for Power PC CPU based Synology Products

From SynologyWiki

Jump to: navigation, search

Contents

Firefly/Mt-daapd (did it on DS207)

The purpose of the firefly project is built the best server software to serve digital music to the Roku/Pinnacle Soundbridge and iTunes; to be able to serve the widest variety of digital music content over the widest range of devices. More information about is can be found on Firefly's homepage

Remark

Got this information from a very kind person (I'm def. not a specialist!). On my DS207 it worked pretty fine. That's the reason why I want to share this information with you!

Install instructions

1) Activate telnet on the DS:
Remark: see also the IPKG/telneting Synology forum under modding.
You can activate telnet on the DS by 'firmware upgrade' to the enabletelnet.pat synology has on
http://www.synology.com/enu/support/download.php#Patches
Remark: If you're searching for an automatic telnet client take a look at http://automatic-telnet-client.soft-ware.net/download.asp

2) Get IPKG onto the DS:
Remark: see also the IPKG/telneting Synology forum under modding
Go to http://www.nslu2-linux.org/wiki/DS101/DS101BootStrap
I followed "Option 1: Download the bootstrap script" and used "ds101-bootstrap_1.0-4_powerpc.xsh" (DS207 = Power PC based).

3) Get mt-daapd on the DS:
Remark: See the mediastreaming mods forum.
You find the actual mt-daapd package on
http://nightlies.fireflymediaserver.org/version.php
former link http://nightlies.mt-daapd.org/
mt-daapd_svn-1696-1ds101g_powerpc.ipk is the package I'm using successfully on my DS207.

4) Install mt-daapd on the DS:
with the telnet access do:
ipkg install libid3tag libogg ivorbis-tools flac bash alac-decoder sqlite (or one at the time, i.e. ipkg install libid3tag , ipkg install libogg etc.)
and then:
ipkg install /path/to/mt-daapd_svn-1696-1ds101g_powerpc.ipk

5) Make Changes to the firefly config file:
To complete this installation, make any necessary changes to the config file in /opt/etc/mt-daapd/mt-daapd.conf
You can also use the web interface but start the server first (see section 7 below) :
http:// ip-address-of-your-ds :3689
User: admin
Password: mt-daapd

6) Change sqlite to sqlite3:
To avoid problems with the smart playlists you should change to sqlite3.
If you want to keep your database, so you have to do a
sqlite /path/to/songs.db .dump | sqlite3 /path/to/songs3.db
Remark: In my installation the songs.db is in /opt/var/mt-daapd
plus change the config to use sqlite3. (see 5)
If you don't want to save your current database entries, then you can just tell firefly to use sqlite3, and it will rebuild a database from scratch.

7) Start firefly on the DS:
Start the daemon by running: /opt/etc/init.d/S60mt-daapd

8) Stop firefly on the DS:
Stop the daemon by running: killall mt-daapd

Usage Tips

To play music over the internet/LAN access the page http:// ip-address-of-your-ds :3689/applet.html You must have Java installed for this to work. Tested with DS106 and Firefox 2 Original thread on the firefly forum.

Known Problems

So far I haven't had problems with firefly (it works very good with Pinnacle Soundbridge M1001), even the last DS firmware upgrade to DSM 2.0-0598 worked fine - no issues so far.

1) Sometimes (when I map my DS207 music share to WINXP M:) I can't access the web interface of firefly. In that case I stop firefly and start it again - then it works again (don't no why). These little script "check_firefly.sh" will help (could also be used in crontab):

#!/bin/ash
# MG
echo "-----------------------------------------------"
echo "Start:" $0
echo "-----------------------------------------------"
date "+%a %d.%m.%y %H:%M:%S"
echo "-----------------------------------------------"

start_firefly="/opt/etc/init.d/S60mt-daapd"
stop_firefly="killall mt-daapd"

  ps | grep [m]t-daapd > /dev/null
  retcode=$?

  if [ $retcode -gt 0 ]
  then
    echo "firefly isn't running - start it: " $start_firefly
    $start_firefly
  else
    echo "firefly is running"
  fi

echo "-----------------------------------------------"
echo "End:" $0
echo "-----------------------------------------------"
exit 0

crontab-example (check every night 00:15 and write the result in the logfile "check_firefly.log"):

#minute	hour	mday	month	wday	who	command
0	0	1	*	*	root	/usr/sbin/ntpdate -b ntp.via.ecp.fr
15	0	*	*	*	root	/bin/ash /volume1/script/firefly/check_firefly.sh >> /volume1/script/logfile/check_firefly.log

2) Sometimes firefly get in troubles with complex smart playlists (Path used) - if that happens just delete the songs.db (songs3.db) in /opt/var/mt-daapd. At the next startup of firefly a new database will be build up. Unfortunately all smart playlists ar deleted then...

Uninstall instructions

1) Stop firefly on the DS:
Stop the daemon by running: killall mt-daapd

2) Uninstall mt-daapd from the DS:
ipkg remove mt-daapd

3) Uninstall libraries from the DS:
ipkg remove libid3tag libogg ivorbis-tools flac bash alac-decoder sqlite -recursive

Installing smartcrl web browser monitoring

Smartcontrol and rrdtool together will allow you to monitor your system memory, swap file, system disk, drive volumes, and other system information all throw your web browser.

  • Download this file to your desktop.
  • Make a folder called monit in the public folder of the Synology box and unrar the file to it.
  • Telnet/SSH in your Synology box and type the following:
    • ipkg install rrdtool
    • ipkg install smartcrl
  • Make a folder called monitor in your Synology box web folder: type: mkdir /volume1/web/monitor
  • Copy the style.css file to the monitor folder, type: cp /volume1/public/monit/style.css /volume1/web/monitor
  • Give appropriate permissions to monitor folder, type: chmod 755 /volume1/web/monitor
  • Copy the monitor script file to /opt/bin type: cp /volume1/public/monit/monitor /opt/bin
  • Now make the monitor file an executable, type: chmod 755 /opt/bin/monitor
  • You need to now edit the crontab file located in /etc type: vi /etc/Crontab
  • Add this line to the file:
*/5 * * * * root sh /opt/bin/monitor update
note : 5 = CONF_UPADTE_TIME / 60
  • Now you need to restart crond, type:
/usr/syno/etc.defaults/rc.d/S04crond.sh stop
/usr/syno/etc.defaults/rc.d/S04crond.sh start
  • You can now delete the monit folder in the public folder, type: rm –r /volume1/public/monit
  • You can now access your system information by typing in: http://YOUR_SYNO/monitor/index.php in your web browser.
    • Be patient it might take a few minutes for the index.php file to be created.
  • A file called monitor.rrd should have been created in /etc this is where the script will save the different values.
Personal tools