| Author |
Message |
Lobster
Official Crustacean

Joined: 04 May 2005 Posts: 15109 Location: Paradox Realm
|
Posted: 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 . . .
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
| Description |
|

Download |
| Filename |
tree.pup |
| Filesize |
14.37 KB |
| Downloaded |
577 Time(s) |
_________________ Puppy WIKI
Edited_time_total
|
|
Back to top
|
|
 |
flamesage

Joined: 01 Jul 2005 Posts: 214
|
Posted: Fri 29 Jul 2005, 11:59 Post_subject:
|
|
What "is" tree?
is it like dir? (example: branches)
|
|
Back to top
|
|
 |
Ian
Official Dog Handler

Joined: 04 May 2005 Posts: 1237 Location: Queensland
|
Posted: 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
|
|
 |
Lobster
Official Crustacean

Joined: 04 May 2005 Posts: 15109 Location: Paradox Realm
|
Posted: Fri 29 Jul 2005, 13:15 Post_subject:
|
|
Thanks Ian
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
It really was very easy (much as I suspected - I just overcomplicate)
If I can do it - a sardine could do it.
_________________ Puppy WIKI
|
|
Back to top
|
|
 |
Lobster
Official Crustacean

Joined: 04 May 2005 Posts: 15109 Location: Paradox Realm
|
Posted: Fri 29 Jul 2005, 14:49 Post_subject:
|
|
OK this is the amended file - hope it works and I have added suggestions correctly . . .
| Description |
|

Download |
| Filename |
tree.pup |
| Filesize |
14.6 KB |
| Downloaded |
566 Time(s) |
_________________ Puppy WIKI
|
|
Back to top
|
|
 |
Bruce B

Joined: 18 May 2005 Posts: 10823 Location: The Peoples Republic of California
|
Posted: 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
|
|
 |
GuestToo
Puppy Master
Joined: 04 May 2005 Posts: 4078
|
Posted: 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
|
|
 |
GuestToo
Puppy Master
Joined: 04 May 2005 Posts: 4078
|
Posted: Fri 29 Jul 2005, 18:49 Post_subject:
|
|
Bruce B seemed to say the same thing in a lot fewer words
|
|
Back to top
|
|
 |
Flash
Official Dog Handler

Joined: 04 May 2005 Posts: 9906 Location: Arizona USA
|
Posted: 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? Do we have to download it just to find out?
|
|
Back to top
|
|
 |
Bruce B

Joined: 18 May 2005 Posts: 10823 Location: The Peoples Republic of California
|
Posted: 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
|
|
 |
Lobster
Official Crustacean

Joined: 04 May 2005 Posts: 15109 Location: Paradox Realm
|
Posted: Sat 30 Jul 2005, 03:00 Post_subject:
Tree and its branches |
|
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.
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 . . .
| Description |
|

Download |
| Filename |
tree.pup |
| Filesize |
14.69 KB |
| Downloaded |
870 Time(s) |
_________________ Puppy WIKI
|
|
Back to top
|
|
 |
Bruce B

Joined: 18 May 2005 Posts: 10823 Location: The Peoples Republic of California
|
Posted: 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
|
|
 |
|