How to add missing Bash commands to Slacko 5.6?

Using applications, configuring, problems
Post Reply
Message
Author
sickofgoogle
Posts: 1
Joined: Fri 23 Aug 2013, 01:29

How to add missing Bash commands to Slacko 5.6?

#1 Post by sickofgoogle »

Hey

I've spend a good few hours trying to look around the forums and google for the answer to this question and have come up with a reason why but no solution.

Basically I want to be able to use commands like "who" in shell scripts for my assignment. I realize that this command and others have been trimmed from puppy in order to save space as "who" is not important in a single user environment.

I've tried to follow the links to BashDiff in order to install the missing commands but the link is dead and I can find no reference to it.

Can anyone put me on the right track to installing the missing bash commands?

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#2 Post by Flash »

Sorry to say I don't know the answer to your question, but I'm almost certain I've seen a thread about it. It was years ago, so you'd have to dig deep to find it. Someone who knows how will probably come along shortly and save you the trouble. :)

User avatar
Karl Godt
Posts: 4199
Joined: Sun 20 Jun 2010, 13:52
Location: Kiel,Germany

#3 Post by Karl Godt »

Puppy's bash is the bash as it is - not stripped of any internal functions .

What you want is a bookmark in your browser pointing to an official slackware repository
with search input :

http://packages.slackware.com/

There in the Mode feature I was able to search for content .

Very best regards,
SickOfNoobs .
«Give me GUI or Death» -- I give you [[Xx]term[inal]] [[Cc]on[s][ole]] .
Macpup user since 2010 on full installations.
People who want problems with Puppy boot frugal :P

amigo
Posts: 2629
Joined: Mon 02 Apr 2007, 06:52

#4 Post by amigo »

The mistake is thinking that 'who' is a 'bash command'. 'Who' is a utility which is available from the command-line or cli -which means it can be run while in the shell, which is bash.
'Who' is part of the coreutils package which contains *lots* of small tools which are *expected to always be there* on any POSIX system. Puppy does not include coreutils and does not conform to POSIX standards.

If you are learning, you would be much better served by using any of the normal linux distros instead of any small/LiveCD/special-purpose distro.

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#5 Post by Flash »

So the question becomes, is coreutils available as a .pet for Slacko or from the Slackware repository?

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#6 Post by musher0 »

Flash wrote:So the question becomes, is coreutils available as a .pet for Slacko or from the Slackware repository?
Hi, everyone.

I did compile an older set of the coreutils a while back.

I did not make it available as a whole because experience has taught me
that it squishes some of Barry's replacement scripts and some of the
busybox applets, in /bin and /usr/bin, therefore leaving Puppy severely
crippled.

Also, never update the cp utility while doing a bulk copy? (Silly me!)
After the fact, it sounds obvious, doesn't it? Live and learn!

So bringing the "core utilities" to Puppy can be done, but there will be a
lot of trial-and-error. Probably a lot of nit-picking too, on the human side,
maybe even an uproar?

Part of the small size and efficiency of Puppy is due to the fact that some
of those core utilities have been replaced with original material by BK.

The full "du" is worth it, though, and a few others, because they provide
more complete information than their replacements. Also, I have a weak
spot for good old "dir" -- for sentimental reasons, because "ls" does all of it!

If there is a genuine need, I will try to meet it, but as the saying goes:
"if it ain't broke, don't fix it!"

Best regards.

musher0
Last edited by musher0 on Mon 26 Aug 2013, 18:29, edited 4 times in total.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

Re: How to add missing Bash commands to Slacko 5.6?

#7 Post by L18L »

sickofgoogle wrote:Can anyone put me on the right track to installing ...
Click install icon on desktop
Then choose Puppy Package Manager
Search for bash in search all repos

:wink:

http://ss64.com/bash/
where
Commands marked • are bash built-ins

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#8 Post by musher0 »

I also remember that Barry's "truncate" needs to remain untouched, because a number of his other scripts rely on it.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

amigo
Posts: 2629
Joined: Mon 02 Apr 2007, 06:52

#9 Post by amigo »

Yeah, you can't simply install coreutils as it will overwrite BK's funny wrapper scripts for mount&Co., and a bunch of busybox versions which have less/different options that the standard tools.

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#10 Post by musher0 »

Hello again.

FWIW, I was partly unsuccessful* in compiling coreutils v. 21, the
latest one. However, for the benefit of the curious minds out there, I've
just uploaded a pet of version 8.9, here: http://limelinx.com/oihs

Notes:
v. 8.9 dates from 2010;
compilation was made on wary 5.5.

As a precaution,
* I've post-fixed each utility with the version number, to avoid squishing any existing utility;

* I've tried to mimic where those utilities are placed in the Puppy hierarchy;

* The whole thing is in a "sandbox" directory, again to avoid squishing any existing files.

To use my package, you will have to
* rename the existing utility to *.old (for example)
* copy the utility you wish to test in the proper folder

Exception: to copy the new cp-8.9 utility, you have to use IT, and not the
cp that is in your Puppy. What do you think will happen if you squish the
existing copying utility with an upgrade? :twisted: The copying will hang,
and you will have destroyed the copying capacity in your Puppy. I hope
there is now a lighted lightbulb over your head! :) :idea:

* make a link from "utility-8.9" to "utility"

Finally, TEST THESE UTILITIES AT YOUR OWN RISK.
Some are very interesting and useful, and offer additional capacity as
compared to what we are used to in Puppy, but still, I'm providing this
package as a learning tool only.


If you have not read the above messages, I'll repeat it:
> Part of the small size and efficiency of Puppy is due to the fact that
> some of these core utilities have been replaced with original material
> by BK.


Best of luck.

musher0

~~~~~~~~~~~~~
* I managed to debug my compilation the next day. Please see a couple of messages down for a download address of coreutils 8.21.
http://murga-linux.com/puppy/viewtopic. ... ost#721651
Best regards.
Last edited by musher0 on Mon 26 Aug 2013, 18:34, edited 3 times in total.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

npierce
Posts: 858
Joined: Tue 29 Dec 2009, 01:40

#11 Post by npierce »

sickofgoogle wrote:Basically I want to be able to use commands like "who" in shell scripts for my assignment. I realize that this command and others have been trimmed from puppy in order to save space as "who" is not important in a single user environment.
If you just need the who utility, a copy of version 8.11 is available on the forum here: who.gz. You will need to decompress it and set its execute permission bits. It is known to work with Slacko 5.3.3 and Slacko 5.5. I've not tried it with Slacko 5.6.

But since you may need others, you are probably better off with musher0's .pet for coreutils version 8.9 in the previous post.

By the way, musher0, thanks for making that available. It is a good way to get the occasional needed utility without jumping through the hoops necessary to protect Puppy utilities of the same name from a full installation of coreutils.

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#12 Post by musher0 »

npierce wrote:(...)
By the way, musher0, thanks for making that available. It is a good way to get the occasional needed utility without jumping through the hoops necessary to protect Puppy utilities of the same name from a full installation of coreutils.
My pleasure! Have a great day!

musher0
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#13 Post by musher0 »

Hello, all.

I've uploaded the latest coreutils (v.8.21) adapted for study by Puppyists here: http://limelinx.com/fokqw. As of this writing, this coreutils package is the most recent one (late Winter 2013).

I've presented it in the same cautious way as the 8.9 package above. This package includes brief compilation notes.

Enjoy!

musher0
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

Post Reply