PupsaveConfig-2.2.5
pupsaveconfig-2.0.1
pupsaveconfig-2.0.1.pet, sync with woof2 2012-01-03.
See the top post.
See the top post.
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]
Re: pupsaveconfig-2.0.1
This one works well in lucid 5.28!
rc.shutdown patch
@jemimahjemimah 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!
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]
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.
Any help? I really want this working, or at least SOMETHING that will keep it from saving at shutdown.
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...
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]
PupsaveConfig-2.1
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/
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]
Pupsaveconfig-2.1.1
Pupsaveconfig-2.1.1
# v2.1.1 1mar12: avoid space in path
# v2.1.1 1mar12: avoid space in path
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]
PupsaveConfig-2.1.2
# 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]
PupsaveConfig-2.2pupsaveconfig-2.2.pet
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.
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
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)
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]
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.
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.
For the pupsave too small this happened to me too now
I could imagine something like this :
This also is an inconvenience-bug in the regular shutdownconfig by Barry :
This i posted for archive's sake in case this gets lost because pupsave too small NOTE: Not tested yet .
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
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`
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
Reported here
Thanks
Puppy Linux Blog - contact me for access
pupsaveconfig-2.2.1
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- :
# 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]
pupsaveconfig-2.2.2
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)
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]
killfuse
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.
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.
The point is not to kill myself nor my parents. This is mortal sin against moral common.
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]
Post subject: pupsaveconfig-2.2.2
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]
[url=http://tinyurl.com/pxzq8o9][img]https://s17.postimg.cc/tl19y14y7/You_Tube_signature80px.png[/img][/url]
[url=http://tinyurl.com/kennels2/]Kennels[/url]