A Geometry Forum workshop handout:

Anonymous FTP

the short version

FTP stands for file transfer protocol. Like Gopher, FTP can be used to transfer files from a remote host to your own computer. There's a wealth of information on the Internet, all available to you via FTP, and all free.

While FTP theoretically allows a user to copy a file from any Internet host to any other Internet host, in practice you can't access a remote computer unless you have an account name (userid) and a password for it. To get around this, many system managers have set up a special userid called anonymous that anyone on the Internet can use with FTP--for Anonymous FTP.

Using Anonymous FTP, you can transfer files and retrieve information from a remote machine without actually having an account on it. Your password is usually either guest or your e-mail address.

To conduct an FTP session you need an ftp client program. Fetch is one ftp client for the Macintosh; Anarchie is another.

Fetch

Fetch allows you to transfer files--to download software or to get files from remote computers worldwide where Anonymous FTP access has been set up for you--between another computer on the Internet and your networked Macintosh. It offers icons representing folders and files, and allows you to navigate using the mouse.

To start up Fetch, double-click on its icon. In the dialog box that appears you will fill in the name of the host computer to which you want to connect, your username (anonymous), and your password (your e-mail address).

If you don't know the name of the host you want to connect to, at the lower lefthand side of the dialog box you will see a Shortcuts menu that supplies an easy way to connect to one of a list of commonly accessed computers.

When you have finished filling in the information for host name, user name, and password, click OK to connect. Fetch will show you a small black dog icon 'running' to indicate that a connection is being made, and eventually the Anonymous FTP files and directories at the remote host will appear in the lefthand side of the standard Fetch dialog box. You can investigate the contents of directories by double-clicking on folders and looking at the names of their contents.

Before transferring files, unless you know the file type, make sure Automatic is selected from the three file text options (Automatic, Text, Binary) so that Fetch will automatically interpret the file type of files transferred.

Readme Files on Remote Hosts

Many ftp sites have Readme files explaining the contents of the files in their directories or giving other information. To view these files without first transferring them to your computer, select the file and choose View Files from the Remote menu. You can save this file or print it by choosing options from the File menu after the contents of the file have appeared in a window on your screen.

File Transfer using Fetch

For Macintosh users, a good place to start in many ftp archives is a directory called /mac or /info-mac.

To transfer a file from a remote host to your Mac, select (click on) the name of the file in the lefthand window, and click on the Get File button. If you don't like the name Fetch provides, you can give the file a new name under which you want it stored on your computer. You will also choose where to save it on your disk; then click Save.

To get more than one file at a time, hold down the shift key while clicking first on one file and then another with the mouse.

As a file is being transferred to your Mac the cursor will change to a running dog, indicating that a transfer is in progress. When the transfer is complete, your cursor will return to normal.

Click Close Connection before quitting Fetch.

Canceling an Operation

If you wish to cancel an operation, you can try clicking the Cancel button or pressing Command-period, or, if the host won't let you cancel, clicking on Close Connection in the Fetch window or choosing Quit from the File menu, but this is not usually recommended.

For information on compressed files, see the Gopher handout in this Geometry Forum series.

Searching in FTP

How do you find what you would like to transfer? You can use Archie, a search mechanism that looks through a special FTP database to find all the remote hosts that contain files with the search term(s) you specify--or you might receive information about a file that contains the address for retrieving that file. For example, a search for Disinfectant 3.5 (John Norstad's free virus protection program for the Mac) might yield many ftp sites, among them

mrcnext.cso.uiuc.edu:/pub/info-mac/vir/ oswego.oswego.edu:/pub/mac/virus/ plaza.aarnet.edu.au:/micros/mac/info-mac/vir/

A full address might look like this: oswego.oswego.edu:/pub/mac/virus/disinfectant-35.hqx

The name Archie was chosen because it sounds like the word "archive." Computers called Archie servers have been set up throughout the Internet to help you find Anonymous FTP hosts that carry files you want. To find a file, all you need to do is tell Archie what you're looking for; Archie will display the name of each remote host that has the file and show you how to get there or get the file for you.

Anarchie

Anarchie (pronounced 'anarchy') is the name of a client used to search FTP sites . It has Archie search capabilities built into it.

To open Anarchie, double-click on its icon. If Anarchie's Preferences are set to open automatically to Bookmarks, you will see a window with common choices of sites from which useful Macintosh files can be retrieved. If not, a search dialog box will appear and you'll be asked to enter a word or string for your search. (If you've finished one search and wish to start another, choose Archie from the File menu.)

In the dialog box, the Server is the Archie server to query. A pop-up menu lists most of the known Archie servers; if one doesn't seem to be responding, choose another.

In the Search field you will specify what you want to find; you can search by exact match if you know the name of the file you want, or by substring match; Archie will find the names of files that contain the word you specify.

When you've specified the word or words you wish to search on, click Search and wait; you'll see a window showing the word you specified and a guestimate of how long your search may take (it doesn't usually take 15 minutes!). When a search is complete, matches will appear in a window. To directly access a found item, you can double-click on any item in the list that is returned.

If you know the address of the FTP server where a file is located, for example

mathforum.org or the complete path to a particular file, such as
mathforum.org/projects/connected.geometry.NSF you can select Get from the File menu and enter the address to access that directory or file.

For Macintosh users, directories called /mac or /info-mac are good places to explore in many ftp archives.

Bookmarks

Anarchie comes with many Macintosh archive site bookmarks. Open Bookmark will show you a number of useful pre-set files or sites, or you can set the Preferences to open the full Bookmark listing automatically on startup. If it's not open, selecting List Bookmarks from the File menu will show you this window.

As with TurboGopher, you can make Bookmarks of your own for sites that you find you would like to be able to return to without having to remember them or reenter the address.

File Transfer using Anarchie

As you look at a file you have found using Anarchie, you can select and double-click on it to make Anarchie transfer it to your computer. If you choose to do so, you'll see a window that indicates the status of the transfer and shows when it has been completed.

For information on compressed files, see the Gopher handout in this Geometry Forum series.


Back to Table of Contents
Sarah Seastone
sarah@mathforum.org
November 27, 1994