Home › Forums › OS X Server and Client Discussion › Questions and Answers › An iTunes Server anyone?
- This topic has 9 replies, 3 voices, and was last updated 21 years, 4 months ago by
roadshowpro.
-
AuthorPosts
-
November 28, 2003 at 8:43 am #356983
roadshowpro
ParticipantHow difficult would it be to get some sort of iTunes server process setup and running? I’m running out of space for a large collection that’s on my laptop. And I have everything from my laptop plus some stuff i wasn’t listening to on a drive on my server. (It’s up and running again finally) At one point I had a user set to log in automatically and launch iTunes… I really don’t like that, my server isn’t in a high traffic area, but still.
So what could be done other than plain afp, to share these to my network? Can it be tied into the iTunes Rendezvous sharing? How difficult would it be to configure? I’m still learning my way around the command line without hurting myself…
November 29, 2003 at 4:37 am #356984ichnisan
ParticipantI don’t know if you want to just play stuff from a server and listen to it on your client, or if you want to just have the files hosted on a server but..
If you just want to play stuff on the server and listen on the client, I bet you could get this working
http://developer.apple.com/darwin/projects/streaming/
That is a scaled down open source version of quicktime streaming server.
Just download, compile, install, copy some music to the server, create some playlists, good to go.
I havent tried it so I cannot attest to whether or not it works, or how easy it is, or even help much at all, but, give it a shot.
November 29, 2003 at 7:31 am #356986roadshowpro
ParticipantI found some of what I was looking for at [url]http://www.deleet.de/projekte/daap/daapd/[/url]. It has everything you need to complile and run a daap daemon, and according to the instructions there it will show up as a shared server in your iTunes.app. I am in the process of getting this running over the weekend (as soon as I find my XCode CD, no gcc…). So if I can find it, I’ll try to get it running this weekend, and let you know how it goes…
Also on the site [url]http://www.deleet.de/projekte/daap/[/url] are a couple other things that may be of interest. Especially of interest may be a couple of applications that are capable of picking and choosing songs to download from an iTunes share. I had no luck getting to my iTunes shared list with the Cocoa app that’s there, but there’s also a Perl script and a Java app. (or 2)
More later… [size=9:b2e78efadd]where did I put that damn CD………..[/size:b2e78efadd]
November 30, 2003 at 8:25 am #356992roadshowpro
ParticipantSo… I got the Dev Tools installed… That was the easy part… Following the instructions on [url]http://www.deleet.de/projekte/daap/daapd[/url] I have all the pieces on my computer and ready to go….
So far I have installed daaplib and libhttpd-persistent. I currently cannot get zlib to compile, and I’m stuck there. Without zlib compiled, trying to compile libid3tag won’t work. And without these, I can’t get daapd to install…
In searching the zlib website, all it says is that zlib is included in OSX. There’s a binary there for installing it on OS9, but no help for OSX. If it is installed in OSX, I can’t find it, and neither can the compiler when I’m trying to compile libid3tag. So that’s where I am tonite…
I’m going to keep at it because I want to learn.,… Or I’m dumb… Something like that…
For anyone keeping up, the instructions say to run ./configure; make test
[code:1:ec6fe0eda8]HolmesIV:/WebApps/daap/zlib-1.1.4 duelld$ ./configure; make test
Checking for gcc…
Building static library libz.a version 1.1.4 with gcc.
Checking for unistd.h… No.
Checking for errno.h… No.
Checking for mmap support… No.
gcc -O3 -DNO_ERRNO_H -c -o example.o example.c
example.c:8:19: stdio.h: No such file or directory
example.c:12:22: string.h: No such file or directory
example.c:13:22: stdlib.h: No such file or directory
example.c: In function `test_compress’:
example.c:69: error: `stderr’ undeclared (first use in this function)
example.c:69: error: (Each undeclared identifier is reported only once
example.c:69: error: for each function it appears in.)
example.c: In function `test_gzio’:
example.c:99: error: `NULL’ undeclared (first use in this function)
example.c:100: error: `stderr’ undeclared (first use in this function)
example.c: In function `test_deflate’:
example.c:177: error: `stderr’ undeclared (first use in this function)
example.c: In function `test_inflate’:
example.c:220: error: `stderr’ undeclared (first use in this function)
example.c: In function `test_large_deflate’:
example.c:255: error: `stderr’ undeclared (first use in this function)
example.c: In function `test_large_inflate’:
example.c:315: error: `stderr’ undeclared (first use in this function)
example.c: In function `test_flush’:
example.c:352: error: `stderr’ undeclared (first use in this function)
example.c: In function `test_sync’:
example.c:394: error: `stderr’ undeclared (first use in this function)
example.c: In function `test_dict_deflate’:
example.c:433: error: `stderr’ undeclared (first use in this function)
example.c: In function `test_dict_inflate’:
example.c:475: error: `stderr’ undeclared (first use in this function)
example.c: In function `main’:
example.c:519: error: `stderr’ undeclared (first use in this function)
make: *** [example.o] Error 1[/code:1:ec6fe0eda8]December 2, 2003 at 12:18 am #356997roadshowpro
ParticipantSO, that long string of errors occurs when you don’t have all of the DEv Tools package installed….. Out comes the Xcode CD, and suddenly most of my problems are gone. I have had success so far. I am currently playing music off of my server, without iTunes running there.
I am having two problems.
1. I am getting a ‘ -bash: rehash: command not found’ when I try to rehash
2. I can’t get Apple’s mDNSResponderPosix to compile. I’m running it through Network Beacon (the product formerly known as Rendezvous Beacon). This defeats the purpose of running a headless server, but it does tell me that I’m on the right path…
Other than that, AAC files and Playlists aren’t supported… yet… The mDNSResponder thing is annoying, but the rehash not found thing concerns me a bit. If I switch shells, I can rehash… but that’s not helping me. DO I need to go to the extreme of reinstalling bash? It’s there in fink, but I’m not sure that I want to… Thoughts?
::::EDIT:::::
I was wrong. All of my .m4a files show up fine, and I’m listening to one right now… However, the tool that parses id3 tags doesn’t know what to do with them, so there is no id3 information. These files are just listed by theif filenames. There are also some .mp3 files scattered in with them. Don’t know why they aren’t showing up properly, but I will invesigate…::::UPDATE:::::5:30 pm PST
Two airport users connected. daapd spikes all the way to 14% of processor use when one of the two users starts playing a new song. Server total throughput is about 34KB/s. WIth one user, it peaks at 10% and 23KB/s. And those are total throughputs, no active afp users at the moment..December 2, 2003 at 5:19 am #357000roadshowpro
ParticipantBut a man rehash in bash brings up a man page for it… Well, it brings up the builtin commands man page. I guess what I’m confused about then is why I have to specify the path to daapd. Or am i hoping for too much? I thought that rehashing it would allow me to run it from any location in the system. Especially since daapd has to be run from the directory that you want it to search.
Now I need to get mDNS to run, and roll it all up into a script… It’s a good little setup, and I can see where it’s headed. Now the programmer needs to add a few more things (playlists) and I need more time to figure out the existing options (cache file, rescans)…
December 2, 2003 at 10:22 am #357002roadshowpro
ParticipantSo I would guarantee that you are right. It’s in the wrong place. But where does it want to be. I’m not quite adjusted to the proper locations for files so the shell can find them. Too many years of just putting it where I felt like it, and it just worked.
I did manage to really upset everything earlier. 2 airport clients listening to music and a 20GB afp transfer to the same server. I was getting brief pauses between songs. Like a CD, about two seconds.
On the other hand, I did get it setup to create a log. daapd normally will dump all of it’s activity to the terminal window. Running [code:1:ea9b299f6c]daapd >> /path/to/file &[/code:1:ea9b299f6c] will dump to a log file, but closing the terminal window kills daapd.
I am currently running it as [code:1:ea9b299f6c]screen daapd >> /path/to/file[/code:1:ea9b299f6c] then detaching the screen (‘ctl-a’ then ‘d’)
-
AuthorPosts
- You must be logged in to reply to this topic.
Comments are closed