<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="index" title="Text File" newcontext="true">
<p>
Received: with LISTAR (v1.0.0; list gopher);
 Mon, 14 May 2001 10:07:19 -0500 (EST)
Return-Path: &lt;jgoerzen@complete.org&gt;
Delivered-To: gopher@complete.org
Received: from alexanderwohl.complete.org (unknown [64.64.82.251])
	(using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits))
	(Client CN &quot;alexanderwohl.complete.org&quot;,
 Issuer CN &quot;John Goerzen -- Root CA&quot; (verified OK))
	by pi.glockenspiel.complete.org (Postfix) with ESMTP
	id 69F4B3B807; Mon, 14 May 2001 10:07:18 -0500 (EST)
Received: by alexanderwohl.complete.org (Postfix, from userid 1000)
	id 28DD87A2B; Mon, 14 May 2001 10:07:12 -0500 (EST)
To: gopher@complete.org
Subject: [gopher] Re: Trying to figure out setting up Gopher server
References: &lt;Pine.LNX.4.21.0105120153250.17728-100000@chaos.electrontrap.org&gt;
From: John Goerzen &lt;jgoerzen@complete.org&gt;
Date: 14 May 2001 10:07:11 -0500
In-Reply-To: &lt;Pine.LNX.4.21.0105120153250.17728-100000@chaos.electrontrap.org&gt;
 (James Milne&#x27;s message of &quot;Sat, 12 May 2001 02:08:57 -0400 (EDT)&quot;)
Message-ID: &lt;87ae4gc6lc.fsf@complete.org&gt;
Lines: 78
User-Agent: Gnus/5.090004 (Oort Gnus v0.04) XEmacs/21.1 (Cuyahoga Valley)
MIME-Version: 1.0
Content-type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 8bit
X-archive-position: 158
X-listar-version: Listar v1.0.0
Sender: gopher-bounce@complete.org
Errors-to: gopher-bounce@complete.org
X-original-sender: jgoerzen@complete.org
Precedence: bulk
Reply-to: gopher@complete.org
List-help: &lt;mailto:listar@complete.org?Subject=help&gt;
List-unsubscribe: &lt;mailto:gopher-request@complete.org?Subject=unsubscribe&gt;
List-software: Listar version 1.0.0
X-List-ID: Gopher &lt;gopher.complete.org&gt;
List-subscribe: &lt;mailto:gopher-request@complete.org?Subject=subscribe&gt;
List-owner: &lt;mailto:jgoerzen@complete.org&gt;
List-post: &lt;mailto:gopher@complete.org&gt;
List-archive: &lt;http://www.complete.org/mailinglists/archives/&gt;
X-list: gopher
</p>
<p></p>
<p>Good morning James!
</p>
<p>James Milne &lt;jmilne@electrontrap.org&gt; writes:
</p>
<p>&gt; I&#x27;m interested in using Gopher for a few projects I have in mind, but
&gt; I&#x27;m having some trouble figuring out how to actually set things up.
</p>
<p>Glad to hear it!
</p>
<p>&gt; When I pull everything up in Lynx, I get this:
&gt;
&gt;                                   Gopher Menu
&gt;
&gt; (FILE) Net.txt (DIR) HTML-files
&gt;  (DIR) Text-files
</p>
<p>I should mention here that it is a known bug in Lynx that the first
two items in a Gopher menu are displayed on a single line.  That
happens everywhere.
</p>
<p>&gt; sorta explain what everything is, etc. I haven&#x27;t found the
&gt; documentation on how to do that, or perhaps I haven&#x27;t understood the
&gt; documentation on how to do that.
</p>
<p>It&#x27;s probably not documented :-)
</p>
<p>Gopher, the original gopher protocol, has various document types -- 0
for text, 1 for directory, etc.  There is a type &#x27;i&#x27; that is used for
information.  With UMN gopherd, you can create a file that looks like
this:
</p>
<p>Name=Welcome to gopher at quux.org!
Type=i
Path=fake
Numb=1
</p>
<p>Name=
Type=i
Path=fake
Numb=2
</p>
<p>Name=This server has a lot of information of historic interest,
Type=i
Path=fake
Numb=3
</p>
<p>I have a script (that is included in gopherweblink in Debian, BTW)
that will take a simple text file and generate this file, so you don&#x27;t
have to edit this hideous monster by hand :-)
</p>
<p>&gt; I&#x27;m also somewhat confused as to what I should be using at
&gt; times. .map, .cap, .link, etc...
</p>
<p>The .cap are for individual directories.  Other than that, it wouldn&#x27;t
hurt to stick to the filenames as mentioned in the gopherd manpage.
However, UMN gopherd will actually parse any dotfile in the directory
that looks like it&#x27;s of the right format.  So you can use whatever
names you like.
</p>
<p>&gt; I know Gopher isn&#x27;t really &quot;pretty&quot;, and I&#x27;m more interested in
&gt; getting results, but it would still be nice to layout everything nicer
&gt; and explain things a bit better. Can anyone provide a nice guide on
&gt; how to actually &quot;write&quot; Gopher sites, akin to the many HTML tutorials
&gt; I could find?
</p>
<p>I&#x27;m not sure if there are any comprehensive ones out there, but feel
free to ask your questions here.  At the simplest level, you can
simply arrange your documents in a directory hierarchy and let people
get to them via gopher.  On a more advanced level, you can include
links to files in other locations or on other servers.  It&#x27;s also
possible to serve up HTML and related formats via gopher.
</p>
<p>-- John
</p>
<p>--
John Goerzen &lt;jgoerzen@complete.org&gt;                       www.complete.org
Sr. Software Developer, Progeny Linux Systems, Inc.    www.progenylinux.com
#include &lt;std_disclaimer.h&gt;                     &lt;jgoerzen@progenylinux.com&gt;
</p>
</card>
</wml>
