Where oh where are my Mint Fortunes?

Questions about other topics - please check if your question fits better in another category before posting here
Forum rules
Before you post please read how to get help
Post Reply
clgy15
Level 2
Level 2
Posts: 57
Joined: Sat Feb 06, 2010 12:04 pm

Where oh where are my Mint Fortunes?

Post by clgy15 »

Hey everybody,
Somehow or another I deleted my mint fortunes that show up in the terminal.... Yeah I have no idea either. Anyways I was wondering if someone could tell me where I can get them and how to put them back into place
Thanks!
User avatar
Oscar799
Level 19
Level 19
Posts: 9996
Joined: Tue Aug 11, 2009 9:21 am
Location: United Kingdom

Re: Where oh where are my Mint Fortunes?

Post by Oscar799 »

clgy 15,

Menu>System>Administration>Synaptic Package Manager

In Synaptic Package Manager search for "fortunes" - all the available fortune packs are in there,select which one(s) you wish to install,click "mark for installation" then click "Apply"

That should solve the problem.
Image
clgy15
Level 2
Level 2
Posts: 57
Joined: Sat Feb 06, 2010 12:04 pm

Re: Where oh where are my Mint Fortunes?

Post by clgy15 »

Nope that didnt do it.... Hmmm Okay so I can use the fortune messages again but they dont come in the animal shapes that they used to. So im thinking that when the terminal says no mint-fortune is found im thinking that mint has a program that takes a fortune and adds the animal to it. In that case I need the animals back. Im pretty sure its a program so... is it possible to get it back??
User avatar
Oscar799
Level 19
Level 19
Posts: 9996
Joined: Tue Aug 11, 2009 9:21 am
Location: United Kingdom

Re: Where oh where are my Mint Fortunes?

Post by Oscar799 »

clgy 15,

I'm not entirely sure but it looks like you've lost "cowsay" as well.
Follow the same procedure as you did for "fortune" but search "cowsay" instead,and install in the same way.
Hopefully that will fix it.
Image
clgy15
Level 2
Level 2
Posts: 57
Joined: Sat Feb 06, 2010 12:04 pm

Re: Where oh where are my Mint Fortunes?

Post by clgy15 »

Nope that didnt help either
Okay this is what the terminal gives me when I start it...
bash: /usr/bin/mint-fortune: No such file or directory
Hmmmm... Do you think clem knows of a solution??
User avatar
Oscar799
Level 19
Level 19
Posts: 9996
Joined: Tue Aug 11, 2009 9:21 am
Location: United Kingdom

Re: Where oh where are my Mint Fortunes?

Post by Oscar799 »

clgy 15,

Something is definitely awry there.
Unfortunately I'm right out of ideas about how to fix it.
I'd suggest waiting a day or so to see if anyone else can help.
If you still don't have an answer bump the thread and I'll try to get someone to sort it out for you.
oscar799
Forum Moderator
Image
clgy15
Level 2
Level 2
Posts: 57
Joined: Sat Feb 06, 2010 12:04 pm

Re: Where oh where are my Mint Fortunes?

Post by clgy15 »

Will do, thanks
User avatar
Aging Technogeek
Level 13
Level 13
Posts: 4578
Joined: Sun Jan 11, 2009 9:54 am
Location: Right about here

Re: Where oh where are my Mint Fortunes?

Post by Aging Technogeek »

Try this. Open /usr/bin as root and add this (this is my /usr/bin/mint-fortune file)

Code: Select all

#!/bin/bash
RANGE=4
number=$RANDOM
let "number %= $RANGE"
case $number in
	0)
		cow="small"
		;;
	1)
		cow="tux"
		;;
	2)
		cow="koala"
		;;
	3)
		cow="moose"
		;;
esac

RANGE=2
number=$RANDOM
let "number %= $RANGE"
case $number in
	0)
		command="/usr/games/cowsay"
		;;
	1)
		command="/usr/games/cowthink"
		;;
esac
/usr/games/fortune | $command -f $cow

To add the file, first right click in the /usr/bin folder and select "Create Document=>Empty File". Then open the new file with gedit, add the code I gave you, save the changed file, close the new file ,rename it mint-fortune, right click on the file, click "Properties" , open the "Permissions" tab and make sure The "Execute" bit is checked.
Close all files and try opening the terminal to see if all this worked.

If it doesn't work, "run in circles, scream and shout", then post back here and we will see if something else will work.
Registered Linux User 483387
emorrp1
Level 8
Level 8
Posts: 2158
Joined: Thu Feb 26, 2009 8:58 pm

Re: Where oh where are my Mint Fortunes?

Post by emorrp1 »

mint-fortune is provided by the mint-system package. If you've lost it, a simple reinstall should be sufficient:

Code: Select all

apt reinstall mintsystem
If you have a question that has been answered and solved, then please edit your original post and put a [SOLVED] at the end of your subject header
Hint - use a google search including the search term site:forums.linuxmint.com
User avatar
Aging Technogeek
Level 13
Level 13
Posts: 4578
Joined: Sun Jan 11, 2009 9:54 am
Location: Right about here

Re: Where oh where are my Mint Fortunes?

Post by Aging Technogeek »

clgy 15,

Try emorrp1's fix first. It should work and is much simpler than the one I proposed.

emorrp1,

Thanks for the assist. I'll remember the mint-system tie in if this ever comes up again.
Registered Linux User 483387
Post Reply

Return to “Other topics”