If you're new to Linux, you might be wondering how to make your terminal experience more fun or personalized. That’s where two awesome tools come in: figlet
and lolcat
.
With these, you can turn boring terminal sessions into colorful and creative ones perfect for showing off your system with style!
Table of Contents
- What You’ll Learn
- Step 1: Install figlet on RHEL 9
- Step 2: Add Color with lolcat
- Step 3: Display Info and ASCII Art on Terminal Launch
- What It Looks Like
- Final Thoughts
- Tools Recap
🧾 What You’ll Learn
- How to install
figlet
to generate ASCII art text - How to install
lolcat
to add rainbow colors - How to create a custom welcome banner that displays every time you open your terminal
- How to include system info like hostname and uptime
🔧 Step 1: Install figlet
Let’s start by installing figlet
, which converts regular text into fun ASCII art.
✅ Update your system first:
sudo dnf update -y
✅ Install EPEL (Extra Packages for Enterprise Linux):
sudo dnf install epel-release -y
✅ Now install figlet
:
sudo dnf install figlet -y
✅ Test it out:
figlet "Hello CloudWhistler"
You should see a big, bold ASCII message in your terminal.
🌈 Step 2: Add Color with lolcat
Now let’s spice things up with lolcat, a tool that adds rainbow colors to your terminal output.
✅ Install Ruby (needed for lolcat):
sudo dnf install ruby -y
✅ Install lolcat
using Ruby:
sudo gem install lolcat
✅ Try it with figlet:
figlet "Red Hat Rocks!" | lolcat
Now your ASCII art should show up in a rainbow of colors! 🎉
🖥️ Step 3: Display Info and ASCII Art on Terminal Launch
Wouldn’t it be cool if your welcome banner appeared automatically every time you opened a terminal? Let’s do that!
✅ Open your .bashrc
file:
vim ~/.bashrc
This file runs automatically when a new terminal session starts.
✅ Add the following to the bottom of the file:
# === Custom RHEL 9 Terminal Banner ===
clear
figlet -f slant "Welcome CloudWhistler" | lolcat
# === Show System Info ===
echo "Hostname : $(hostname)" | lolcat
echo "Date : $(date)" | lolcat
echo "Uptime : $(uptime -p)" | lolcat
echo "Users : $(who | wc -l)" | lolcat
echo "Kernel : $(uname -r)" | lolcat
✅ Save and exit:
- If you're using
vim
, try:w
to save or:wq
to save and quit.
✅ Apply changes immediately:
source ~/.bashrc
🧪 What It Looks Like
Here’s an example of what you'll see next time you open your terminal:
All beautifully rainbow-colored with lolcat
. 🌈
🧠 Final Thoughts
This is a simple way to personalize your Linux environment and learn about customizing your shell. It’s fun, educational, and a great stepping stone to more advanced terminal customizations.
💡 Bonus Ideas:
- Add a quote of the day
- Display disk or memory usage
- Customize the font style using
figlet -f
(tryfiglet -f script Hello!
)
🛠️ Tools Recap
Tool | Description |
---|---|
figlet | Converts text into ASCII art |
lolcat | Adds rainbow colors to terminal |
.bashrc | Script that runs at terminal start |
Thanks for reading! If you liked this article, follow me for more beginner-friendly information.
🖥️💥 Let’s make your terminal awesome.
Top comments (0)