LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 11-23-2004, 01:07 PM   #1
pirozzi
Member
 
Registered: Sep 2003
Location: /naples/italy
Distribution: ubuntu 12.04 / Slackware 14
Posts: 150

Rep: Reputation: 15
show motd on login


first of all sorry for the extremely silly question.
using slack i get used to read this message. is it possible to have it printed on the screen just after the login? how?
thanks and i beg your pardon
 
Old 11-23-2004, 01:21 PM   #2
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,291

Rep: Reputation: 52
have you tried modifying /etc/motd?

edit: also -

chmod a-x /etc/profile.d/bsd-games-login-fortune.sh

this gets rid of the random message at login.

Last edited by Tuttle; 11-23-2004 at 01:28 PM.
 
Old 11-25-2004, 03:15 AM   #3
pirozzi
Member
 
Registered: Sep 2003
Location: /naples/italy
Distribution: ubuntu 12.04 / Slackware 14
Posts: 150

Original Poster
Rep: Reputation: 15
in my /etc/motd there's nothing but the very standard welcome message.
on the other hand i've nor a folder /profile.d, nor a file called bsd-games-login-fortune.sh
 
Old 11-25-2004, 03:35 AM   #4
overlord73
Member
 
Registered: Apr 2004
Location: ..where no life dwells..
Posts: 541

Rep: Reputation: 30
where do you want to show the message? what are you talking about: linux login or dedi-game-server-login?
in the case of normal linux login, edit /etc/motd!
 
Old 11-25-2004, 06:00 AM   #5
pirozzi
Member
 
Registered: Sep 2003
Location: /naples/italy
Distribution: ubuntu 12.04 / Slackware 14
Posts: 150

Original Poster
Rep: Reputation: 15
i'm talking about linux login.
the problem is what to do after editing the file. should i add something i soppose, but i don't know what.
 
Old 11-25-2004, 06:14 AM   #6
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: Ubuntu
Posts: 3,513

Rep: Reputation: 58
Don't know if this is a SuSE speciality, but the /etc/motd to be called by login is defined in /etc/login.def (managed by pwdutils).
Should be set like this:
Code:
MOTD_FILE	/etc/motd
 
Old 11-25-2004, 06:44 AM   #7
pirozzi
Member
 
Registered: Sep 2003
Location: /naples/italy
Distribution: ubuntu 12.04 / Slackware 14
Posts: 150

Original Poster
Rep: Reputation: 15
this is what i found in my /etc/motd

Linux foo 2.4.22-1-686 #6 Sat Oct 4 14:09:08 EST 2003 i686 GNU/Linux
Most of the programs included with the Debian GNU/Linux system are
freely redistributable; the exact distribution terms for each program
are described in the individual file in /usr/share/doc/*/copyright
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.

what i'm tring to do is set the system in order to print a randon massege at the linux login.
 
Old 11-25-2004, 07:36 AM   #8
overlord73
Member
 
Registered: Apr 2004
Location: ..where no life dwells..
Posts: 541

Rep: Reputation: 30
hmmm, the default /etc/motdīs of my last installed boxes were empty.
donīt know whats with the current debian version !?!
under FC all you have to do is: edit the empty motd-file, switch to another console and login...

so what happens, when you edit this file under your debian?
 
Old 11-25-2004, 09:09 AM   #9
pirozzi
Member
 
Registered: Sep 2003
Location: /naples/italy
Distribution: ubuntu 12.04 / Slackware 14
Posts: 150

Original Poster
Rep: Reputation: 15
overlord73 i still can't understand what you actually mean with edit. i can open the motd file but i still don't know what to do in it. should i delete the actual contents, maybe?
 
Old 11-25-2004, 10:17 AM   #10
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: Ubuntu
Posts: 3,513

Rep: Reputation: 58
/etc/motd is just a textfile that is displayed on login. So if you want it to change on each login, you will need to find a program that does this job (I don't know any, sorry), or change (edit) it yourself each time.
 
Old 11-25-2004, 10:36 PM   #11
masterJ
Member
 
Registered: Jun 2003
Location: London
Distribution: Debian Sarge & Slack 10.0
Posts: 52

Rep: Reputation: 15
That's default on Slack, and it uses a program called fortune to display this. Try this:
apt-get fortune-mod
Not sure if you'll have to modify anything to get it to run on each logon, though - maybe read the man pages once it's installed....
 
Old 12-15-2004, 11:40 AM   #12
empiika
LQ Newbie
 
Registered: Dec 2004
Posts: 1

Rep: Reputation: 0
Cool

if your that desparate to get the fortune thing on debian..
a quick hack would be to :

apt-get install fortune

and then.. edit :

/etc/profile

and add the path to fortune to the bottom of the file

/usr/games/fortune

..in my case (should be the same really :P)

..and that should execute fortune wen you log on, hope that helps
 
  


Reply


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
show last users login wisdom Programming 3 11-17-2005 03:56 AM
why does /etc/motd print twice at login SuSE9.0 ?? jdaniel Linux - Software 4 10-26-2004 02:34 PM
Is there any MOTD software available besides /etc/motd? csif Linux - Software 1 04-24-2004 07:36 AM
Show Uptime On Shell Login~ skate Linux - Software 2 09-09-2003 01:48 PM
Login Message following MOTD kipbenson4 Linux - Newbie 5 08-05-2003 10:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 05:49 AM.

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