LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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, 04:45 PM   #16
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

'Slackware fortune' key word search got me this

http://forums.justlinux.com/showthre...lackware-style!


changing things back the way there where.

Code:
userx@SlackO:~$ sudo rm /usr/bin/fortune
userx@SlackO:~$ nano .bash

#changed dir to look in from /usr/bin to what it says now


[[ -f /usr/games/fortune  ]] && /usr/games/fortune | cowsay -f tux -n
it works -- not working due to human error of a typo in /etc/profile path statement.
 
1 members found this post helpful.
Old 02-20-2017, 05:48 PM   #17
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,258
Blog Entries: 24

Rep: Reputation: 4193Reputation: 4193Reputation: 4193Reputation: 4193Reputation: 4193Reputation: 4193Reputation: 4193Reputation: 4193Reputation: 4193Reputation: 4193Reputation: 4193
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,

going to go look in that .sh file

nothing here to get upset or worried about.
No upset, worry or lost sleep here, just trying to help - but with some certainty and clarity of what the problem and solution actually were, for posterity.

I thought you meant that you downloaded /bin/fortune from a random website, but I may have misunderstood. I now think that you meant the idea for the symlink came from a random website. Eliminating the randomness helps!

Glad to know that the path change was really the original problem, thanks for confirming that.
 
Old 02-21-2017, 12:10 AM   #18
Jjanel
Member
 
Registered: Jun 2016
Distribution: any&all, in VBox; Ol'UnixCLI; NO GUI resources
Posts: 999
Blog Entries: 12

Rep: Reputation: 363Reputation: 363Reputation: 363Reputation: 363
"command not found"? Huh? Caused by 'bad' distro (which HAS a root password!)[?] *J/K*

Code:
user@ubuntu:~$ fortune
The program 'fortune' is currently not installed. You can install it by typing:
sudo apt install fortune-mod
user@ubuntu:~$ cowsay
The program 'cowsay' is currently not installed. You can install it by typing:
sudo apt install cowsay
user@ubuntu:~$

Code:
mint@mint ~ $ fortune|tee /dev/tty|cowsay -f tux -n
Never reveal your best argument.
 __________________________________
< Never reveal your best argument. >
 ----------------------------------
   \
    \
        .--.
       |o_o |
       |:_/ |
      //   \ \
     (|     | )
    /'\_   _/`\
    \___)=(___/

mint@mint ~ $

Last edited by Jjanel; 02-21-2017 at 04:39 PM.
 
Old 02-21-2017, 09:19 AM   #19
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
Thank you for not being helpful.
 
2 members found this post helpful.
Old 02-21-2017, 07:52 PM   #20
drgibbon
Senior Member
 
Registered: Nov 2014
Distribution: Slackware64 15.0
Posts: 1,212

Rep: Reputation: 936Reputation: 936Reputation: 936Reputation: 936Reputation: 936Reputation: 936Reputation: 936Reputation: 936
Quote:
Originally Posted by Jjanel View Post
"command not found"? Huh? Caused by 'bad' distro (which HAS a root password!)[?] *J/K*

user@ubuntu:~$ fortune
The program 'fortune' is currently not installed. You can install it by typing:
sudo apt install fortune-mod
From what I can see, all that happened was the OP busted the system's default $PATH, which includes /usr/games (i.e., where the fortune binary is located). It has nothing to do with the program "not being installed", so your "apt install" stuff doesn't make sense.

As for Ubuntu's "lack of root password", I don't see anything particularly great about it. You can get a full root shell with "sudo su" (and just your user password). Also I believe that Ubuntu caches sudo credentials for a while, so during that time root commands are just lying open (e.g., sudo 'whatever' will work without any password at all). Personally I prefer to have sudo configured in a much more limited way, but each to their own, there's certainly nothing wrong with the way Slackware does it

Regarding the actual problem, these commands would have been useful;
Code:
# fortune
bash: fortune: command not found

# whereis fortune
fortune: /usr/games/fortune /usr/man/man6/fortune.6.gz

# /usr/games/fortune 
Some people are born mediocre, some people achieve mediocrity, and some
people have mediocrity thrust upon them.
		-- Joseph Heller, "Catch-22"

# echo $PATH
/usr/local/bin:/bin:/usr/bin


### conclusion: /usr/games was removed from the system path
 
Old 02-21-2017, 08:00 PM   #21
drgibbon
Senior Member
 
Registered: Nov 2014
Distribution: Slackware64 15.0
Posts: 1,212

Rep: Reputation: 936Reputation: 936Reputation: 936Reputation: 936Reputation: 936Reputation: 936Reputation: 936Reputation: 936
Just for the record, installing cowsay on Slackware is about this difficult;
Code:
sboinstall cowsay
or
Code:
sbopkg -i cowsay
And of course, there are other ways
 
Old 02-21-2017, 08:10 PM   #22
drgibbon
Senior Member
 
Registered: Nov 2014
Distribution: Slackware64 15.0
Posts: 1,212

Rep: Reputation: 936Reputation: 936Reputation: 936Reputation: 936Reputation: 936Reputation: 936Reputation: 936Reputation: 936
Quote:
Originally Posted by Jjanel View Post
Code:
fortune|tee /dev/tty|cowsay -f tux -n
Code:
# fortune | cowsay -f three-eyes
 ____________________________ 
/ Keep it simple.            \
\ -- drgibbon                /
 ---------------------------- 
        \  ^___^
         \ (ooo)\_______
           (___)\       )\/\
                ||----w |
                ||     ||
Sorry, couldn't resist

Last edited by drgibbon; 02-21-2017 at 08:12 PM.
 
Old 02-21-2017, 08:41 PM   #23
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
in all actuality this is my path statement that was screwed up, I added /opt and didn't hit the shift key hard enough I do suppose so it screwed up the path at game.
Code:
 echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/games;/opt:/usr/lib64/kde4/libexec:/usr/lib64/qt/bin:/usr/share/texmf/bin
But yeah it was just a path error cheers!

Last edited by BW-userx; 02-21-2017 at 08:43 PM.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 08:40 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