devildog wrote: ↑Mon Sep 04, 2023 11:29 am
It's not *nix if fortune isn't running!
The attached zip contains the command itself (/usr/games/fortune) some missing deps, and some fortune cookie files (lists of jokes and quotations) to get you started!
Thank you.
[Moderator]: I'm going to take the liberty to move this thread to the Fatdog64 Software sub-forum, where other contributed packages are usually posted.
Question:
Is there a more elegant solution than digging for .debs, then converting them? Fortune and its deps were missing from slapt.
Covering a broader spectrum of related topics, here are some software package basics:
1. Additional software packages: http://distro.ibiblio.org/fatdog/web/fa ... kages.html
2. Why doesn't this Debian/Ubuntu package work? http://distro.ibiblio.org/fatdog/web/faqs/Debian.html
3. How to make packages for Fatdog64 http://distro.ibiblio.org/fatdog/web/fa ... ckage.html
4. sbopkg: Slackbuilds.org Package browser (Fatdog64 900) viewtopic.php?t=9306
Digging for .debs (or other foreign packages) is part of #2 above. Unfortunately it's time consuming and prone to error. This is the main resource https://www.debian.org/distrib/packages. You can also try packages from other major distributions but you won't have a point-and-click method to convert them to Fatdog package format as it's the case for .debs.
Question:
How can I make the default FD terminal (urxvt) run this on opening so I receive a new fortune each time the terminal is opened?
Basically I want this to run when the terminal opens...
Short answer: put your code in $HOME/.shinit
Modified .bash_profile and added...
Modified /etc/.profile
...
Roughly cut:
- "profile" files run when the shell is a login shell, which typically happens when you boot the system.
- "rc" files run every time a new shell is started, which typically involves opening a terminal window or entering an interactive sub-shell.
So what about the .shinit file? There is no "profile" nor "rc" in its name.
".shinit" is like an "rc" file but it works for all Bourne-like shells, like sh, bash, dash, zsh, etc., whereas ".bashrc" would only run for the bash shell (an the sh shell when it's linked to /bin/bash).
Note: the .shinit file runs only because $ENV=/etc/shinit and /etc/shinit runs $HOME/.shinit.