Howto: Remove Fortune messages in the Terminal
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
Don't add support questions to tutorials; start your own topic in the appropriate sub-forum instead. Before you post read forum rules
Re: Howto: Remove Fortune messages in the Terminal
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
You monsters!Who'd want to remove those fortune messages?Their the best!
Re:
any way to make the background black again like it wasmumbo719 wrote:While you have the terminal open remove the fortune program.
Code: Select all
sudo apt-get remove fortune
Re: Howto: Remove Fortune messages in the Terminal
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
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
Removing the fortunes wasn't the problem, it's that you removed a whole slew of other dependencies...
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:
So, to fix this and get rid of fortunes as well, type the following commands in a terminal:
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.
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.
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
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
Open a new terminal. Your fortunes should no longer be there.
Re: Howto: Remove Fortune messages in the Terminal
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
"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
Open a terminal and type the following: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
Code: Select all
gksudo gedit /etc/bash.bashrc
Re: Howto: Remove Fortune messages in the Terminal
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
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
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.richiclway wrote: so perhaps create a file called ~/.disable-mint-fortunes
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
[Deleted]
Last edited by kai3345 on Wed Jun 12, 2013 6:25 pm, edited 1 time in total.
Re: Howto: Remove Fortune messages in the Terminal
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?
- tdockery97
- Level 14
- Posts: 5058
- Joined: Sun Jan 10, 2010 8:54 am
- Location: Mt. Angel, Oregon
Re: Howto: Remove Fortune messages in the Terminal
You might want to open up Package Manager and install a sense of humor.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?
Mint Cinnamon 20.1
Re: Howto: Remove Fortune messages in the Terminal
Thanks vincent, that woked for me.vincent wrote:
Open a terminal and type the following: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.Code: Select all
gksudo gedit /etc/bash.bashrc
Edit-I just read the rest of this topic and I guess I had better thank clem as well for originally posting this hint.
Re: Howto: Remove Fortune messages in the Terminal
tdockery97 wrote:You might want to open up Package Manager and install a sense of humor.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?
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
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
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
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?
And I miss them
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
Re: Howto: Remove Fortune messages in the Terminal
+1!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.
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
that line is the last line,, here are those lines just beforeLindseyD. 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
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?
# 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