They offer different flash templates with latest features.
Login

Forgot password
Register
Changelog

25 Aug 2011
New signature and biography for users.
Improved statistics.
Moderators can now process ideas and tutorials.

22 Jul 2010
Only mutual friends appear in profile. Friends page now show mutual and non-mutual friends.

28 Jun 2010
Moderators can now delete software reviews.

23 Jun 2010
Performance improvements, faster listing of users, editions, countries and releases.

18 Jun 2010
New ISO testing module

Improve this website
  • Report bugs here.
  • Register ideas for improvements using the idea module on this website.
Back
Written by:
noztox
Score: 3
votes: 7
Format: Article

 how to fix a broken fortune


if we open the console with automatic start programs Fortunes, like this:

 _________________________________________
/ "My answer was partly the way it was!
| Because I did not know and did not have |
| The time to check "|
| |
\ Husse Sept 2 2007 /
 -----------------------------------------
  \
   \
       ___
     {~._.~}
      (Y)
     ()~*~()
     (_)-(_)
noztox @ mint ~ $ |

after updating linux mint, Fortunes become broken like this:

/Usr/bin/mint-fortune: line 35: [: ==: unary operator expected
noztox @ mint ~ $ |

how to fix a broken fortune? simple.
The first is open the console or terminal

noztox @ mint ~ $ sudo gedit /usr/bin/mint-fortune

Last search

....
if [-x "/usr/bin/gconftool-2"]; then
    showfortunes=`gconftool-2 --get /desktop/linuxmint/terminal/ show_fortunes 2> /dev/null`
    if [$ showfortunes == "true"]; then <-- error
        show_fortune
    ...

added to be like this

...
if [-x "/usr/bin/gconftool-2"]; then
    showfortunes=`gconftool-2 --get /desktop/linuxmint/terminal/ show_fortunes 2> /dev/null`
    ok = ""
    if [$ showfortunes == $ok]; then
        show_fortune
    ...

then save and exit

if you want to try it please open a new console or a new terminal

best regards smiley


Tags: fix, fortunes
Created: 1 year ago.
Last edited: 1 year ago.
Reviewed: 8 months ago by oscar799.
Read 295 times.

Comments

No comments so far.

Other tutorials from noztox

No other tutorials.