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 10-21-2006, 06:06 PM   #1
twelvenine
Member
 
Registered: Sep 2006
Posts: 72

Rep: Reputation: 16
turning fortunes off/on


Every time i start a new console, I get a new fortune spit out at me. I'm curious as to how this is happens and how i can disable/enable it. i assume there is some config file somewhere that tells bash to run 'fortune' every time a new console is opened, can anybody tell me what's up?
 
Old 10-21-2006, 06:18 PM   #2
alienDog
Member
 
Registered: Apr 2004
Location: Europe
Distribution: Debian, Slackware
Posts: 505

Rep: Reputation: 48
In /etc/profile.d there are two scripts called bsd-games-login-fortune.sh and bsd-games-login-fortune.csh. You can switch the fortunes off by removing the execute bits of those scripts (i.e. chmod 644 /etc/profile.d/bsd-games-login-fortune.*) and switch them back on by setting the execute bit (chmod 755 /etc/profile.d/bsd-games-login-fortune.*).
 
  


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
How to disable fortunes at login Tailer Linux - Software 3 09-17-2006 08:56 AM
Turning 21... scuzzman General 16 01-20-2006 06:03 AM
fortunes getting annoying nny0000 Slackware 4 02-25-2004 01:55 PM
fortunes Linuxcookie & LQ Mod Tinkster General 0 05-21-2003 08:35 PM
Fortunes MasterC General 14 10-06-2002 01:04 AM

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

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