fortunes
This is a collection of fortunes I've put together myself. The homestuck
directory contains quotes from the Homestuck webcomic by Andrew Hussie on
MS Paint Adventures. Each file contains quotes
from a single character, and should be a complete record of everything they have
said, not including Flash animations.
If you are not familiar with the command line, here is a short introduction; otherwise feel free to skip to the Install section. A terminal emulator is a program used to send commands directly to a shell, without any GUI. Commands are run simply by typing them. Within your desktop environment's applications menu, the terminal emulator may be listed as a system tool or accessory with a name like "Terminal", "Command Line", "Command Prompt", or anything else containing the fragment "term".
The purpose of fortunes is to be randomly picked and displayed on the command line for humorous effect. I published this package in the hope that it will motivate some users to start or continue learning about the command line, which is a fast, effective way to use your computer. Of course, if you are reading this, you likely already know how to use Git/GitHub at least, which puts you ahead of most users.
The instructions listed below contain text like this
, which is intended to be
typed verbatim into the terminal. If something is <bracketed>
it is a
placeholder for a real argument, which should not be bracketed.
Install
To install some or all fortunes on your system, follow these instructions.
- Enter the directory where you downloaded the source.
cd <~/Downloads/fortunes>
- Edit the
configure
script with a text editor such asnano
. It contains instructions on setting the user variables.<editor> configure
- Execute the configure script. If you get a message such as
bash: ./configure: Permission denied
, the file permissions are not set correctly, and you must remedy this withchmod +x configure
before retrying. If you get a message such asError: m4 not installed
, you are missing a dependency and must install that program from another source.tput
is provided with thencurses
software../configure
- If you want to install all fortunes, just run
make
ormake all
and skip to step 7. - Choose which targets you want and Make will build them. All fortune files are
located in the
src
directory. If you want to build a few at a time, the syntax ismake src/<dir/target.dat>
. For example,make src/homestuck/karkatvantas.dat
and thenmake src/homestuck/davestrider.dat src/homestuck/roselalonde.dat
builds those three strfiles. Be mindful not to omit the file extension. - Optionally, run
make clean
to delete all built files and start over. - Finally, install. Only fortune files that have had strfiles built will be
copied over to the system-wide directories.
make install
Packagers
Using the steps above as a guide, create a package with the make dependencies
listed in configure
and the runtime dependency fortune-mod
or whatever the
core fortune
package is called in your distro. Since install
is in the GNU
coreutils, it can reasonably be omitted.
The make install
target uses the DESTDIR
variable, as in this example for an
Arch Linux PKGBUILD: make DESTDIR="$pkgdir/" install
, which changes the
installation "root" to that shell-expanded directory.
Use
You can use the installed fortunes with the standard Unix
fortune
command. Invoking
it as fortune -e homestuck
or fortune -e homestuck/karkatvantas homestuck/solluxcaptor
is recommended, as the number of fortunes in each
fortune file vary widely. This will give each file an equal probability of being
chosen, and therefore provides more variety. Add this command to the file
~/.bashrc
to have it executed every time you open a new shell. See man 6 fortune
for more information.
Contribute
The upstream location of this package is on GitHub. Pull requests containing bugfixes, typo fixes, or new content are welcome.