home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / binaries / ibm / pc / 1058 < prev    next >
Encoding:
Text File  |  1993-01-02  |  11.4 KB  |  269 lines

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