PupsaveConfig-2.2.5

A home for all kinds of Puppy related projects
Message
Author
User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

pupsaveconfig-2.0.1

#121 Post by shinobar »

pupsaveconfig-2.0.1.pet, sync with woof2 2012-01-03.
See the top post.
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

User avatar
grimoire
Posts: 72
Joined: Mon 05 Jul 2010, 01:55

Re: pupsaveconfig-2.0.1

#122 Post by grimoire »

This one works well in lucid 5.28! :)

User avatar
jemimah
Posts: 4307
Joined: Wed 26 Aug 2009, 19:56
Location: Tampa, FL
Contact:

#123 Post by jemimah »

Would it be possible to get a patch file for the mods you make to rc.shutdown? I want to add this to saluki, but it's very difficult to keep sync with woof without the original patch. Thanks!

User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

rc.shutdown patch

#124 Post by shinobar »

jemimah wrote:Would it be possible to get a patch file for the mods you make to rc.shutdown? I want to add this to saluki, but it's very difficult to keep sync with woof without the original patch. Thanks!
@jemimah
Take the attached, but...

It is difficult to maintain with a patch because the rc.shutdown of pupsaveconfig is far from the original.
Maybe there is another difficulty in woof build after Barry introduced his shutdownconfig.

But i always look up the latest rc.shutdown in woof(2) and try to merge.
Everytime I make a diff and merge them manually.
See the comment both of woof and pupsaveconfig.

The pupsaveconfig-2.0.1 syncs with the woof2 at 2012-01-03

Code: Select all

#120103 karl godt: error unmounting stray partitions. 120103 karl godt: more tweaks.
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

User avatar
jemimah
Posts: 4307
Joined: Wed 26 Aug 2009, 19:56
Location: Tampa, FL
Contact:

#125 Post by jemimah »

Thanks. It does seem quite difficult to figure out how to maintain. I will test it.

The Kool
Posts: 4
Joined: Mon 17 Oct 2011, 19:25

#126 Post by The Kool »

I tried this a few times. I start with a completely fresh install of Slacko 531 on a usb, and I set it to never save, which is what I want (I don't even want it to ask). I tell it to shut down, it restarts X instead.

Any help? I really want this working, or at least SOMETHING that will keep it from saving at shutdown.

User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

#127 Post by sc0ttman »

I too am looking to get some of the latest fixes in the rc.shutdown from woof2 into my rc.shutdown, which is mostly like that of pupsaveconfig 2.0 (soon to be 2.0.1+plus my changes)...

So I would appreciate any patches that are posted to this thread, which contain individual updates found in woof2, made ready to patch into the rc.shutdown of pupsaveconfig releases... I'll post any I make here...

The Kool: look here - http://www.murga-linux.com/puppy/viewto ... 738#383738

Basically, 'snapmergepuppy' is the cmd that saves... disable it, or see the lines above, in more recent rc.shutdown files (supplied by pupsaveconfig)

You can also set SAVE INTERVAL to 0 (zero) in "eventmanager", so puppy won't save automatically while in use...
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

PupsaveConfig-2.1

#128 Post by shinobar »

Ok, download pupsaveconfig-2.1.pet as a test release.
syc with woof2 2012-02-19, unmount NFS/SSHFS, EJECTCD flag.
http://shino.pos.to/linux/puppy/
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

Pupsaveconfig-2.1.1

#129 Post by shinobar »

Pupsaveconfig-2.1.1
# v2.1.1 1mar12: avoid space in path
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

User avatar
sszindian
Posts: 807
Joined: Sun 25 Apr 2010, 02:14
Location: Pennsylvania U.S.

014

#130 Post by sszindian »

Post In Error:
Cloud Computing For Every Puppy (a .pet)
[url]http://murga-linux.com/puppy/viewtopic.php?t=69192[/url]

User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

PupsaveConfig-2.1.2

#131 Post by shinobar »

# v2.1.2 6apr12: fix was EJECTCD not chenger under PUPMODE=13 (thanks to Jades)
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

PupsaveConfig-2.2pupsaveconfig-2.2.pet

#132 Post by shinobar »

Long persistent bug!
Was failed with the bootfash comboformat install. Thanks to Ghost Dog who reported this.
pupsaveconfig-2.2.pet from http://shino.pos.to/linux/puppy/ please.

Code: Select all

# v2.2   8apr12: fix was failed with no space partition(tnx to Ghost Dog), fix was failed with SAVEMARK, fix was failed mmc card, default partition and folder, exit 0 (thanks to don)
# v2.2  10apr12: sync with woof 20409, kill acpid (rc.shutdown)
You need not upgrade if you already running puppy with pupsaveconfig. Upgrade is recommended to the pupplet builders or you are going to remaster.
Note for full install: You need to modify /etc/rc.d/rc.sysinit or rc.local to purge /tmp/*. See the detail at Barry's blog.
http://bkhome.org/blog/?viewDetailed=02789
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

User avatar
jemimah
Posts: 4307
Joined: Wed 26 Aug 2009, 19:56
Location: Tampa, FL
Contact:

#133 Post by jemimah »

A little feedback on 2.2.

I always change the notebook dialog back to an hbox. Otherwise some user occasionally reports not being able to find the settings (which are on the second tab). I think it's nicer with one screen too.

I think you should remove 32MB as a size option because a lot of the time if you make a save file that's too small bad things happen on the next boot.

Seems to be working fine in my initial testing. :D

User avatar
Karl Godt
Posts: 4199
Joined: Sun 20 Jun 2010, 13:52
Location: Kiel,Germany

#134 Post by Karl Godt »

For the pupsave too small this happened to me too now :oops:

I could imagine something like this :

Code: Select all

# diff -up /initrd/pup_ro2/usr/bin/pupsaveconfig /usr/bin/pupsaveconfig
--- /initrd/pup_ro2/usr/bin/pupsaveconfig	2012-04-14 00:52:29.000000000 +0100
+++ /usr/bin/pupsaveconfig	2012-04-15 22:46:58.277478425 +0100
@@ -1496,7 +1496,13 @@ $BUTTONS
    determinsize || continue	# v2.2
   [ "$MSG" = "$MSG0" ] && MSG=$MSG1
   SIZELIST="$MSIZE@MB"
-  for ACHOICE in 64 128 256 512 768 1024 1536 2048	# v2.2: 32MB in choice
+  DU_INITRD_PUP_RW=`du -B 1M -c /initrd/pup_rw |tail -n1 |awk '{print $1}'` #du 1M=1024,1MB=1000
+  VALUES='32 64 128 256 512 768 1024 1280 2048 4096'
+  for val in $VALUES;do
+  [ "$val" -gt "$DU_INITRD_PUP_RW" ] && VALIDS="$VALIDS $val"
+  done 
+  #for ACHOICE in 64 128 256 512 768 1024 1536 2048	# v2.2: 32MB in choice
+  for ACHOICE in $VALIDS
   do
     SIZE=$ACHOICE
     [ $SIZE -gt $MFREE ] && SIZE=$MFREE
This also is an inconvenience-bug in the regular shutdownconfig by Barry :

Code: Select all

# diff -up /initrd/pup_ro2/usr/sbin/shutdownconfig /usr/sbin/shutdownconfig
--- /initrd/pup_ro2/usr/sbin/shutdownconfig	2011-11-10 05:11:50.000000000 +0100
+++ /usr/sbin/shutdownconfig	2012-04-15 22:37:10.343996867 +0100
@@ -63,6 +63,8 @@ else
  BACKGROUNDORANGE=''
 fi
 
+DU_INITRD_PUP_RW=`du -B 1M -c /initrd/pup_rw |tail -n1 |awk '{print $1}'` #M=1024,MB=1000
+
 choosepartfunc() { 
  #dialog to choose what partition to create ${DISTRO_FILE_PREFIX}save.2fs on...
  T_admin="$(gettext 'administrator')"
@@ -274,11 +276,15 @@ Or, \Zb\\\${T_abort}\ZB to shutdown with
 } #end choosepartfunc
 
 choosesizefunc(){
- local KFREE SIZELIST NUM CHOICES FLABEL SLABEL ACHOICE KSIZE
+ local KFREE SIZELIST NUM CHOICES FLABEL SLABEL ACHOICE KSIZE VALUES VALIDS val
  KFREE=$1 ; SIZELIST="" ; NUM=1 ; CHOICES=""
  FLABEL="`expr $KFREE \/ 1024`MB"
  [ $KFREE -ge 1048576 ] && FLABEL="`dc $KFREE 1048576 \/ p`GB"
- for ACHOICE in 32 64 128 256 512 768 1024 1280 2048 4096
+ VALUES='32 64 128 256 512 768 1024 1280 2048 4096'
+ for val in $VALUES;do
+ [ "$val" -gt "$DU_INITRD_PUP_RW" ] && VALIDS="$VALIDS $val"
+ done 
+ for ACHOICE in $VALIDS
  do
   KSIZE=`expr $ACHOICE \* 1024`
   SLABEL="${ACHOICE}MB"
@@ -297,6 +303,7 @@ choosesizefunc(){
  T_sizetitle="$(gettext 'First shutdown: size save-file')"
  T_sitemenu="$(gettext 'Please choose the size you would like for the personal save file.
 Note, 512M is a good choice, or highest if that not available.
+Note, ${DU_INITRD_PUP_RW}M have accumulated in this session .
 Select choice, then click OK button...')"
  ${DIALOGEXE} ${BACKGROUNDYELLOW} ${TITLEPARAM} "$T_sizetitle" --no-collapse --no-cancel --default-item "5" --menu "$T_sitemenu" 0 0 0 $SIZELIST >/dev/console 2>/tmp/sizetag.txt
  NUM=`cat /tmp/sizetag.txt`
This i posted for archive's sake in case this gets lost because pupsave too small :) NOTE: Not tested yet .

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#135 Post by 01micko »

There seems to be a problem in 2.2 if your partitions are numbered > 10. The count is not in order and subsequently partitions in the GUI get the wrong label resulting in a save to the wrong partition (eg, I chose sda1 and the save was found on sda10 :( )

Reported here

Thanks
Puppy Linux Blog - contact me for access

User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

pupsaveconfig-2.2.1

#136 Post by shinobar »

Released pupsaveconfig-2.2.1.pet http://shino.pos.to/linux/puppy/
# v2.2.1 23apr12: fix was failed partition number >= 10, dialog shows all options, no choice under MINIMB

For pupplet developers:
If you want to, edit /usr/bin/pupsaveconfig for some ajustables at line 51- :

Code: Select all

# adjustables
EXT4SUPPORT="yes"   # EXT4SUPPORT="" to disable ext4 support ("yes" to support if available)
HIDEADVANCED=""   # 'yes' to hide advanced file options, ''(null) to show all options
WAIT1=120 # in second, time limit before shutdown
MINMB=64      # smallest savefile size in MB, to show smaller than 64
STDMB=512   # standard savefile size
MAXMB=2048   # largest savefile size in choice, to show larger than 2048
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

pupsaveconfig-2.2.2

#137 Post by shinobar »

Updated: pupsaveconfig-2.2.2.pet (2012-04-30)
Download from http://shino.pos.to/linux/puppy/.
# v2.2.2 29apr12: deeper layer subdirectory (zekebaby), remove legacy, rc.shutdown: avoid re-login VERBOSE message, wmpoweroff and wmreboot: startxface4 (Saluki compatible)
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

User avatar
chrome307
Posts: 708
Joined: Thu 15 Jan 2009, 11:00

#138 Post by chrome307 »

Thanks for this :)

User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

killfuse

#139 Post by shinobar »

For whom interested in the code on the shutdown issue:
The point is not to kill myself nor my parents. This is mortal sin against moral common. :wink:
http://www.murga-linux.com/puppy/viewto ... 766#623766
I suspected the '.fuser -k', and made a function 'killfuser', which checks out the PID. I guess the killzombies has no problem.
/etc/rc.d/rc.shutdown wrote:#29apr12: do not kill myself to avoid re-login
MYPID=$$
PARENT=$PPID
killfuser() {
[ "$1" ] || return
BADPIDS="`fuser -m $1 2>/dev/null`"
[ "$BADPIDS" ] || return
[ "$VERBOSE" = 'debug' ] && echo "MYPID=$MYPID, PARENT=$PARENT"
for ONEBAD in $BADPIDS
do
[ "$ONEBAD" = "$MYPID" ] && continue
[ "$ONEBAD" = "$PARENT" ] && continue
if [ "$VERBOSE" ]; then
echo -n "Killing process $ONEBAD..."
if [ "$VERBOSE" = 'debug' ]; then
echo -n ", or skip(S)? " ; read R
R=$(echo $R | tr 's' 'S' | cut -b1)
[ "$R" = 'S' ] && continue
else
echo > /dev/console
fi
fi
kill $ONEBAD
sleep 1
kill -9 $ONEBAD 2>/dev/null
sync
done
}
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

User avatar
ETP
Posts: 1193
Joined: Tue 19 Oct 2010, 19:55
Location: UK

Post subject: pupsaveconfig-2.2.2

#140 Post by ETP »

Thanks for this essential utility. Currently using it in Slacko 5.3.2.9.
Regards ETP
[url=http://tinyurl.com/pxzq8o9][img]https://s17.postimg.cc/tl19y14y7/You_Tube_signature80px.png[/img][/url]
[url=http://tinyurl.com/kennels2/]Kennels[/url]

Post Reply