DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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
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!
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:
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.
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?
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?
/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.
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....
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.