YaPI (yet another Puppy Installer) install any Puppy iso

Under development: PCMCIA, wireless, etc.
Message
Author
User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

yapi

#361 Post by L18L »

L18L wrote:
bigpup wrote:yapi_2016-03-12

iso list I have no refresh button.
I am dreadful sorry about that. :cry:

Refresh button seen in slacko-6.3.0.1 and in Fatdog64.

Maybe time will help to solve this mystery. :roll:
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.

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

showing the console

#362 Post by L18L »

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?)

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

#363 Post by L18L »

musher0 wrote:Good luck, but count me out.
Thank you. Will count you out.

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

Subject

#364 Post by L18L »

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

:?:

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#365 Post by musher0 »

bigpup wrote:place holder
I have to stop hitting quote instead of edit :oops:
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
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#366 Post by musher0 »

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: Select all

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? :)

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:
> 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
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
bigpup
Posts: 13886
Joined: Sun 11 Oct 2009, 18:15
Location: S.C. USA

Re: Subject

#367 Post by bigpup »

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

:?:
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 :shock:
YaPI(any iso installer)

User avatar
bigpup
Posts: 13886
Joined: Sun 11 Oct 2009, 18:15
Location: S.C. USA

Re: showing the console

#368 Post by bigpup »

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:
Attachments
Screenshot(10).jpg
(37.6 KiB) Downloaded 162 times
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 :shock:
YaPI(any iso installer)

User avatar
bigpup
Posts: 13886
Joined: Sun 11 Oct 2009, 18:15
Location: S.C. USA

#369 Post by bigpup »

musher0,
You say:
> 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: Select all

/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: Select all

/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: 
Last edited by bigpup on Tue 15 Mar 2016, 02:13, edited 1 time in total.
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 :shock:
YaPI(any iso installer)

User avatar
bigpup
Posts: 13886
Joined: Sun 11 Oct 2009, 18:15
Location: S.C. USA

#370 Post by bigpup »

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 :?:
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 :shock:
YaPI(any iso installer)

User avatar
bigpup
Posts: 13886
Joined: Sun 11 Oct 2009, 18:15
Location: S.C. USA

#371 Post by bigpup »

musher0,
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.
Attachments
Screenshot(11).jpg
(12.11 KiB) Downloaded 152 times
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 :shock:
YaPI(any iso installer)

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#372 Post by musher0 »

bigpup wrote:musher0,
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
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#373 Post by musher0 »

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: Select all

#!/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
Attachments
iso-lst-probe2.sh.zip
Above script, zipped. Unzip in /root/my-applications/bin and make executable.
(1.06 KiB) Downloaded 102 times
Last edited by musher0 on Tue 15 Mar 2016, 06:18, edited 1 time in total.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#374 Post by musher0 »

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
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

gcmartin

#375 Post by gcmartin »

Quirky Status report
Attachments
capture22873.png
Ran on BarryK's Quirky derivative
(176.71 KiB) Downloaded 113 times

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

Re: showing the console

#376 Post by L18L »

bigpup wrote:After you made the YaPI pet.
If I start YaPI from the menu entry, I never see the console.
Examle:
Thanks for reporting.
I have no clue how to fix this.

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

#377 Post by L18L »

gcmartin wrote:Quirky Status report
Really quirky. :roll:

__________________________________________________________

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

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#378 Post by musher0 »

L18L wrote:
gcmartin wrote:Quirky Status report
Really quirky. :roll:
Indeed.

@gcmartin:
sdc";", sdd";", sde";" shouldn't appear in the error report, they shouldn't even be in
probepart list, since they're not on your "partition icons" line at bottom. Unless it's the
smurf's revenge on me for having boiled one of their comrades in a variable! :twisted:

Or there's something about superfloppies that escapes me and that I should be learning
in a jiffy...

BFN.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
bigpup
Posts: 13886
Joined: Sun 11 Oct 2009, 18:15
Location: S.C. USA

#379 Post by bigpup »

musher0,

What about making this code development a separate topic? :idea:
If nothing else it looks like a useful search program for Puppy iso files.
It still looks like a possible option for YaPI.
Just do not want people to think the search in YaPI is broken.

I love code testing :lol:

Tried your latest code running in Tahrpup6.0.5
Did get a cleaner listing.
Still not completely good output for sda7.
Gave me no output for sda8.
Is the code not reporting because the iso's on sda8 are also on sda1? :idea:

See my output list below:

The mount and unmount does seem to work OK.
Completes with the mount conditions, as they were before running.

You are making progress.

Yes, what you did made it run slower.
It is starting to run at about the same speed as the original search code in YaPI.
That is not totally a bad thing.
It has to take time to mount and unmount partitions.

Just an idea.
Could the code be getting too complicated :idea:
Maybe over-thinking what is really needed :idea:


Code: Select all

 1 /mnt/sda1/custom-puppy.iso
      2 /mnt/sda1/download/librepup-6.0.2.0.iso
      3 /mnt/sda1/download/lupu3hd-5.2.8.6-20131124.iso
      4 /mnt/sda1/download/lupu3hd-5.2.8.6-20131221.iso
      5 /mnt/sda1/download/lupusuper2-5.2.8.6-k3.2.48-20140321.iso
      6 /mnt/sda1/download/precise-5.7.1.iso
      7 /mnt/sda1/download/pupcustome-1.0.iso
      8 /mnt/sda1/download/puppytahr-6.0.2.iso
      9 /mnt/sda1/download/slacko-5.7.0-PAE.iso
     10 /mnt/sda1/download/slacko-6.3.0.iso
     11 /mnt/sda1/download/slacko64-6.3.0.2.iso
     12 /mnt/sda1/download/tahr-6.0.2_noPAE.iso
     13 /mnt/sda1/download/tahr-6.0.4.1.iso
     14 /mnt/sda1/download/tahr-6.0.5_PAE.iso
     15 /mnt/sda1/download/tahr64-6.0.3.8.iso
     16 /mnt/sda7/mnt/home/mnt/+mnt+sda7+root+Downloads+isohybrid_lupu-528.005.iso:
     17 /mnt/sda7/mnt/+mnt+sda1+download+lupusuper2-5.2.8.6-k3.2.48-20140109.iso:
:
Last edited by bigpup on Wed 16 Mar 2016, 05:07, edited 2 times in total.
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 :shock:
YaPI(any iso installer)

User avatar
bigpup
Posts: 13886
Joined: Sun 11 Oct 2009, 18:15
Location: S.C. USA

Re: showing the console

#380 Post by bigpup »

L18L wrote:
bigpup wrote:After you made the YaPI pet.
If I start YaPI from the menu entry, I never see the console.
Examle:
Thanks for reporting.
I have no clue how to fix this.
I do not see anything that needs fixing.
YaPI works, and it looks like a finished program, not seeing the console.
I figured you missed deleting some of the code that made the console show.

The normal information windows give all the needed information.
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 :shock:
YaPI(any iso installer)

Post Reply