Squeezebox Setup

Adding an iTunes server

To serve itunes we need to install mt-daapd. Again this isn’t part of the main repository, so first we need to enable the EPEL repository.

[root@tranquilpc ~]# rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm

We definately dont want this repository on by default – so edit /etc/yum.repos.d/epel.repo and change the enabled flag to 0 on the epel section:

[epel]
name=Extra Packages for Enterprise Linux 5 – $basearch
#baseurl=http://download.fedoraproject.org/pub/epel/5/$basearch
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-5&arch=$basearch
failovermethod=priority
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL

Next we need to get the key:

[root@tranquilpc yum.repos.d]# rpm --import http://download.fedora.redhat.com/pub/epel/RPM-GPG-KEY-EPEL

Next we can install mt-daapd – we use the enablerepo flag to toggle the repo on for this one install:

[root@tranquilpc yum.repos.d]# yum --enablerepo=epel install mt-daapd
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* epel: http://www.mirrorservice.org
* base: mirror.sov.uk.goscomb.net
* updates: mirror.sov.uk.goscomb.net
* addons: mirror.sov.uk.goscomb.net
* extras: mirror.sov.uk.goscomb.net
epel | 2.1 kB 00:00
primary.sqlite.bz2 | 2.4 MB 00:02
squeezecenter-release | 951 B 00:00
base | 1.1 kB 00:00
updates | 951 B 00:00
addons | 951 B 00:00
extras | 1.1 kB 00:00
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package mt-daapd.i386 1:0.2.4.2-3.el5 set to be updated
--> Processing Dependency: fedora-usermgmt for package: mt-daapd
--> Processing Dependency: libvorbis.so.0 for package: mt-daapd
--> Processing Dependency: libogg.so.0 for package: mt-daapd
--> Processing Dependency: libid3tag.so.0 for package: mt-daapd
--> Running transaction check
---> Package libid3tag.i386 0:0.15.1b-5.el5 set to be updated
---> Package fedora-usermgmt.noarch 0:0.8.91-1.el5 set to be updated
--> Processing Dependency: fedora-usermgmt-core = 0.8.91-1.el5 for package: fedora-usermgmt
--> Processing Dependency: setup(fedora-usermgmt) for package: fedora-usermgmt
--> Processing Dependency: instance(fedora-usermgmt) for package: fedora-usermgmt
---> Package libogg.i386 2:1.1.3-3.el5 set to be updated
---> Package libvorbis.i386 1:1.1.2-3.el5_1.2 set to be updated
--> Running transaction check
---> Package fedora-usermgmt-core.noarch 0:0.8.91-1.el5 set to be updated
---> Package fedora-usermgmt-shadow-utils.noarch 0:0.8.91-1.el5 set to be updated
---> Package fedora-usermgmt-default-fedora-setup.noarch 0:0.8.91-1.el5 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

=======================================================================
Package Arch Version Repository Size
=======================================================================
Installing:
mt-daapd i386 1:0.2.4.2-3.el5 epel 131 k
Installing for dependencies:
fedora-usermgmt noarch 0.8.91-1.el5 epel 6.6 k
fedora-usermgmt-core noarch 0.8.91-1.el5 epel 7.6 k
fedora-usermgmt-default-fedora-setup noarch 0.8.91-1.el5 epel 6.6 k
fedora-usermgmt-shadow-utils noarch 0.8.91-1.el5 epel 7.4 k
libid3tag i386 0.15.1b-5.el5 epel 45 k
libogg i386 2:1.1.3-3.el5 base 19 k
libvorbis i386 1:1.1.2-3.el5_1.2 base 194 k

Transaction Summary
=========================================================================================================================================================================
Install 8 Package(s)
Update 0 Package(s)
Remove 0 Package(s)

Total download size: 416 k

Is this ok [y/N]: y

Dont wory about the dependancies being installed – they won’t cause any issue. Next we need to edit the config file – /etc/mt-daapd.conf. You should change this line:

admin_pw        mt-daapd

To set the password to something else. You should also change the path to the music:

mp3_dir         /mnt/mp3

Which is /home/samba/Music for me. Finally you can change the servername line to change how the server is displayed in itunes.

servername      TranquilPC

Next there is a known issue with mt-daapd – it depends on the avahi service, but the default out of the box config starts them in the wrong order. The easiest way to fix this is to edit the /etc/init.d/mt-daapd file and change the chkconfig line to:

# chkconfig: - 99 15

Making that number larger than the avahi number (which is 98) will allow it to start correctly. To pick this config up we need to remove and add the service from chkconfig:

[root@tranquilpc ~]# chkconfig --del mt-daapd
[root@tranquilpc ~]# chkconfig --add mt-daapd

Finally we enable and start the service:

[root@tranquilpc etc]# chkconfig mt-daapd on
[root@tranquilpc etc]# service mt-daapd start
Starting DAAP server: [ OK ]

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at WordPress.com.

%d bloggers like this: