HowTo: Fortune & Cowsay

Administration, Funstuff, Info.Tech, Learn New Things, Linux System Administration Comments Off on HowTo: Fortune & Cowsay


While working, I envy the terminal of my workmate, Roland Heymanns, showing a cow with quotes. So I install my own too.

OS: Kali Linux (Debian)

How to install:

root@mojo:~# apt-get install -y fortune cowsay

Then add the commands to your PATH

root@mojo:~# cd ~
root@mojo:~# nano .profile


root@mojo:~# cd ~
root@mojo:~# nano .bash_profile

Add the following to the end of the file (be sure its the right path for fortune and cowsay):

export PATH

Save and exit. Next edit your .bashrc

root@mojo:~# cd ~
root@mojo:~# nano .bashrc

Add the the following lines to the end of the file…

fortune | cowsay -d

or if you don’t want to set the PATH, simply edit your .bashrc and at the end of the file, add this line:

/usr/games/fortune | /usr/games/cowsay -d

That’s it… log off and log in again. Open your terminal, you’ll have your cow greetings.

In case you get an error like you cant locate fortune or fortune-mod or cowsay (most likely you will encounter this if you install your OS offline), update your source.list.

root@mojo: ~# nano /etc/apt/source.list

then replace the source with the following:

## Regular repositories
deb kali main non-free contrib
deb kali/updates main contrib non-free
## Source repositories
deb-src kali main non-free contrib
deb-src kali/updates main contrib non-free

then do the update and upgrade…

apt-get clean
apt-get update
apt-get upgrade

I think that would solve the problem…

WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Log in