LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 05-04-2007, 03:01 PM   #1
doctapeppa
LQ Newbie
 
Registered: May 2007
Posts: 3

Rep: Reputation: 0
Shell login greeting.


Hello. When I ssh into my box, the first thing I see is:

Code:
Linux ubuntu-LAMP 2.6.20-15-server #2 SMP Sun Apr 15 07:41:34 UTC 2007 i686

The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.
Last login: Fri May  4 15:38:45 2007 from 192.168.1.100


How do I change that? Preferably I would like it to show the time, cal, uptime.

thanks.
 
Old 05-04-2007, 03:20 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
I think by modifying the file /etc/issue.
 
Old 05-04-2007, 03:25 PM   #3
doctapeppa
LQ Newbie
 
Registered: May 2007
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by pljvaldez
I think by modifying the file /etc/issue.

the only thing in /etc/issue is

Code:
Ubuntu 7.04 \n \l
I found it in /etc/motd, but now, how would I go about making a simple script to add the time, cal and uptime to the motd?
 
Old 05-04-2007, 03:41 PM   #4
doctapeppa
LQ Newbie
 
Registered: May 2007
Posts: 3

Original Poster
Rep: Reputation: 0
Nevermind. I figured it out. I just edited my ~/.bashrc file.

Thanks.
 
Old 05-04-2007, 08:19 PM   #5
hashash
Member
 
Registered: Apr 2007
Posts: 31

Rep: Reputation: 15
for all users it would:

Code:
cat /etc/motd
 
Old 04-05-2010, 11:54 PM   #6
bittus
Member
 
Registered: Aug 2006
Posts: 153

Rep: Reputation: 16
But pls explain what you have edited in the file.
 
Old 04-06-2010, 10:01 AM   #7
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,623

Rep: Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964Reputation: 7964
Quote:
Originally Posted by bittus View Post
But pls explain what you have edited in the file.
Spell your words out, please.

And all the OP added were simple commands, like "date", "cal", etc., to the profile. And please note that this thread is THREE YEARS OLD. What are you asking and what are you trying to do?? Be best to open your own thread, for your own question.
 
  


Reply

Tags
bash, greeting, login, motd, ssh



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to check in a script whether the shell is login or non login? frankie_DJ Programming 7 10-21-2015 10:09 AM
Difference between normal shell and login shell Manish Linux - General 7 11-14-2012 08:30 AM
wrong login shell prevent root login cefs99 Linux - Security 4 05-31-2006 08:28 AM
Login Screens: Windows XP style greeting screen Bluestreak Linux - Newbie 1 08-18-2003 11:04 AM
Login greeting message(s) vietsoft Linux - General 1 08-13-2003 10:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:02 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration