Install and Configure iTunes Server On TonidoPlug

Support for your TonidoPlug
Tuxedo
Tonido Team
Tonido Team
Posts: 1458
Joined: Wed Jan 28, 2009 11:30 pm

Install and Configure iTunes Server On TonidoPlug

Postby Tuxedo » Wed Sep 02, 2009 10:23 pm

This guide is a contribution by user scott_mebust
Check this thread for more details. http://www.tonido.com/forum/viewtopic.php?f=32&t=256

Hah. That's like assuming I kept notes, which I didn't. Basically, just install mt-daapd like:

Code: Select all

root@ginger:/# apt-get install mt-daapd
root@ginger:/# cd /etc
root@ginger:/etc# cp mt-daapd.conf mt-daapd.conf.orig

Then edit /etc/mt-daapd.conf. I made the following changes:

Code: Select all

root@ginger:/etc# diff mt-daapd.conf.orig  mt-daapd.conf
50c50
< admin_pw = mt-daapd
---
> admin_pw = ************
84c84
< mp3_dir = /home/media/music
---
> mp3_dir = /media/usb0/Music
207c207
< #logfile = /var/log/mt-daapd.log
---
> logfile = /var/log/mt-daapd.log
226c226
< #rescan_interval = 300
---
> rescan_interval = 86400
237c237
< # always_scan = 0
---
> always_scan = 1

Obviously, the password above was actually set to something. You can make your own decisions about the various options.

Examine the mt-daapd log (mine is /var/log/mt-daapd.log, as designated in the config file above). You might see some errors, etc.

I checked the runlevel (turned out to be 2, see below), and then checked to make sure that there was a link in runlevel 2 (/etc/rc2.d) for the daemon/server (/etc/init.d/mt-daapd). Like this:

Code: Select all

root@ginger:/etc# runlevel
N 2
root@ginger:/etc# ls -l /etc/init.d/mt-daapd
-rwxr-xr-x 1 root root 1777 Mar 10 04:23 /etc/init.d/mt-daapd
root@ginger:/etc# ls -l /etc/rc2.d/*mt-daapd
lrwxrwxrwx 1 root root 18 Aug 30 13:45 /etc/rc2.d/S25mt-daapd -> ../init.d/mt-daapd

You can then either stop/restart the daemon, if necessary, like this:

Code: Select all

root@ginger:/etc/init.d# /etc/init.d/mt-daapd restart

or reboot if you'd like. At some point, I think my database got corrupted so I stopped the server, deleted the database, and restarted:

Code: Select all

root@ginger:/var/cache/mt-daapd# /etc/init.d/mt-daapd stop
root@ginger:/var/cache/mt-daapd# rm /var/cache/mt-daapd/songs3.db
root@ginger:/var/cache/mt-daapd# /etc/init.d/mt-daapd start

Or something to that effect. I did install the command line for sqlite3 but I don't think that had anything to do with it.

Code: Select all

apt-get install sqlite3

If someone else has a clean system, perhaps they can try these steps and correct, refine, or elaborate on them.

After mucking around like this, I checked the logs (see previous post) and then checked with an iTunes client (under Windows). The server showed up in the share as Firefly... as set in the mt-daapd configuration file.

Good luck!

Return to “TonidoPlug Support”

Who is online

Users browsing this forum: No registered users and 10 guests