Wednesday, August 04, 2004

Digital Audio Access Protocol : I am studying the protocol for iTunes using the following site. I couldn't find the technical documents from Apple's site, but I knew that iTunes finds the server using Rendezvous and the server is implemented using HTTP simply.
http://tapjam.net/daap/

http://daap.sourceforge.net/
mt-daapd : I have installed the DAAP server into KURO-BOX to refer iTunes Server for Linux and KURO-BOX Users BBS as follows.
Howl : http://www.porchdogsoft.com/products/howl/

>tar xvfz howl-0.9.6.tar.gz
>cd howl-0.9.6/
>./configure
>make
>make install

libid3tag : http://www.underbit.com/products/mad/
>apt-get install zlib zlib-devel
>tar xvfz libid3tag-0.15.1b.tar.gz
>cd libid3tag-0.15.1b/
>./configure
>make
>make install

mt-daapd : http://mt-daapd.sourceforge.net/
>apt-get install gdbm gdbm-devel
>tar xvfz mt-daapd-0.2.0.tar.gz
>cd mt-daapd-0.2.0/
>./configure
>make
>make install
>ldconfig
>cp contrib/mt-daapd.conf /etc
>mkdir /mnt/mp3
>mt-daapd
>tail /var/log/messages
mt-daapd[19741]: Starting rendezvous daemon
mt-daapd[19741]: Could not open songs database (/var/cache/mt-daapd/songs.gdb)
mt-daapd[19741]: Aborting
mt-daapd[19742]: Rendezvous pipe closed... Exiting
mt-daapd[19742]: Aborting
>killall mt-daapd
>mkdir /var/cache/mt-daapd
>mt-daapd
>tail /var/log/messages
mt-daapd[19748]: Starting rendezvous daemon
mt-daapd[19748]: Starting signal handler
mt-daapd[19748]: Loading playlists
mt-daapd[19748]: Initializing database
mt-daapd[19752]: Starting mp3 scan
mt-daapd[19769]: Starting web server from /usr/share/mt-daapd on port 3689
mt-daapd[19769]: Registering rendezvous names
mt-daapd[19769]: Scanned 0 songs in 0 seconds
>cp contrib/mt-daapd /etc/init.d/
>vi /etc/init.d/mt-daapd
start() {
echo -n $"Starting DAAP server: "
#set the full path to the installed mt-daapd
daemon /usr/local/sbin/mt-daapd
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/mt-daapd
}
stop() {
echo -n $"Shutting down DAAP server: "
#use killproc instead of killall
#killall -INT mt-daapd
killproc mt-daapd
RETVAL=$?

echo
[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/mt-daapd
}
>/etc/init.d/mt-daapd restat
Shutting down DAAP server: [ OK ]
Starting DAAP server: [ OK ]
>chkconfig --level 345 mt-daapd on
>chkconfig --list
mt-daapd 0:off 1:off 2:off 3:on 4:on 5:on 6:off

Comments: Post a Comment

<< Home

This page is powered by Blogger. Isn't yours?