home *** CD-ROM | disk | FTP | other *** search
/ Avalon - 3D Objects & Resources / Avalon.iso / macutils / compress / ziputils / macgzip0 / mac_docs / lloydwoo.dsf < prev    next >
Text File  |  1995-01-01  |  9KB  |  204 lines

  1. ====================================================================
  2. Received: by hpl.lut.ac.uk (15.11/SMI-4.1) id AA15854;
  3.           Fri, 28 Jan 94 23:29:45 gmt
  4. Message-Id: <9401282329.AA15854@hpl.lut.ac.uk>
  5. From: Lloyd Wood <L.H.Wood@lut.ac.uk>
  6. Subject: A real-life use of MacGzip for Mac users!
  7. To: macspd@ivo.cps.unizar.es
  8. Date: Fri, 28 Jan 94 23:29:44 GMT
  9. X-Mailer: ELM [version 2.3 PL0 (LUT)]
  10.  
  11. (C) L.H.Wood <L.H.Wood@lut.ac.uk>. All rights reserved.
  12. Comments and corrections welcome.
  13.  
  14. First release. There must be some glaring errors here...
  15.  
  16.  
  17. USING src.doc.ic.ac.uk (146.169.3.7) AS YOUR MAC ARCHIVE SITE
  18.  
  19. A guide to European/UK Mac users wanting to get the most out of
  20. a local Mac software archive mirror.
  21.  
  22. US Mac users should look first to wuarchive.wustl.edu as the primary
  23. mirror of both info-mac and umich.
  24.  
  25.  
  26. src.doc.ic.ac.uk is a large ftp site based at Imperial College
  27. in London, England. It mirrors two of the important Mac sites -
  28. umich and sumex, or info-mac, and it's updated frequently.
  29.  
  30. Since src.doc allows up to 300 simultaneous users, it would be a
  31. good idea to use it as your local Mac mirror, especially if you're
  32. in the UK. However, a few eccentricities of the site in comparison
  33. with usual Mac archives means that some extra thought is needed in
  34. getting files to a Mac. Here's what I've learned. This information
  35. is applicable to many other sites which have 'smart' ftp daemons, so
  36. it will be useful to know even if you never use src.doc.
  37.  
  38. Login as usual:
  39. ftp> name: anonymous
  40. ftp> password: name@site 
  41.  
  42. Putting the email address in your password is just the usual courtesy
  43. that lets an archive's maintainers know who is using it.
  44. (You can contact src.doc's maintainers at wizards@doc.ic.ac.uk)
  45. Look at the readmes at the top level of the archive for
  46. up-to-date information on how to retrieve files.
  47.  
  48. The Mac archives of interest are as directories in packages:
  49. /packages/info-mac -
  50.    a mirror of the info-mac archives at sumex-aim.stanford.edu
  51. /packages/umich -
  52.    a mirror of the umich archives at mac.archive.umich.edu
  53. and under those you'll find the familiar directory structures
  54. you know and love^H^H^H^Hloathe^H^H^H^H^H^Hadmire for their logical
  55. structure, making searching for the file you want immediately
  56. obvious if you already happen to have that file's pathname in full.
  57.  
  58. However, you'll be surprised when you come to look at a file -
  59. instead of the usual .hqx endings, you will see .hqx.gz
  60. instead.
  61.  
  62. The .gz indicates a gzipped file. Gzip is a fairly new unix-originated
  63. compression system from the GNU Foundation. It's aimed at replacing
  64. the popular unix 'compress' format. [Gzip can also be indicated by
  65. .z, although this caused confusion, as other filetypes use the same
  66. indication. Not to be confused with .Z, which indicates unix compress
  67. files.]
  68.  
  69. To save space on their hard drives, src.doc automatically compresses
  70. each of the .hqx files after a while. As this compression is
  71. being done on unix boxes, the files are compressed into gzip, rather
  72. than being debinhexed and converted to Macbinary as you might expect.
  73. It's simply easier for them to do - and as a side-effect it ensures
  74. that all files are compressed, even lone Mac files that have been
  75. binhexed directly without using a Mac compression package.
  76.  
  77. This has a number of ramifications, though, that affect the way
  78. you get files from src.doc.ic.ac.uk.
  79.  
  80. You have two choices here when retrieving files:
  81.  
  82.  
  83. 1) Get src.doc to give you the expanded, ungzipped form
  84. of the file. Normally, you do this by requesting not the filename
  85. you are shown, but that filename without the .gz suffix.
  86.  
  87. So, if to download an upgrade to AutoDoubler from src.doc, when it
  88. is on info-mac as:
  89. info-mac/cmp/autodoubler-203-updt.hqx.gz
  90. you would type:
  91. ftp> get /packages/info-mac/cmp/autodoubler-203-updt.hqx
  92.  
  93. IF YOU USE FETCH, where you normally just double-click on a file,
  94. you must command-click on the highlighted file(s) so that nothing is
  95. highlighted. Pressing 'Get File...' button will then give you a dialog
  96. asking for the filename. Type in the filename, but without the .gz suffix.
  97.  
  98. [It's annoying that you can't simply copy the filename from the list,
  99. and paste it into the Get File dialog, at least with Fetch 2.1.1.
  100. Just deleting the .gz suffix would be easier than remembering long
  101. filenames with randomly-place-ddashes-likethis-1.0.sit.hqx]
  102.  
  103. Using ftp or Fetch, this gets you a binhex file, which is decoded as
  104. normal to give you a Mac archive. You should be thinking 'What an
  105. awkward way to use an archive!' And you're right. Try logging in to
  106. src.doc again, but this time with a plus as the first letter of your
  107. password (i.e +name@site). You will see that all of the .gz suffixes
  108. have vanished, as that plus tells src.doc to hide them. You can then use
  109. src.doc like any other Mac archive site, pointing and clicking
  110. as normal in Fetch, and that extra compression/translation stage is
  111. completely hidden from you and from your ftp tools.
  112.  
  113. However, that gzipping means extra compression - which means less time
  114. to get the file you want to you. What if you grabbed the smaller
  115. gzipped file as it is, and then decompressed it at your end? This brings
  116. us to method 2).
  117.  
  118.  
  119. 2) Get the gzipped file as you would any other, and un-gzip it
  120. on your unix box or back at your Mac. A gzipped binhex file is much
  121. smaller than the original binhex.
  122.  
  123. This requires that you transfer the file in BINARY mode, which is selected
  124. by:
  125. ftp> bin
  126. or, if you use Fetch, by clicking on the Binary radio-button.
  127.  
  128. Un-gzipping locally requires that you have received the file successfully
  129. in binary mode - if you can't un-gzip the file correctly, it's likely that
  130. you haven't got a reliable binary path between src.doc and your machine.
  131. If you can't transfer files reliably in binary mode, stick to logging
  132. in with + at the start of your password. 
  133.  
  134. If you are bringing the file to a unix box, you can un-gzip it there -
  135. talk to your systems manager to see if the gzip software you require is
  136. present. You'll then have a binhex file to copy to a Mac.
  137.  
  138. Alternatively, you can un-gzip the file on your Mac. This requires MacGzip
  139. 0.2, a port of unix gzip 1.2.4, which you'll find in the compression
  140. folders of the mac archives - e.g. info-mac/cmp/macgzip-02.cpt.hqx
  141.  
  142. Once MacGzip has un-gzipped the file, you'll have a binhex (.hqx) file
  143. ready for debinhexing. Depending on the debinhexer you use, you may
  144. need to change the filetype to 'TEXT' (this is done by MacGzip when
  145. 'ascii' menu item is selected; simply open MacGzip, set the menu to
  146. ascii and quit, this will be remembered in MacGzip preferences) so that
  147. your debinhexing utility can see it in its Open dialog. (Compact Pro
  148. requires this; Stuffit Lite does not.)
  149.  
  150. Note that MacGzip has the following peculiarities:
  151. a. Gzipped files, should be of type 'Gzip'. You can set this with Fetch,
  152. or by using ResEdit or a file utility like FileTyper 4.1.
  153. If you set the creator to 'Gzip' as well, you will see MacGzip's
  154. icon (a tiny g in a small page) for the file.
  155. b. MacGzip will only see and open files with suffixes matching the
  156. suffix in its preferences dialog and ".gz", ".z", ".Z", ".taz", ".tgz",
  157. "-gz", "-z" or "_z". The best option is to simply delete the suffix
  158. preference and leave it blank, so that you can see all files with
  159. standard suffixes.
  160. c. MacGzip expands the files if they are opened with MacGzip closed. If
  161. You haven't set the 'Quit when done' preference, you must ensure that
  162. 'uncompress' is selected in 'gzip' menu.
  163. (this is true for older versions of MacGzip. In 0.3b you can open
  164. files at any time. -but not while MacGzip is processing a file- )
  165.  
  166. IF YOU USE FETCH, it's a good idea to tell it that gzipped files
  167. must be fetched in binary mode, so that it can automatically select
  168. it without you having to remember to set binary mode explicitly each
  169. time.
  170.  
  171. To do this, use the 'Suffix Mapping...' option under Fetch's
  172. 'Customize' menu, setting type and creator to 'Gzip' as described
  173. in a. above, so that MacGzip can see the files that Fetch creates.
  174.  
  175. Then set the 'Post-Processing...' option on the same menu to
  176. get Fetch to run MacGzip automatically for you, so that pointing
  177. and clicking in Fetch gives you a recognizable .hqx file.
  178. [If you figure out how to get Fetch 2.1.1 to un-gzip and *then*
  179. debinhex an archive automatically, let me know! Debinhexing is
  180. is MacGzip's 'Things to Do' list, so this may soon be automatic.]
  181.  
  182. To get a non-gzipped file to be gzipped before it is sent to
  183. you, so that it spends less time in transit to your modem,
  184. command-click on the highlighted file(s) so that nothing is
  185. highlighted. The 'Get File...' button will then ask for a filename.
  186. Select this, and enter the filename, with an extra .gz suffix.
  187. If you've set Suffix Mapping and Post-Processing correctly,
  188. Fetch will have the file un-gzipped for you automatically once it
  189. has been completely downloaded.
  190.  
  191.  
  192. A little thought, and smashing the keyboard because I couldn't
  193. get into US archives, even on weekends, became a thing of the past.
  194. I wonder how long it will be before I can't get into src.doc either?
  195.  
  196. END.
  197.  
  198.  -- L.
  199. _____________________________________________________________________________
  200. L.H.Wood@lut.ac.uk    Got a Mac? Got a screensaver? Read the Screensaver FAQ!
  201.  
  202. ====================================================================
  203. This document was -slightly- modified by SPDsoft...
  204.