HowTo: Fortune & Cowsay
Posted: 2 Apr 2014, 20:59pm - Wednesday

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
or
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):
PATH=$PATH:/usr/games
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 http://http.kali.org/kali kali main non-free contrib
deb http://security.kali.org/kali-security kali/updates main contrib non-free
## Source repositories
deb-src http://http.kali.org/kali kali main non-free contrib
deb-src http://security.kali.org/kali-security 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...