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 25 Oct 2014, 00:00
All times are UTC - 4
 Forum index » Taking the Puppy out for a walk » Announcements
Ash Bash
Moderators: Flash, Ian, JohnMurga
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15117
Location: Paradox Realm

PostPosted: Mon 16 May 2005, 20:50    Post_subject:  Ash Bash  

Much of Puppy is written as scripts using batch or script commands
This is where the power of Linux resides

Ian has kindly provided this listing of the main BASH commands
http://www.goosee.com/puppy/wikka/AzBash

Anyone up to marking those available in Ash (the Puppy shell commands)?

_________________
Puppy WIKI
Back to top
View user's profile Send_private_message Visit_website 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7047
Location: Perth, Western Australia

PostPosted: Tue 17 May 2005, 05:01    Post_subject:  

I think that we might promote Puppy up to the full Bash soon, since we already have it as a Unleashed/PupGet package. Probably we'll keep Ash.
Back to top
View user's profile Send_private_message Visit_website 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15117
Location: Paradox Realm

PostPosted: Sat 21 May 2005, 10:20    Post_subject: Batch Snatch  

m m m . . .

Downloaded and uninstalled Bash from pupget

- now I decided to have another look at it - but when I run Pupget - it is pupgone?

In other words it no longer appears in the listing . . .

Any ideas where it is and how I get it back to download it?

_________________
Puppy WIKI
Back to top
View user's profile Send_private_message Visit_website 
GuestToo
Puppy Master

Joined: 04 May 2005
Posts: 4078

PostPosted: Sat 21 May 2005, 17:44    Post_subject:  

i don't think the Bash Unleashed package is useable as a PupGet package anyway

the Unleashed package is the bash binary file tar-gzipped in /bin

so if you install bash using the Unleashed package, it will be installed in /bin

if you have an option 2 install, this will work ... but it won't work if you are running a live cd, or from a usb drive, or an option 1 install ... because /bin is ram, and whatever you write in ram will be gone the next time you boot

it will work ok if you put bash somewhere on your hard drive and copy it to /bin every time you boot ... this is what i did ... i put something like these lines in rc.local:

cp -f /root/bash /bin
ln -sf /bin/bash /bin/sh
ls -sf /bin/busybox /bin/ash

though lately i have just been symlinking to /root/bash ... if you do this, you must symlink /bin/sh to busybox again before you shutdown Puppy, or you will lose your shell when /root is unmounted, and Puppy won't shut down cleanly ... here's the script i call from rc.local to symlink /bin/sh to /root/bash:

#!/root/bash
ln -sf /root/bash /bin/bash
ln -sf /root/bash /bin/sh
ln -sf /bin/busybox /bin/ash

this unlinks bash:

#!/root/bash
ln -sf /bin/busybox /bin/sh

i was going to make and upload a bash dotpup ... it's easy to make a package, but to setup the config files nicely like .bashrc takes time ... i think it's too dangerous to set it up so bash will automatically replace /bin/sh ... if it doesn't work right, Puppy won't boot, and you will be forced to mount the pup001 file from another distro and edit the config files to get Puppy to boot again
Back to top
View user's profile Send_private_message 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7047
Location: Perth, Western Australia

PostPosted: Sat 21 May 2005, 19:20    Post_subject:  

Yes, that's right, bash is not available in PupGet because it installs into /bin.

In Unleashed, the "createpuppy" script filters out all the "unsuitable" packages before creating /root/.packages/packages.txt.
Back to top
View user's profile Send_private_message Visit_website 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Taking the Puppy out for a walk » Announcements
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


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