Koozali.org formerly Contribs.org

Legacy Forums => Experienced User Forum => Topic started by: gerald001 on May 01, 2005, 02:39:07 PM

Title: [Announce] iTunes Server for SME with rpms
Post by: gerald001 on May 01, 2005, 02:39:07 PM
to the community,
having read the request of serving mp3 files in the Forum I want to share the rpms you might want to use for having the SME as a music server in your local network serving not only mp3 files but as well m4a files and others for the iTunes application as additional iTunes Server.
  In the downloads section in the category iTunes of http://schwarzecker.homelinux.net/index.php you might find the correlated files together with some additional rpms for en/decoding. Please report any improovements as I suppose there are still some pitfalls for the setup.
In the FAQ section there is a small howto as pdf for further reading.
http://schwarzecker.homelinux.net/index.php?option=com_content&task=view&id=29&Itemid=25

have a nice day end enjoy  
Gerald
Title: [Announce] iTunes Server for SME with rpms
Post by: Franco on May 01, 2005, 09:41:17 PM
Gerald,
Can you please post your how-to here at contribs? Your server just couldn't handle the requests and it's refusing connections now.

Regards,
Title: [Announce] iTunes Server for SME with rpms
Post by: gerald001 on May 01, 2005, 10:12:11 PM
Quote from: "stuntshell"
Gerald,
Can you please post your how-to here at contribs? Your server just couldn't handle the requests and it's refusing connections now.

Regards,



Linux iTunes Server with SME, the very basic howto

Having a huge library of music you might want to share with your relatives or collegues you may deploy the iTunes Server for Linux on SME. It works on SME Server 6.x and above. Versions of SME 5.x have not been tested. So basically you need the daapd and the mDNSProxyResponderPosix binary to serve within your network the songs.

Let me state that this is not intended to do illegal music sharing across the internet; this setup is only intended to allow you to share your music with your family on the local network.

You will need to download a few files to your Linux server first. You might get the rpms from http://schwarzecker.homelinux.net/index.php in the section downloads category iTunes or compile the applications for yourself. Together with the basics like mt-daapd there are additional libraries to enable serving AAC encoded m4a files as well and some others. Files in .m4a format are actually the audio layer of (non-video) MPEG 4 movies. M4A is slated to become the new standard for audio file compression. This format is also known as Apple Lossless, Apple Lossless Encoder, or ALE. It is a new codec designed to provide lossless encoding in less storage space.

download the files together with some encoders and helper programs

faac-18.10.2004-1.noarch.rpm
flac-1.1.2-1.noarch.rpm
howl-0.9.10-1.noarch.rpm
lame-3.96.1-1.noarch.rpm
libid3tag-0.15.1b-1.noarch.rpm
libmad-0.15.1b-1.noarch.rpm
libogg-1.1-1.noarch.rpm
libvorbis-1.0.1-1.noarch.rpm
mDNSResponder-66.3-1.noarch.rpm
mpeg4ip-1.2-1.noarch.rpm
mt-daapd-0.2.1.1-1.noarch.rpm
speex-1.1.7-1.noarch.rpm


 Once everything is installed with  rpm -ivh *.rpm create a music folder like /mnt/mp3/ ( mkdir -p /mnt/mp3)  and copy some music there. Next you will need to run the multicast DNS advertiser from Apple with the following line as root user:
at the prompt use :
 mDNSProxyResponderPosix my_Personal_IP_adress myPersonal_SMEServer_Name "Music Jukebox" _daap._tcp. 3689 &
where

my_Personal_IP_adress       is the IPaddress of your SME Server i.e: 192.168.0.1
myPersonal_SMEServer_Name    is the name of your SME Server ie: smeserver
"Music Jukebox"              is the name of your Music Jukebox you want to advertise to iTunes.

Once that is running, you can edit the /etc/daapd.conf file to match your needs with directory, server name, and share name. Start the daapd daemon by typing this as root:
    /etc/rc.d/init.d/mt-daapd start

 Once that is complete, you can open iTunes and it should pop up as a shared music library.


Please report bugs to me as I just checked the function with iTunes on Mac as I do not have Winxx Clients.(http://schwarzecker.homelinux.net/downloads/itunes.jpg)

regards Gerald
Title: [Announce] iTunes Server for SME with rpms
Post by: Franco on May 01, 2005, 11:40:51 PM
Thanks Gerald,
When I try downloading the files, it tries to resolve to your private IP 192.168.2.22.

:(
Title: [Announce] iTunes Server for SME with rpms
Post by: gerald001 on May 01, 2005, 11:57:31 PM
Quote from: "stuntshell"
Thanks Gerald,
When I try downloading the files, it tries to resolve to your private IP 192.168.2.22.

:(


High Stunt,
I am deeply sorrow, I did some misconfiguration after having changed the server and it should work right now.
regards
Gerald
Title: [Announce] iTunes Server for SME with rpms
Post by: Franco on May 02, 2005, 01:08:49 AM
Thanks Gerald, Got them all and I'm about to try!! I also got your email.
I'm about to install it in few minutes.
I noticed you have mambo running and also have a .rpm for it. If I install it, can I only have it as the main site or can I make it on a different ibay?

Regards,
Title: [Announce] iTunes Server for SME with rpms
Post by: daze on May 02, 2005, 08:31:52 AM
Hi Gerald,
Will these contribs allow me to update i-Pods with the music from the SME Server? or is it streaming over the LAN only?

TIA
Title: [Announce] iTunes Server for SME with rpms
Post by: gerald001 on May 03, 2005, 08:25:09 PM
Quote from: "stuntshell"
Thanks Gerald, Got them all and I'm about to try!! I also got your email.
I'm about to install it in few minutes.
I noticed you have mambo running and also have a .rpm for it. If I install it, can I only have it as the main site or can I make it on a different ibay?

Regards,


High Stunt,
I just made this mambo rpm in a quick way to have a solution for a CMS. Of course you may have it on a different ibay, but then do not use that rpm I prepared, but the tarball instead with the latest patches from  Mamboforge (http://mamboforge.net/.)

regards
Gerald
Title: [Announce] iTunes Server for SME with rpms
Post by: Franco on May 04, 2005, 03:15:59 AM
Thank you Gerald!
iTunes works awesome for both Macs and Windows, and thank you for replying about Mambo!

Regards,

Franco
Title: [Announce] iTunes Server for SME with rpms
Post by: gerald001 on May 04, 2005, 10:15:39 PM
Quote from: "daze"
Hi Gerald,
Will these contribs allow me to update i-Pods with the music from the SME Server? or is it streaming over the LAN only?

TIA

Hi Daze,
this is streaming over the LAN only.
There might be some application you search for at www.dotpod.net or other locations. mt-daapd is for streaming the music over LAN only as far as I understood.You may place your mp3 songs for your relatives/friends with either SMB or atalk or NFS depending on the clients OS to the SME Server to share the music over lan and reduce local storage place and the computers may use itunes as a client. that's it.
receive my kindest regards
Gerald
Title: [Announce] iTunes Server for SME with rpms
Post by: daze on May 06, 2005, 05:42:42 AM
Thanks Gerald.
Title: Output of mDNSProxyResponderPosix shows errors
Post by: sqlerror on May 09, 2005, 09:12:38 PM
Hi Gerald,

Thanks for the howto, I am able to browse the music files stored on my SME server. Amazing how fast the thousands of mp3 files get listed allmost instantly in I-tunes.
Still the output of the commnand
Code: [Select]
DNSProxyResponderPosix my_Personal_IP_adress myPersonal_SMEServer_Name "Music Jukebox" _daap._tcp. 3689 & somehow troubles me. I get this:
Code: [Select]
[root@meterkast etc]# mDNSProxyResponderPosix 192.168.8.1 meterkast "Music Jukebox" _daap._tcp. 3689 &

mDNSResponder: ERROR: startQuery - -65545 (keeping question in list for retransmission
mDNSResponder: hndlLookupSOA: startInternalQuery returned error -65545 (breaking
 until next periodic retransmission)
Made Service Records for Music\032Jukebox._daap._tcp.local.
Service Music\032Jukebox._daap._tcp.local. now registered and active
Despite the errors returned, i can browse the shared music files and play them without any problem. Can you explain the cause and possible solution to there error messages?

Besides these errrors, there's a typo in the howto:
The daapd.conf file does not exist. I wanted to change the default directory /mnt/mp3 to the directory of my netjuke mp3 store. Getting my files shared, took some searching. Since the default music directory is /mnt/mp3 a file search on "/mnt/mp3" gave me /etc/mt-daapd.conf instead of /etc/daapd.conf.

How can I start mt-daapd automatically on startup?

Cheers,
Sqlerror
Title: Re: Output of mDNSProxyResponderPosix shows errors
Post by: gerald001 on May 11, 2005, 06:40:23 PM
Quote from: "sqlerror"
Hi Gerald,

Thanks for the howto, I am able to browse the music files stored on my SME server. Amazing how fast the thousands of mp3 files get listed allmost instantly in I-tunes.
Still the output of the commnand
Code: [Select]
DNSProxyResponderPosix my_Personal_IP_adress myPersonal_SMEServer_Name "Music Jukebox" _daap._tcp. 3689 & somehow troubles me. I get this:
Code: [Select]
[root@meterkast etc]# mDNSProxyResponderPosix 192.168.8.1 meterkast "Music Jukebox" _daap._tcp. 3689 &

mDNSResponder: ERROR: startQuery - -65545 (keeping question in list for retransmission
mDNSResponder: hndlLookupSOA: startInternalQuery returned error -65545 (breaking
 until next periodic retransmission)
Made Service Records for Music\032Jukebox._daap._tcp.local.
Service Music\032Jukebox._daap._tcp.local. now registered and active
Despite the errors returned, i can browse the shared music files and play them without any problem. Can you explain the cause and possible solution to there error messages?

High Sqlerror,
actually I am far beyond knowledge about this though I searched the net about this specific message, might be I am searching wrong :-( So it somehow looks like it has to do something with the DNS resolving, so if anybody could give a hint and clear this up this would be welcomed. The same type of message shows up on my SME Server as well.

Quote from: "sqlerror"

Besides these errrors, there's a typo in the howto:
The daapd.conf file does not exist. I wanted to change the default directory /mnt/mp3 to the directory of my netjuke mp3 store. Getting my files shared, took some searching. Since the default music directory is /mnt/mp3 a file search on "/mnt/mp3" gave me /etc/mt-daapd.conf instead of /etc/daapd.conf.

How can I start mt-daapd automatically on startup?


Thanks for your comment and excuse misusing your time for searching for the file. I corrected the typo and your question is I suppose already answered by Nathan and Charlie, Have a look at :
http://forums.contribs.org/index.php?topic=5333.msg18826#msg18826

Quote from: "sqlerror"


Cheers,
Sqlerror

regards Gerald
Title: [Announce] iTunes Server for SME with rpms
Post by: jreijsenbach on August 23, 2005, 01:47:21 PM
Hello,

Just installed itunes server and it works! However the server is mentioned twice. (named gateway) Anyone any idea how to fix this?

Thanks,

Jan

(http://www.vaandelstraat.nl/itunsdouble.JPG)
Title: [Announce] iTunes Server for SME with rpms
Post by: jreijsenbach on August 23, 2005, 01:52:43 PM
Fixed itself.... weird. Well it fixed itself now. Maybe I was a bit quick to think something was wrong.

It now seems to work as it should.

Regards,

Jan
Title: [Announce] iTunes Server for SME with rpms
Post by: jreijsenbach on August 23, 2005, 08:56:29 PM
Question, I believe a itunes server has a webbased management panel somewhere? If so, how do I reach it?

Thankst for any and all help :)

Jan
Title: [Announce] iTunes Server for SME with rpms
Post by: sqlerror on August 26, 2005, 06:44:52 PM
Quote from: "jreijsenbach"
Question, I believe a itunes server has a webbased management panel somewhere? If so, how do I reach it?

Thankst for any and all help :)

Jan

Try: http://yourserver:3689/
Title: [Announce] iTunes Server for SME with rpms
Post by: jreijsenbach on August 26, 2005, 06:54:34 PM
Thanks! That worked. Why didn't I figure that out, must have been the wall I kept smashing my head against. :p

Still another silly question. Where can I find out more about maybe making this itunes server available to users on the internet. (password protected ofcourse) It'd be really nice if i can stream to my workplace.

regards and thanks,

Jan
Title: [Announce] iTunes Server for SME with rpms
Post by: Franco on August 26, 2005, 07:52:18 PM
Nice!
Is there a default password?
Title: [Announce] iTunes Server for SME with rpms
Post by: jreijsenbach on August 26, 2005, 08:00:42 PM
You're jumping the gun a little... and no not a default password. Sorry  ;-)

As I understand it the only way to do this is to ssh tunnel into the server and the use itunes as if its on the local net. Not really what I was looking for and I haven't yet found out how to implement it on an SME.

Still .... it would be nice if it worked.

Jan
Title: itunes updated to Version 5.0
Post by: gerald001 on September 12, 2005, 11:11:32 PM
High Jan,
iTunes upgrade to Version 5.0 now needs mt-daapd 0.2.2. There is newer libvorbis 1.1.1 and howl 1.0.0 available as well at http://schwarzecker.homelinux.net/index.php to be found in category iTunes.
have a nice day end enjoy music
Gerald

(http://schwarzecker.homelinux.net/downloads/itunes-v5.0.png)
Title: [Announce] iTunes Server for SME with rpms
Post by: jreijsenbach on September 14, 2005, 10:13:38 PM
Hello Gerald,

Well I did a clean install of itunes and am very happy it all seems to work perfectly. Had some weird problem with the rpm's ... they just would not install.

I solved it by renaming all rpm's with simpler names like 1.rpm 2.rpm etc. It then worked like a charm. Maybe it has something to do with the backslashes in the name.

Anyway, thanks for all the info.

kind regards,

Jan
Title: [Announce] iTunes Server for SME with rpms
Post by: Franco on September 14, 2005, 10:21:08 PM
Aha!
I thought it was only me!
I believe it has to do with the portal application he's using (mambo).

Cheers.
Title: [Announce] iTunes Server for SME with rpms
Post by: stephen on September 15, 2005, 01:36:39 PM
Gerald,

Excellent work and great instructions. Works great.

Just a general question - I copied over my mp3's as root . I have tried to give my mp3 a rating but cannot as they are greyed out - under the iTunes File menu the option to give a rating is greyed out.

I tried changing the file permissions of my mp3 from 755 to 777 but it did not make them writeable to give a rating. Do you or anyone have any suggestions.

Cheers
Title: [Announce] iTunes Server for SME with rpms
Post by: gizmo911uk on October 28, 2005, 05:21:14 AM
Hi,

Just installed itunes server on my SME server, i tried to create a startup script by doing the following:

Code: [Select]
#/sbin/e-smith/config set mt-daapd service Initscriptorder 95 status enabled

Code: [Select]
#ln -s /etc/rc.d/init.d/e-smith-service /etc/rc.d/rc7.d/S95mt-daapd

this doesn't work, i still have to manual start mt-daapd, so how do i undo what i did above.

Also how do i create a proper startup script because at the minute i have to manual command the following to startup the itunes server:

Code: [Select]
#/etc/rc.d/init.d/mt-daapd start

and the following for the songs to show up:

Code: [Select]
#mDNSProxyResponderPosix 192.168.0.2 smeserver "Music Jukebox" _daap._tcp. 3689 &

many thanks in advance
Title: New version of mt-daapd
Post by: p1ur on April 16, 2006, 08:50:26 PM
Hi'

I've noticed, that there is a new version of mt-daapd
http://www.mt-daapd.org/
The new version supports iTunes iTunes 6.0.4
It can be downloaded from Sourgeforge
http://sourceforge.net/project/showfiles.php?group_id=98211

There is a fc3 and a fc4 version. I suspect it is Fedora core 3 / 4
But i am running Sme 6.01, so I guess I cannot install either.

What do I do?

P1ur
Title: [Announce] iTunes Server for SME with rpms
Post by: k0r54 on January 31, 2007, 06:25:45 PM
Hey,

The tutorial is brill but I am having a problem.

I have followed everything on the tutorial and I am seeing the folder in the shared in itunes but when i click on it it says "Loading SME Music" (the name i called it). But after 1 or 2 seconds it goes back to music library which again is empty.

This is happening on both my computers, Running version 7.0.2.16 of itunes and update rpms of all the required download.

I have enabled the log for the mt-daapd but its not showing any errors

Updated: - I come back to it this morning and now it is not showing up in itunes even though mt-daapd is still running.

Any ideas

Thanks
k0r54
Title: [Announce] iTunes Server for SME with rpms
Post by: Ness on February 19, 2007, 03:17:26 PM
Hi Gerald

I have downloaded the latest iTunes RPMs from your site (a couple earlier releases - I didn't use those!).

I created an ibay to put them in and extracted them there. then I followed your guide by creating a director for the MP3 files at /mnt/mp3.

My problem is that (similar to above problem), although I *can* see my server in the iTunes (version 7) list as a SHARED Library, and even though I have a number of MP3 files in the /mnt/mp3 directory, none of them show up in the view when I click the Shared Llibrary for my SME Server (which is an 6.0.1 system).

I suspect that the mt-daapd file is not compatible with iTunes 7.0+ - what do you think?

Or is there another reason why I can't see the MP3s in the directory?

I did notice that looking at the admin web configuration page on port 3689, that "Rendezvous" was "Stopped", and clicking the link "Start MDN Service" does nothing at all, while the header does show "Configuration Updated".

Willing to work out my problems if you can help!

Thank you Gerald!

Chris
Title: [Announce] iTunes Server for SME with rpms
Post by: Ness on March 09, 2007, 03:04:10 PM
Hello

I have read that iTunes 7 no longer supports daap and so its probable that we'll have to downgrade to iTunes 6.0.4 to get SME server to be our server.

http://digg.com/apple/iTunes_7_users_wants_to_downgrade_to_iTunes_6

Any thoughts?

Chris
Title: [Announce] iTunes Server for SME with rpms
Post by: Ness on March 22, 2007, 10:11:11 PM
Ho hum..

Maybe this is one for which there is no answer.

Ends

Chris