Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I need some help defining apple extensions on my linux box. I am running os8.6 on my mac and have no problem playing mp3 files that are nativley on my mac - however - when mounting a volume via netatalk from my linux machine, my mac doesn't know what to do with files that are .mp3 type. I looked in the Apple.System (or what ever it is) file and sure enough there is nothing for type MP3 - does anyone have any insight to how to add (I have tried my best guessing, and I still can't get anywhere) the correct extensions for .mp3 types??
I don't know how much you know about the innerworkings of the Mac filesystem, but each file is maintained as two forks, a resource fork and a data fork. The data fork is a regular file, as we've all come to know and love. The resource fork is sort of like 'meta-data'; it contains additional information about the file itself, such as what Icon it needs to have, what program opens the file, ect.
When netatalk puts a file on the Linux system, it writes to this resrouce fork, and transfers all the information from the source machine (the mac on 8.6). So, if the Mac 8.6 machine knows that the file is an mp3, and you copy it to the netatalk server using chooser, the resource fork should get updated in netatalk and it should appear on the netatalk server as a valid, openable mp3 file.
My guess for your problem here is that the mp3 files on the linux system weren't copied there using netatalk, and were probably copied there using some other method (Samba, FTP, HTTP, etc.). This means that these files don't have any resource fork information, because these other transfer methods don't support resource forks, only AFP/netatalk do..
Blah, Blah, Blah... Okay, here's how to fix your problem.
Take all the mp3 files and move them off the netatalk server and onto your Mac. Then create the resource fork in OS 8.6 by getting the mp3 files to open with your mp3 player using Control Panels, File Exchange. Finally, copy all your mp3s back to the netatalk server, and the resource fork should get transferred, and the mp3s should appear properly on the linux server.
actually, I just started using a mac...I was a PC person, but not a windows freak...I have been a solid Unix/linux user for the past 5 years or so...basically I'm back to being a newbie when it comes to macs, so you are right about not knowing much about MAC file system..
Ok..My mac has no problems seeing and understanding that an MP3 on the mac is an mp3.. the problem is reading mp3 files on the Linux machine..so do I understand correctly, that by moving an MP3 file, already on my mac, to the shared volume on the linux machine will produce the correct extension record and then all other MP3s in that shared volume should be readable as MP3s??
I transfered a good mp3 file from the mac to the shared volume...as soon as the file transferred its extension was lost..."This file is used by the system software and can not be opened"....
Transfer of the file back from the shared volume to the mac results in the same...
What version of netatalk are you running? When you open a mp3 file from your hard drive and you mentioned that it worked natively, what application opened the mp3 file? Can you post a copy of your entire AppleVolume.system file?
Well, I tried to do the same here on my box but was unsuccessful. The problem with my setup is that I have quick time installed. It looks like quick time took over the .mp3 extension. Whenever I open up mp3's from my netatalk server, it defaults to opening with quick time. I just rebuilt my netatalk box and am running the new version 1.6.3. My AppleVolumes.system has a like like:
.mp3 "MP3" "MP3" MP3 Sound Movie Player audio/x-mp3
I commented out the line and removed the resource forks and the mac still recognized the files as mp3's and opened them with quick time. Did you have to make any changes on your mac so that mp3's would open with winamp instead of quick time or soemthing else? What Mac OS are you running? Open up the control panel and go under file exchange or the extensions panel. What are the entries like for mp3 files?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.