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 Thu 14 Nov 2019, 14:49
All times are UTC - 4
 Forum index » Advanced Topics » Cutting edge
YaPI (yet another Puppy Installer) install any Puppy iso
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 25 of 31 [461 Posts]   Goto page: Previous 1, 2, 3, ..., 23, 24, 25, 26, 27, 28, 29, 30, 31 Next
Author Message
L18L

Joined: 19 Jun 2010
Posts: 3450
Location: www.eussenheim.de/

PostPosted: Mon 14 Mar 2016, 08:07    Post subject: yapi
Subject description: extra button
 

L18L wrote:
bigpup wrote:
yapi_2016-03-12

iso list I have no refresh button.


I am dreadful sorry about that. Crying or Very sad

Refresh button seen in slacko-6.3.0.1 and in Fatdog64.

Maybe time will help to solve this mystery. Rolling Eyes


No mystery

--extra-button has been added to Xdialog by amigo.
--extra button is used for Refresh of list and for selection of SUPERFLOPPY

Versions of Xdialog without this patch simply ignore --extra-button.
As these are extras nothing weird happens if the extra is omitted.
Back to top
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 3450
Location: www.eussenheim.de/

PostPosted: Mon 14 Mar 2016, 08:20    Post subject: showing the console  

bigpup wrote:
yapi_2016-03-12
Running in Slacko 6.3.0

Only problem I still have is this:

Navigate to an iso.
Right click and choose open with..... YaPI
YaPI starts still showing the console as you use YaPI.

Yapi always shows console.
It is coded to do so.
Some infos are given in console only.
Don't close console. (Or did you?)
Back to top
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 3450
Location: www.eussenheim.de/

PostPosted: Mon 14 Mar 2016, 08:23    Post subject:  

musher0 wrote:
Good luck, but count me out.

Thank you. Will count you out.
Back to top
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 3450
Location: www.eussenheim.de/

PostPosted: Mon 14 Mar 2016, 08:46    Post subject: Subject
Subject description: Subject description
 

This
Puppy Universal Installer (For all Puppy iso Versions)
has been confusing.

It is NOT universal.
It is NOT for all Puppy iso versions.
If running in a WOOF-CE built Puppy
- it should install any puppy frugal
- it should install any puppy full
- it should install any ISO as Superfloppy
and it does not aim to be the fastest nor have the longest (list) Wink

What about

Subject: YaPI is yet another Puppy Installer
Subject description: For all Puppies built from WOOF-CE

Question
Back to top
View user's profile Send private message 
musher0

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

PostPosted: Mon 14 Mar 2016, 12:06    Post subject:  

bigpup wrote:
place holder
I have to stop hitting quote instead of edit Embarassed
Hi bigpup.

When that happens I "rewind" my browser. Back-arrow brings me back to the
previous screen, where I can click on the correct button.

BFN.

_________________
musher0
~~~~~~~~~~
Je suis né pour aimer et non pas pour haïr. (Sophocle) /
I was born to love and not to hate. (Sophocles)
Back to top
View user's profile Send private message 
musher0

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

PostPosted: Mon 14 Mar 2016, 13:14    Post subject:  

bigpup wrote:
musher0,

You are making it better.
Took about 5 to 7 seconds to do the search.

Put I am still getting some strange results for sda7 and sda8
These do have Puppy full installs on them.
That may be a clue.

One mount issue.
The unmounted partitions stay mounted after the search completes.
YaPI needs to be able to do the search and return the drives to the condition they were in before the search.

Here is my resulting list from running your latest code:
(...)
Hi bigpup.

You say:
> The unmounted partitions stay mounted after the search completes.
That's weird, because line 29 explicitly says:
Code:
umount /mnt/"$Dsk"
In short this subroutine should unmount partition X if it had to be mounted. In other
words, if the partition is unmounted, the sub-routine mounts it, gets the info, and
puts it back in the state it was, i.e. unmounted. Maybe I should add a < wait >
command after < umount >. < mount > and < umount > are slowpokes.

The times are quite ok, though, aren't they? Smile

Speaking of time, about using < slocate >: if you don't have it installed, it'll take as
much time or more to create its databases than it would using < find >. So there'd
be no advantage in using < slocate > if NOT ALREADY ACTIVE on the Puppy.
Which is why I'm staying with the unorthodox four-level deep < ls > construct.

You say:
> [B]ut I am still getting some strange results for sda7 and sda8.
"Strange" in what sense, please? Have you got a screen capture?

BFN.

_________________
musher0
~~~~~~~~~~
Je suis né pour aimer et non pas pour haïr. (Sophocle) /
I was born to love and not to hate. (Sophocles)
Back to top
View user's profile Send private message 
bigpup


Joined: 11 Oct 2009
Posts: 12830
Location: S.C. USA

PostPosted: Mon 14 Mar 2016, 21:11    Post subject: Re: Subject
Subject description: Subject description
 

L18L wrote:
This
Puppy Universal Installer (For all Puppy iso Versions)
has been confusing.

It is NOT universal.
It is NOT for all Puppy iso versions.
If running in a WOOF-CE built Puppy
- it should install any puppy frugal
- it should install any puppy full
- it should install any ISO as Superfloppy
and it does not aim to be the fastest nor have the longest (list) Wink

What about

Subject: YaPI is yet another Puppy Installer
Subject description: For all Puppies built from WOOF-CE

Question

I made your suggested changes to the first post of the topic.
Take a look and see if I need to delete or add anything.

_________________
The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected Shocked
YaPI(any iso installer) http://www.murga-linux.com/puppy/viewtopic.php?t=107601
Back to top
View user's profile Send private message 
bigpup


Joined: 11 Oct 2009
Posts: 12830
Location: S.C. USA

PostPosted: Mon 14 Mar 2016, 21:20    Post subject: Re: showing the console  

L18L wrote:
bigpup wrote:
yapi_2016-03-12
Running in Slacko 6.3.0

Only problem I still have is this:

Navigate to an iso.
Right click and choose open with..... YaPI
YaPI starts still showing the console as you use YaPI.

Yapi always shows console.
It is coded to do so.
Some infos are given in console only.
Don't close console. (Or did you?)

After you made the YaPI pet.
If I start YaPI from the menu entry, I never see the console.
Examle:
Screenshot(10).jpg
 Description   
 Filesize   37.6 KB
 Viewed   161 Time(s)

Screenshot(10).jpg


_________________
The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected Shocked
YaPI(any iso installer) http://www.murga-linux.com/puppy/viewtopic.php?t=107601
Back to top
View user's profile Send private message 
bigpup


Joined: 11 Oct 2009
Posts: 12830
Location: S.C. USA

PostPosted: Mon 14 Mar 2016, 21:28    Post subject:  

musher0,

Quote:
You say:
> [B]ut I am still getting some strange results for sda7 and sda8.
"Strange" in what sense, please? Have you got a screen capture?

Duplicate entries for stuff on sda7 and sda8.
Example:
Code:
/mnt/sda7/mnt/home/mnt/+root+Downloads+lupu-528.005.iso:
/mnt/sda7/mnt/home/mnt/+root+Downloads+PupRescue_2.5.iso:
/mnt/sda7/mnt/home/mnt/+root+Downloads+tahr-6.0-CE_noPAE.iso:

/mnt/sda7/mnt/+root+Downloads+lupu-528.005.iso:
/mnt/sda7/mnt/+root+Downloads+PupRescue_2.5.iso:
/mnt/sda7/mnt/+root+Downloads+tahr-6.0-CE_noPAE.iso:
/mnt/sda7/root/Downloads/lupu-528.005.iso
/mnt/sda7/root/Downloads/PupRescue_2.5.iso
/mnt/sda7/root/Downloads/tahr-6.0.1-CE_noPAE.iso


Getting stuff that is on sda7 and sda8 plus stuff on sda1 listed under sda7 and sda8.
All that ++++++ stuff.
See my posted output below.
From my output list:
Code:
/mnt/sda5/tahr605_PAE/tahrsave/mnt/+mnt+sda7+root+Downloads+isohybrid_lupu-528.005.iso:
/mnt/sda7/mnt/home/mnt/+mnt+sda1+download+lupusuper2-5.2.8.6-k3.2.48-20140109.iso:
/mnt/sda7/mnt/home/mnt/+mnt+sda1+download+slacko-5.7.0-PAE.iso:
/mnt/sda7/mnt/home/mnt/+mnt+sda1+download+slacko-5.9.1.iso:
/mnt/sda7/mnt/home/mnt/+root+Downloads+lupu-528.005.iso:
/mnt/sda7/mnt/home/mnt/+root+Downloads+PupRescue_2.5.iso:
/mnt/sda7/mnt/home/mnt/+root+Downloads+tahr-6.0-CE_noPAE.iso:
/mnt/sda7/mnt/+mnt+sda1+download+lupusuper2-5.2.8.6-k3.2.48-20140109.iso:
/mnt/sda7/mnt/+mnt+sda1+download+slacko-5.7.0-PAE.iso:
/mnt/sda7/mnt/+mnt+sda1+download+slacko-5.9.1.iso:
/mnt/sda7/mnt/+root+Downloads+lupu-528.005.iso:
/mnt/sda7/mnt/+root+Downloads+PupRescue_2.5.iso:
/mnt/sda7/mnt/+root+Downloads+tahr-6.0-CE_noPAE.iso:
/mnt/sda7/root/Downloads/lupu-528.005.iso
/mnt/sda7/root/Downloads/PupRescue_2.5.iso
/mnt/sda7/root/Downloads/tahr-6.0.1-CE_noPAE.iso
/mnt/sda8/mnt/home/mnt/+mnt+sda1+download+lupusuper2-5.2.8.6-k3.2.48-20140109.iso:
/mnt/sda8/mnt/home/mnt/+mnt+sda1+download+slacko-5.7.0-PAE.iso:
/mnt/sda8/mnt/home/mnt/+mnt+sda1+download+slacko-5.9.1.iso:
/mnt/sda8/mnt/home/mnt/+root+Downloads+lupu-528.005.iso:
/mnt/sda8/mnt/home/mnt/+root+Downloads+PupRescue_2.5.iso:
/mnt/sda8/mnt/home/mnt/+root+Downloads+tahr-6.0-CE_noPAE.iso:
/mnt/sda8/mnt/+mnt+sda1+download+librepup-6.0.2.0.iso:
/mnt/sda8/mnt/+mnt+sda1+download+tahr-6.0.4.1.iso:

_________________
The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected Shocked
YaPI(any iso installer) http://www.murga-linux.com/puppy/viewtopic.php?t=107601

Last edited by bigpup on Mon 14 Mar 2016, 22:13; edited 1 time in total
Back to top
View user's profile Send private message 
bigpup


Joined: 11 Oct 2009
Posts: 12830
Location: S.C. USA

PostPosted: Mon 14 Mar 2016, 21:49    Post subject:  

musher0,

An Idea.
Some of this could be caused by what version of Puppy your code is running in.

I am running your code in Slacko 6.3.0

Another idea.
sda7 and sda8 have Puppy full installs.
Could any kind of leftover download or iso access info data files cause these double entries Question

_________________
The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected Shocked
YaPI(any iso installer) http://www.murga-linux.com/puppy/viewtopic.php?t=107601
Back to top
View user's profile Send private message 
bigpup


Joined: 11 Oct 2009
Posts: 12830
Location: S.C. USA

PostPosted: Mon 14 Mar 2016, 22:07    Post subject:  

musher0,

Quote:
You say:
> The unmounted partitions stay mounted after the search completes.
That's weird, because line 29 explicitly says:
Code:
umount /mnt/"$Dsk"
In short this subroutine should unmount partition X if it had to be mounted. In other
words, if the partition is unmounted, the sub-routine mounts it, gets the info, and
puts it back in the state it was, i.e. unmounted. Maybe I should add a < wait >
command after < umount >. < mount > and < umount > are slowpokes.

After running your code.
Screenshot(11).jpg
 Description   
 Filesize   12.11 KB
 Viewed   151 Time(s)

Screenshot(11).jpg


_________________
The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected Shocked
YaPI(any iso installer) http://www.murga-linux.com/puppy/viewtopic.php?t=107601
Back to top
View user's profile Send private message 
musher0

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

PostPosted: Tue 15 Mar 2016, 00:15    Post subject:  

bigpup wrote:
musher0,

Quote:
You say:
> The unmounted partitions stay mounted after the search completes.
That's weird, because line 29 explicitly says:
Code:
umount /mnt/"$Dsk"
In short this subroutine should unmount partition X if it had to be mounted. In other
words, if the partition is unmounted, the sub-routine mounts it, gets the info, and
puts it back in the state it was, i.e. unmounted. Maybe I should add a < wait >
command after < umount >. < mount > and < umount > are slowpokes.

After running your code.
Hi bigpup.

Actually there is a < wait > command there...
Maybe it's not enough.

TWYL.

_________________
musher0
~~~~~~~~~~
Je suis né pour aimer et non pas pour haïr. (Sophocle) /
I was born to love and not to hate. (Sophocles)
Back to top
View user's profile Send private message 
musher0

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

PostPosted: Tue 15 Mar 2016, 01:08    Post subject:  

bigpup?

The script below should be entirely ok now, thanks to the umount -l parameter.
I "quadruple"-checked.

I also added some comments, in the hope that they'll be helpful.

This script is slower, though. It needs almost 2 minutes (1m 59s) to find 98
Puppy iso files in 15 partitions.

Any other bugs, please let me know? TIA.

BFN.

~~~~~~~~~~~
Code:
#!/bin/sh
# /root/my-applications/bin/iso-lst-probe.sh, v. 2
# (c) musher0, March 15 2016. GPL2
# Thanks to bigpup for comments.
# Dependency: less-481 (at least = or > version 458).
####
IsoLst (){
ls -R /mnt/"$Dsk"/*.iso &>/dev/nul >> /tmp/iso.lst0
ls -R /mnt/"$Dsk"/*/*.iso &>/dev/nul >> /tmp/iso.lst0
ls -R /mnt/"$Dsk"/*/*/*.iso &>/dev/nul >> /tmp/iso.lst0
ls -R /mnt/"$Dsk"/*/*/*/*.iso &>/dev/nul >> /tmp/iso.lst0
} # The list builder function

# Removing previous temp. files
for n in 0 1 2 3
do
   [ -f /tmp/iso.lst$n ] && rm -f /tmp/iso.lst$n
done

# Creating 1st temp.file in advance
> /tmp/iso.lst0

# Create partition list
probepart | awk -F"|" '$2 !~ /none|swap|iso9660/ { print $1,$2 }' | awk -F"/" '{ print $3 }' | tr " " ";" | sort > /tmp/test

# Build the list of iso files.
for BoiledSchmurf in `cat /tmp/test` # >:->
do
   Typ="${BoiledSchmurf:5}"
   Dsk="${BoiledSchmurf:0:4}"
   if [ "`ls /mnt/$Dsk`" = "" ];then
      mount -t "$Typ" /dev/"$Dsk" /mnt/"$Dsk"
      wait
      cd /mnt/"$Dsk"
      IsoLst # Listing
      umount -l /mnt/"$Dsk" # with "lazy" unmount (does it a little
# later if something is going on in the partition, e.g. the listing is
# not finished -- but does it!).
   else # If the partition is already mounted, we list right away.
      IsoLst
   fi
done

# Filter out ls's error messages.
grep -v cannot /tmp/iso.lst0 > /tmp/iso.lst1

# Filter in the Puppy names
awk '$0 ~ /pup|Pup|toutou|Toutou|tahr|slacko|precise|wary|fatdog|lupu/ { print $0 }' /tmp/iso.lst1 > /tmp/iso.lst2
# The line above would have to be extended to include the Puppy names in other languages, or atypical Puppy names, etc.

sort /tmp/iso.lst2 > /tmp/iso.lst3 # The name of the command says it all!

# Display results
urxvt -g 90x20+100+100 -e less -~ -N /tmp/iso.lst3

# Clean-up
rm -f /tmp/test
iso-lst-probe2.sh.zip
Description  Above script, zipped. Unzip in /root/my-applications/bin and make executable.
zip

 Download 
Filename  iso-lst-probe2.sh.zip 
Filesize  1.06 KB 
Downloaded  73 Time(s) 

_________________
musher0
~~~~~~~~~~
Je suis né pour aimer et non pas pour haïr. (Sophocle) /
I was born to love and not to hate. (Sophocles)

Last edited by musher0 on Tue 15 Mar 2016, 02:18; edited 1 time in total
Back to top
View user's profile Send private message 
musher0

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

PostPosted: Tue 15 Mar 2016, 02:08    Post subject:  

Hello again bigpup.

This is not really off-topic, since a few posts ago you were disappointed that your
listing was not exactly the same as mine. I back-tracked myself and found my
compilation for Puppy of the real < less > pager, version 481, here.

The busybox people have trimmed the original less command of so many of its
useful functions that the version they offer is really the pits, a pale shadow of the
original. No wonder people hate using it, or have never heard of or experienced the full
power of this text pager. You'll notice the difference as soon as you install and use the
"real" < less >.

I hope this helps. BFN.

_________________
musher0
~~~~~~~~~~
Je suis né pour aimer et non pas pour haïr. (Sophocle) /
I was born to love and not to hate. (Sophocles)
Back to top
View user's profile Send private message 
gcmartin

Joined: 14 Oct 2005
Posts: 6730
Location: Earth

PostPosted: Tue 15 Mar 2016, 02:51    Post subject:  

Quirky Status report
capture22873.png
 Description   Ran on BarryK's Quirky derivative
 Filesize   176.71 KB
 Viewed   112 Time(s)

capture22873.png


_________________
Get ACTIVE Create Circles; Do those good things which benefit people's needs!
We are all related ... Its time to show that we know this!
3 Different Puppy Search Engines or use DogPile
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 25 of 31 [461 Posts]   Goto page: Previous 1, 2, 3, ..., 23, 24, 25, 26, 27, 28, 29, 30, 31 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Cutting edge
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.0763s ][ Queries: 12 (0.0131s) ][ GZIP on ]