home *** CD-ROM | disk | FTP | other *** search
/ Stars of Shareware: DFÜ und Kommunikation / SOS-DFUE.ISO / programm / internet / explorer / binary.xfr < prev    next >
Encoding:
Text File  |  1992-08-06  |  11.6 KB  |  258 lines

  1. Beginner's Guide to Binaries, Version 1.2
  2. -----------------------------------------
  3.  
  4.           HOW TO GET BINARIES VIA NEWS AND E-MAIL
  5.  
  6. (c) Copyright 1990 Brian O'Neill. Permission to distrbute this file freely
  7. is granted, so long as it remains unmodified.
  8.  
  9.    One of the more troubling things to new users is using programs posted to
  10. groups like comp.binaries.ibm.pc. This is in part due to the fact that
  11. different utilties are needed to decode these files into something more
  12. familiar to them. This manual explains how to retrieve binary files posted
  13. to UseNet, and also received by e-mail.
  14.  
  15.    This manual is divided into several sections, each dealing with a
  16. different aspect of what is needed. Here is the basic setup:
  17.  
  18.      I.   Formats and Standards
  19.      II.  Minimum utilities, and how to get them
  20.      III. Using UNIX to do the work
  21.      IV.  Using MS-DOS to do the work
  22.      V.   Handling archived files
  23.      VI.  Downloading files from UNIX to MSDOS
  24.  
  25.    This manual was written with the new user in mind. If any section is
  26. unclear to you, please respond to me via e-mail. Let me know what section,
  27. paragraph, and what it was that was unclear. My address is below:
  28.  
  29.           Internet: oneill@hawk.ulowell.edu
  30.           UUCP: ...!ulowell!oneill
  31.  
  32.               I. FORMATS AND STANDARDS
  33.  
  34.    UseNet, and other networks, user groups, and BBS's, all work on some set
  35. of standards for sharing files between a diverse arangement of systems. For
  36. PC's, the most common standard for files is the archive. This is a binary
  37. file which allows a user to place several files into one, while compressing
  38. them to save space. Several utilities exist for making and extracting files
  39. from archives. The most common are ZOO from Rahul Dhesi, and PKZIP from
  40. PKWare. The ZOO standard has been adopted for use in the UseNet newsgroup
  41. comp.binaries.ibm.pc for the distribution. Some BBS systems use ZIP, and
  42. others use ARC, another format from System Enhancement Associates which is
  43. slowly becoming obsolete, and is generally avoided due to recent litigation
  44. in court (which I will not discuss here). You will need the appropriate
  45. extraction program for the particular format you are dealing with, which
  46. usually can be told by the extension name on the file (.ZOO, .ZIP, or .ARC).
  47.  
  48.    UseNet and e-mail are based on ASCII text. In other words, they are only
  49. able to transmit ASCII files. In order to transmit binary files, they are
  50. transformed into ASCII files first. This is accomplished using a program
  51. called 'uuencode', another fairly common standard. The file can then be
  52. decoded back into binary form using 'uudecode'. These programs are fairly
  53. common among UNIX systems, and are increasingly available for MS-DOS. Once
  54. again, you will need a version of uudecode to properly handle these files.
  55.  
  56.            II. MINIMUM UTILITIES, AND HOW TO GET THEM
  57.  
  58.    You will need some form of uudecode, either UNIX or MS-DOS, to decode the
  59. binaries. If you do not have it for either of these, you must secure a copy
  60. of the source code. If you have FTP access, you can get MS-DOS source code
  61. from wsmr-simtel20.army.mil (File PD1:<MSDOS.STARTER>UUDECODE.PAS). If not,
  62. you will have to get it from someone else.
  63.  
  64.    Also, you need an archive extractor. Small extract-only programs are
  65. available, such as LOOZ by Rahul Dhesi. It will be assumed you can secure
  66. one of these without problem, as with uudecode.
  67.  
  68.    Also available is the CBIP Starter's Kit, which contains BASIC, and DEBUG
  69. source for uudecode, a uuencoded version of LOOZ (ZOO file extractor), and
  70. instructions on how to make use of these files. This is enough to get you
  71. started in dealing with the comp.binaries.ibm.pc newsgroup on UseNet.
  72.  
  73.             III. USING UNIX TO DO THE WORK
  74.  
  75.    UseNet is a network comprising mostly of UNIX-based machines, so
  76. therefor it is quite common to use the system connected to UseNet to do most
  77. of the work, rather than downloading from that system and doing all the work
  78. on a PC. To do this, you will need the following basic utilities:
  79.  
  80.                uudecode
  81.                editor (vi, emacs, etc.)
  82.                cat (not necessary, but useful)
  83.                combine (Also not necessary, but makes
  84.                      everything easy)
  85.  
  86.    The first thing you must do is use your news reader program to save the
  87. articles to files. If the uuencoded file spans more than one article, save
  88. then to different articles. Check your manual pages for the news reader you
  89. have for details. If you are using 'rn', do the following:
  90.  
  91.    From within the article, or at the end of the article, type 'w
  92. filename'. Answer 'n' to the mailbox format question, and then continue. 's
  93. filename' could also be used, but it saves additional header information
  94. that is not needed, and would have to be edited out anyway.
  95.  
  96.    For one single file, things are easy. Use your favorite editor and delete
  97. all lines before the 'begin' line, and all lines after the 'end' line. Then
  98. you can give the command 'uudecode file', and the new file will be created
  99. for you. Download the new file to your PC.
  100.  
  101.    For multiple files, you must edit each file. For the first file, delete
  102. all lines before the 'begin', and go to the end of the file. A line of
  103. uuencoded text looks like this:
  104.  
  105. M'YV01N2\:0-BSAPV:<Z4D0-B2ATW((+`80AB!@@8.73`F*$Q!X@8.7#@4""E
  106.  
  107.    You then must delete any lines after the last uuencoded line. Then
  108. proceed to the remaining files, deleting all lines before and after the
  109. uuencoded lines. When you come to the last file, delete all lines after the
  110. 'end' line. Save each file after it has been edited.
  111.  
  112.    Now, to decode them, give the following:
  113.  
  114.      cat file1 file2 file3 ... | uudecode
  115.  
  116.    Users of csh can use range specifiers to simplify the typing, such as
  117. if you have a five part file, you can say:
  118.  
  119.           cat file[1-5] | uudecode
  120.  
  121.    This will create a file specified in the begin line. Then you can
  122. download this file to your PC.
  123.  
  124.    Currently, Rahul Dhesi, the moderator of comp.binaries.ibm.pc, has made
  125. available a short, two-line script which will take all parts of a program
  126. posted to comp.binaries.ibm.pc, edit, combine, and uudecode them automatically.
  127. Here is the shell script:
  128.  
  129. #! /bin/sh
  130. cat $* | sed '/^END/,/^BEGIN/d' | uudecode
  131.  
  132. Type this in, do a 'chmod 755 combine' to make it executable, and run it
  133. like this:
  134.  
  135.           combine file1 file2 ...
  136.  
  137. You will not have to do any editing at all of the files, as combine will do
  138. this for you. As long as the files are fed in the proper order, all should
  139. be well.
  140.  
  141.                  IV. USING A PC TO DO THE WORK
  142.  
  143.    There are several versions of UUDECODE for MS-DOS available. You need some
  144. version of UUDECODE to proceed. Check the local archives, or the CBIP Starter's
  145. Kit.
  146.  
  147.    After dowloading the files to the PC, edit out unwanted lines in the
  148. file. If using a simple version of UUDECODE, concatenate all the files into
  149. one large file. Then type:
  150.  
  151.           uudecode <filename>
  152.  
  153. You should then end up with the program you went through all the trouble
  154. for.
  155.  
  156.                V. HANDLING ARCHIVE FILES
  157.  
  158.    An archive is simply a file containing several other files. Usually
  159. these other files are compressed in some fashion, in order to save disk
  160. space. These files are used generally for easier handling of several files.
  161. There are many types currently in existence, such as .ARC, .ZOO, and .ZIP.
  162. The instructions below can be used for most any type of archive, using the
  163. appropriate programs.
  164.  
  165.    To extract files from an ZOO file, you must have some sort of extractor.
  166. LOOZ from Rahul Dhesi (to be included in Starter's Kit) is an extract-only
  167. program for dealing with ZOO files. The ZOO program itself (also by Rahul
  168. Dhesi) can be used to both create and extract ZOO archives. To unpack an
  169. entire archive, simply type one of the following:
  170.  
  171.                zoo -extract <archive>
  172.                looz <archive>
  173.  
  174. This will unpack the entire contents into the current directory. You need
  175. not specify the .ZOO extension. To extract particular files, simply specify
  176. the filename after the archive name.
  177.  
  178.  
  179.              VI. DOWNLOADING FILES FROM UNIX TO MSDOS
  180.  
  181.    To download the files, you will need the following:
  182.  
  183.      1) A file transfer protocol on your UNIX system (i.e. Kermit,
  184.         Xmodem, Zmodem, etc.)
  185.  
  186.      2) A PC communications package that supports the same protocol
  187.  
  188.    Due to the large amount of protocols and communications packages
  189. available, it would be next to impossible to describe all of them. choosing
  190. the proper set up often depends on your situation. Some protocols are much
  191. faster than others, yet cannot be used over some networks. For the purposes
  192. of examples, I will use Kermit as the protocol (specifically C-Kermit), and
  193. ProComm as the communications package, as they are in wide use and very
  194. reliable over most networks. A more generic method for downloading follows
  195. afterwards, but you must read the manuals to all programs to operate them
  196. properly.
  197.  
  198.    First off is to determine what type of file you are downloading, whether
  199. it is binary or ASCII. Usually, if you can read it, it's ASCII. Files with
  200. extensions EXE, COM, and archive files such as ZOO are almost always binary.
  201. On UNIX, you can say:
  202.  
  203.           file <filename>
  204.  
  205. this will usually tell you what type of file it is.
  206.  
  207.    Downloading ASCII text is easy. On UNIX type:
  208.  
  209.           kermit -s <filename>
  210.  
  211. the "-s" puts C-Kermit into "send" mode. You then instruct your terminal
  212. program to receive a Kermit transfer. On ProComm, you would hit PgDn, and
  213. then select Kermit off the menu, selection 2. ProComm will take care of the
  214. rest, and you can watch it's progress. When it's done, ProComm will return
  215. you to UNIX.
  216.  
  217.    Downloading binary files are a little more difficult. If you can dial in
  218. to a UNIX host using 8-bit communications (such as 8-N-1), do so. Sometimes
  219. the Login: prompt may look weird, but once the host knows, it will fix
  220. itself. If you cannot use 8-bit settings (the host insists on 7 bits to be
  221. readable), you may wish to transform the binary file into ASCII, using the
  222. uuencode program, downloading as above for normally ASCII files, and
  223. uudecoding the file on the PC.
  224.  
  225.    If you are able to use 8 bits, on UNIX type:
  226.  
  227.           kermit -is <filename>
  228.  
  229. the "-is" puts C-Kermit into "send, image" mode. Basically, "tell it like it
  230. is". As above, hit PgDn, then 2 and ProComm will do the rest.
  231.  
  232.    For a more generic explanation of what to do, here is a step-by-step
  233. version of the above, without specifics:
  234.  
  235.      1) Determine what type the file is (ASCII or binary)
  236.  
  237.      2) Initiate transfer on UNIX end. Usually accomplished by executing
  238.      a program and giving the filename of what you wish to download. If
  239.      it is a binary file, specify 'binary' or 'image' mode, usually as a
  240.      switch on the command line.
  241.  
  242.      3) Escape back to the PC, and set for receiving a file using the
  243.      same protocol as being sent with. Often done by hitting some Hot Key
  244.      (usually Pg-Dn), and then specifying the protocol you are using.
  245.  
  246.    You really should read the manuals to any programs you wish to use for
  247. downloading files. Programs change, and they are not all used the same way.
  248. If you can't seem to get a program to work, consult someone using the same
  249. programs, and see what it might be that you do differently.
  250.  
  251. --
  252. =======================================================================
  253. Brian O'Neill - Systems Manager, Computer Science, University of Lowell
  254. Internet: oneill@ulowell.edu                  (508) 934-3645
  255. UUCP: harvard!ulowell!oneill
  256.  
  257. ==== <g GUIDE>                       9 links in glossary topic
  258.