LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 02-20-2017, 02:35 PM   #1
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
what happen to fortune?


does not Slackware come with fortune installed as that is the little saysing one gets when they log in?

for some reason I am getting this now and i do not know why.
Code:
Password: 

-su: fortune: command not found
 
Old 02-20-2017, 02:53 PM   #2
jstg
Member
 
Registered: Apr 2006
Distribution: Slackware
Posts: 59

Rep: Reputation: 37
I'm pretty sure fortune is part of the bsd-games package which should be in the y/ section of the install CD/DVD.

Last edited by jstg; 02-20-2017 at 02:55 PM.
 
Old 02-20-2017, 02:55 PM   #3
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Original Poster
Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by jstg View Post
I'm pretty sure fortune is part of the bsdgames package which should be in the y/ section of the install CD/DVD.
yeah it auto installs ... I just noticed it recently that when ever I open a term I get that message
Quote:
bash: fortune: command not found

userx@SlackO:~$
Like it got deleted somehow

Code:
userx@SlackO:~$ /usr/bin/fortune | cowsay -f tux -n
bash: /usr/bin/fortune: No such file or directory
bash: cowsay: command not found

Last edited by BW-userx; 02-20-2017 at 02:57 PM.
 
Old 02-20-2017, 02:56 PM   #4
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,266
Blog Entries: 24

Rep: Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195
Did you do a full install?
 
Old 02-20-2017, 03:03 PM   #5
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Original Poster
Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by astrogeek View Post
Did you do a full install?
yes, always do when it is slackware, it had to be showing up before .. don't much pay attention.

I change slack to gui login level 4 so I no longer see it before startx .. I changed my pref in my term to run command as longin shell and now I am getting that command not found fortune. it is not on the system. so it has me second guessing slack install.

it had to be in there before hand else I'd of seen that error when I was using startx


now I got a figure out how to get it back, prob source code ./configure make make install I suppose.

just looked

Code:
userx@SlackO:~$ whereis fortune
fortune: /usr/games/fortune /usr/man/man6/fortune.6.gz
maybe had a link to /usr/bin that got deleted somehow.

Last edited by BW-userx; 02-20-2017 at 03:07 PM.
 
Old 02-20-2017, 03:09 PM   #6
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Original Poster
Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Solved
Code:
userx@SlackO:~$ sudo ln -s /usr/games/fortune /usr/bin/fortune
userx@SlackO:~$ fortune
Human beings were created by water to transport it uphill.
 
Old 02-20-2017, 03:20 PM   #7
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,266
Blog Entries: 24

Rep: Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195
Quote:
Originally Posted by BW-userx View Post
I changed my pref in my term to run command as longin shell and now I am getting that command not found fortune.
How exactly did you do that?

You undoubtedly changed how your path is constructed.

What does this say?

Code:
echo $PATH
 
Old 02-20-2017, 03:23 PM   #8
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Original Poster
Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by astrogeek View Post
How exactly did you do that?

You undoubtedly changed how your path is constructed.

What does this say?

Code:
echo $PATH
I added /opt somewhere to a path statement somewhere and that is the only path changes I made.
hold on for results of path
Code:
userx@SlackO:/etc$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/games;/opt:/usr/lib64/kde4/libexec:/usr/lib64/qt/bin:/usr/share/texmf/bin
Ok I see what is wrong in that lol , ; semi-colon and not : full colon

while I got you here, what and where is the file that is calling it so I can modify it
Code:
/usr/bin/fortune | cowsay -f tux -n
shit I can't even remember what file that path was changed in.

google no help...

Last edited by BW-userx; 02-20-2017 at 03:30 PM.
 
Old 02-20-2017, 03:27 PM   #9
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,266
Blog Entries: 24

Rep: Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195
Quote:
Originally Posted by BW-userx View Post
while I got you here, what and where is the file that is calling it so I can modify it
Code:
/usr/bin/fortune | cowsay -f tux -n
??? I do not understand the question.

If you mean where is that path set, it is in /etc/profile.
 
Old 02-20-2017, 03:31 PM   #10
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Original Poster
Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by astrogeek View Post
??? I do not understand the question.

If you mean where is that path set, it is in /etc/profile.
both?

well slack has to be using some file to call the fortune from bash or whatever as I cannot find a /etc/bash file

and I got to find what file I added /opt to to change my PATH so I can fix it.

ok I fixed the PATH in /etc/profile

but the fortune has to be getting called when ever a terminal is opened .. and it is not in any file on the user side of things. so some file on the system side is calling fortune to run whenever a terminal and longin is happening.

I just need to find out where (what file) that is.

Last edited by BW-userx; 02-20-2017 at 03:35 PM.
 
Old 02-20-2017, 03:43 PM   #11
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,266
Blog Entries: 24

Rep: Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195
I wasn't there so I don't know where you changed things...

I think /etc/profile.d/bsd-games-login-fortune.sh is where the fortune is added to login shells.
 
Old 02-20-2017, 04:00 PM   #12
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Original Poster
Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by astrogeek View Post
I wasn't there so I don't know where you changed things...

I think /etc/profile.d/bsd-games-login-fortune.sh is where the fortune is added to login shells.
pk I will go look in that.

I got /bin/fortune off a website so that is where I looked until I did a whereis then see that it is actually install so I just soft linked it then that stopped the error in BASH terminal,

going to go look in that .sh file

nothing here to get upset or worried about.
 
Old 02-20-2017, 04:28 PM   #13
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Original Poster
Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Solved (again)
Code:
[[ -f /usr/bin/fortune ]] && /usr/bin/fortune | cowsay -f tux -n
in .bashrc
 
Old 02-20-2017, 04:29 PM   #14
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,266
Blog Entries: 24

Rep: Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195
Quote:
Originally Posted by BW-userx View Post
I got /bin/fortune off a website so that is where I looked until I did a whereis then see that it is actually install so I just soft linked it then that stopped the error in BASH terminal,
All of which would have been important relevant information to include in the original post! Please try to provide the whole picture when asking for help to keep us from guessing.

Anyway, glad it is now working, even though I still do not know what changes you have made, or why.
 
Old 02-20-2017, 04:39 PM   #15
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Original Poster
Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by astrogeek View Post
All of which would have been important relevant information to include in the original post! Please try to provide the whole picture when asking for help to keep us from guessing.

Anyway, glad it is now working, even though I still do not know what changes you have made, or why.
the only way to find out is delete that soft link and see if it was my mistake when I modded the path adding /opt

so might as well so the world can sleep in peace brb
 
  


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
Fortune in Konsole batorma Linux - Newbie 5 10-31-2005 06:31 PM
Fortune Game everal Programming 1 04-21-2005 11:30 PM
fortune drigz Linux - Software 3 06-26-2004 10:40 AM
Download Fortune althepcman Linux - Software 1 08-18-2003 03:20 AM
Fortune r00tshell Slackware 6 07-15-2003 09:06 PM

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

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