Skip to content

Instantly share code, notes, and snippets.

@zlorb
Forked from marianposaceanu/linux_fun.md
Last active June 19, 2024 08:24
Show Gist options
  • Save zlorb/4a3eff8981fcec8ca1c7 to your computer and use it in GitHub Desktop.
Save zlorb/4a3eff8981fcec8ca1c7 to your computer and use it in GitHub Desktop.
How to have some fun using the terminal.

Linux fun-o-matic

How to have some fun using the terminal.

  1. Install cowsay [0] via : sudo apt-get install cowsay
  2. Install fortune [1] via : sudo apt-get install fortune
  3. Install figlet [3] via : sudo apt-get install figlet
  4. Make sure you have Ruby installed via : ruby -v
  5. Install the lolcat [2] via : gem gem install lolcat
  6. (option) Add to .bash_profile and/or .bashrc
$ echo "This is a banner" | figlet | lolcat
$ fortune | cowsay | lolcat
$ git log -1 | cowsay -f dragon-and-cow | lolcat

OSX users can have fun too

  1. Make sure you have HomeBrew [9] installed via: brew -v
  2. Install cowsay [0] via : brew install cowsay
  3. Install fortune [1] via : brew install fortune
  4. Install figlet [1] via : brew install figlet
  5. Make sure you have Ruby installed via : ruby -v
  6. Install the lolcat [2] via : gem gem install lolcat or brew install lolcat
  7. (option) Add to .bash_profile and/or .bashrc

See also:

lolcat preview

@admercs
Copy link

admercs commented Oct 12, 2019

lolcat can also be installed on MacOS with brew install lolcat, so for the full install:

brew install cowsay fortune figlet lolcat

@Helios2154
Copy link

i'm dead after this

@faye1705
Copy link

i tried to install lolcat, i got : unable to locate package install, i think i worked out that thats because i need to install ubuntu? helpp

@deuspaul
Copy link

deuspaul commented May 21, 2020

i tried to install lolcat, i got : unable to locate package install, i think i worked out that thats because i need to install ubuntu? helpp

I was having this same issue and came across the following which resolved the issue: https://superuser.com/questions/1359633/apt-get-install-is-not-working-in-wsl

In short, all you have to do is run the following command to update:
sudo apt-get update

and then it will work! :)

@timohausmann
Copy link

macOS won't let you install gems to /usr/bin anymore, but you can tell it to write to /usr/local/bin:
sudo gem install lolcat -n /usr/local/bin

@inventfossil
Copy link

Instead of messing with the system ruby it's better to install lolcat for your current user using, gem install --user-install lolcat.
This would install in your home directory, to use the lolcat command add /home/<your-user-name>/.gem/ruby/2.7.0/bin to your path

@SiddharthShyniben
Copy link

Typo: No 4. in the OSX section says fortune instead of figlet

@hoang-himself
Copy link

Some package managers don't include fortune anymore. Install it using the name fortune-mod instead.

@AlejaEs
Copy link

AlejaEs commented Dec 31, 2021

buenas tardes como hago para instalar cowsay en gitbash en Windows 1, gracias

@zlorb
Copy link
Author

zlorb commented Jan 1, 2022

@Rustrian-b
Copy link

It can be a really basic advise however here it goes, if you get the error message "E: Unable to locate package package_name", you should try to use this command line "sudo apt update", it will update the cache and you should be able to install the package needed.

@Anonymous1299
Copy link

What's the command in git bash ??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment