Buffalo LinkStation
Now there is a much easier way to install mt-daapd on either the PPC or MIPSel LinkStation. LinkStationWiki (http://linkstationwiki.net/) has self-installing packages that will do all the below (and more) automatically.
Getting Started
untar the Kurobox binaries need for compiling etc. You can download them from RevoGear (http://www.revogear.com). I put them in /mnt/opt/binary and made a symlink of /opt to /mnt/opt so as not to fill up the root partition too much. The packages you need are all those related to programming:
autoconf automake binutils bison flex g++ gcc gdb glibc libstdc m4 make textutils
deflate (gzip -d file.tar.gz) and then untar from / (tar xvf /opt/binary file.tar) each one
Now you should be able to compile, install, etc...
Get zlib from its project site (http://freshmeat.net/redir/zlib/12352/url_tgz/zlib-1.2.1.tar.gz).
untar in /opt and change to /opt/zlib-1.2.1 then do:
# ./configure # make # sudo make install
}}}
Get libid3tag from its project site (http://sourceforge.net/project/showfiles.php?group_id=12349).
untar in /opt and change to /opt/libid3tag-0.15b then do:
# ./configure # make # sudo make install
You can use a nightly tarball of mt-daapd which works well with the Soundbridge from the nightlies node (http://nightlies.mt-daapd.org/).
untar in /opt or /usr/local/src or wherever and change to /opt/mt-daapd-cvs-200XXXXX
# ./configure --enable-browse --enable-query --with-id3tag=/usr/local # make # sudo make install
cd to /opt/mt-daapd-cvs-20041010/contrib and edit mt-daapd.conf to customize to your mp3 directory. I also change db_dir to /opt/mt- daapd since /var is a ramdisk. I copied the admin-root directory from /usr/local/share/mt-daapd to /opt/mt-daapd and changed web-root in mt-daapd.conf. You can do the same with the playlist file. copy mt-daapd.conf to /etc.
- This applies only to the current stable release, 0.2.1.1. Developer tarballs now require SQLite.
Example Startup Script
The startup script was borrowed from the nslu2 folks:
mt-daapd startup script in /etc/init.d (with a link in /etc/rc.d/rc2.d):
# !/bin/sh
# make sure our shared libraries are in the path.
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
if [ -n "`pidof mt-daapd`" ] ; then
killall mt-daapd 2>/dev/null
fi
sleep 2 /usr/local/sbin/mt-daapd 2>/dev/null
Wrap-up
This will get it up and running, once it's scanned the library the web interface should be up at:
http://buffalo:3689
If you do
# ps -aux | grep mt-daapd
you should see about six instances of the daemon.
If there are problems check the log in /var/log/mt-daapd.log, if you enabled it in mt-daapd.conf (run in debug mode 5 or 9 to get more verbose output).
... the Media Server.