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 read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
clgy15

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!
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
Oscar799
Level 20
Level 20
Posts: 10416
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

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 20
Level 20
Posts: 10416
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

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 20
Level 20
Posts: 10416
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

Re: Where oh where are my Mint Fortunes?

Post by clgy15 »

Will do, thanks
Aging Technogeek

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.
emorrp1

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
Aging Technogeek

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.
Locked

Return to “Other topics”