mt-daapd on Arch Linux

I’ve first discovered mt-daapd on an Ubuntu OS. Installation was really easy, same for configuration and I was able to stream my music to my Rhythmbox player. It was fine. But recently, I changed the OS and the server is now running Arch Linux. So I tried to reconfigure mt-daapd.

On Arch, mt-daapd can be found in the Arch User Repository (AUR). First we need to install it using yaourt:

yaourt -S mt-daapd

If everything goes right, mt-daapd should now be installed. I then created /etc/avahi/services/mt-daapd.service (maybe not needed, haven’t tried without):

<?xml version="1.0" standalone='no'?><!--*-nxml-*-->
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">

<service-group>

<name replace-wildcards="yes">%h</name>

<service>
<type>_daap._tcp</type>
<port>3689</port>
<txt-record>txtvers=1 iTShVersion=131073 Version=196610</txt-record>
</service>

<service>
<type>_rsp._tcp</type>
<port>3689</port>
<txt-record>txtvers=1 iTShVersion=131073 Version=196610</txt-record>
</service>

</service-group>

Restart avahi daemon:

systemctl restart avahi-daemon

Edit mt-daapd configuration file:

# $Id: mt-daapd.conf.templ 1660 2007-09-12 13:08:04Z rpedde $
#
# This is the mt-daapd config file.

<...>

#
# admin_pw (required)
#
# This is the password to the administrative pages
#

admin_pw = mt-daapd

<...>

#
# mp3_dir (required)
#
# Location of the mp3 files to share. Note that because the
# files are stored in the database by inode, these must be
# in the same physical filesystem.
#

mp3_dir = /path/to/music

#
# servername (required)
#
# This is both the name of the server as advertised
# via rendezvous, and the name of the database
# exported via DAAP. Also know as "What shows up in iTunes".
#

servername = MyServerName

<...>

Finally start mt-daapd:

systemctl start mt-daapd

And enable auto start:

systemctl enable mt-daapd

Web interface is now available at http://yourServerNameOrIp:3689.