* Mike Werner ([EMAIL PROTECTED]) wrote:
> On Thu, Feb 03, 2000 at 09:41:13PM +0000, Tom Gilbert wrote:
> > * Pavel Musil ([EMAIL PROTECTED]) wrote:
> > > Hi all,
> > > I have this silly problem - every time I log in (RedHat 6.1) a random
> > > quotation is displayed. Does anybody know from what file are these messages
> > > read and how can I configure their display.
> > > Thanks a lot
> > > 
> > > Pavel Musil
> > > [EMAIL PROTECTED]
> > 
> > Probably in the /etc/rc.d/rc.local script. It runs commands like
> > fortune, and sends their output to /etc/issue.
> 
> Probably not.  fortune is usally run from the users login script.
> If the person is using the bash shell, then I would look for a line
> in either their .bashrc or their .bash_profile - both of these should
> be found in the users home directory.  Here on my system I have it in
> my .bashrc - every time I open a new shell (whether it's a login shell
> or not) I get a quote.  Besides, Pavel said he's getting the quote when
> he logs in - rc.local and /etc/issue are boot time items.
> 
> Pavel:  take a look at man fortune  There's not a whole lot of configuration
> that can be done with fortune, but there is some.
> 
> > Don't edit /etc/issue itself, as it is written at boot.
> > 
> > My rc.local contains lines like:
> > 
> >     /usr/games/fortune > /etc/issue
> > 
> >     echo "" >> /etc/issue
> >     echo "$R" >> /etc/issue
> >     echo "Kernel $(uname -r) on $a $(uname -m)" >> /etc/issue
> > 
> >     cp -f /etc/issue /etc/issue.net
> >     echo >> /etc/issue
> 
> This is the first I've ever seen fortune run this way.

Hrm. I thought it was quite common. I don't want to see a quote every
time I open a terminal, log in, log out, etc.

This way you just see it on the console, before the login prompt.

Tom.
-- 
            .-------------------------------------------------------.
    .^.     | Tom Gilbert, England | [EMAIL PROTECTED] |
    /V\     |----------------------| www.tomgilbert.freeserve.co.uk |
   // \\    | Sites I recommend:   `--------------------------------|
  /(   )\   | www.freshmeat.net www.enlightenment.org slashdot.org  |
   ^^-^^    `-------------------------------------------------------'

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.linux-learn.org/faqs

Reply via email to