Howto: Remove Fortune messages in the Terminal

Write tutorials for Linux Mint here
More tutorials on https://github.com/orgs/linuxmint/discu ... /tutorials and (archive) on https://community.linuxmint.com/tutorial
Forum rules
Don't add support questions to tutorials; start your own topic in the appropriate sub-forum instead. Before you post read forum rules
vincent

Re: Howto: Remove Fortune messages in the Terminal

Post by vincent »

Yes, remove that, or append the # symbol in front of it. Save the file and then re-open gnome-terminal.
Brad

Re: Howto: Remove Fortune messages in the Terminal

Post by Brad »

You monsters!Who'd want to remove those fortune messages?Their the best!
Brad

Re: Howto: Remove Fortune messages in the Terminal

Post by Brad »

why would you ever want to do that?
zackattack_11843

Re:

Post by zackattack_11843 »

mumbo719 wrote:While you have the terminal open remove the fortune program.

Code: Select all

sudo apt-get remove fortune
any way to make the background black again like it was
zackattack_11843

Re: Howto: Remove Fortune messages in the Terminal

Post by zackattack_11843 »

Okay I'm sorry for what i did i tried to remove the little cartoons just to make the terminal look more ... official i guess?
but now all my appearances are messed up
i had it where it was black now everything is white and a lot of my icons completely changed
i typed this into the terminal

sudo apt-get remove fortune

i tried replacing "remove" with "install" but nothing
can somebody please help me to get things back to the way they were
i promise i won't ever disrespect the ways of linux again
thank you
vincent

Re: Howto: Remove Fortune messages in the Terminal

Post by vincent »

Removing the fortunes wasn't the problem, it's that you removed a whole slew of other dependencies...

Code: Select all

vincent@vincent-laptop ~ $ sudo apt-get remove fortune
[sudo] password for vincent: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting fortune-mod instead of fortune
The following packages will be REMOVED:
  fortune-mod fortunes-husse fortunes-min mint-artwork-common
  mint-artwork-gnome mintsystem
0 upgraded, 0 newly installed, 6 to remove and 1 not upgraded.
After this operation, 13.1MB disk space will be freed.
Do you want to continue [Y/n]? n
Abort.
I'd think you'd want to re-install mint-artwork-common, mint-artwork-gnome, and mintsystem, but I believe they'll use the fortunes packages as dependencies:

Code: Select all

vincent@vincent-laptop ~ $ apt depends mintsystem
mintsystem
Depends: <mint-info>
mint-info-x64
Depends: cowsay
Depends: <fortune>
fortune-mod
Depends: mint-common
Depends: fortunes-husse
So, to fix this and get rid of fortunes as well, type the following commands in a terminal:

Code: Select all

sudo apt-get install fortune-mod fortunes-husse fortunes-min mint-artwork-common mint-artwork-gnome mintsystem
gksudo gedit /etc/bash.bashrc
And remove/comment out the line at the bottom, i.e. /usr/bin/mint-fortune. Save, and exit Gedit.

Open a new terminal. Your fortunes should no longer be there.
gychang

Re: Howto: Remove Fortune messages in the Terminal

Post by gychang »

much improved after "sudo apt-get remove fortune" on my LM9 but now when I open the terminal I get this before the prompt.

"bash: /usr/bin/mint-fortune: No such file or directory"!, have to clear each time to get clean prompt. Any help out there?

gychang
vincent

Re: Howto: Remove Fortune messages in the Terminal

Post by vincent »

gychang wrote:much improved after "sudo apt-get remove fortune" on my LM9 but now when I open the terminal I get this before the prompt.

"bash: /usr/bin/mint-fortune: No such file or directory"!, have to clear each time to get clean prompt. Any help out there?

gychang
Open a terminal and type the following:

Code: Select all

gksudo gedit /etc/bash.bashrc
in the end of the file, comment out/remove the line /usr/bin/mint-fortune, and then save the file. Open a new terminal and you should no longer see that line.
richiclway

Re: Howto: Remove Fortune messages in the Terminal

Post by richiclway »

Found this in bash.bashsrc:

if [ ! -f ~/.disable-mint-fortunes ]; then
/usr/bin/mint-fortune
fi

so perhaps create a file called ~/.disable-mint-fortunes
cologne

Re: Howto: Remove Fortune messages in the Terminal

Post by cologne »

richiclway wrote: so perhaps create a file called ~/.disable-mint-fortunes
I also found this built-in solution, when I wanted to comment out the line /usr/bin/mint-fortune (as it reads in latest editions). The howtos don´t consider this new content of the config file, at least not yet.

I tried it out, created an empty file with this name and it works!

Generally I appreciate customizing through config files of the user instead of modifying system files. I think I will mention this method in the community website.
kai3345

Re: Howto: Remove Fortune messages in the Terminal

Post by kai3345 »

[Deleted]
Last edited by kai3345 on Wed Jun 12, 2013 6:25 pm, edited 1 time in total.
telic
Level 3
Level 3
Posts: 188
Joined: Thu Mar 22, 2007 7:48 am

Re: Howto: Remove Fortune messages in the Terminal

Post by telic »

Why on Earth is this sophomoric preference (still) a default for Mint users? Should it caution me to think twice about entrusting my enterprise environment to a collegiate OS mindset?

:roll:
User avatar
tdockery97
Level 14
Level 14
Posts: 5058
Joined: Sun Jan 10, 2010 8:54 am
Location: Mt. Angel, Oregon

Re: Howto: Remove Fortune messages in the Terminal

Post by tdockery97 »

telic wrote:Why on Earth is this sophomoric preference (still) a default for Mint users? Should it caution me to think twice about entrusting my enterprise environment to a collegiate OS mindset?

:roll:
You might want to open up Package Manager and install a sense of humor. :D
Mint Cinnamon 20.1
Raydog

Re: Howto: Remove Fortune messages in the Terminal

Post by Raydog »

vincent wrote:
Open a terminal and type the following:

Code: Select all

gksudo gedit /etc/bash.bashrc
in the end of the file, comment out/remove the line /usr/bin/mint-fortune, and then save the file. Open a new terminal and you should no longer see that line.
Thanks vincent, that woked for me. :D

Edit-I just read the rest of this topic and I guess I had better thank clem as well for originally posting this hint. 8)
telic
Level 3
Level 3
Posts: 188
Joined: Thu Mar 22, 2007 7:48 am

Re: Howto: Remove Fortune messages in the Terminal

Post by telic »

tdockery97 wrote:
telic wrote:Why on Earth is this sophomoric preference (still) a default for Mint users? Should it caution me to think twice about entrusting my enterprise environment to a collegiate OS mindset?

:roll:
You might want to open up Package Manager and install a sense of humor. :D

Would that be in the same repository as your Mushroom_Kingdom.so driver?

A plaything OS is okay at home -- but for my non-beatnik clients, Ubuntu "represents."

;)
JoeInMN

Re: Howto: Remove Fortune messages in the Terminal

Post by JoeInMN »

Commenting out the code line is easy enough for most of us, but Profile Preferences really should have a "Show fortunes" tickbox on the General tab.
jesica

Re: Howto: Remove Fortune messages in the Terminal

Post by jesica »

thanks for the info
LindseyD.
Level 4
Level 4
Posts: 333
Joined: Fri Mar 26, 2010 12:35 pm

Re: Howto: Remove Fortune messages in the Terminal

Post by LindseyD. »

I've never touched my bashrc, but I don't have anything about fortune in it. And, needless to say, no cow and no fortunes.

And I miss them :cry:

Could someone please post the first few lines before (and maybe after?) the appropriate line so that I don't screw up putting the line in?
Mint17 KDE
Edgpaez

Re: Howto: Remove Fortune messages in the Terminal

Post by Edgpaez »

JoeInMN wrote:Commenting out the code line is easy enough for most of us, but Profile Preferences really should have a "Show fortunes" tickbox on the General tab.
+1!
I love those fortune messages, but I've seen people who doesn't agree...
a click and change would be pretty good thing to add :)
wayne128

Re: Howto: Remove Fortune messages in the Terminal

Post by wayne128 »

LindseyD. wrote:I've never touched my bashrc, but I don't have anything about fortune in it. And, needless to say, no cow and no fortunes.

And I miss them :cry:

Could someone please post the first few lines before (and maybe after?) the appropriate line so that I don't screw up putting the line in?
that line is the last line,, here are those lines just before
# enable bash completion in interactive shells
if [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi

# if the command-not-found package is installed, use it
if [ -x /usr/lib/command-not-found ]; then
function command_not_found_handle {
# check because c-n-f could've been removed in the meantime
if [ -x /usr/lib/command-not-found ]; then
/usr/bin/python /usr/lib/command-not-found -- $1
return $?
else
return 127
fi
}
fi

/usr/bin/mint-fortune
Post Reply

Return to “Tutorials”