Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > macOS > What does your MOTD file say?

What does your MOTD file say?
Thread Tools
IUJHJSDHE
Mac Elite
Join Date: Aug 2001
Location: Australia
Status: Offline
Apr 24, 2002, 01:40 PM
 
I changed the "Welcome to darwin"

Who else here has changed there MOTD file? And to what?

[ 05-17-2002: Message edited by: IUJHJSDHE ]
     
Gene Jockey
Mac Elite
Join Date: Mar 2001
Location: Houston, TX
Status: Offline
Apr 25, 2002, 01:25 AM
 
Mine says

Darwin Kernel Version 5.4: Wed Apr 10 09:27:47 PDT 2002;

because I'm used to that sort of thing on my Sun boxen at school. I just run a little script every time I update that pulls the info from uname -a and puts it in the motd file. It used to say "Welcome to shiva, beware the spaces..." I liked that

--J
     
Gee4orce
Professional Poster
Join Date: Dec 2000
Location: Staffs, UK
Status: Offline
Apr 25, 2002, 05:23 AM
 
I have a cron job that daily selects the MOTD from a file with literally 1000s of signature lines.

OK - so I was bored one day !
     
BigMac2
Forum Regular
Join Date: Dec 2000
Location: Montreal, Quebec, Canada
Status: Offline
Apr 25, 2002, 04:18 PM
 
Pretty simple
     
[APi]TheMan
Mac Elite
Join Date: Sep 2001
Location: Chico, CA and Carlsbad, CA.
Status: Offline
Apr 25, 2002, 08:03 PM
 
Originally posted by IUJHJSDHE:
<STRONG>Who else here has changed there MOTD file? And to what?</STRONG>
My /etc/motd says:

Welcome to my MacOSX box. This box runs MacOSX 10.1.4. Behave or I'll have to kill you.

[<font color = green>localhost:</font><font color = blue>~</font>] <font color = red>theman</font>%

Something to that effect I want to spice mine up a bit more, but I'm not very creative... I saw some stuff in a forum recently about using some program called Flash, if I remember correctly, that lets you create menus... I'd be interested in learning how to do that, along with color coding...
"In Nomine Patris, Et Fili, Et Spiritus Sancti"

     
IUJHJSDHE  (op)
Mac Elite
Join Date: Aug 2001
Location: Australia
Status: Offline
Apr 26, 2002, 02:41 AM
 
Originally posted by BigMac2:
<STRONG>Pretty simple
</STRONG>
SIMPLE!!!

THATS THE BEST ONE I HAVE SEEN SO FAR!!!!!!!!! !!!!!!!!!
     
waffffffle
Mac Elite
Join Date: Sep 2000
Status: Offline
Apr 26, 2002, 12:31 PM
 
Mine says this:
<font face = "courier">**************************************** ***************************************
Silver Pismo PowerBook G3 400Mhz/640MB/30GB Mac OS X 10.1.4

Welcome to Darwin!</font>


I was wondering if anyone could tell me how I can have it tell me when my last logon was. The school's Solaris, Linux and IRIX servers all show this line before displaying the motd file:
<font face = "courier">
Last login: Mon Apr 08 2002 03:39:18 -0400
</font>
Where does that come from? It would be nice to have that.

Also I'd love to see that cron job thing. I know nothing about cron, but the ability to have random phrases at login would make things a lot more fun.

[ 04-26-2002: Message edited by: waffffffle ]
     
BigMac2
Forum Regular
Join Date: Dec 2000
Location: Montreal, Quebec, Canada
Status: Offline
Apr 26, 2002, 02:41 PM
 
Originally posted by waffffffle:
<STRONG>Mine says this:
&lt;font face = "courier"&gt;
Last login: Mon Apr 08 2002 03:39:18 -0400
&lt;/font&gt;
Where does that come from? It would be nice to have that.
</STRONG>
OSX should have a lastlog file, but it's not created at the installation of OSX (Apple has miss this one), so you need to create with
<BLOCKQUOTE><font size="1"face="Geneva, Verdana, Arial">code:</font><HR><pre><font size=1 face=courier>
touch /var/log/lastlog
</font>[/code]

And now you should get your last login
     
Cybertron
Fresh-Faced Recruit
Join Date: Apr 2002
Status: Offline
Apr 26, 2002, 02:48 PM
 
Think simple

Think different, Think easy, Think Apple.
     
oeyvind
Senior User
Join Date: Mar 1999
Location: Somewhere near 1&ordm;18'N 103&ordm;50'E
Status: Offline
Apr 26, 2002, 02:55 PM
 
from my PB G4 667



[ 05-14-2002: Message edited by: oeyvind ]
     
Cybertron
Fresh-Faced Recruit
Join Date: Apr 2002
Status: Offline
Apr 26, 2002, 03:06 PM
 
TOO MUCH SIMPLE, adds color, twinkling there words and a good LOGO, it is Mac, puts a little more imagination
Think different, Think easy, Think Apple.
     
waffffffle
Mac Elite
Join Date: Sep 2000
Status: Offline
Apr 26, 2002, 07:13 PM
 
Originally posted by BigMac2:
<STRONG>

OSX should have a lastlog file, but it's not created at the installation of OSX (Apple has miss this one), so you need to create with
&lt;BLOCKQUOTE&gt;&lt;font size="1"face="Geneva, Verdana, Arial"&gt;code:&lt;/font&gt;&lt;HR&gt;&lt;pre&gt;&lt;font size=1 face=courier&gt;
touch /var/log/lastlog
&lt;/font&gt;&lt;/pre&gt;&lt;HR&gt;&lt;/BLOCKQUOTE&gt;

And now you should get your last login</STRONG>
Thanks! That works perfectly. Although is there a way to change the format in which the date is displayed?
     
BigMac2
Forum Regular
Join Date: Dec 2000
Location: Montreal, Quebec, Canada
Status: Offline
Apr 26, 2002, 08:47 PM
 
Originally posted by waffffffle:
<STRONG>

Thanks! That works perfectly. Although is there a way to change the format in which the date is displayed?</STRONG>
I don't know, it appear to be hardcoded in the login command.
     
ThunderP
Junior Member
Join Date: Jul 2001
Status: Offline
Apr 27, 2002, 12:56 AM
 
ok, stupid question, probably, but how do u do that nifty transparency effect in the terminal???
     
Justin W. Williams
Mac Elite
Join Date: Jul 2001
Location: Evansville, IN
Status: Offline
Apr 27, 2002, 01:09 AM
 
Welcome to Macintosh!* (*appropriated from NeXT by Steve Jobs, and rebranded
so as to exploit the Macintosh name and userbase)

[Credit to Cipher13 for that one]
Justin Williams
Chicks Really Dig Me
AIM - iTikki [NEW AND IMPROVED!]
http://www.tikkirulz.com
     
Scrod
Mac Elite
Join Date: Jan 2001
Location: Sad King Billy's Monument on Hyperion
Status: Offline
Apr 27, 2002, 07:16 PM
 
<BLOCKQUOTE><font size="1"face="Geneva, Verdana, Arial">code:</font><HR><pre><font size=1 face=courier>
Welcome to Zach's PowerBook! If you mess anything up he WILL know about it.
[powerbook:~] scrod%
</font>[/code]
I abused my signature until she cried.
     
amonitzer
Forum Regular
Join Date: Aug 2001
Location: Vienna, Austria
Status: Offline
Apr 28, 2002, 07:28 AM
 
Mine is:
<font face = "courier">This computer system is for authorized users only.

Individuals using this system without authority or
in excess of their authority are subject to having
all their activities on this system monitored and
recorded or examined by any authorized person,
including law enforcement, as system personnel deem
appropriate.

In the course of monitoring individuals
improperly using the system or in the course of
system maintenance, the activities of authorized
users may also be monitored and recorded. Any
material so recorded may be disclosed as appropriate.

Anyone using this system consents to these terms.</font>

(Yes, I'm the only user on the system )
     
tinrib
Mac Elite
Join Date: Feb 2001
Location: Bristol, UK, living in Melbourne, Australia
Status: Offline
Apr 28, 2002, 08:37 AM
 
how do you make those cool motds with graphics? and color...
     
Grozni Majmun
Forum Regular
Join Date: Oct 2001
Location: Tbilisi, Georgia
Status: Offline
Apr 28, 2002, 05:00 PM
 
Originally posted by ThunderP:
<STRONG>ok, stupid question, probably, but how do u do that nifty transparency effect in the terminal???</STRONG>
The easiest way is to download a little program called tinkertool from versiontracker or wherever. It allows you to change some preferences that apple has left hidden. You can also just type in some cryptic command, but I don't remember that...
     
BigMac2
Forum Regular
Join Date: Dec 2000
Location: Montreal, Quebec, Canada
Status: Offline
Apr 28, 2002, 05:57 PM
 
Originally posted by Grozni Majmun:
<STRONG>You can also just type in some cryptic command, but I don't remember that...</STRONG>
simple

<BLOCKQUOTE><font size="1"face="Geneva, Verdana, Arial">code:</font><HR><pre><font size=1 face=courier> defaults write com.apple.Terminal TerminalOpaqueness &lt;value&gt; </font>[/code]

The value it's something between 0 and 1.
     
Colddiver2
Junior Member
Join Date: Oct 2001
Location: Canada
Status: Offline
May 14, 2002, 08:18 AM
 
I am working on mine... I would like to put the output of both date and uname commands on a single line... Anyone knows how to do this?

Colddiver


Faith, indeed, has up to the present not been able to move real mountains.... But it can put mountains where there are none.

- Friedrich Nietzche
     
sahara
Forum Regular
Join Date: Apr 2001
Location: NY, NY, USA
Status: Offline
May 14, 2002, 02:40 PM
 
'I am the big cat who is in the seat of truth, in whom the light shines.'

From the Egyptian Book of the Dead, hehe... Boosts morale before I start getting compile errors.
- Sahara
     
kvm_mkdb
Mac Elite
Join Date: Oct 2000
Location: Caracas, Bolivarian Republic Of Venezuela
Status: Offline
May 14, 2002, 04:40 PM
 
Originally posted by Colddiver2:
<STRONG>I am working on mine... I would like to put the output of both date and uname commands on a single line... Anyone knows how to do this?

Colddiver</STRONG>
something like

date "+`uname -sr` date is %m/%d/%y %H:%M:%S"

?

Contra a barbárie, o estudo; Contra o individualismo, a solidariedade!
     
[APi]TheMan
Mac Elite
Join Date: Sep 2001
Location: Chico, CA and Carlsbad, CA.
Status: Offline
May 15, 2002, 01:37 AM
 
How do you execute commands in your motd? I try but it just prints the commands rather than their output. hehehe.
"In Nomine Patris, Et Fili, Et Spiritus Sancti"

     
tinrib
Mac Elite
Join Date: Feb 2001
Location: Bristol, UK, living in Melbourne, Australia
Status: Offline
May 15, 2002, 07:43 AM
 
Originally posted by [APi]TheMan:
<STRONG>How do you execute commands in your motd? I try but it just prints the commands rather than their output. hehehe.</STRONG>
i'm not sure but you could try putting the command in `back ticks`
     
Colddiver2
Junior Member
Join Date: Oct 2001
Location: Canada
Status: Offline
May 15, 2002, 08:11 AM
 
Well... Actually, it isn't the MOTD file I was editing but rather my .cshrc (this explains why I didn't had any troubles executing commands)...

Thanks for the command trick!

Colddiver


Faith, indeed, has up to the present not been able to move real mountains.... But it can put mountains where there are none.

- Friedrich Nietzche
     
[APi]TheMan
Mac Elite
Join Date: Sep 2001
Location: Chico, CA and Carlsbad, CA.
Status: Offline
May 15, 2002, 09:11 AM
 
Originally posted by Colddiver2:
<STRONG>Well... Actually, it isn't the MOTD file I was editing but rather my .cshrc (this explains why I didn't had any troubles executing commands)...

Thanks for the command trick!

Colddiver</STRONG>
I'm having trouble writing the date, I'm using echo `%m/%d%y` and it doesn't work. I need more info on how to execute commands to display at logon.
"In Nomine Patris, Et Fili, Et Spiritus Sancti"

     
Wevah
Senior User
Join Date: Nov 2001
Location: State of Denial
Status: Offline
May 15, 2002, 09:38 AM
 
Originally posted by [APi]TheMan:
<STRONG>

I'm having trouble writing the date, I'm using echo `%m/%d%y` and it doesn't work. I need more info on how to execute commands to display at logon.</STRONG>
Maybe try [b]`date '+%m/%d %y'`[b] ?
[Wevah setPostCount:[Wevah postCount] + 1];
     
Wevah
Senior User
Join Date: Nov 2001
Location: State of Denial
Status: Offline
May 15, 2002, 09:39 AM
 
Guess not; just tried....

Damn.
[Wevah setPostCount:[Wevah postCount] + 1];
     
kvm_mkdb
Mac Elite
Join Date: Oct 2000
Location: Caracas, Bolivarian Republic Of Venezuela
Status: Offline
May 15, 2002, 02:49 PM
 
Originally posted by [APi]TheMan:
<STRONG>

I'm having trouble writing the date, I'm using echo `%m/%d%y` and it doesn't work. I need more info on how to execute commands to display at logon.</STRONG>
echo does not know the date... what are you trying to accomplish?

Contra a barbárie, o estudo; Contra o individualismo, a solidariedade!
     
[APi]TheMan
Mac Elite
Join Date: Sep 2001
Location: Chico, CA and Carlsbad, CA.
Status: Offline
May 15, 2002, 03:17 PM
 
Originally posted by kvm_mkdb:
<STRONG>

echo does not know the date... what are you trying to accomplish?</STRONG>
I'm not particularily looking to put the date in my motd, I'm just trying to find out how to execute a command.... When I write echo, the shell outputs "echo"... It's not executing a program.

I'm looking for a general knowledge of how to execute commands to be displayed at logon, not necesarily the date.
"In Nomine Patris, Et Fili, Et Spiritus Sancti"

     
Wevah
Senior User
Join Date: Nov 2001
Location: State of Denial
Status: Offline
May 15, 2002, 05:07 PM
 
You could try putting it in your .tcshrc ...
[Wevah setPostCount:[Wevah postCount] + 1];
     
[APi]TheMan
Mac Elite
Join Date: Sep 2001
Location: Chico, CA and Carlsbad, CA.
Status: Offline
May 15, 2002, 09:51 PM
 
Originally posted by Wevah:
<STRONG>You could try putting it in your .tcshrc ...</STRONG>
Don't .cshrc and .tcshrc do the same thing?
"In Nomine Patris, Et Fili, Et Spiritus Sancti"

     
furtheraway
Junior Member
Join Date: Oct 2001
Location: nola, usa
Status: Offline
May 17, 2002, 02:46 AM
 
<BLOCKQUOTE><font size="1"face="Geneva, Verdana, Arial">code:</font><HR><pre><font size=1 face=courier>caution: not for use with mono devices</font>[/code]

a bucket of wet chicken feathers to anyone who catches the reference.
     
chris v
Addicted to MacNN
Join Date: Jan 2001
Location: The Sar Chasm
Status: Offline
May 17, 2002, 04:39 PM
 
Originally posted by furtheraway:
<STRONG>&lt;BLOCKQUOTE&gt;&lt;font size="1"face="Geneva, Verdana, Arial"&gt;code:&lt;/font&gt;&lt;HR&gt;&lt;pre&gt;&lt;font size=1 face=courier&gt;caution: not for use with mono devices&lt;/font&gt;&lt;/pre&gt;&lt;HR&gt;&lt;/BLOCKQUOTE&gt;

a bucket of wet chicken feathers to anyone who catches the reference.</STRONG>
didn't some old vinyl albums say that when stereo first came out in the early sixties?

Anyway, I got curious, so I changed my motd to:

Doctor, I'm afraid it's Terminal!

Had to do it in root, as I can't figure out how to get pico to overwrite otherwise. chown is still greek to this proto-geek.

CV

When a true genius appears in the world you may know him by this sign, that the dunces are all in confederacy against him. -- Jonathan Swift.
     
furtheraway
Junior Member
Join Date: Oct 2001
Location: nola, usa
Status: Offline
May 17, 2002, 04:48 PM
 
that's it, chris. it also appears in the liner notes of a happy little record called 'broken' from '92. a fun time for everyone.
     
loudambiance
Fresh-Faced Recruit
Join Date: Apr 2008
Status: Offline
Apr 28, 2008, 03:14 PM
 

MOTD file can be downloaded here: MOTD
     
Chuckit
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Apr 28, 2008, 05:15 PM
 
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
     
   
 
Forum Links
Forum 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
Top
Privacy Policy
All times are GMT -4. The time now is 10:59 PM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,