Blog

Remove Fortune messages from Linux Mint's terminal

Remove Fortune messages from Linux Mint's terminal

Copyright © TechPad.co.uk

Learn how to remove the Fortune messages, jokes and pictures from the Bash terminal shell on Linux Mint.

When it's installed, Linux Mint configures a program called Fortune to run which places jokes and small ASCII-based pictures at the top of the shell. Personally, I find it takes up a bit too much space, so I prefer to have the plain old boring shell without Fortune running. Here's how to remove it. 

1. Open bash.bashrc

The terminal program Linux Mint uses is called Bash (Bourne Again Shell) and it stores its configuration settings in a file located in the /etc/bash directory. You'll need to open this up in a text editor as the root user. The easiest way to do this is to enter: sudo gedit /etc/bash.bashrc

2. Edit bash.bashrc

The bash.bashrc file is quite large, but you only need to make a very small change. Scroll down to the very bottom of the file and look for a line which says /usr/bin/mint-fortune.

This is the command that triggers Fortune to start when the shell is opened, displaying its contents in the terminal window. To disable this, all you need to do is put a hash symbol # in front of the line to comment it out and prevent Bash from running the application.

This will make the line read: #/usr/bin/mint-fortune

When you've done that save the file, open a terminal and Fortune should be gone. If you want to bring it back, simply re-open the file and remove the hash symbol. 

 

 



Published: TechPad.co.uk Wednesday 23 December 2009, 11:25 am
Views: 17,649 times
Filed under: Linux Mint terminal fortune Linux

(No votes yet)



Login to leave your comments

Please login

Username
Password
  Remember me
Reset password | Send activation code

Related items

Auto-NDISwrapper eases Linux wifi
Auto-NDISwrapper eases Linux wifi
The easylinuxwifi.org project has launched... no votes (No votes)
How to install software on Ubuntu Linux
How to install software on Ubuntu Linux
Ubuntu is one of the easiest Linux distrib... 5 (1 vote)
How to keep your Ubuntu Linux system up to date
How to keep your Ubuntu Linux system up to date
Ubuntu makes it really easy to keep your s... no votes (No votes)
Watch digital TV from your computer with Zattoo
Watch digital TV from your computer with Zattoo
Zattoo makes it possible to watch terrestr... no votes (No votes)
13 things we'd love to see in Ubuntu Jaunty Jackalope
13 things we'd love to see in Ubuntu Jaunty Jackalope
Ubuntu is arguably one of the best Linux d... 5 (1 vote) *1 comment

Recently added

How to create a Linux iPlayer download GUI using Zenity
How to create a Linux iPlayer download GUI using Zenity
Here's how I created a simple graphical ut... no votes (No votes)
A taste of iPhone support coming in Ubuntu Lucid Lynx
A taste of iPhone support coming in Ubuntu Lucid Lynx
Ubuntu's Lucid Lynx release, which comes o... no votes (No votes)
Frequently asked questions on NexentaCore
Frequently asked questions on NexentaCore
Frequently asked questions about NexentaCo... no votes (No votes)
Create a video transcoder GUI with Zenity and ffmpeg
Create a video transcoder GUI with Zenity and ffmpeg
Create a GUI application for your Linux co... 4 (1 vote)

Most viewed


Recent comments


Analytics sites

Visual Revenue blog
Visual Revenue blog
Interesting web analytics, ...
VKI Studios
VKI Studios
VKI Studios was founded in ...
SiteScan by EpikOne
SiteScan by EpikOne
SiteScan is a diagnostic to...