LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 11-09-2007, 03:49 AM   #1
XxQLxX
Member
 
Registered: Oct 2007
Distribution: Debian Till The End
Posts: 39

Rep: Reputation: 15
Cool 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
 
Old 11-09-2007, 07:32 AM   #2
farslayer
Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,228
Blog Entries: 5

Rep: Reputation: 189Reputation: 189
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/

Last edited by farslayer; 11-09-2007 at 07:46 AM.
 
Old 11-09-2007, 08:13 AM   #3
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 60
It's "fortunes" with an "s".

A nice way to use them is as the sources for screensaver programs that display text, like "Starwars"
 
Old 11-09-2007, 11:24 AM   #4
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 7,031
Blog Entries: 52

Rep: Reputation: Disabled
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".

Last edited by brianL; 11-09-2007 at 11:29 AM.
 
Old 11-09-2007, 02:44 PM   #5
XxQLxX
Member
 
Registered: Oct 2007
Distribution: Debian Till The End
Posts: 39

Original Poster
Rep: Reputation: 15
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).
 
Old 11-09-2007, 08:20 PM   #6
farslayer
Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,228
Blog Entries: 5

Rep: Reputation: 189Reputation: 189
Quote:
Originally Posted by XxQLxX View Post
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...
 
Old 11-09-2007, 10:33 PM   #7
XxQLxX
Member
 
Registered: Oct 2007
Distribution: Debian Till The End
Posts: 39

Original Poster
Rep: Reputation: 15
Quote:
editing .bashrc has been mentioned twice already...
Thanks I noticed the difference after I restarted my pc.

Last edited by XxQLxX; 11-10-2007 at 04:30 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Fortune Mod - Homer Quotes anupamsr Linux - Software 2 10-28-2005 05:39 AM
screensaver for x using fortune-mod? dtheorem Linux - Software 1 08-25-2004 01:41 AM
how to add some quotes to fortune? Vincent Slackware 2 02-25-2004 09:13 AM
fortune database of quotes?(and a question for the moderators too) rmanocha Linux - Software 1 01-24-2004 06:16 PM
Setting up Fortune-mod jester_69 Linux - General 2 07-01-2002 02:11 AM


All times are GMT -5. The time now is 03:53 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration