LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-15-2006, 09:45 PM   #16
aubrey-calm2
LQ Newbie
 
Registered: Feb 2006
Location: Alabama
Distribution: Slackware 10.2/11.0
Posts: 23

Rep: Reputation: 15

Here's a bit I found today while working on the same thing.

http://bradthemad.org/tech/notes/fortune_makefile.php

Basicly, you make your plain text file in

/usr/share/games/fortune

Let's say you make a file called "myfortune". You then run:

strfile myfortune myfortune.dat

Then you need to edit your

/etc/profile.d/bsd-games-login-fortune.[sh|csh]

Just make sure that the first word after "echo" is "fortune", because that's what actually starts the fortune program. (I only found that out the hard way)

This is a great way to restrict getting fortunes that would offend people that are using any program that generates a fortune cookie, like squrrelmail. There are offensive ones there, but they are labled *-o. You do not have to delete out the files in the fortune directory, just remove them from the script in /etc/profile.d

I hope this helps someone.
 
  


Reply



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
/var/log/messages weird entries blizunt7 Linux - Security 5 11-01-2005 05:56 PM
KDevelop, weird startup messages & glade-- swinchen Slackware 1 04-05-2004 05:39 PM
Weird hard drive error messages: verdeboy2k Linux - Hardware 5 03-20-2004 11:50 PM
Mandrake linux 9.1, eth0:9, and weird messages enigma Z Linux - Networking 2 09-28-2003 09:15 PM
weird error messages i_is_cat Linux - Newbie 1 04-19-2003 02:14 AM

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

All times are GMT -5. The time now is 12:02 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