Page 1 of 2

shutdownconfig_ru

Posted: Tue 27 Sep 2011, 20:05
by rodin.s
I have made po and mo files for Russian for BK.pet.
Translated console lines for rc.shutdown are disabled in poedit.
And I hope that Russian people will not go to console for first shutdown.

Re: Saved without asking on 2nd shuwtdown

Posted: Wed 28 Sep 2011, 00:54
by BarryK
Sylvander wrote:
BarryK wrote:If running from live-CD (with save-file on hard drive) or frugal installation (on hard drive), the work of your current session is immediately saved on the save-file. Thus, there is no choice possible for not saving it.
Can't believe I'm about to contradict you Barry...
...But I have my Lupu-526 [booted from a "live" CD-RW disk, with lupusave in a sub-folder on a partition on an internal HDD] set up so the pupsave on the HDD is treated as though a pupsave on a Flash Drive.
And then I have it configured so it NEVER auto-saves during the session .
And then at shut-down/reboot I'm offered the choice "to save or not to save". :D 8)

Here's an explanation of how I do it.


You are not contradicting me. If you configure things so that you have a save-file in internal HD, but instead of the normal PUPMODE=12 you have PUPMODE=13, then your work will be kept in RAM and flushed periodically. Then you can choose to not-save.

You should be able to achieve that by having "pmedia=ataflash" kernel boot parameter.

My earlier statement was based on the normal way that Puppy is used. The default is that a save-file on HD would be PUPMODE=12.

Shutdownconfig: GUI shutdown

Posted: Wed 28 Sep 2011, 11:01
by L18L
Here is updated shutdownconfig-de.po

Thanks to rodin.s for pointing me to line 61 :)

Catching bugs 4 eyes are better than 2 eyes. :D

Edited
Another bug (German only) was found so attachment deleted
use that of 2 posts down

Posted: Wed 28 Sep 2011, 23:10
by BarryK
Racy 5.1.101 (5.2beta1), "Tiny", is uploaded. See my blog post:

http://bkhome.org/blog/?viewDetailed=02510

L18L and rodin.s,
Would you mind checking the translation in it? L18L, I have not applied your latest changes, could you check that in Racy?

Note that I have separated out the translation for the rc.shutdown and shutdownconfig scripts.

Shutdownconfig: GUI shutdown

Posted: Thu 29 Sep 2011, 12:24
by L18L
translation checked and corrected 1 mistake (mine) in Racy 5.1.101

Attached file contains
shutdownconfig.mo , extract it into /usr/share/locale/de/LC_MESSAGES
and de.po for reference

Shutdownconfig: GUI shutdown

Posted: Fri 30 Sep 2011, 12:33
by L18L
Copied from command line and coloured manually:

# LANGUAGE=en shutdownconfig

Password for 'root' changed
/usr/sbin/root2user: line 102: 27675 Done echo "root:${ROOTPASSWORD}"
27676 Segmentation fault | busybox chpasswd
Password for 'fido' changed
/usr/sbin/root2user: line 105: 27677 Done echo "fido:${ROOTPASSWORD}"
27678 Segmentation fault | busybox chpasswd
disktype: Can't open /dev/fd0: No such device or address
/usr/sbin/shutdownconfig: line 63: 27945 Terminated yaf-splash -bg orange -close never -fontsize large -text "$T_waitprobing"

end of copy

1 bugfix for fido see:
http://www.murga-linux.com/puppy/viewto ... 7&start=60

Russian shutdownconfig in Racy.

Posted: Sat 01 Oct 2011, 12:23
by rodin.s
Translation is OK. But Cyrillic characters in console are not displayed so one line from rc.shutdown about saving session had white squares instead of letters.
I have made a pet to turn on Unicode in console. This method is used in Russian Puppies. Also this pet has dialog with UTF-8. To turn on UTF-8 in console it's needed to run command 'unicode_start'. It's in two places: /etc/rc.d/rc.local and in /usr/bin/xwin. i18n-d xwin with Russian mo-file are also included. After installing the pet X should be restarted. And after that Cyrillic characters in console are displayed.

Posted: Sat 01 Oct 2011, 21:35
by 01micko
I tested the latest (?) on my eee-701SD with tiny 800x480 resolution and most GUI are good except for the encryption choice.. it fills the screen with no buttons. This is in slacko-B5. Maybe it was overlooked?

Cheers

Re: Shutdownconfig: GUI shutdown

Posted: Sun 02 Oct 2011, 22:13
by BarryK
L18L wrote:translation checked and corrected 1 mistake (mine) in Racy 5.1.101

Attached file contains
shutdownconfig.mo , extract it into /usr/share/locale/de/LC_MESSAGES
and de.po for reference
Thanks, I have put that into Woof.

Bug from Slacko

Posted: Sun 23 Oct 2011, 20:52
by rodin.s
Bigpup has reported a bug in shutdownconfig in Slacko RC2 thread.

Re: Bug from Slacko

Posted: Mon 24 Oct 2011, 11:05
by L18L
rodin.s wrote:Bigpup has reported a bug in shutdownconfig in Slacko RC2 thread.
Thank you :)

I don't know whether this will solve the problem but I have found a superfluous thus buggy $ in
usr/sbin/shutdownconfig line 578
select \Zb\\\${$T_savetopart}\\\${PDEV1} \ZB (TAB then ENTER) to save direct to partition, or \Zb\\\${T_notsave}\ZB to shutdown without saving session..."`"
delete the $ please.

Edited some minutes later...
01micko wrote:Thanks so much L18L.. fixed!
_________________
keep the faith 8)
:D

Re: Bug from Slacko

Posted: Mon 24 Oct 2011, 19:37
by bigpup
L18L wrote:
rodin.s wrote:Bigpup has reported a bug in shutdownconfig in Slacko RC2 thread.
Thank you :)

I don't know whether this will solve the problem but I have found a superfluous thus buggy $ in
usr/sbin/shutdownconfig line 578
select \Zb\\\${$T_savetopart}\\\${PDEV1} \ZB (TAB then ENTER) to save direct to partition, or \Zb\\\${T_notsave}\ZB to shutdown without saving session..."`"
delete the $ please.

Edited some minutes later...
01micko wrote:Thanks so much L18L.. fixed!
_________________
keep the faith 8)
:D
Line 571 also has that error.

Re: Saved without asking on 2nd shuwtdown

Posted: Tue 25 Oct 2011, 09:38
by Sylvander
BarryK wrote:You should be able to achieve that by having "pmedia=ataflash" kernel boot parameter.
1. Yes, I'm using that right now here in Lupu-526. :D
And it works wonderfully well. 8)

2. Problem is...
I did this with a couple of other Puppies [Slacko & Wary methinks], and it didn't work on those. :(
No idea why. :?
Means I'm very inclined to use only Lupu-526 in which it DOES work.
I REALLY LIKE being able to choose when/whether or NOT to save the session.
I really like the simple/clear shut-down dialog [something like Save? = Yes/No].

3. I'd use an alternative method...
Especially if it had a dialog as simple and clear.
It would naturally need to offer the option "to save or not to save".
During the session and at shut-down.
I tried Pupsaveconfig, and it worked, but not so simple/elegant as my primary method.
Is your Shutdownconfig not intended to do this kind of thing?
My old mind is having difficulty grasping the totality of your concept.
I gather both of them must be used prior to the existence of a pupsave file...
To set up the new pupsave file.
Pity they cannot be applied to an existing pupsave.

4. Seems the abilty "to save or not to save" all depends upon the pupsave on an internal HDD being treated as though a pupsave on a Flash Drive.

Re: Bug from Slacko

Posted: Tue 25 Oct 2011, 11:16
by L18L
bigpup wrote: Line 571 also has that error.
Yes, thank you :oops: :)

${$foo}
delete $

Posted: Sat 29 Oct 2011, 17:15
by Karl Godt
First Impressions to shutdownconfig : on normal save files it works as expected .

Second impression : on encrypted save files it does not [always?] work properly [ especially see slacko threads ] .

[ have only tested this feature from X at manual frugal installs and not from console ]

[ EDIT ]
Since racy-5.2.1.90 the save to encrypted save-files works again
[ / EDIT ]

rc.shutdown now runs shutdownconfig and most relevant part of the former code of rc,shutdown now is in shutdownconfig

Would take me some time to learn more precisely how it works now [ especially the gettext parts ] .

BESIDES THAT :
What I would like to have is NOT a rm -rf [/tmp/]files @shutdown BUT @boot [rc.sysinit] !
1 : these files would be still viewable if something happens .
2 : it would eliminate the security risk of having files leftover having had a hard reset .
[ EDIT ]

Code: Select all

--- /initrd/pup_ro2/sbin/init	2010-10-20 00:33:25.000000000 +0100
+++ /sbin/init	2011-11-16 18:25:15.000000000 +0100
@@ -27,6 +27,9 @@ case $DEV1FS in
   busybox mount -t proc none /proc
   busybox mount -o remount,rw /
   rm -f /fsckme.flg
+  rm -r -f /tmp/*
+  rm -r -f /tmp/.[a-zA-Z0-9]*
+  chmod 1777 /tmp
   #creat a ramdisk... 
   #note, Puppy kernels are compiled with 13MB ramdisk, so need to be careful not to fill it up...
   echo 'Creating a ramdisk and populating with a Linux environment...'  >/dev/console

Code: Select all

--- /initrd/pup_ro2/etc/rc.d/rc.sysinit	2011-08-22 23:48:01.000000000 +0100
+++ /etc/rc.d/rc.sysinit	2011-11-16 18:36:33.000000000 +0100
@@ -134,6 +134,9 @@ fi
 
 #v409 mount/umount scripts no longer write to /etc/mtab, as gparted failed to create a
 #ext3 partition -- dunno why. Instead, now have /etc/mtab a symlink to /proc/mounts...
+rm -r -f /tmp/*
+rm -r -f /tmp/.[a-zA-Z0-9]*
+chmod 1777 /tmp
 rm -f /etc/mtab
 ln -s /proc/mounts /etc/mtab
 
[ / EDIT ]
END of BESIDES THAT

Posted: Tue 08 Nov 2011, 02:47
by bigpup
Slacko 5.3 main

Still having this problem.

Frugal install to USB flash drive
Save option - save to partition sdb1(the flash drive)

menu->shutdown->reboot or poweroff

Goes to saving session to sdb1 message

Then back to desktop.

Does not poweroff computer or reboot.

If you make a save file to flash drive. no problems.

This only happens if you use save option save to sdb1 (the flash drive)
Possible solution to this bug here:
http://www.murga-linux.com/puppy/viewtopic.php?t=73225

Super app, but...

Posted: Sat 31 Aug 2013, 23:52
by starlyte
Does this only come in BRIGHT yellow?

It's a great idea, super, but I couldn't face seeing that bright yellow, late at night after a eye tiring session, for example.... maybe a more, um, gentle colour?

And I'm not complaining, as I don't do any dev work at the moment, so thanks, but why YELLOW?

Posted: Fri 13 Sep 2013, 11:51
by Karl Godt
And I'm not complaining, as I don't do any dev work at the moment, so thanks, but why YELLOW?
Puppy 4 and Lupu don't have this shutdown GUI :P

runtt21 had successfully eliminated that yaf splash and uses the old-fashioned dialog way in his Macpup :)

~

Me born on 17th May : starlyte, with all respect , DUMBEST QUESTION !