Solution to error console messages when using LMDE (Mint Fortune)

arawako
  12 years ago
  0

When upgrading Debian Linux Mint Edition, we get an annoying error message that sends the package mint-fortune, which is responsible for giving life to Larry the cow to the Tux and Gnu GNU, which wewelcome with messages wise fools, and even risque as we put the settings.

The solution is simple, just replace the new mint-fortune for the former, this package is a simple bashscript that lives in / usr / bin /

The correct script is this:

 

#!/bin/bash
RANGE=3
number=$RANDOM
let "number %= $RANGE"
case $number in
      0)
          cow="moose"
          ;;
      1)
          cow="tux"
          ;;
      2)
          cow="koala"
         ;;
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

and problem solved


Solución al error de los mensajes de consola al usar LMDE (Mint Fortune)

Al actualizar Linux Mint Debian Edition, nos conseguimos con un molesto mensaje de error que nos lanza el paquete mint-fortune, el cual se encarga de darle vida a la vaca Larry, a el Ñu de GNU y a Tux, los cuales nos dan la bienvenida con mensajes sabios, necios, y hasta subidos de tono según sea la configuración que le pongamos.

La solucion es sencilla, simplemente sustituir el nuevo mint-fortune por el antiguo; este paquete es un simple bashscript que se aloja en /usr/bin/

El script correcto es este:

#!/bin/bash
RANGE=3
number=$RANDOM
let "number %= $RANGE"
case $number in
      0)
          cow="moose"
          ;;
      1)
          cow="tux"
          ;;
      2)
          cow="koala"
         ;;
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

y problema resuelto