How I gopher?
=============

I've read [How Anna gophers] and I thought that it's a good idea for a
new series. So I'd like to write how I gopher.

The great thing is that you don't need to install any software and the
Gopher server  is available at SDF.org  out of the box.  Just copy the
text  file   to  the   gopher  subdirectory   located  in   your  home
directory. When this subdirectory does not  exist, you need to run the
mkgopher  command and  issue the  setup command  in it.  In fact,  the
command only creates  a symlink in our home directory,  which could be
done without it.

From now on, you can create more text files, and after copying them to
the gopher subdirectory, they are visible on the public network.

The only catch  is that in order  to create a menu  page understood by
Gopher browsers, you  need to create a so-called map.  But this map is
also  a text  file. Just  read how  to  create it  and you  can do  it
manually. And  I did that for  a long time. Finally,  I created simple
scripts [1] [2] for this purpose, which  adds a link to the last entry
on the main map, and updates all links on the Phlog map after adding a
new file.

So it looks like Gopher is just  editing a text file. Please note that
our files must have read permissions  for all users (chmod command and
setting for others).

In conclusion,  it can be said  that publishing content via  Gopher in
the case of SDF.org is as simple as saving a text file.


~ [How Anna gophers]
 gopher://gopher.club/1/users/agk/

~ [1]
 https://github.com/szczja/scripts/blob/main/regenerate_main_gophermap.sh

~ [2]
 https://github.com/szczja/scripts/blob/main/regenerate_phlog_gophermap.sh

--
szczezuja.space CC BY-SA
@ Sat 08 Apr 2023 06:06:46 PM CEST