home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / amiga / misc / 18973 < prev    next >
Encoding:
Internet Message Format  |  1992-12-22  |  10.3 KB

  1. Xref: sparky comp.sys.amiga.misc:18973 comp.sys.amiga.introduction:1706
  2. Newsgroups: comp.sys.amiga.misc,comp.sys.amiga.introduction
  3. Path: sparky!uunet!gatech!rpi!ghost.dsi.unimi.it!univ-lyon1.fr!chx400!bernina!neptune!umueller
  4. From: umueller@iiic.ethz.ch (Urban Dominik Mueller)
  5. Subject: All about FTP [long]
  6. Message-ID: <1992Dec22.174952.27375@neptune.inf.ethz.ch>
  7. Sender: news@neptune.inf.ethz.ch (Mr News)
  8. Nntp-Posting-Host: c11
  9. Organization: Dept. Informatik, Swiss Federal Institute of Technology (ETH), Zurich, CH
  10. Date: Tue, 22 Dec 1992 17:49:52 GMT
  11. Lines: 256
  12.  
  13. 0. Contents
  14. ===========
  15. 1. Introduction
  16. 2. FTP command list
  17. 3. Important sites
  18. 4. A Sample Session
  19. 5. The .netrc File
  20. 6. Archivers
  21. 7. The Archie Database
  22. 8. Mailservers
  23. 9. Transferring to Amiga
  24.  
  25.  
  26.  
  27. 1. Introduction
  28. ===============
  29.  
  30. FTP  stands  for File Transfer Protocol, the program (ftp) with the same name
  31. allows  you  to  gain access to some other machines and store and/or retrieve
  32. files.   If  you  have a UNIX account with internet access and that box knows
  33. the  command 'ftp', you're almost done.  If not, you have to get the files by
  34. mail, see chapter 'mailservers'.
  35.  
  36. Normally  one  needs an account on the remote machine to use it, but a number
  37. of machines have a setup that allows everybody to log in as the user 'ftp' or
  38. 'anonymous'.   When  you  log  in using the anonymous account you should type
  39. your  home  login  name  as  the password, especially when you upload.  After
  40. doing so you may retrieve all files found in the public areas there.
  41.  
  42.  
  43.  
  44. 2. FTP command List
  45. ===================
  46.  
  47. The most important commands you'll need within ftp are:
  48.  
  49. open <site> Connects to a remote site, valid addresses see below
  50. bin         Sets the connection to binary mode for transfer of non-text files
  51. get <rem>   Receives the <remote> file. Can't do multiple files
  52. mget <pat>  Receives the files indicated by <pattern> or listed as args
  53. put <loc>   Transmits the local file <loc>
  54. mput <loc>  Transmits the files indicated by <pattern> or listed as args
  55. dir <pat>   Lists files in the current dir of the remote machine
  56. ls <pat>    Lists (short) the files
  57. cd <dir>    Changes the current directory on the remote site
  58. lcd <dir>   Changes the current directory on the local site
  59. mkdir <dir> Creates a new directory on the remote site
  60. hash        Shows a progress report when downloading
  61. close       Closes connection to the remote site
  62. bye         Quits the FTP client
  63.  
  64. Some  specialties  you should know in addition.  The 'get' command allows you
  65. to  add a second argument that indicates the name to store it under.  You can
  66. use  that  to  enter '-' or '|more' as the local name to view text files that
  67. are  on  the remote machine.  Example:  'get README |more' (no blank in front
  68. of more!)
  69.  
  70. Also  note  that  the ls and dir command only takes one argument, this can be
  71. either  an  option  or a pattern, but not both.  The second argument is again
  72. interpreted as the name to store the output under.
  73.  
  74.  
  75.  
  76. 3. Important Sites
  77. ==================
  78.  
  79. Location     Name                   Address         Directory
  80. --------     ----                   -------         ---------
  81. Switzerland  amiga.physik.unizh.ch  130.60.80.80    pub/aminet/
  82. Switzerland  litamiga.epfl.ch       128.178.151.32  pub/aminet/
  83. Scandinavia  ftp.luth.se            130.240.16.3    pub/aminet/
  84. Germany      ftp.uni-kl.de          131.246.9.95    pub/aminet/
  85. Germany      ftp.cs.tu-berlin.de    130.149.17.7    pub/aminet/
  86. Germany      ftp.th-darmstadt.de    130.83.55.75    pub/aminet/
  87. USA          ftp.etsu.edu           192.43.199.20   pub/aminet/
  88. USA          ftp.wustl.edu          128.252.135.4   pub/aminet/
  89. USA          oes.orst.edu           128.193.124.2   pub/aminet/
  90.  
  91. USA          wuarchive.wustl.edu    128.252.135.4   systems/amiga/
  92. Finland      nic.funet.fi           128.214.6.100   pub/amiga/
  93. Hawaii       hubcap.clemson.edu     130.127.8.1     pub/amiga/
  94. USA          ux1.cso.uiuc.edu       128.174.5.59    pub/amiga/fish/
  95. USA          grind.isca.uiowa.edu   128.255.19.233  amiga/fish/
  96.  
  97. Note  that  the first 9 sites together are called 'AmiNet'.  They mirror each
  98. other  which  means they have the same files.  This is only a small subset of
  99. the  FTP  sites  around,  a  complete list can be found on hubcap.clemson.edu
  100. under the name pub/amiga/FTP-Sites.txt .
  101.  
  102.  
  103. 4. A Sample Session
  104. ===================
  105.  
  106. This is an example FTP session. What you type is in [angle] brackets.
  107.  
  108. ~> 
  109.    [ftp]
  110.  
  111. ftp> 
  112.      [open 130.60.80.80]
  113. Connected to amiga.physik.unizh.ch.
  114. 220 amiga FTP server (Version 5.60.97 Wed Dec 9 22:23:21 MET 1992) ready.
  115. Name (amiga:umueller): 
  116.                        [ftp]
  117. 331 Guest login ok, send your userid as password.
  118. Password:
  119.           [kdalton]
  120. 230- Welcome to amiga.physik anonymous FTP server
  121. 230-      .....
  122. 230 Guest login ok, access restrictions apply.
  123. ftp> 
  124.      [cd pub/aminet]
  125. 250 CWD command successful.
  126. ftp> 
  127.      [get RECENT |more]
  128. 200 PORT command successful.
  129. 150 Opening ASCII mode data connection for RECENT (5676 bytes).
  130. | Recent uploads to amiga.physik.unizh.ch [130.60.80.80] on 11-Dec-1992
  131. | The last 7 days' uploads, newest first. Blank line=new day, + = long .readme
  132. |
  133. |File                Dir        Size Description
  134. |------------------- ---        ---- -----------
  135. tiff2iff.lha         gfx/conv     7K Converts TIFF files to Amiga IFF
  136. DNetIRCpic.lzh       comm/net    16K Demo picture of DNet IRC
  137. DNetIRC.lha          comm/net    88K+IRC intuition DNet client (dnetlib.o neede
  138. ICoons_Nofp.lzh      gfx/3d     172K+Spline based object modeller (no 68881 nee
  139. 1993.lha             mods/u4ia  109K+ProTracker Module By U4ia called '1993'
  140. skick321.lha         os20/util   37K+Soft-kicker under OS 2.0 - new release
  141. monoxyde.dms         demo/mega  477K+MONOXYDE - new demo by Vanish
  142. baudbandit1.4b.lha   comm/misc   16K+Version 1.4b of baudbandit.device
  143. jed206b.lha          util/edit  144K+programmable, programmers editor. OS2.0+
  144. --More--
  145.          [q]
  146. 226 Transfer complete.
  147. local: |more remote: RECENT
  148. 5763 bytes received in 4.5 seconds (1.2 Kbytes/s)
  149. ftp> 
  150.      [cd game/think]
  151. 250 CWD command successful.
  152. ftp> 
  153.      [bin]
  154. 200 Type set to I.
  155. ftp> 
  156.      [get t-triz.lzh]
  157. 200 PORT command successful.
  158. 150 Opening BINARY mode data connection for t-triz.lzh (56496 bytes).
  159. 226 Transfer complete.
  160. local: t-triz.lzh remote: t-triz.lzh
  161. 56496 bytes received in 0.43 seconds (1.3e+02 Kbytes/s)
  162. ftp> 
  163.      [bye]
  164. 221 Goodbye.
  165. ~> 
  166.  
  167.  
  168. 5. The .netrc File
  169. ==================
  170.  
  171. You  can  put a file named .netrc in your homoe directory and make it contain
  172. all information about how to log in at your favourite FTP site, it'll be done
  173. automatically.   After  you  create  it, you have to 'chmod 600 .netrc' or it
  174. won't  be  accepted.   Here's  an example, changed the password to your login
  175. name.  And never forget to add a blank line after the last command!
  176.  
  177. machine amiga.physik.unizh.ch
  178. login ftp
  179. password kdalton
  180. macdef init
  181. bin
  182. cd pub/aminet
  183.  
  184.  
  185. 6. Archivers
  186. ============
  187.  
  188. Most files on FTP sites store their files in archived (compressed) format.
  189. You can recognize the archiver used by the ending of the file name. These
  190. are the most important ones:
  191.  
  192. Suffix  Archiver        Filename on Aminet
  193.  
  194. .lzh    LhA             LhA_e138.run
  195. .lha    LhA             LhA_e138.run
  196. .zoo    Zoo             zoo2-10.lzh
  197. .zip    Zip             unzip-4.1.lzh
  198. .dms    DMS             dms111.sfx
  199. .run    (LhA)           -
  200. .sfx    (LhA)           -
  201. .tar.Z  tar, compress   tar-compress.lzh
  202.  
  203. The  AmigaDOS  versions  of  those archivers can be found on the AmiNet sites
  204. (see  above)  in  the directory pub/aminet/util/arc/ and to give you a start,
  205. LhA is also stored in self-extracting form (.run or .sfx), just execute it to
  206. extract it.  .run files are in fact .lha files with a special header.
  207.  
  208. UNIX versions of most of these archivers are available:
  209.  
  210. LhA  ftp.th-darmstadt.de  /pub/archivers/lha-1.00.tar.Z  
  211. Zoo  wuarchive.wustl.edu  /packages/compression/zoo-2.10.tar.Z
  212. Zip  acsc.com             /pub/unzip401.tar.Z
  213. Dms  wuarchive.wustl.edu  /systems/amiga/utilities/cli/archive/dmscheck.lzh
  214.  
  215.  
  216. 7. The Archie Database
  217. ======================
  218.  
  219. There is a database of all files on all FTP sites worldwide, called 'archie'.
  220. They  have  a mailserver, a telnet service, and a client software.  Telnet to
  221. archie.sura.net and log in as 'archie', or send a mail containing HELP in its
  222. body to archie@quiche.cs.mcgill.ca .  You'll get more info that way.
  223.  
  224.  
  225. 8. Mailservers
  226. ==============
  227.  
  228. Some  sites  allow  sending  them magic mails which make them FTP things from
  229. other  sites, uuencode them and send them to you.  Others only send the files
  230. stored  locally at that site.  Here are the most important mail servers, send
  231. a  mail  containing  HELP  in its body to find out more about them (note that
  232. German links are slow, generally):
  233.  
  234. ftpmail@decwrl.dec.com
  235. mailserver@nic.funet.fi
  236. ftp-mailer@ftp.informatik.tu-muenchen.de
  237. mrcserv@janus.mtroyal.ab.ca
  238. mail-server@ftp.cs.tu-berlin.de
  239. mail-server@pit-manager.mit.edu
  240.  
  241.  
  242. 9. Transferring to Amiga
  243. ========================
  244.  
  245. After  you  have  the  files  on your UNIX account, you need to get the files
  246. home.   If  you  have  a  modem-connection  to  your  account,  there are two
  247. possibilities:   ZMODEM  and  UUencode.   The better one is using the program
  248. 'sz'  which  sends  files  using the ZMODEM protocol.  If it's not present on
  249. your site, you can get it from krynn.efd.lth.se:/pub/modem/rzsz9107.tar.Z and
  250. compile  it,  or  use archie to find a version specific for your UNIX flavor.
  251. IF that's not possible, type 'uuencode <filename fileane' to get your file
  252. typed to the screen. That output you store in a capture file of your terminal
  253. program and uudecode it (uudecode can be found on Fish Disk 92).
  254.  
  255. If  you don't have a modem, you can try to find a workstation with 3.5" Drive
  256. as  the  Sun4  computers have.  There you can either use the mtools (try 'man
  257. mcopy')  to store the files in MSDOS format and retrieve them using MSH (Fish
  258. Disk   382),   or   you   use   gnu   tar   (UNIX  version:   decuac.dec.com,
  259. /pub/binaries/gnutar-1.10.tar.Z)  to  store  files to the disk in .tar format
  260. using  the  command  'gtar cfvM /dev/rfd0c'.  Then you restore the files with
  261. gnu gtar (amiga.physik.unizh.ch:pub/aminet/util/gnu/gtar110.lzh) and the FLAT
  262. device  (Fish Disk 535) and MSH (or any other PC format reading tool).  Mount
  263. FLAT:,  and then enter 'gtar xfvM flat:MSH' or replace the MSH by the name of
  264. your emulation tools.
  265.  
  266.  
  267. If  you'd  like  some  additional  info  to  be included in this FAQ, contact
  268. ftp@amiga.physik.unizh.ch.  -Urban Dominik Mueller
  269.