LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   fortune Mod Quotes in Debain (https://www.linuxquestions.org/questions/debian-26/fortune-mod-quotes-in-debain-598276/)

XxQLxX 11-09-2007 03:49 AM

fortune Mod Quotes in Debain
 
I was wondering if there was a way to get the quotes that pop up when you log into slackware in debian. I was also curious to what the command to pick the window manager you want to use if your not using GDM? I've already tried xwmconfig with a command not found responds

farslayer 11-09-2007 07:32 AM

I believe the quotes come from a program called fortune..

aptitude update
aptitude install fortune

then edit the /home/username/.bashrc
http://debaday.debian.net/2007/04/01...okies-for-all/


heres info on changing window managers.
http://www.tuxfiles.org/linuxhelp/changeman.html
http://linuxplanet.com/linuxplanet/tutorials/981/4/

rickh 11-09-2007 08:13 AM

It's "fortunes" with an "s".

A nice way to use them is as the sources for screensaver programs that display text, like "Starwars"

brianL 11-09-2007 11:24 AM

Can't remember if it's the same for Debian, but in Ubuntu I've put (just before the prompt section) in ~/.bashrc:

Code:

if [ -x /usr/games/fortune ]; then
    /usr/games/fortune -s
fi

The -s option gives a short quote.
Got it from the example .bashrc in the "Advanced Bash Scripting Guide".

XxQLxX 11-09-2007 02:44 PM

Thanks for your help. I now have the fortune program. How do I make it execute every time I login a terminal like in slackware? Is there a easier way to switch between window managers from the text based login screen (I don't want to use GDM or any other GNU login manager).

farslayer 11-09-2007 08:20 PM

Quote:

Originally Posted by XxQLxX (Post 2953648)
Thanks for your help. I now have the fortune program. How do I make it execute every time I login a terminal like in slackware?


editing .bashrc has been mentioned twice already...

XxQLxX 11-09-2007 10:33 PM

Quote:

editing .bashrc has been mentioned twice already...
Thanks I noticed the difference after I restarted my pc.


All times are GMT -5. The time now is 01:55 PM.