Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-18-2008, 11:03 AM   #1
LQ Newbie
Registered: Jul 2008
Posts: 9

Rep: Reputation: 0
Question No login phrase is coming now..

Hi All,
In my early installation, whenever I was logging, System was telling me some good quote and phrase on the console screen only...
I don't know how I enabled that..
So when i did my this installation was looking for this option but all over but that didn't come.
Can anybody tell me how can I enable it..
Hey Friends,
I am sorry, I didn't mention that I am using the slackware 12.0.
can you please guide me now.

Last edited by the.reverser; 07-19-2008 at 11:42 AM. Reason: What distribution I am using i didn't mention that
Old 07-18-2008, 12:25 PM   #2
Registered: Jul 2008
Location: Montreal
Distribution: Debian/Fedora/RHEL
Posts: 45

Rep: Reputation: 15
Thumbs up Large set of options...

Without knowing precisely which distribution/version you were using, it's hard to determine how to do this, because they are quite a lot of options.

But usually, this either is done by the "login" program, or the shell you are using to work at the command line.

For example, login usually display the content of /etc/motd file, which could be updated regularly by a scheduled job.
Or you login shell could be doing this in its initialization (or .xxxxrc) file.

Usually, the provider of those funny quips is "fortune": make sure it is installed on you system, by invoking it at the command-line. It usually comes with a default fortune-cookies database that you can expand by installing more packages.

Provided that:
- you have fortune installed
- your login shell is bash (check by logging in and doing "echo $SHELL")
You can invoke it into your shell initialization script by adding those lines at the beginning of your ~/.bashrc
## The if below test:
# - wether we have a terminal attached and
# - whether this is a login shell
# because automatic process are usually not interested in fortune
# cookies: they might even cause bugs.
if [ -t 0 && "$SHLVL" == "1"]; then
Make sure to keep a copy of your old .bashrc, in case you make a mistake modifying it ;-)


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
find exact phrase subnet_rx Linux - General 1 03-29-2008 09:28 PM
does this phrase exist in english language? minike General 7 02-04-2006 02:41 PM
grep a phrase degraffenried13 Linux - General 1 04-04-2004 12:10 PM
grep [exact phrase] chrisfirestar Linux - General 2 02-09-2004 05:30 AM
need help urgently!!! display not coming and error mesage coming when user is logging rddreamz Linux - Newbie 0 08-14-2003 12:11 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:36 AM.

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