User Tools

Site Tools


gopher_site_setup_and_hosting_features

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
gopher_site_setup_and_hosting_features [2021/03/11 19:57] – [Caveat] fixed format peteyboygopher_site_setup_and_hosting_features [2023/06/30 23:37] (current) – [Caveat] hc9
Line 4: Line 4:
 What is Gopher? What is Gopher?
  
-//From: http://en.wikipedia.org/wiki/Gopher_(protocol)//+//From: <nowiki>http://en.wikipedia.org/wiki/Gopher_(protocol)</nowiki>//
  
 > The Gopher protocol is a TCP/IP Application layer protocol designed for distributing, searching, and retrieving documents over the Internet [...]. The protocol offers some features not natively supported by the Web and imposes a much stronger hierarchy on information stored on it. > The Gopher protocol is a TCP/IP Application layer protocol designed for distributing, searching, and retrieving documents over the Internet [...]. The protocol offers some features not natively supported by the Web and imposes a much stronger hierarchy on information stored on it.
Line 14: Line 14:
   * http://gopher.floodgap.com/overbite/relevance.html   * http://gopher.floodgap.com/overbite/relevance.html
  
-===== Creating your Gopherspace =====+===== Viewing Gopherspace =====
  
-The command ''mkgopher'' can be used to create and manage your gopherspace.+There are many ways to view gopherspace. Here are the easiest ways you can [[accessing web spaces#Gopher| view gopher pages from the SDF shell]] 
 + 
 +Additionally, you can issue the ''gopher'' command, either from the SDF shell or from within the ''mkgopher'' command prompt. This command can be also used to create your gopherspace as described below, and also includes a very basic browser to explore gopherspace. 
 +   
 +===== Creating your own Gopherspace ===== 
 + 
 +The command ''mkgopher'' can be used to create, manage and view your gopherspace.
  
 When you run ''mkgopher'', you will be given a command prompt. You can issue the HELP command here to get a list of the available commands: When you run ''mkgopher'', you will be given a command prompt. You can issue the HELP command here to get a list of the available commands:
Line 37: Line 43:
 The setup command will create a directory in your $HOME called gopher (This directory is a link to /ftp/pub/users/$USER/ ). On it, you can put all the files you want to be available in your Gopherspace. The setup command will create a directory in your $HOME called gopher (This directory is a link to /ftp/pub/users/$USER/ ). On it, you can put all the files you want to be available in your Gopherspace.
  
-Once you create your Gopherspace, the files you publish will be available at [[gopher://sdf.org:70/1/users/| gopher://sdf.org:70/1/users/$USER/ ]]\\  (note: currently, the directory listing at gopher://sdf.org:70/1/users/ doesn't appear to list all user directories. You may have to directly navigate to gopher://sdf.org:70/1/users/$USER/ in order to view your files. +Once you create your Gopherspace, the files you publish will be available at [[gopher://sdf.org:70/1/users/| gopher://sdf.org:70/1/users/$USER/ ]]\\  (:!: currently, the directory listing at gopher://sdf.org:70/1/users/ doesn't appear to list all user directories. You may have to directly navigate to gopher://sdf.org:70/1/users/$USER/ in order to view your files.)
- +
-===== Viewing Gopherspace ===== +
- +
-There are many ways to view gopherspace. The easiest for new users is one of the following: +
- +
-==== SDF Gopher Command ==== +
- +
-You can issue the gopher command, either from the SDF shell or from within the ''mkgopher'' command prompt. This gives a very basic browser to explore gopherspace. +
- +
-==== Use Lynx ==== +
- +
-[[http://lynx.invisible-island.net/|Lynx]] is the //text// web browser. \\  In addition to web browsing, Lynx is also capable of browsing gopherspace. \\  From the SDF shell, you can issue the command: +
- +
-  $ lynx gopher://sdf.org/ +
- +
-and Lynx will start up at sdf.org's gopher root menu.+
  
-==== Floodgap Gopher Proxy ====+==== Viewing with mkgopher ====
  
-Floodgap.com provides a public gopher proxy that you can view in your web browser at https://gopher.floodgap.com/gopher/gw. \\  For more informationsee the proxy info page: https://gopher.floodgap.com/gopher/+You can issue the gopher commandeither from the SDF shell or from within the ''mkgopher'' command promptThis gives a very basic browser to browse your site and also explore gopherspace.
  
 ===== Publishing Content ===== ===== Publishing Content =====
Line 175: Line 165:
 Say that you have two entries in your diary. If you use mkgopherentry, they will appear like: Say that you have two entries in your diary. If you use mkgopherentry, they will appear like:
  
->--This is my second post!-- +<file config entries> 
->      Tuesday, December 01th, 2009 + 
->  Lorem ipsum dolor sit amet, consectetur adipiscing elit. + --This is my second post!-- 
->  Cras eros turpis, tristique semper aliquet sit amet, +       Tuesday, December 01th, 2009 
->  hendrerit vel enim. Integer pulvinar leo in dolor posuere +   Lorem ipsum dolor sit amet, consectetur adipiscing elit. 
->  blandit. +   Cras eros turpis, tristique semper aliquet sit amet, 
->  Continued... +   hendrerit vel enim. Integer pulvinar leo in dolor posuere 
-> +   blandit. 
->  --First post-- +   Continued... 
->      Monday, November 30th, 2009 +  
->  First entry in my gopher log at SDF. +   --First post-- 
->  Continued...+       Monday, November 30th, 2009 
 +   First entry in my gopher log at SDF. 
 +   Continued... 
 + 
 +</file>
  
 //NOTE:// You can use the 'phlog' command to add your phlog/glog to the gopher.club phlog listing, and you can then update the listing after you create a post by running the following command: "touch ~ftp/pub/users/$LOGNAME" //NOTE:// You can use the 'phlog' command to add your phlog/glog to the gopher.club phlog listing, and you can then update the listing after you create a post by running the following command: "touch ~ftp/pub/users/$LOGNAME"
Line 235: Line 229:
  
 The following example will generate a list of files on a specified directory. It will be possible to sort the content alphabetically or by modification time, based on how you access the script. The following example will generate a list of files on a specified directory. It will be possible to sort the content alphabetically or by modification time, based on how you access the script.
 +
 +<code>
  
   #!/bin/sh   #!/bin/sh
Line 268: Line 264:
       echo "$itemtype$content ($date) $rel_dir    $server $port"       echo "$itemtype$content ($date) $rel_dir    $server $port"
   done   done
 +
 +</code>
  
 Note that the echo... line is\\ " echo "$itemtype$content ($date)<TAB>$rel_dir<TAB>$server<TAB>$port" " Note that the echo... line is\\ " echo "$itemtype$content ($date)<TAB>$rel_dir<TAB>$server<TAB>$port" "
Line 292: Line 290:
 ==== Caveat ==== ==== Caveat ====
  
-Besides what was said in the last paragraph of the figlet.cgi example, there's also another thing to stress. In that example (as with anything that will be served as a virtual directory or with an itemtype 1 or 7), content won't be displayed if you access your script via floodgap proxy (and maybe others). In this case you will need to format the output of your script. Luckily this is very easy. For instance, in the figlet.cgi example you will need to modify the echo ... line this way:\\ " echo "i$i<TAB><TAB>error.host<TAB>1" "\\  where <TAB> is a tab character (you should already know this!)C and error.host and 1 are, respectively, a fake server and port number (you could also have written fake instead of error.host and 300 instead of 1).+Besides what was said in the last paragraph of the figlet.cgi example, there's also another thing to stress. In that example (as with anything that will be served as a virtual directory or with an itemtype 1 or 7), content won't be displayed if you access your script via floodgap proxy (and maybe others). In this case you will need to format the output of your script. Luckily this is very easy. For instance, in the figlet.cgi example you will need to modify the echo ... line this way: 
 + 
 +''echo "i$i<TAB><TAB>error.host<TAB>1"'' 
 + 
 +where <TAB> is a tab character (you should already know this!)C and error.host and 1 are, respectively, a fake server and port number (you could also have written fake instead of error.host and 300 instead of 1).
  
  
 ---- ----
  
-legacy link: http://sdf.org/?tutorials/gopher,v 1.24 2020/01/01 22:37:47 niro Exp $+Traditional link (using [[wp>Revision_Control_System|RCS]]): http://sdf.org/?tutorials/gopher ,v 1.24 2020/01/01 22:37:47 niro Exp $ 
gopher_site_setup_and_hosting_features.1615492663.txt.gz · Last modified: 2021/03/11 19:57 by peteyboy