Find the answer to your Linux question:
Results 1 to 7 of 7
Hello. Can any one tell me how to edit the fortunes which are displayed randomly, I want to add my own sentences can i do it?...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2006
    Location
    Mysore,India
    Posts
    9

    Question Fortune?


    Hello.
    Can any one tell me how to edit the fortunes which are displayed randomly, I want to add my own sentences can i do it?

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    i can't tell you exactly but you can check in fortune script. its in /etc/profile.d folder. *fortune*.sh.





    casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Just Joined!
    Join Date
    Sep 2006
    Location
    Mysore,India
    Posts
    9
    i checked it, there is no file related to fortunes(as far as the names of the files are concerned) in /etc/profile.d

  4. #4
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    file name is "bsd-games-login-fortune.sh"






    casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  5. #5
    Just Joined!
    Join Date
    Sep 2006
    Location
    Mysore,India
    Posts
    9
    What can i do with that shell script, how can i edit the contents...

  6. #6
    Just Joined!
    Join Date
    Sep 2006
    Location
    Mysore,India
    Posts
    9
    the text files are present in
    /usr/share/games/fortune
    we can edit it here(i think so)

  7. #7
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    actually i am not using slackware. read the contents of script file and check from where it fetches 'messages'. OR attach that script here....... let c...


    EDIT: edit these files and see if fortune picks up your messages.




    casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •