Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 20 Oct 2014, 20:45
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Projects
PupsaveConfig-2.2.5
Moderators: Flash, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 10 of 12 [168 Posts]   Goto page: Previous 1, 2, 3, ..., 8, 9, 10, 11, 12 Next
Author Message
shinobar


Joined: 28 May 2009
Posts: 2631
Location: Japan

PostPosted: Mon 23 Apr 2012, 00:22    Post subject: 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- :
Code:
# 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

_________________
Google Chrome portable
Downloads for Puppy Linux http://shino.pos.to/linux/downloads.html
Back to top
View user's profile Send private message Visit poster's website 
shinobar


Joined: 28 May 2009
Posts: 2631
Location: Japan

PostPosted: Mon 30 Apr 2012, 04:16    Post subject: 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)

_________________
Google Chrome portable
Downloads for Puppy Linux http://shino.pos.to/linux/downloads.html
Back to top
View user's profile Send private message Visit poster's website 
chrome307


Joined: 15 Jan 2009
Posts: 713

PostPosted: Mon 30 Apr 2012, 04:30    Post subject:  

Thanks for this Smile
Back to top
View user's profile Send private message 
shinobar


Joined: 28 May 2009
Posts: 2631
Location: Japan

PostPosted: Mon 30 Apr 2012, 04:40    Post subject: 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. Wink
http://www.murga-linux.com/puppy/viewtopic.php?p=623766#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
}

_________________
Google Chrome portable
Downloads for Puppy Linux http://shino.pos.to/linux/downloads.html
Back to top
View user's profile Send private message Visit poster's website 
ETP


Joined: 19 Oct 2010
Posts: 552
Location: UK

PostPosted: Fri 04 May 2012, 12:06    Post subject: Post subject: pupsaveconfig-2.2.2  

Thanks for this essential utility. Currently using it in Slacko 5.3.2.9.
_________________
Regards ETP
Accessibility Pups: -- Magoo -- The Pup With No Name -- MouseCam -- Obedient
Back to top
View user's profile Send private message 
shinobar


Joined: 28 May 2009
Posts: 2631
Location: Japan

PostPosted: Wed 09 May 2012, 22:51    Post subject: pupsaveConfig-2.2.5  

EDIT: there was a bug in v2.2.4, fixed at v2.2.5. See another post bellow.
_________________
Google Chrome portable
Downloads for Puppy Linux http://shino.pos.to/linux/downloads.html

Last edited by shinobar on Tue 30 Oct 2012, 00:24; edited 3 times in total
Back to top
View user's profile Send private message Visit poster's website 
shinobar


Joined: 28 May 2009
Posts: 2631
Location: Japan

PostPosted: Fri 11 May 2012, 18:53    Post subject: pupsaveconfig-2.2.4  

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)

_________________
Google Chrome portable
Downloads for Puppy Linux http://shino.pos.to/linux/downloads.html
Back to top
View user's profile Send private message Visit poster's website 
Karl Godt


Joined: 20 Jun 2010
Posts: 3972
Location: Kiel,Germany

PostPosted: Sun 17 Jun 2012, 05:04    Post subject:  

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 !
Back to top
View user's profile Send private message Visit poster's website 
Ghost Dog


Joined: 27 Jan 2012
Posts: 108

PostPosted: Tue 11 Sep 2012, 18:16    Post subject:  

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?
Back to top
View user's profile Send private message 
shinobar


Joined: 28 May 2009
Posts: 2631
Location: Japan

PostPosted: Wed 12 Sep 2012, 03:02    Post subject: doesn't detect pupsave on the hard drive  

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.

_________________
Google Chrome portable
Downloads for Puppy Linux http://shino.pos.to/linux/downloads.html
Back to top
View user's profile Send private message Visit poster's website 
Ghost Dog


Joined: 27 Jan 2012
Posts: 108

PostPosted: Fri 14 Sep 2012, 08:25    Post subject:  

Thanks Shino, that did it. Very Happy
Back to top
View user's profile Send private message 
Pelo


Joined: 10 Sep 2011
Posts: 3220
Location: Mer méditerrannée (1 kms°)

PostPosted: Mon 24 Sep 2012, 00:24    Post subject: this tool should be by default on any distro
Subject description: I cannot do without it now : that was exactly what I want
 

Merci de l'avoir fait.
No bug from my side. Very usefull tool !
Back to top
View user's profile Send private message Yahoo Messenger 
vicmz


Joined: 15 Jan 2012
Posts: 1117

PostPosted: Wed 10 Oct 2012, 15:31    Post subject:  

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.
MoManager-es_AR-pupsaveconfig-2.2.4.tar.gz
Description 
gz

 Download 
Filename  MoManager-es_AR-pupsaveconfig-2.2.4.tar.gz 
Filesize  7.07 KB 
Downloaded  618 Time(s) 

_________________
OB Precise 14.07.26 Woof-CE|Puppy Linux en español
Back to top
View user's profile Send private message 
shinobar


Joined: 28 May 2009
Posts: 2631
Location: Japan

PostPosted: Tue 30 Oct 2012, 00:22    Post subject: pupsaveConfig-2.2.5  

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.

_________________
Google Chrome portable
Downloads for Puppy Linux http://shino.pos.to/linux/downloads.html

Last edited by shinobar on Sun 20 Jan 2013, 22:35; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
vicmz


Joined: 15 Jan 2012
Posts: 1117

PostPosted: Fri 02 Nov 2012, 23:09    Post subject:  

Please see my post here
This doesn't happen to me in latest Precise, Slacko or Wary, even with PupShutdown installed.

_________________
OB Precise 14.07.26 Woof-CE|Puppy Linux en español
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 10 of 12 [168 Posts]   Goto page: Previous 1, 2, 3, ..., 8, 9, 10, 11, 12 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Puppy Projects
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0899s ][ Queries: 13 (0.0067s) ][ GZIP on ]