O'Reilly Hacks
oreilly.comO'Reilly NetworkSafari BookshelfConferences Sign In/My Account | View Cart   
Book List Learning Lab PDFs O'Reilly Gear Newsletters Press Room Jobs  



Real music sharing with Rendezvous over wireless
Share your music with other wireless users

Contributed by:
Rob Flickenger
[05/06/03 | Discuss (5) | Link to this hack]

iTunes 4 is almost there as a sharing app. Yes, Rendezvous announcements seem to work great. You can stream, very cool. But can you actually allow others to copy the legitimate, self-produced music in your library? Of course not.

If you'd like to allow other Rendezvous users to easily download your music, try this:

$ sudo ln -s ~/Music /Library/WebServer/Documents/Music
Then edit your /etc/httpd/httpd.conf, and change this line:
IndexOptions FancyIndexing
To this:
IndexOptions FancyIndexing NameWidth=*
Make sure your / directory stanza reads something like this:
<Directory />
    Options FollowSymLinks
    AllowOverride None
</Directory>
For good measure, chmod your Music directory:
$ chmod ~/Music 0755
Finally, advertise the link in Rendezvous. Add a resource to your mod_rendezvous_apple stanza:
<IfModule mod_rendezvous_apple.c>
  #RegisterUserSite all-users
  RegisterDefaultSite
  RegisterResource "My Laptop's Music" "/Music/"
</IfModule>
(I also comment out the all-users line, to remove the annoying user name advertisements...)

Then restart apache (under Sharing in System Configuration), and that's it. Your music is now advertised as a Rendezvous share, for all to download. Remember, it's for personal use only.


O'Reilly Home | Privacy Policy

© 2007 O'Reilly Media, Inc.
Website: | Customer Service: | Book issues:

All trademarks and registered trademarks appearing on oreilly.com are the property of their respective owners.