December 10, 2013

Fortune cookies

Fortune cookies, the only computer cookies worth saving.

                                    -- John Dideriksen

And there I was blogging about setting up a apt repository on you website, when suddenly, creating a fortune cookie package struck me. To use the fortunes you'll need fortunes installed, simply issue:

#sudo aptitude install fortunes


Fortune cookies? But how do you get those into your machine, and how do you handle the crumb issues?? Do you install a mouse?

That awkward moment when someone says something so stupid,
all you can do is stare in disbelief.
                                                                                                                                -- INTJ 
 
Fortune cookies are deeply explained right here, too deeply some may say, but I like it. How you bake your own flavored cookies is a completely different question. But, the recipe is extremely simple. Once you have your test file ready, it should look like this, according to the ancient secret recipe.

Fortune cookies, the only computer cookies worth saving.

                                    -- John Dideriksen
%
That awkward moment when someone says something so stupid,
all you can do is stare in disbelief.
 
                                               -- INTJ 
%
I've found him, I got Jesus in the trunk.

                        -- George Carlin
 
Now all you have to do is to install your fortunes using strfile issue:

#sudo cp quotes /usr/share/fortunes
#sudo strfile /usr/share/fortunes/quotes


And then

#fortune quotes

Should hit one of your freshly baked fortune cookies. Putting these freshly baked babies in a jar, in form of a Debian package, is just as easy. Simply create a Debian package following the recipe here.

No comments: