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.2.5

#141 Post by shinobar »

EDIT: there was a bug in v2.2.4, fixed at v2.2.5. See another post bellow.
Last edited by shinobar on Tue 30 Oct 2012, 04:24, edited 3 times in total.
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.4

#142 Post by shinobar »

UPDATED: pupsaveconfig-2.2.4
#7may12 - v2.2.3 shinobar: rc.shutdown: refined avoiding re-login (killfuser avoid killing my grand parents)
#20may12 - v2.2.4 shinobar: rc.shutdown: fix was failed to mount cd beacause of the probepart bug (tnx to phil66)
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

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

#143 Post by Karl Godt »

Just short, shinobar : Now i have encountered this problem of re-login also .

Full installation to "Normal HDD Setup" with 2 Win ntfs partitions
and the OEM recovery fat partition - resized -
and made a fourth extended partition with two swaps - one for swap and one for suspend to disk -
and a 6-7 GB ext4 partition with racy-5.3 on it PUPMODE=2 plus Saluki-19 frugal PUPMODE=12 .

I was running the full install several times and it powered off or rebooted ok, and all of a sudden today it started to kill a process that seems to do a re-login, since i have taken out several rm -rf from rc.shutdown and put the rm -rf /tmp into rc.sysinit (together with a mkdir -p /tmp;chmod 1777 /tmp) - so bootcnt.txouch is still there, so no automatic xwin for me .

I first replaced fuser with busybox fuser since busybox seems to honour PID 1 - init automatically . Tjhat worked ok, but i am unsure if that is the right way . Besides PID1 i started to filter `pidof reboot`, `pidof poweroff` and "$$" which seems to work for me .

Besides that, the fuser command leaves a bunch of several dozen <defuncts> @me for some [milli]seconds . I have put a sleep 2 at first line of killzombies function.

Am reading your code now ! Thanks !

User avatar
Ghost Dog
Posts: 163
Joined: Fri 27 Jan 2012, 04:29

#144 Post by Ghost Dog »

Hey,

I'm using this on Slacko 3.3, running from a usb stick, and while it saves on my hard drive fine, Puppy doesn't detect it at boot.

Any ideas?

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

doesn't detect pupsave on the hard drive

#145 Post by shinobar »

Ghost Dog wrote:I'm using this on Slacko 3.3, running from a usb stick, and while it saves on my hard drive fine, Puppy doesn't detect it at boot.
If you have 'pmedia=usbflash' boot option, remove this pmedia option.
The boot option is on a file named menu.lst, syslinux.cfg, or extlinux.conf.
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

User avatar
Ghost Dog
Posts: 163
Joined: Fri 27 Jan 2012, 04:29

#146 Post by Ghost Dog »

Thanks Shino, that did it. :D

Pelo

this tool should be by default on any distro

#147 Post by Pelo »

Merci de l'avoir fait.
No bug from my side. Very usefull tool !

User avatar
vicmz
Posts: 1262
Joined: Sun 15 Jan 2012, 22:47

#148 Post by vicmz »

I haven't seen any NLS files, so I made a translation to Spanish for version 2.2.4 which I currently use. Note: there are a few lines with provisional translations, I'll post the file with those lines revised later. Also, the AR is just the country chosen for the system, the translation is in standard Spanish and shall work whatever Hispanic country is chosen.
Attachments
MoManager-es_AR-pupsaveconfig-2.2.4.tar.gz
(7.07 KiB) Downloaded 1036 times
[url=http://murga-linux.com/puppy/viewtopic.php?t=76948]Puppy Linux en español[/url]

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

pupsaveConfig-2.2.5

#149 Post by shinobar »

There was a bug in v2.2.4, fixed at v2.2.5.
http://shino.pos.to/linux/puppy/
/etc/rc.d/rc.shutdown-v2.2.5 wrote:#29apr12: do not kill myself to avoid re-login
#7may12 - v2.2.3: avoid killing my grand parents, more verbose under debug mode
#v2.2.4: fix typo
#v2.2.5: fix again killing my grand parents
MYPID=$$
PARENT=$PPID

killfuser() {
[ "$1" ] || return
BADPIDS="`fuser -m $1 2>/dev/null`"
[ "$BADPIDS" ] || return
PSRESULT=$(ps -al)
PSRESULT=$(echo "$PSRESULT"| tr -s ' ' | cut -f4,5,14 -d' ')

[ "$VERBOSE" = 'debug' ] && echo "MYPID=$MYPID, PARENT=$PARENT"
for ONEBAD in $BADPIDS
do
[ "$ONEBAD" = "$MYPID" ] && continue
[ "$ONEBAD" = "$PARENT" ] && continue

echo "$PSRESULT" | grep -w "$ONEBAD" | grep -qw -E "$PARENT|poweroff|reboot" && continue
if [ "$VERBOSE" ]; then
[ "$VERBOSE" = 'debug' ] && echo "$PSRESULT" | grep -w $ONEBAD
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
}
Note that pupsaveconfig-2.2.5.pet does not have NLS. pupsaveconfig_NLS is coming soon.
Last edited by shinobar on Mon 21 Jan 2013, 02:35, edited 1 time in total.
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

User avatar
vicmz
Posts: 1262
Joined: Sun 15 Jan 2012, 22:47

#150 Post by vicmz »

Please see my post here
This doesn't happen to me in latest Precise, Slacko or Wary, even with PupShutdown installed.
[url=http://murga-linux.com/puppy/viewtopic.php?t=76948]Puppy Linux en español[/url]

memomelaque
Posts: 3
Joined: Thu 21 Mar 2013, 05:29

#151 Post by memomelaque »

Thank you Shin, it is a great little program, works exactly like it is described and it is what I was looking for. I am using 5.3.1.

Again, thanks

mhanifpriatama
Posts: 60
Joined: Sat 22 Jan 2011, 07:50

#152 Post by mhanifpriatama »

I installed to slacko5.5, Likely worked, I change to -0 (do not save). But,when I install apps (in another day), why it save at pupsave file without run savepupsave ?
Sorry for my English.

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

installed apps saved at pupsave

#153 Post by shinobar »

mhanifpriatama wrote:I installed to slacko5.5, Likely worked, I change to -0 (do not save). But,when I install apps (in another day), why it save at pupsave file without run savepupsave ?
Sorry for my English.
It is the fault of the petget (Puppy Package Manager).
One of the solution is to use the petget-20120418.
http://www.murga-linux.com/puppy/viewtopic.php?t=64708
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

User avatar
ASRI éducation
Posts: 3197
Joined: Sat 09 May 2009, 12:10
Location: France
Contact:

#154 Post by ASRI éducation »

Hello shinobar,

I'm ok to translate pupsaveconfig into French.

Question: Can I use the file http://shino.pos.to/linux/puppy/pupsaveconfig.pot, it is updated for version 2.2.5?

Sincerely,

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

pupsaveconfig.pot

#155 Post by shinobar »

ASRI éducation wrote:Can I use the file http://shino.pos.to/linux/puppy/pupsaveconfig.pot, it is updated for version 2.2.5?
No problem, but i have made it updated.
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

User avatar
ASRI éducation
Posts: 3197
Joined: Sat 09 May 2009, 12:10
Location: France
Contact:

Re: pupsaveconfig.pot

#156 Post by ASRI éducation »

shinobar wrote:
ASRI éducation wrote:Can I use the file http://shino.pos.to/linux/puppy/pupsaveconfig.pot, it is updated for version 2.2.5?
No problem, but i have made it updated.
Ok ! :D

User avatar
ASRI éducation
Posts: 3197
Joined: Sat 09 May 2009, 12:10
Location: France
Contact:

#157 Post by ASRI éducation »

I tested FR translation with PupsaveConfig v2.2.5 and Precise Puppy v5.4.92.
This seems ok.
Cordialement,
Attachments
pupsaveconfig-2.2.5_localeFR_20130520.pet
fr.po, pupsaveconfig.mo, pupsaveconfig.txt, pupsaveconfig.desktop
md5 5b8166b6a3baade0e29ab047b1cd6045
(15.45 KiB) Downloaded 445 times

Dromeno
Posts: 534
Joined: Fri 12 Sep 2008, 07:01

bug in PupSaveConfig v2.2.5?

#158 Post by Dromeno »

Working in Carolina lite I just noticed that the option to create a 2fs/3fs/4fs only works when I create the personal save file immediately after the first boot from an iso (or pfix=ram).

But when I first make localization / keyboard adjustments, perhaps add some software etc, and then attempt to create a personal save file it fails. First I can not make it larger than 0kb, plus the options for 3fs and 4fs disappear. In this stage a 2fs and 3fs but not 4fs can only be created after ctrl-alt-backspace and the reboot command.

This is both in Carolina and in carolina lite (frugally installed).

I think this is a but in PupSaveConfig 2.2.5 but I am not sure.

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

Re: bug in PupSaveConfig v2.2.5?

#159 Post by shinobar »

Dromeno wrote:But when I first make localization / keyboard adjustments
What is your locale?
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

Pelo

Tutorial pupsaveconfig

#160 Post by Pelo »

Explanations given in the first topic. congratulations. pupsaveconfig is described step by step.
If my little video can help too here it is
This video was a memo for myself, so it's a french spoken one, i Make it better right now
click there
Improved, but i join some music, no explanations needed, because everything is said upper. :P
I have some problems shutting down Puppy Night LXDE. Nothing prooved that pupsaveconfig is the reason.
Attachments
lionel.jpg
(60.19 KiB) Downloaded 444 times
Last edited by Pelo on Wed 09 Jul 2014, 17:38, edited 3 times in total.

Post Reply