LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux > Linux - General
User Name
Password
Linux - General This forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Tags used in this thread
Popular LQ Tags , , ,

Reply
 
Thread Tools
Old 07-25-2006, 04:21 PM   #1
burninGpi
Member
 
Registered: Mar 2006
Location: Fort McMurray, Canada
Distribution: Puppy 2.14 (x86), OSX leopard (ppp64 && x86)
Posts: 160
Thanked: 0
Change greeting text on console


[Log in to get rid of this advertisement]
How do you change the message that appears at the top of the screen when you start a console login?
burninGpi is offline     Reply With Quote
Old 07-25-2006, 04:28 PM   #2
closet geek
Member
 
Registered: Apr 2003
Location: England
Posts: 146
Thanked: 0
Try these two:

/etc/issue
/etc/motd

cg
closet geek is offline  
Tag This Post , , ,
Reply With Quote
Old 07-25-2006, 04:29 PM   #3
introuble
Member
 
Registered: Apr 2004
Distribution: Debian -unstable
Posts: 701
Thanked: 0
Ignore this, posted one minute too late Wanted to say: edit /etc/issue
introuble is offline     Reply With Quote
Old 07-25-2006, 04:29 PM   #4
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Lenny (x86)
Posts: 5,275
Thanked: 96
I modified the /etc/issue file of my install to add the "Warning: this computer is for offical blah blah" before the console login.

Edit: Beaten to the punch!
pljvaldez is offline     Reply With Quote
Old 07-25-2006, 04:37 PM   #5
burninGpi
Member
 
Registered: Mar 2006
Location: Fort McMurray, Canada
Distribution: Puppy 2.14 (x86), OSX leopard (ppp64 && x86)
Posts: 160
Thanked: 0

Original Poster
thanks for the quick reply! I'll try it out ASAP.
burninGpi is offline     Reply With Quote
Old 07-25-2006, 06:52 PM   #6
Matir
Moderator
 
Registered: Nov 2004
Location: Atlanta, GA
Distribution: Ubuntu
Posts: 8,347
Thanked: 13
If you use SSHD, you can also add a line in there with something like:
Code:
Banner /etc/issue
Anyone happen to know the source of the name 'issue'?
Matir is offline     Reply With Quote
Old 07-26-2006, 04:32 AM   #7
introuble
Member
 
Registered: Apr 2004
Distribution: Debian -unstable
Posts: 701
Thanked: 0
I'd use /etc/issue.net for the SSHD stuff
introuble is offline     Reply With Quote
Old 07-26-2006, 05:07 AM   #8
ethics
Senior Member
 
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,526
Thanked: 0
i just made a small script that uses fortune-mod and greets $USER @ $HOSTNAME with a random quote, why i didn't put it in one of those files i don't know :S
ethics is offline     Reply With Quote
Old 07-26-2006, 10:39 AM   #9
Matir
Moderator
 
Registered: Nov 2004
Location: Atlanta, GA
Distribution: Ubuntu
Posts: 8,347
Thanked: 13
Quote:
Originally Posted by ethics
i just made a small script that uses fortune-mod and greets $USER @ $HOSTNAME with a random quote, why i didn't put it in one of those files i don't know :S
Because those files aren't executed, just printed out.
Matir is offline     Reply With Quote
Old 07-26-2006, 01:17 PM   #10
introuble
Member
 
Registered: Apr 2004
Distribution: Debian -unstable
Posts: 701
Thanked: 0
If you want the "greeting message" to appear *after* login, use [should you be using bash] ~/.bash_profile / ~/.bashrc [for every user] or /etc/profile [system wide].
introuble is offline     Reply With Quote
Old 07-26-2006, 01:36 PM   #11
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Lenny (x86)
Posts: 5,275
Thanked: 96
Quote:
Originally Posted by introuble
If you want the "greeting message" to appear *after* login, use [should you be using bash] ~/.bash_profile / ~/.bashrc [for every user] or /etc/profile [system wide].
/etc/motd appears after login.
pljvaldez is offline     Reply With Quote
Old 08-01-2006, 12:24 PM   #12
burninGpi
Member
 
Registered: Mar 2006
Location: Fort McMurray, Canada
Distribution: Puppy 2.14 (x86), OSX leopard (ppp64 && x86)
Posts: 160
Thanked: 0

Original Poster
/etc/issue and /etc/motd worked, thanks!
burninGpi is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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
how to change some text of a certain line of a text file with bash and *nix scripting alred Programming 6 07-10-2006 12:55 PM
Console Text Color Change Mercurius Slackware 6 05-16-2006 08:35 AM
How to find and change a specific text in a text file by using shell script Bassam Programming 1 07-18-2005 08:15 PM
How to Change Console Text Colour flamesrock Linux - Software 3 05-10-2005 08:49 PM
Why I cannot change the setting on the Standard greeting in Redad 9.0? BEBO28 Linux - Software 2 07-16-2004 06:46 PM


All times are GMT -5. The time now is 11:16 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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration