home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / binaries / ibm / pc / 1059 < prev    next >
Encoding:
Text File  |  1993-01-02  |  7.2 KB  |  138 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: v21inf05: ftp.man, Beginner's Guide to FTP V1.7 (part 01/01)
  5. Message-ID: <C08Ey2.Ky@ulowell.ulowell.edu>
  6. Followup-To: comp.binaries.ibm.pc.d
  7. Originator: oneill@cs.ulowell.edu
  8. Keywords: cbip, beginner, ftp, 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:58:50 GMT
  12. Approved: oneill@cs.ulowell.edu
  13. Lines: 123
  14.  
  15. Checksum:  772093549  (Verify with "brik -cv")
  16. Submitted-by: oneill@cs.ulowell.edu
  17. Posting-number: Volume 21, Issue inf05
  18. Archive-name: admin/ftp.man
  19.  
  20. [Date of Last Change: 10-Apr-92 Release 1.7]
  21.  
  22.             A BEGINNER'S GUIDE TO FTP
  23.  
  24. Copyright (c) 1991 by Brian O'Neill. Permission to copy this file freely is
  25. given, so long as the file remains unmodified.
  26.  
  27.     FTP stands for File Transfer Protocol.  It allows a person to transfer
  28. files between two systems, generally connect over local area networks or
  29. wide area networks, such as the Internet.
  30.  
  31.     If your hosts system has FTP and is connected to the Internet, you
  32. can access very large amounts of archives available on a number of
  33. systems, such as Simtel20 or ftp.uu.net.  This is a simplified use
  34. manual, and will use two examples, one a TOPS-20 system
  35. (wsmr-simtel20.army.mil, which has a large base if PD/Shareware MSDOS
  36. software), and one Unix system (ftp.uu.net, where archives of the
  37. comp.sources newsgroups are kept).
  38.  
  39.     The simplest way to initiate FTP would be to give the command 'ftp
  40. <system-name>', where <system-name> is the remote system you are
  41. connecting to, either a name (wsmr-simtel20.army.mil, if you have an
  42. entry in /etc/hosts or are accessing a Domain Name Server, such as bind) or
  43. the InterNet address (192.88.110.20, for Simtel20).  After a short wait, you
  44. will be prompted for your username.  If you do not have an account on the
  45. remote system, some systems allow you to use 'anonymous'.  This gives you a
  46. restricted access path, allowing you to access certain files only.
  47.  
  48.     You would then be prompted for a password. If you are using your own
  49. account, give your password. If you are using 'anonymous', the system may
  50. ask you to send your real identity as the password.  What you type doesn't
  51. matter, but it is suggested to give your mail address.  Other systems
  52. need a password of 'guest', or something similar.
  53.  
  54.     After that, you should receive the FTP prompt (usually ftp>), and
  55. now have access.  You can get a directory of files be giving a 'dir'
  56. command, or if the remote system is Unix-based, 'ls -l' will give the
  57. familiar output.  On Simtel20, there is a file available in the
  58. default anonymous ftp directory that explains what Simtel20 is, and
  59. where files are located.  The name is 'SIMTEL-ARCHIVES.INFO.nn, where
  60. ".nn" is a file generation number.  You don't need to specify the file
  61. generation number when requesting the file.  In fact, it's better not
  62. to because you will always get the latest generation that way.
  63.  
  64.     Unix systems will all have the familiar directory structure, and
  65. moving around is done with the familiar 'cd' or 'cwd' command.
  66. TOPS-20 systems have a different structure, but movement is still
  67. accomplished with the 'cd' command.
  68.  
  69.     I will use Simtel20 as the first example. To start, give the
  70. command 'ftp wsmr-simtel20.army.mil' from your shell prompt, or 'open
  71. wsmr-simtel20.army,mil' from the 'ftp>' prompt.  If this host is not
  72. in your /etc/hosts file or you do not have access to a Domain-name Server,
  73. use '192.88.110.20' in it's place.  After a few seconds, you'll be prompted 
  74. for your username.  Type 'anonymous', and when prompted for password, 
  75. give your e-mail address (more as a courtesy than anything else), or if 
  76. you prefer, 'guest'.  You should then shortly get back the 'ftp>' prompt.  
  77. If you receive an error message stating that there are too many anonymous 
  78. logins, wait a few minutes and try again. Simtel20 has limited access,
  79. especially during normal business hours.
  80.  
  81.     Now, say you want to see what is stored for MS-DOS programs.
  82. Simtel20 is a DEC System-20 running the TOPS-20 operating system.  The
  83. directory structure is 'DISK:<DIRECTORY.SUBDIRECTORY>'.  For MS-DOS
  84. programs, the main directory is 'PD1:<MSDOS>'.  In here there is a
  85. file called 'MSDOS.CRCLST', which is updated almost daily.  It
  86. contains a list of all files within the MS-DOS subdirectories, along
  87. with file size and CRC value.
  88.  
  89.     To get this list, first switch to that directory by saying 'cd
  90. pd1:<msdos>' (TOPS-20 is not case sensitive).  If you are prompted for
  91. another password just ignore the request.  When you get the 'ftp>'
  92. prompt back, you can then say 'get msdos.crclst'.  This will initiate
  93. the transfer, and after a few minutes it will be completed.  The
  94. beauty of Unix is that while you are transfering something big, you
  95. can put it in the background and do something else.
  96.  
  97.     Say you wanted to get ProComm Plus TD. According to the list, it is
  98. in PD1:<MSDOS.PROCOMM>.  So, you can enter 'cd pd1:<msdos.procomm>'.
  99. A 'dir' will show all the files in that directory.  (You may wish not
  100. to use too many 'dir' commands, as they are sometimes fairly slow).
  101.  
  102.     Now, you want the file 'pcplustd.arc'.  First, you must tell your
  103. host what kind of file it is.  On most Unix systems, 'binary' or 'set
  104. type binary' or 'set type I' will work.  However, as Simtel20 runs a
  105. different OS that has different word sizes (36 bits) you must specify
  106. 'tenex' or 'type L 8' to transfer properly.  You can then issue a 'get
  107. pcplustd.arc' command, and after a short while, you have ProComm Plus TD.
  108. To end your session, enter the 'bye' command.
  109.  
  110.     Unix is a little more familiar for most people with Internet access. 
  111. For example, you might wish to get sources to the ZOO version 2.01
  112. from ftp.uu.net.  First, you give the 'ftp ftp.uu.net' command (or 
  113. ftp 137.39.1.9), giving 'anonymous' for the username, and your address 
  114. as the password.  You can then use the 'dir' or 'ls -l' commands to scan 
  115. the directories.  After some directory searching, you find it is located in
  116. usenet/comp.sources.unix/volume17/zoo2, showing that it was posted in
  117. comp.sources.unix, volume 17. Inside that directory, you find 10 parts,
  118. labelled part01.Z to part10.Z. As told by the .Z suffix, these files are
  119. compressed binary files. You must tell FTP to operate in binary mode, so
  120. type 'binary' or 'type I' to set it. You can then do a 'get' for each file.
  121. Now you have the original sources to ZOO 2.01.
  122.  
  123.     Different systems have different organizations for their files, and the
  124. above example is just the way I have it set up.  By 'poking' around other
  125. systems, you can learn how their files are set up, and zip around much
  126. faster.  Note, however, that FTP will not allow you outside the FTP 'root'
  127. directory, usually ~ftp on most systems.  So, poking about the entire system
  128. is not permitted.
  129.  
  130.     You now have a basic understanding of how to use FTP to get the things
  131. you want. I hope this has been of use. Questions and comments welcome.  
  132. Other features of FTP can be found in the manual - please check there. My
  133. E-mail address is oneill@cs.ulowell.edu.
  134.  
  135.     Messages regarding problems, complaints or suggestions for
  136. Simtel20 should be addressed to 'action@wsmr-simtel20.army.mil'.
  137.  
  138.