home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / pc / doc_net / bin.man < prev    next >
Internet Message Format  |  1989-05-27  |  13KB

  1. From ra!tut!draken!kth!mcvax!uunet!cs.utexas.edu!rutgers!iuvax!bsu-cs!ibmbin Fri May 26 08:26:38 EET DST 1989
  2. Article 295 of comp.binaries.ibm.pc:
  3. Path: chyde!ra!tut!draken!kth!mcvax!uunet!cs.utexas.edu!rutgers!iuvax!bsu-cs!ibmbin
  4. >From: boneill@hawk.ulowell.edu (Brian O'Neill)
  5. Newsgroups: comp.binaries.ibm.pc
  6. Subject: v03INF1: bin.man, Beginner's Guide to Binaries
  7. Summary: bin.man, Beginner's Guide to Binaries
  8. Keywords: info
  9. Message-ID: <7441@bsu-cs.bsu.edu>
  10. Date: 26 May 89 01:08:40 GMT
  11. Expires: 27 Jun 89 01:08:39 GMT
  12. Sender: ibmbin@bsu-cs.bsu.edu
  13. Followup-To: comp.binaries.ibm.pc.d
  14. Lines: 281
  15. Approved: dhesi@bsu-cs.bsu.edu
  16. X-Submissions-to: ibmpc-binaries@bsu-cs.bsu.edu
  17. X-Questions-to: ibmpc-binaries-request@bsu-cs.bsu.edu
  18. X-Repost-requests-to: ibmpc-repost@bsu-cs.bsu.edu
  19.  
  20. Checksum: 1005239309  (Verify with "brik -cv")
  21. Posting-number: Volume 03, Issue INF1
  22. Submitted-by: boneill@hawk.ulowell.edu (Brian O'Neill)
  23. Archive-name: v03info/bin.man
  24.  
  25. [Date of last change 1/1/89 Release 1.0]
  26.  
  27. [This file is available via FTP from swan.ulowell.edu (129.63.224.1), file
  28. ibmpc/General/bin.man -B]
  29.  
  30.         HOW TO GET BINARIES VIA NEWS AND E-MAIL
  31.  
  32. (c) Copyright 1989 Brian O'Neill. This manual was created to aid people in
  33. the usage of binary postings on UseNet. Permission to copy this file is
  34. granted, so long as credit is given to those who helped. A list of those
  35. people appear at the end of this posting.
  36.  
  37.    One of the more troubling things to new users is using programs posted to
  38. groups like comp.binaries.ibm.pc. This is in part due to the fact that
  39. different utilties are needed to decode these files into something more
  40. familiar to them. This manual explains how to retrieve binary files posted
  41. to UseNet, and also received by e-mail.
  42.  
  43.    This manual is divided into several sections, each dealing with a
  44. different aspect of what is needed. Here is the basic setup:
  45.  
  46.     I.     Formats and Standards
  47.     II.    Minimum utilities, and how to get them
  48.     III.    Using UNIX to do the work
  49.     IV.    Using MS-DOS to do the work
  50.     V.    Handling archived files
  51.     VI.    Downloading files from UNIX to MSDOS
  52.  
  53.    This manual was written with the new user in mind. If any section is
  54. unclear to you, please respond to me via e-mail. Let me know what section,
  55. paragraph, and what it was that was unclear. My address is below:
  56.  
  57.         ArpaNet: boneill@hawk.ulowell.edu
  58.         UUCP: mit-eddie!ulowell!hawk.ulowell.edu!boneill
  59.  
  60.               I. FORMATS AND STANDARDS
  61.  
  62.    UseNet, and other networks, user groups, and BBS's, all work on some set
  63. of standards for sharing files between a diverse arangement of systems. For
  64. PC's, the most common standard for files is the ARChive. This is a binary
  65. file which allows a user to place several files into one, while compressing
  66. them to save space. Several utilities exist for making and extracting files
  67. from ARC archives. The most common are ARC from System Enhancement
  68. Associates, and PKPAK and PKUNPAK from PKWare. The ARC file has become such
  69. a widespread standard, that it is most commonly used in the transmission of
  70. MS-DOS files over UseNet and e-mail connections. Hence, you will need one of
  71. the above named programs to properly use the files.
  72.  
  73.    UseNet and e-mail are based on ASCII text. In other words, they are only
  74. able to transmit ASCII files. In order to transmit binary files, they are
  75. transformed into ASCII files first. This is accomplished using a program
  76. called 'uuencode', another fairly common standard. The file can then be
  77. decoded back into binary form using 'uudecode'. These programs are fairly
  78. common among UNIX systems, and are increasingly available for MS-DOS.
  79. UUENCODE/UUDECODE V2.13/2.14 from Richard Marks is the most useful for
  80. MS-DOS users. Once again, you will need a version of uudecode to properly
  81. handle these files.
  82.  
  83.           II. MINIMUM UTILITIES, AND HOW TO GET THEM
  84.  
  85.    You will need some form of uudecode, either UNIX or MS-DOS, to decode the
  86. binaries. If you do not have it for either of these, you must secure a copy
  87. of the source code. If you have FTP access, you can get MS-DOS source code
  88. from simtel20.arpa (File PD1:<MSDOS.STARTER>UUDECODE.PAS). If not, you will
  89. have to get it from someone else. 
  90.  
  91.    Also, you need an archive extractor. Small extract-only programs are
  92. available, such as ARC-E by Vern Buerg, available widely. It will be assumed
  93. you can secure one of these without problem, as with uudecode.
  94.  
  95.    Also available is the CBIP Starter's Kit, which contains C source for
  96. uudecode, a uuencoded version of ARC-E, and instructions on how to make use
  97. of these files.
  98.  
  99.           III. USING UNIX TO DO THE WORK
  100.  
  101.    UseNet is a network comprising mostly of UNIX-based machines, so
  102. therefor it is quite common to use the system connected to UseNet to do most
  103. of the work, rather than downloading from that system and doing all the work
  104. on a PC. To do this, you will need the following basic utilities:
  105.  
  106.             uudecode
  107.             editor (vi, emacs, etc.)
  108.             cat (not necessary, but useful)
  109.             combine (Also not necessary, but makes
  110.                  everything easy)
  111.  
  112.    The first thing you must do is use your news reader program to save the
  113. articles to files. If the uuencoded file spans more than one article, save
  114. then to different articles. Check your manual pages for the news reader you
  115. have for details. If you are using 'rn', do the following:
  116.  
  117.    From within the article, or at the end of the article, type 'w
  118. filename'. Answer 'n' to the mailbox format question, and then continue. 's
  119. filename' could also be used, but it saves additional header information
  120. that is not needed, and would have to be edited out anyway.
  121.  
  122.    For one single file, things are easy. Use your favorite editor and delete
  123. all lines before the 'begin' line, and all lines after the 'end' line. Then
  124. you can give the command 'uudecode file', and the new file will be created
  125. for you. Download the new file to your PC.
  126.  
  127.    For multiple files, you must edit each file. For the first file, delete
  128. all lines before the 'begin', and go to the end of the file. A line of
  129. uuencoded text looks like this:
  130.  
  131. M'YV01N2\:0-BSAPV:<Z4D0-B2ATW((+`80AB!@@8.73`F*$Q!X@8.7#@4""E
  132.  
  133.    You then must delete any lines after the last uuencoded line. Then
  134. proceed to the remaining files, deleting all lines before and after the
  135. uuencoded lines. When you come to the last file, delete all lines after the
  136. 'end' line. Save each file after it has been edited.
  137.  
  138.    Now, to decode them, give the following:
  139.  
  140.     cat file1 file2 file3 ... | uudecode
  141.  
  142.    Users of csh can use range specifiers to simplify the typing, such as
  143. if you have a five part file, you can say:
  144.  
  145.         cat file[1-5] | uudecode
  146.  
  147.    This will create a file specified in the begin line. Then you can
  148. download this file to your PC.
  149.  
  150.    Currently, Rahul Dhesi, the moderator of comp.binaries.ibm.pc, has made
  151. available a short, two-line script which will take all parts of a program,
  152. edit, combine, and uudecode them automatically. Here is the shell script:
  153.  
  154. #! /bin/sh
  155. cat $* | sed '/^END/,/^BEGIN/d' | uudecode
  156.  
  157. Type this in, do a 'chmod 755 combine' to make it executable, and run it
  158. like this:
  159.  
  160.         combine file1 file2 ...
  161.  
  162. You will not have to do any editing at all of the files, as combine will do
  163. this for you. As long as the files are fed in the proper order, all should
  164. be well.
  165.  
  166.                 IV. USING A PC TO DO THE WORK
  167.  
  168.    There are several versions of UUDECODE for MS-DOS available. The best is
  169. Richard Marks UUDECODE Version 2.14. It allows for easier handling of
  170. multiple encoded files, using his UUENCODE program. You need some version of
  171. UUDECODE to proceed. Check the local archives, or the CBIP Starter's
  172. Kit.
  173.  
  174.    After dowloading the files to the PC, edit out unwanted lines in the
  175. file. If using a simple version of UUDECODE, concatenate all the files into
  176. one large file. Then type:
  177.  
  178.         uudecode <filename>
  179.  
  180. You should then end up with the program you went through all the trouble
  181. for.
  182.  
  183.              V. HANDLING ARCHIVE FILES
  184.  
  185. [NOTE: Currently, the standard archive format is ARC, developed by SEA. Lately,
  186. controversy has arisen regarding these formats. Without creating further
  187. problems, I will handle ARC as the standard. If in the near future UseNet
  188. agrees on a different format, I will alter it appropriately. -B]
  189.  
  190.    An archive is simply a file containing several other files. Usually
  191. these other files are compressed in some fashion, in order to save disk
  192. space. These files are used generally for easier handling of several files.
  193. There are many types currently in existence, such as .ARC, .ZOO, and .LBR.
  194. The most common is .ARC.
  195.  
  196.    To extract files from an ARC file, you must have some sort of extractor.
  197. ARC from SEA, ARC-E from Vern Buerg (to be included in Starter's Kit), and
  198. PKUNPAK) from PKWare are examples. To unpack an entire archive, simply type
  199. one of the following:
  200.  
  201.             arc x <archive>
  202.             arc-e <archive>
  203.             pkxarc <archive>
  204.             pkunpak <archive>
  205.  
  206. This will unpack the entire contents into the current directory. You need
  207. not specify the .ARC extension. To extract particular files, simply specify
  208. the filename after the archive name.
  209.  
  210.    Versions of SEA's ARC are available for UNIX. Please see your nearest
  211. comp.sources.unix archive site for details (volume15/arc521).
  212.  
  213.              VI. DOWNLOADING FILES FROM UNIX TO MSDOS
  214.  
  215.    To download the files, you will need the following:
  216.  
  217.     1) A file transfer protocol on your UNIX system (i.e. Kermit,
  218.        Xmodem, Zmodem, etc.)
  219.  
  220.     2) A PC communications package that supports the same protocol
  221.  
  222.    Due to the large amount of protocols and communications packages
  223. available, it would be next to impossible to describe all of them. choosing
  224. the proper set up often depends on your situation. Some protocols are much
  225. faster than others, yet cannot be used over some networks. For the purposes
  226. of examples, I will use Kermit as the protocol (specifically C-Kermit), and
  227. ProComm as the communications package, as they are in wide use and very
  228. reliable over most networks. A more generic method for downloading follows
  229. afterwards, but you must read the manuals to all programs to operate them
  230. properly.
  231.  
  232.    First off is to determine what type of file you are downloading, whether
  233. it is binary or ASCII. Usually, if you can read it, it's ASCII. Files with
  234. extensions EXE, COM, and ARC are almost always binary. On UNIX, you can say:
  235.  
  236.         file <filename>
  237.  
  238. this will usually tell you what type of file it is.
  239.  
  240.    Downloading ASCII text is easy. On UNIX type:
  241.  
  242.         kermit -s <filename>
  243.  
  244. the "-s" puts C-Kermit into "send" mode. You then instruct your terminal
  245. program to receive a Kermit transfer. On ProComm, you would hit PgDn, and
  246. then select Kermit off the menu, selection 2. ProComm will take care of the
  247. rest, and you can watch it's progress. When it's done, ProComm will return
  248. you to UNIX.
  249.  
  250.    Downloading binary files are a little more difficult. If you can dial in
  251. to a UNIX host using 8-bit communications (such as 8-N-1), do so. Sometimes
  252. the Login: prompt may look weird, but once the host knows, it will fix
  253. itself. If you cannot use 8-bit settings (the host insists on 7 bits to be
  254. readable), you may wish to transform the binary file into ASCII, using the
  255. uuencode program, downloading as above for normally ASCII files, and
  256. uudecoding the file on the PC.
  257.  
  258.    If you are able to use 8 bits, on UNIX type:
  259.  
  260.         kermit -is <filename>
  261.  
  262. the "-is" puts C-Kermit into "send, image" mode. Basically, "tell it like it
  263. is". As above, hit PgDn, then 2 and ProComm will do the rest. 
  264.  
  265.    For a more generic explanation of what to do, here is a step-by-step
  266. version of the above, without specifics:
  267.  
  268.     1) Determine what type the file is (ASCII or binary)
  269.  
  270.     2) Initiate transfer on UNIX end. Usually accomplished by executing
  271.     a program and giving the filename of what you wish to download. If
  272.     it is a binary file, specify 'binary' or 'image' mode, usually as a
  273.     switch on the command line.
  274.  
  275.     3) Escape back to the PC, and set for receiving a file using the
  276.     same protocol as being sent with. Often done by hitting some Hot Key
  277.     (usually Pg-Dn), and then specifying the protocol you are using.
  278.  
  279.    You really should read the manuals to any programs you wish to use for
  280. downloading files. Programs change, and they are not all used the same way.
  281. If you can't seem to get a program to work, consult someone using the same
  282. programs, and see what it might be that you do differently.
  283.  
  284.         THANKS TO ALL THOSE WHO HELPED...
  285.  
  286. I'd like to thank all those who helped in the creation of the manuals, and
  287. were patient enough for it to be released:
  288.  
  289.         Craig Browning
  290.         William Davidsen
  291.         Mike Driscoll
  292.         Bill Fenner
  293.         John Foulkes
  294.         Steven Harding
  295.         Mac Michaels
  296.         Derek Nazareth
  297.         Russ Nelson
  298.         Kevin Reilly
  299.  
  300. -- end of bin.man --
  301.  
  302.  
  303.