Fortune

Co to jest fortune?

Fortune wyświetla na ekranie monitora różne, ciekawe aforyzmy, powiedzonka, czy słynne zdania, które zostały wypowiedziane przez znane bądź nieznane osoby. Zwroty podzielone są na kilkanaście kategorii m.in. zabawne, miłosne, komputerowe, humorystyczne i wiele wiele innych. W pokaźniej bazie powiedzonek nie może też zabraknąć całkiem nowych, komputerowych stwierdzień, często wyśmiewających system z Redmond.

Konfiguracja fortune, kfortune

Program, a w zasadzie gra fortune dostępna jest w prawie każdej nowszej dystrybucji linuxa. W Red Hacie jest to pakiet fortune-mod-xxx.i386.rpm, a program po zainstalowaniu leży sobie w kartotece /usr/games. Aby po każdym zalogowaniu do systemu pokazał nam się nowy tekst wystarczy na końcu pliku .bash_profile znajdującego się w domowym katalogu dopisać: /usr/games/fortune. Można oczywiście w tym wypadku używać dostępnych opcji.

Jeśli uruchomimy program wydając polecenie fortune, zostanie wyświetlone nam powiedzonko pochodzące z dowolnej kategori. Możemy zmusić program podając mu nazwę kategorii jako parametr np. fortune love, wyświetli nam coś związanego z miłością :-) Dostępne kategorie możemy otrzymać zapoznając się z katalogiem /usr/share/games/fortunes, gdzie są przechowywane pliki z bazami danych. Dla nas linuxowców ciekawe pozycje to: linuxcookie i computers.

Możemy też zmusić fortune aby wyświetlał tylko krótkie zdania - fortune -s, bądź długie - fortune -l w zależności od naszych upodobań i tego co chcemy robić. Raczej nieprzyjemne byłoby otrzymywanie kilkunastoliniowego tekstu po zalogowaniu się :-) Po więcej informacji zajrzyj na strony podręcznika systemowego man fortune

Istnieje także wersja programu dla środowiska KDE, nosząca nazwę kfortune. Jest to przyjazny, graficzny interfejs, którego możemy obsługiwać za pomocą myszy, a ciekawe aforyzmy kopiować do systemowego schowka.

Fortune na linux.sky

Jak już zapewne zauważyłeś pojawiające sie na pierwszej stronie, zaraz pod pingwinami zwroty pochodzą właśnie z fortune. Są one wybierane i staram się je zmieniać gdy aktualizuję stronę, więc pomyślałem sobie, że można by wszystkie opubikowane zebrać w jednym miejscu. Oto i one:

  • Anyone who thinks UNIX is intuitive should be forced to write 5000 lines of code using nothing but vi or emacs. AAAAACK! (Discussion in comp.os.linux.misc on the intuitiveness of commands, especially Emacs.)

  • I've run DOOM more in the last few days than I have the last few months. I just love debugging ;-) (Linus Torvalds)

  • "If you want to travel around the world and be invited to speak at a lot of different places, just write a Unix operating system." (By Linus Torvalds)

  • Linux is obsolete (Andrew Tanenbaum)
    :) (Artur Pęczak) #to oczywiście mój przypis

  • Linux! Guerrilla UNIX Development Venimus, Vidimus, Dolavimus.
    (By mah@ka4ybr.com, Mark A. Horton KA4YBR)

  • "Linux: the operating system with a CLUE...
    Command Line User Environment".
    (seen in a posting in comp.software.testing)

  • Microsoft is not the answer.
    Microsoft is the question.
    NO (or Linux) is the answer.
    (Taken from a .signature from someone from the UK, source unknown)

  • "...Unix, MS-DOS, and Windows NT (also known as the Good, the Bad, and the Ugly)." (By Matt Welsh)

  • "We all know Linux is great...it does infinite loops in 5 seconds." (Linus Torvalds about the superiority of Linux on the Amterdam Linux Symposium)

  • We use Linux for all our mission-critical applications. Having the source code means that we are not held hostage by anyone's support department. (Russell Nelson, President of Crynwr Software)

  • What's this script do?
    unzip ; touch ; finger ; mount ; gasp ; yes ; umount ; sleep
    Hint for the answer: not everything is computer-oriented. Sometimes you're in a sleeping bag, camping out. (Contributed by Frans van der Zande.)

  • Why use Windows, since there is a door? (By fachat@galileo.rhein-neckar.de, Andre Fachat)

  • "World domination. Fast" (By Linus Torvalds)

  • I develop for Linux for a living, I used to develop for DOS. Going from DOS to Linux is like trading a glider for an F117. (By entropy@world.std.com, Lawrence Foard)

  • Not me, guy. I read the Bash man page each day like a Jehovah's Witness reads the Bible. No wait, the Bash man page IS the bible. Excuse me... (More on confusing aliases, taken from comp.os.linux.misc)

  • "It's God. No, not Richard Stallman, or Linus Torvalds, but God." (By Matt Welsh)

  • `When you say "I wrote a program that crashed Windows", people just stare at you blankly and say "Hey, I got those with the system, *for free*".' (By Linus Torvalds)

  • You can't go home again, unless you set $HOME.

  • Running Windows on a Pentium is like having a brand new Porsche but only be able to drive backwards with the handbrake on. (Unknown source)

  • Ever heard of .cshrc? That's a city in Bosnia. Right? (Discussion in comp.os.linux.misc on the intuitiveness of commands.)

  • Fatal Error: Found [MS-Windows] System -> Repartitioning Disk for Linux... (By cbbrown@io.org, Christopher Browne)

  • DOS: n., A small annoying boot virus that causes random spontaneous system crashes, usually just before saving a massive project. Easily cured by UNIX. See also MS-DOS, IBM-DOS, DR-DOS. (from David Vicker's .plan)

Będę starał się umieszczać nowe zwroty tak szybko jak będzie to możliwe i będzie mi się chciało :-)

 

 

--- --- --- -x-