The Art of War Fortune Mod
Table of contents
- Download & Installation
- About & Contact
* DOWNLOAD: 1.0 - August 28 2005 - Initial Release ∞
fortune is a text based application which displays a random 'quote' on your screen. It is most commonly added in a ~/.bashrc file so it shows a quote each time you open a shell or log in. There are also some screensavers that make use of fortune. The name originates from the fortune cookies (http://en.wikipedia.org/wiki/Fortune_cookie∞
) which is a cookie with a piece of paper inside with a prophecy or a general wisdom.
Fortune can easily be extended. New quotes from custom datafiles can be used and this package contains such a datafile. While I was reading The Art of War (printed on dead trees) it struck my mind
that this book was written as if it was one huge (some 100 pages) fortune file. I also noticed that the book contains many truth about war, but it was even more stunning that a book with an age of more than two thousand years simply addressed some facts about war that some generals and countries know still have problems with. The preface of the book I read contained a preface by the translater which stated that in his opinion each person involved with the execution of war should take a test about the contents of The Art of War each year and get fired when he fails the test. More information about the
author of The Art of War can be found at http://en.wikipedia.org/wiki/Sun_Tzu∞
more information on The Art of War can be found at http://en.wikipedia.org/wiki/The_Art_of_War∞
I already heard a lot about The Art of War (I came across it multiple times on the Internet) but I really got triggered to get it at the library after viewing a James Bond movie: 'Die Another Day'.
The archive you extract contains the following files:
|-> 132a.txt The original vanilla text version of The Art of War. The original version which came from the project Gutenberg (www.gutenberg.org)
| website. Project Gutenberg contains also a second version with more comments and footnotes but this text was not usefull for this purpose.
|-> LICENSE A copy of the GNU General Public License. This project is released under its terms
|-> LICENSE.GUTENBERG The Project Gutenberg License under which terms the datafile was released
|-> README This file wich general information and installation instructions
|-> taow The data file, contains the individual quotes
|-> taow.dat This is a header file to the actual data file, it contains an enumeration of string offsets. It can recreated by running strfile (man 1 strfile)
Download & Installation
The homepage of this fortune mod can be found at http://www.de-brauwer.be/wiki/wikka.php?wakka=TheArtOfWar∞
and also the most recent version of this package can be found there. But except some merge of some quotes no big changes should occur.
Installation is very easy. It is however required that you have fortune installed:
On a Debian box for example:
helios@qntal:/usr/share/games/fortunes$ apt-cache search fortune-mod
fortune-mod - provides fortune cookies on demand
fortunes - Data files containing fortune cookies
When it is installed it is generally located in /usr/games/fortune.
The data file can generally be found in: /usr/share/games/fortunes/ To install simply copy taow and taow.dat to /usr/share/games/fortunes to test the installation simply run:
qntal:/usr/share/games/fortunes# /usr/games/fortune taow
Thus one who is skillful at keeping the enemy
on the move maintains deceitful appearances, according to
which the enemy will act. He sacrifices something,
that the enemy may snatch at it.
--The Art of War by Sun Tzu
Chapter V: Energy
When you get 'No fortunes found'
you have done something wrong you should verify that you placed the files on the correct location and try again.
To view all files search for quotes run:
qntal:/usr/share/games/fortunes# /usr/games/fortune -f | grep taow
In this case I have
qntal:/usr/share/games/fortunes# /usr/games/fortune -f 2>&1| grep taow
2.42% chance of getting a quote from The Art of War (taow). The fortune manpage will give you additional information on how to tune your settings.
In order to have a quote from The Art of War when opening a console simply enter the following command at a shell prompt:
echo "/usr/games/fortune taow" > ~/.bashrc
In the assumption your default shell is BASH and no other fortune command is in any of your BASH startup scripts.
About & Contact
These files are available under the terms of the general public license, the original files were available under the project gutenberg license.
You have the permission to modify and distribute the files found in this package or the package in total. The only requirement is that the name of the About & Contact section gets distributed with it.