#include <infodrom.style>
#include <addresses.inc>

<page title="Installation of Infodrom Fortune Cookies">

<p>If you want to have fortune cookies displayed on your host as well,
you'll have to download the cookie database and install the program to
select and display a cookie.

<p>Simply download the source files from the <a href="download/">\
download</a> directory and place them into
<code>/usr/share/games/fortunes</code> or into a directory of their
own (you need the .dat files as well).  You can use wget to download
the files.  Some German fortune cookies are also included in the <a
href="http://packages.debian.org/fortunes-de">fortunes-de</a> package.</p>

<p>Additionally you'll need to install the <code>fortune</code>
command as well, which Debian ships in the <a
href="http://packages.debian.org/fortune-mod">fortune-mod</a>
package.  When the files were placed in the global directory, a simple
call to <code>fortune</code> should display a random cookie.</p>

<p>If that is done, simply place a command similar to the followings
into your <code>/etc/profile</code>, <code>~/.bash_profile</code> or
<code>~/.bashrc</a> file (or similar if you are using a different
shell).</p>

<table width=100% cellpadding=0 cellspacing=0>
<tr>
<td width=50%><ifont>
<pre>
   echo
   /usr/games/fortune infodrom-linux linux
   echo
</pre>
</ifont></td><td width=50%><ifont>
<pre>
   echo
   /usr/games/fortune ~/fortunes/
   echo
</pre>
</ifont></td>
</tr>
</table>

<p>The first command reads cookies from two files in the global
directory.  If you remove the filenames the file is chosen randomly.
The second command chooses a cookie database in the given directory
and displays a random cookie from it.</p>

<p>Depending on the place used to insert these commands you'll get a
fortune cookie displayed each time you log in into your machine or
whenever a new shell is spawned.</p>

</page>

# Local variables:
# mode: indented-text
# end:
