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 Mon 20 Oct 2014, 22:48
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
tree.pup
Moderators: deshlab, Flash, GuestToo, Ian, JohnMurga, Lobster
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [12 Posts]  
Author Message
Lobster
Official Crustacean


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

PostPosted: Fri 29 Jul 2005, 06:06    Post subject:  tree.pup  

Bruce B wrote:


Lobster, I've been anxiously awaiting your first dotpup. If you are up to the challenge, I'd like to give you an easier dotpup to make for your first.



OK - I am up for it . . .

Many thanks - am gonna print Nathans info first . . .
now I had a printer somewhere . . . gathering dust . . .

Smile

OK have done it and uploaded before I could get confused (was very easy)
using this tutorial:
http://www.goosee.com/puppy/wikka/DotPupHowToMake

The tree command is checked and placed along with a readme in the directory ~/DotPuptmpDir

not sure what to do once it is there?
Water it?

Download the second file - see later post
tree.pup
Description 
pup

 Download 
Filename  tree.pup 
Filesize  14.37 KB 
Downloaded  687 Time(s) 

_________________
Puppy WIKI

Last edited by Lobster on Fri 29 Jul 2005, 14:50; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
flamesage


Joined: 01 Jul 2005
Posts: 214

PostPosted: Fri 29 Jul 2005, 11:59    Post subject:  

What "is" tree?
is it like dir? (example: branches)
Back to top
View user's profile Send private message 
Ian
Official Dog Handler


Joined: 04 May 2005
Posts: 1237
Location: Queensland

PostPosted: Fri 29 Jul 2005, 12:34    Post subject:  

Congratulations Lobster on your first DotPup, just a couple of things I thought I might mention.

What you need is a dotpup.sh file in your DotPup to place the executable 'tree' somewhere like /root/my-applications/bin so it is available for use on the commandline.

Something like:

cp tree /root/my-applications/bin

and somewhere to put the readme

cp readme /root/my-applications

but I would rename the readme to something like tree_readme.

Yes flamesage its a commandline tool to list files and directories and such.
If you have downloaded Lobsters DotPup you will need to move the executable and readme file to another location as the next DotPup you download and install will delete the DotPupTmpDir in /root.

If you put the tree file in /root/my-applications/bin you can use it from any directory in Puppy as that bin directory is in the path that Puppy searches when a command is entered into a console.
Back to top
View user's profile Send private message 
Lobster
Official Crustacean


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

PostPosted: Fri 29 Jul 2005, 13:15    Post subject:  

Thanks Ian Smile
Do I have Linux geek potential?
Your suggestions seem spot on - I will attend to them and upload an ammended dotpup

thanks for the encouragement Smile

It really was very easy (much as I suspected - I just overcomplicate)
Smile
If I can do it - a sardine could do it.

_________________
Puppy WIKI
Back to top
View user's profile Send private message Visit poster's website 
Lobster
Official Crustacean


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

PostPosted: Fri 29 Jul 2005, 14:49    Post subject:  

OK this is the amended file - hope it works and I have added suggestions correctly . . .

Smile
tree.pup
Description 
pup

 Download 
Filename  tree.pup 
Filesize  14.6 KB 
Downloaded  681 Time(s) 

_________________
Puppy WIKI
Back to top
View user's profile Send private message Visit poster's website 
Bruce B


Joined: 18 May 2005
Posts: 11129
Location: The Peoples Republic of California

PostPosted: Fri 29 Jul 2005, 18:44    Post subject:  

The first time is the hardest.

I downloaded the second one and it didn't seem to run.

I think it is imperative that the .sh file be named dotpup.sh

I'd recommend changing the .sh

Current

Code:

#!/bin/sh
cp tree /root/my-applications/bin
cp tree_readme.txt /root/my-applications



My recommendation
Code:
#!/bin/sh
cp -f tree /root/my-applications/bin
cp -f tree_readme.txt /root/my-documents/
leafpad /root/my-documents/tree_readme.txt
Back to top
View user's profile Send private message 
GuestToo
Puppy Master

Joined: 04 May 2005
Posts: 4078

PostPosted: Fri 29 Jul 2005, 18:47    Post subject:  

a dotpup is an ordinary zip file
with a .pup extension
that has an executable file in it called dotpup.sh
and a file called md5sum.txt

when you click a dotpup file
1) it's automatically unzipped
2) the md5sums in md5sum.txt are checked
3) dotpup.sh is run

the file that is executed automatically is named dotpup.sh ... you can't rename it to tree_install.sh or any other name (you can have tree_install.sh and any other files you like in the dotpup-zip file ... but they won't be executed automatically)

if you rename your tree_install.sh file to dotpup.sh, your dotpup should work

it won't seem to do anything, though ... it might be good to popup a message of some kind saying that it's installed ... something like
xmessage "tree is installed"
or
beaver /root/my-applications/tree_readme.txt
or because that Puppy may not have beaver,
rox /root/my-applications/tree_readme.txt

you only have an md5sum for tree
it might be good to have an md5sum for dotpup.sh too, just in case it got mangled somehow ... in fact, it would probably be good to to have md5sums in md5sum.txt for all the files in your dotpup

if you rename tree_readme.txt to tree.txt, and copied it or symlinked it to /usr/share/doc/, it will popup in leafpad if someone types man tree ... though stuff you put in /usr will get removed the next time you upgrade Puppy ... one way around this is to register with PupGet ... another way, is to put back the symlink every time you run tree

you should be able to upload new versions of your dotpup to the forum ... just click the edit button (top right corner) of your post

anyway, all you need to do to make your dotpup work is rename tree_install.sh to dotpup.sh
Back to top
View user's profile Send private message 
GuestToo
Puppy Master

Joined: 04 May 2005
Posts: 4078

PostPosted: Fri 29 Jul 2005, 18:49    Post subject:  

Bruce B seemed to say the same thing in a lot fewer words
Back to top
View user's profile Send private message 
Flash
Official Dog Handler


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

PostPosted: Fri 29 Jul 2005, 22:24    Post subject:  

flamesage wrote:
What "is" tree?
is it like dir? (example: branches)
Yeah, Lobster, what the heck is it good for? Confused Do we have to download it just to find out? Smile
Back to top
View user's profile Send private message 
Bruce B


Joined: 18 May 2005
Posts: 11129
Location: The Peoples Republic of California

PostPosted: Sat 30 Jul 2005, 01:32    Post subject:  

Flash, I recommend tree as Lobster's first dotpup because (1) it is useful and (2) it is a standalone executable file. Because it is just a single file it is an easier type of dotpup to make compared to what he was working on earlier.

Tree has many options. It is a file and directory display utility that displays in a tree type of format, showing where files and directories are relative to the actual file structure.
Back to top
View user's profile Send private message 
Lobster
Official Crustacean


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

PostPosted: Sat 30 Jul 2005, 03:00    Post subject: Tree and its branches  

Cool

tree is a simple command kindly provided by Bruce as a "Lobster Challange"
similar to "ls"

It is proof even those of limited capacity can create a dot pup with support and a following wind. Smile

The first dotpup I created only contained a checksum for the executable tree

Pretty basic but it meant the user had to move tree . . .
I added a tree_readme.txt and a dotpup.sh

the dotpup.sh contains the series of commands the dotpup follows on installing:

Code:
#!/bin/sh
cp tree /root/my-applications/bin
cp tree_readme.txt /root/my-applications
xmessage "Tree is installed - Puppys will be relieved"
rox /root/my-applications/tree_readme.txt


cp tree and cp tree_readme.txt
are moving files to their destination

xmessage "Tree is installed - Puppys will be relieved"
runs the little Puppy program xmessage to display a message

and
rox /root/my-applications/tree_readme.txt


uses rox to apply its default text display program (in most cases leafpad)
to display the tree_readme.txt

I used the info here to create a makepup.sh (for future pups or updates)
this allows me to type ./makepup.sh from rxvt
http://www.goosee.com/puppy/wikka/DotPupHowToMake

Enclosed is my latest tree dotpup (hope it is now working . ..)

Thanks to everyone - Bruce for setting the challange, to G2 for creating dotpups and further info and to future pups for having a go too . . .

Smile
tree.pup
Description 
pup

 Download 
Filename  tree.pup 
Filesize  14.69 KB 
Downloaded  977 Time(s) 

_________________
Puppy WIKI
Back to top
View user's profile Send private message Visit poster's website 
Bruce B


Joined: 18 May 2005
Posts: 11129
Location: The Peoples Republic of California

PostPosted: Sat 30 Jul 2005, 03:23    Post subject:  

It works! A successful dotpup which can be added to the list. Well done.

I think you can go back and delete the previous tree.pup attachments?
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [12 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
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.0800s ][ Queries: 13 (0.0067s) ][ GZIP on ]