LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-08-2004, 05:55 PM   #1
Tired8281
LQ Newbie
 
Registered: May 2004
Location: Victoria, BC, Canada
Distribution: Debian Woody
Posts: 1

Rep: Reputation: 0
Difficulty downloading executable Macintosh files in Linux


Firstly, I'm not even sure if this is the proper forum...I'm not only a Linux newbie, but also a Mac newbie, and this sorta concerns both. I have an ancient Mac that I'm hoping to eventually network with my Linux box, as a second terminal for doing console stuff while my main Linux box does other things. The problem is, I need to download software on my Linux machine, and take it over by floppy to the Mac. I am able to format a 1.4MB floppy in the Mac, and then mount it on Linux with 'mount -t hfs'. I can read the disk, and write to the disk like this. However, when I download a file from the web (I've used Mozilla and Konqueror to try this) and save it to the Mac floppy mounted in Linux, then unmount it, walk it to the Mac and try to access it, it is seen by the Mac, but won't run.

Now, I've done some reading already, and it seems that Mac files have a funky format that has two 'forks' for the file, and apparently, any system but a Mac will mangle one of these forks and render the file unreadable on a Mac. The way people seem to be getting around this, is by posting Mac files in a format with the extension .hqx, which is apparently encoded to text, and then a program on the Mac can decode it back to the original file, thus avoiding the corruption as it transits through another filesystem. Ok, this makes sense to me, but I don't have a program yet on the Mac to convert these binhex files to normal.

I've also read of several utilities for Windows by which you can obtain a Mac file and write it to the Mac floppy 'raw'(I think that's the word), whereby the Mac will be able to read it. Is there any way I can do this in Linux? I've discussed this in Mac forums, and the answers I have gotten are either specific to Windows, or else un-useful, like "Buy a new mac.". Any help would be much appreciated.
 
Old 05-08-2004, 06:23 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
"I've also read of several utilities for Windows by which you can obtain a Mac file and write it to the Mac floppy 'raw'(I think that's the word), whereby the Mac will be able to read it. Is there any way I can do this in Linux? I've discussed this in Mac forums, and the answers I have gotten are either specific to Windows, or else un-useful, like "Buy a new mac.". Any help would be much appreciated."

As a wild guess you might be able to do a "raw" write with the dd command. The dd command will copy a file block by block. So if the Mac file happens to be a block by block image of a floppy then you could use the dd command to create a usable floppy. If the Mac file is not a block by block image of a floppy then dd will simply create a floppy that is unreadable on any operating system. See:
man dd


___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeB....home.page.html

Steve Stites
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Difficulty in downloading dependancies using apt-get Rutnut Linux - Software 5 07-05-2005 04:34 AM
downloading files from linux server sam99 Linux - Software 0 03-10-2004 09:49 AM
What is the extention of Linux executable files. AskMe Linux - Newbie 4 10-22-2003 01:55 PM
Back-up files on a Macintosh OS9.0 to RH 9.0 server automatically JUSTAUSER Linux - Newbie 1 10-21-2003 10:28 AM
Macintosh binhex-encoded files twcinpa Linux - Software 5 08-01-2003 01:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration