Search found 1158 matches

by rg66
Wed 04 Oct 2017, 12:57
Forum: Programming
Topic: How to put a progress bar in dir2sfs? (Solved)
Replies: 51
Views: 16076

.I'd say that "busybox strings" would be better because not every distro has "strings" (btw, that might go for "script" also, anyway for info: it's part of package "bsdutils" in Ubuntu and Debian) Fred OK, will change to busybox strings. I had to get script f...
by rg66
Wed 04 Oct 2017, 05:24
Forum: Programming
Topic: How to put a progress bar in dir2sfs? (Solved)
Replies: 51
Views: 16076

The strings addition really sorts things out, nice one Fred. The line can be only "echo $LINE | strings | egrep '[0-9]\%' | awk '{print $NF}'; done" and you get: 10% 10% 10% 14% 16% 18% 19% 20% 33% 51% 78% 100% 100% 100% 100% 100% 100% 100% Kbytes) bytes) bytes) My script is now: #!/bin/ba...
by rg66
Wed 04 Oct 2017, 05:04
Forum: Programming
Topic: How to put a progress bar in dir2sfs? (Solved)
Replies: 51
Views: 16076

@misko_2083 Also tried your code and couldn't get a progress bar. @fredx181 Yes, I have noticed it jumping back to 10 or whatever percent. I'll add the "busybox strings", stuff like that bugs me. I've also gone back to Xdialog, yad --auto-close closes the window before it's finished squash...
by rg66
Tue 03 Oct 2017, 04:46
Forum: Programming
Topic: How to put a progress bar in dir2sfs? (Solved)
Replies: 51
Views: 16076

script -q -c "stty rows 40 cols 100; mksquashfs "$t" "$z.sfs" $COMP" | while read -n 99 LINE ; do PROG=`echo $LINE | egrep '[0-9]\%' | cut -f1 -d% | awk '{print $NF}'| grep -v '\.'` echo "#$PROG%" echo $PROG done | yad --window-icon="application-x-squash...
by rg66
Mon 02 Oct 2017, 12:26
Forum: Programming
Topic: How to put a progress bar in dir2sfs? (Solved)
Replies: 51
Views: 16076

Hi rg66 & Fred, Ok, kind of a dunce question: rg66, can I just copy your script, put it in a blank text file, name it whatever (i.e. "squashingit.sh"), then "chmod +x ..." it, then grab an icon for it, and save it to a handy place (desktop?). Thus I'll then be able to drag A...
by rg66
Mon 02 Oct 2017, 11:33
Forum: Programming
Topic: How to put a progress bar in dir2sfs? (Solved)
Replies: 51
Views: 16076

Almost all if [ ! -d "$t" ];then echo "error: no valid folder specified!" exit 0 fi Yep, definitely missed that one. Here's a new copy with option to over write existing sfs. #!/bin/bash t=`echo "$1" | sed "s/\/$//"` z=`echo "$1" | sed "s/\/$//...
by rg66
Mon 02 Oct 2017, 10:59
Forum: Programming
Topic: How to put a progress bar in dir2sfs? (Solved)
Replies: 51
Views: 16076

Thanks, I made for myself small change, to be able to cancel the mksquashfs process by closing the progressbar window: Nice, very handy. Here's one using only yad (I've noticed that both yad and Xdialog reach %100 before the sfs is actually finished using xz compression) #!/bin/bash t=`echo "$...
by rg66
Mon 02 Oct 2017, 09:49
Forum: Programming
Topic: How to put a progress bar in dir2sfs? (Solved)
Replies: 51
Views: 16076

phat7 wrote:Some elements now GUI only, some CLI only :shock:
There is no interaction with the command line. All the echo lines were there originally and I don't really see a need to remove them.
by rg66
Mon 02 Oct 2017, 05:22
Forum: Programming
Topic: How to put a progress bar in dir2sfs? (Solved)
Replies: 51
Views: 16076

Works for me too, thanks Fred. Here's my dir2sfs which has compression options. #!/bin/bash -x t=`echo "$1" | sed "s/\/$//"` z=`echo "$1" | sed "s/\/$//"` if [ ! -d "$t" ];then echo "error: no valid folder specified!" exit 0 fi ### if no _v...
by rg66
Sun 01 Oct 2017, 12:40
Forum: Programming
Topic: How to put a progress bar in dir2sfs? (Solved)
Replies: 51
Views: 16076

Hmmmmm, it only seems to work when run from terminal. Dropping a dir on the script or running from thunar custom action shows no progress.
by rg66
Sun 01 Oct 2017, 11:40
Forum: Programming
Topic: How to put a progress bar in dir2sfs? (Solved)
Replies: 51
Views: 16076

Thanks rufwoof, Using the 'script' command makes it work nicely, so modified code from first post: script -q -c "mksquashfs "$t" "$z.sfs"" |while read -n 99 LINE ; do echo $LINE |egrep '[0-9]\%'| cut -f1 -d% |awk '{print $NF}'|grep -v '\.' ;done | \ Xdialog --title &qu...
by rg66
Sat 30 Sep 2017, 03:30
Forum: Programming
Topic: How to put a progress bar in dir2sfs? (Solved)
Replies: 51
Views: 16076

How to put a progress bar in dir2sfs? (Solved)

Hi all, I'm trying to get dir2sfs to have a working progress bar. I think it was Jemimah who originally added some code to the script but that doesn't seem to work too well with current puppies, it only captures % a few times. Any help would be much appreciated. Old code: mksquashfs "$t" &...
by rg66
Wed 27 Sep 2017, 13:46
Forum: Puppy Derivatives
Topic: X-Slacko-4.4 with Xfce
Replies: 1197
Views: 464247

Xfce-4.12.x running on slacko-6.9.9.9
by rg66
Tue 26 Sep 2017, 19:19
Forum: Puppy Derivatives
Topic: X-Slacko-4.4 with Xfce
Replies: 1197
Views: 464247

Thanks belham2, md5 is right but just didn't change the version number! :oops:
by rg66
Tue 26 Sep 2017, 11:55
Forum: Puppy Derivatives
Topic: X-Slacko-4.4 with Xfce
Replies: 1197
Views: 464247

X-Slacko-4.4 is available for download

This will be the last release of the 4.x series

Download ISO and md5
http://smokey01.com/rg66/X-slacko/iso/

Download delta and md5
http://smokey01.com/rg66/X-slacko/iso/delta/

Changelog
http://smokey01.com/rg66/X-slacko/change_log.txt
by rg66
Tue 26 Sep 2017, 06:15
Forum: Desktop
Topic: XFCE 4.12 for XenialPup 64bit
Replies: 102
Views: 62613

Hi battleshooter, Just a suggestion, but this has gone far beyond a desktop .pet and is a full blown derivative. You should make a new thread in derivatives so it's easier to follow. Cheers! Edit: Thanks to Marv for the rox -n, even though it doesn't seem to affect slacko-6.x, I'll add it to the rox...
by rg66
Mon 25 Sep 2017, 11:50
Forum: Desktop
Topic: XFCE 4.12 for XenialPup 64bit
Replies: 102
Views: 62613

On another tangent, clicking to mount and open SFS etc. was mounting but not opening Thunar for me. The $1 parameter /usr/local/bin/rox was getting was -n in that case. I added another test in that file, line 11, and now opening seems correct. I didn't change any of the other tests as I haven't a c...
by rg66
Thu 21 Sep 2017, 12:37
Forum: Puppy Derivatives
Topic: X-Slacko-4.4 with Xfce
Replies: 1197
Views: 464247

I just installed from ppm and it downloaded lm_sensors-3.3.4-i486-1.txz, net-snmp-5.7.2-i486-2.txz and simple-scan-2.32.0.2-i486-1gv.txz. Menu entry is in Graphic and the gui opens.
by rg66
Fri 08 Sep 2017, 02:36
Forum: Desktop
Topic: XFCE 4.12 for XenialPup 64bit
Replies: 102
Views: 62613

No probs battleshooter but I forgot to mention that the hierarchy file I posted is also needed for toplevel to work properly or the category becomes X-Toplevel.
by rg66
Thu 07 Sep 2017, 13:54
Forum: Desktop
Topic: XFCE 4.12 for XenialPup 64bit
Replies: 102
Views: 62613

From my experimenting today, it looks like the files undergo the transformation as the pet is installed. This has been a problem in X-series puppies as well. I'm sure the culprit is /usr/local/petget/installpkg.sh using /etc/xdg/menus/hierarchy and /usr/local/petget/categories.dat I've done a lot o...