Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 20 Sep 2014, 16:09
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
How to add missing Bash commands to Slacko 5.6?
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [13 Posts]  
Author Message
sickofgoogle

Joined: 22 Aug 2013
Posts: 1

PostPosted: Thu 22 Aug 2013, 21:35    Post subject:  How to add missing Bash commands to Slacko 5.6?  

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?
Back to top
View user's profile Send private message 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 11068
Location: Arizona USA

PostPosted: Fri 23 Aug 2013, 00:04    Post subject:  

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. Smile
Back to top
View user's profile Send private message 
Karl Godt


Joined: 20 Jun 2010
Posts: 3972
Location: Kiel,Germany

PostPosted: Fri 23 Aug 2013, 00:30    Post subject:  

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 Razz
Back to top
View user's profile Send private message Visit poster's website 
amigo

Joined: 02 Apr 2007
Posts: 2247

PostPosted: Fri 23 Aug 2013, 02:05    Post subject:  

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.
Back to top
View user's profile Send private message 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 11068
Location: Arizona USA

PostPosted: Fri 23 Aug 2013, 09:57    Post subject:  

So the question becomes, is coreutils available as a .pet for Slacko or from the Slackware repository?
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 4236
Location: Gatineau (Qc), Canada

PostPosted: Fri 23 Aug 2013, 12:04    Post subject:  

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

_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)

Last edited by musher0 on Mon 26 Aug 2013, 14:29; edited 4 times in total
Back to top
View user's profile Send private message Visit poster's website 
L18L

Joined: 19 Jun 2010
Posts: 2505
Location: Burghaslach, Germany somewhere also known as "Hosla"

PostPosted: Fri 23 Aug 2013, 12:10    Post subject: Re: How to add missing Bash commands to Slacko 5.6?  

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
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 4236
Location: Gatineau (Qc), Canada

PostPosted: Fri 23 Aug 2013, 12:37    Post subject:  

I also remember that Barry's "truncate" needs to remain untouched, because a number of his other scripts rely on it.
_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)
Back to top
View user's profile Send private message Visit poster's website 
amigo

Joined: 02 Apr 2007
Posts: 2247

PostPosted: Fri 23 Aug 2013, 13:41    Post subject:  

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.
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 4236
Location: Gatineau (Qc), Canada

PostPosted: Fri 23 Aug 2013, 14:17    Post subject:  

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 Evil 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! Smile 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.php?p=721651&sort=lastpost#721651
Best regards.

_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)

Last edited by musher0 on Mon 26 Aug 2013, 14:34; edited 3 times in total
Back to top
View user's profile Send private message Visit poster's website 
npierce

Joined: 28 Dec 2009
Posts: 858

PostPosted: Sat 24 Aug 2013, 16:34    Post subject:  

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.
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 4236
Location: Gatineau (Qc), Canada

PostPosted: Sat 24 Aug 2013, 17:00    Post subject:  

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

_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)
Back to top
View user's profile Send private message Visit poster's website 
musher0


Joined: 04 Jan 2009
Posts: 4236
Location: Gatineau (Qc), Canada

PostPosted: Sat 24 Aug 2013, 18:55    Post subject:  

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

_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 1 [13 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0785s ][ Queries: 12 (0.0037s) ][ GZIP on ]