Shutdownconfig: GUI shutdown

Under development: PCMCIA, wireless, etc.
Message
Author
User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

Shutdownconfig: GUI shutdown

#21 Post 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

rodin.s
Posts: 344
Joined: Wed 22 Sep 2010, 19:50
Location: Ukraine

Russian shutdownconfig in Racy.

#22 Post 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.
Attachments
unicode-0.1.pet
unicode in console
(186.12 KiB) Downloaded 611 times

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

#23 Post 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
Puppy Linux Blog - contact me for access

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

Re: Shutdownconfig: GUI shutdown

#24 Post 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.
[url]https://bkhome.org/news/[/url]

rodin.s
Posts: 344
Joined: Wed 22 Sep 2010, 19:50
Location: Ukraine

Bug from Slacko

#25 Post by rodin.s »

Bigpup has reported a bug in shutdownconfig in Slacko RC2 thread.

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

Re: Bug from Slacko

#26 Post 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

User avatar
bigpup
Posts: 13886
Joined: Sun 11 Oct 2009, 18:15
Location: S.C. USA

Re: Bug from Slacko

#27 Post 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.
The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected :shock:
YaPI(any iso installer)

Sylvander
Posts: 4416
Joined: Mon 15 Dec 2008, 11:06
Location: West Lothian, Scotland, UK

Re: Saved without asking on 2nd shuwtdown

#28 Post 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.

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

Re: Bug from Slacko

#29 Post by L18L »

bigpup wrote: Line 571 also has that error.
Yes, thank you :oops: :)

${$foo}
delete $

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

#30 Post 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
Last edited by Karl Godt on Wed 16 Nov 2011, 17:47, edited 1 time in total.

User avatar
bigpup
Posts: 13886
Joined: Sun 11 Oct 2009, 18:15
Location: S.C. USA

#31 Post 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
The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected :shock:
YaPI(any iso installer)

starlyte

Super app, but...

#32 Post 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?

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

#33 Post 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 !
«Give me GUI or Death» -- I give you [[Xx]term[inal]] [[Cc]on[s][ole]] .
Macpup user since 2010 on full installations.
People who want problems with Puppy boot frugal :P

Post Reply