Page 3 of 5

Re: Howto: Remove Fortune messages in the Terminal

Posted: Tue Jun 15, 2010 2:30 pm
by vincent
Yes, remove that, or append the # symbol in front of it. Save the file and then re-open gnome-terminal.

Re: Howto: Remove Fortune messages in the Terminal

Posted: Thu Jun 17, 2010 3:18 pm
by Brad
You monsters!Who'd want to remove those fortune messages?Their the best!

Re: Howto: Remove Fortune messages in the Terminal

Posted: Sat Jun 26, 2010 3:29 pm
by Brad
why would you ever want to do that?

Re:

Posted: Sun Jun 27, 2010 3:40 pm
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

Re: Howto: Remove Fortune messages in the Terminal

Posted: Sun Jun 27, 2010 3:54 pm
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

Re: Howto: Remove Fortune messages in the Terminal

Posted: Sun Jun 27, 2010 9:04 pm
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.

Re: Howto: Remove Fortune messages in the Terminal

Posted: Sat Jul 03, 2010 3:25 pm
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

Re: Howto: Remove Fortune messages in the Terminal

Posted: Sat Jul 03, 2010 5:01 pm
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.

Re: Howto: Remove Fortune messages in the Terminal

Posted: Fri Aug 06, 2010 12:53 pm
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

Re: Howto: Remove Fortune messages in the Terminal

Posted: Thu Aug 19, 2010 1:19 pm
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.

Re: Howto: Remove Fortune messages in the Terminal

Posted: Sat Aug 21, 2010 8:29 pm
by kai3345
[Deleted]

Re: Howto: Remove Fortune messages in the Terminal

Posted: Fri Nov 05, 2010 2:18 pm
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:

Re: Howto: Remove Fortune messages in the Terminal

Posted: Fri Nov 05, 2010 5:31 pm
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

Re: Howto: Remove Fortune messages in the Terminal

Posted: Fri Nov 05, 2010 5:35 pm
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)

Re: Howto: Remove Fortune messages in the Terminal

Posted: Sat Nov 06, 2010 7:08 am
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."

;)

Re: Howto: Remove Fortune messages in the Terminal

Posted: Fri Nov 19, 2010 8:28 pm
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.

Re: Howto: Remove Fortune messages in the Terminal

Posted: Fri Dec 03, 2010 5:51 am
by jesica
thanks for the info

Re: Howto: Remove Fortune messages in the Terminal

Posted: Mon Dec 13, 2010 5:17 pm
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?

Re: Howto: Remove Fortune messages in the Terminal

Posted: Mon Dec 13, 2010 5:55 pm
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 :)

Re: Howto: Remove Fortune messages in the Terminal

Posted: Mon Dec 13, 2010 6:01 pm
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