LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux 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

Reply
 
LinkBack Search this Thread
Old 07-25-2006, 04:21 PM   #1
burninGpi
Member
 
Registered: Mar 2006
Location: Fort McMurray, Canada
Distribution: Gentoo ~amd64
Posts: 163

Rep: Reputation: 30
Change greeting text on console


How do you change the message that appears at the top of the screen when you start a console login?
 
Old 07-25-2006, 04:28 PM   #2
closet geek
Member
 
Registered: Apr 2003
Location: England
Posts: 146

Rep: Reputation: 15
Try these two:

/etc/issue
/etc/motd

cg
 
Old 07-25-2006, 04:29 PM   #3
introuble
Member
 
Registered: Apr 2004
Distribution: Debian -unstable
Posts: 700

Rep: Reputation: 31
Ignore this, posted one minute too late Wanted to say: edit /etc/issue
 
Old 07-25-2006, 04:29 PM   #4
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092

Rep: Reputation: 264Reputation: 264Reputation: 264
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!
 
Old 07-25-2006, 04:37 PM   #5
burninGpi
Member
 
Registered: Mar 2006
Location: Fort McMurray, Canada
Distribution: Gentoo ~amd64
Posts: 163

Original Poster
Rep: Reputation: 30
thanks for the quick reply! I'll try it out ASAP.
 
Old 07-25-2006, 06:52 PM   #6
Matir
Moderator
 
Registered: Nov 2004
Location: Kennesaw, GA
Distribution: Ubuntu
Posts: 8,502

Rep: Reputation: 98
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'?
 
Old 07-26-2006, 04:32 AM   #7
introuble
Member
 
Registered: Apr 2004
Distribution: Debian -unstable
Posts: 700

Rep: Reputation: 31
I'd use /etc/issue.net for the SSHD stuff
 
Old 07-26-2006, 05:07 AM   #8
ethics
Senior Member
 
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
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
 
Old 07-26-2006, 10:39 AM   #9
Matir
Moderator
 
Registered: Nov 2004
Location: Kennesaw, GA
Distribution: Ubuntu
Posts: 8,502

Rep: Reputation: 98
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.
 
Old 07-26-2006, 01:17 PM   #10
introuble
Member
 
Registered: Apr 2004
Distribution: Debian -unstable
Posts: 700

Rep: Reputation: 31
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].
 
Old 07-26-2006, 01:36 PM   #11
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092

Rep: Reputation: 264Reputation: 264Reputation: 264
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.
 
Old 08-01-2006, 12:24 PM   #12
burninGpi
Member
 
Registered: Mar 2006
Location: Fort McMurray, Canada
Distribution: Gentoo ~amd64
Posts: 163

Original Poster
Rep: Reputation: 30
/etc/issue and /etc/motd worked, thanks!
 
  


Reply

Tags
console, motd, tty


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
Trackbacks are Off
Pingbacks are On
Refbacks are 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 01:55 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
Open Source Consulting | Domain Registration