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 Tue 30 Sep 2014, 18:23
All times are UTC - 4
 Forum index » House Training » Bugs ( Submit bugs )
Precise Puppy 5.7.1
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 23 of 25 [368 Posts]   Goto page: Previous 1, 2, 3, ..., 21, 22, 23, 24, 25 Next
Author Message
L18L

Joined: 19 Jun 2010
Posts: 2507
Location: Moved from Hosla to www.eussenheim.de

PostPosted: Sat 22 Feb 2014, 13:37    Post subject: Precise Puppy 5.7.1
Subject description: shutdownconfig : back button instead of CHANGE_FOLDER
 

New forum member MyPuppysaysWauWau has posted about issues with shutdownconfig: no back button.

Here is my fix to get a back button that enables everyone
- to repeat the entire process
- or cancel without shutdown.
Quote:
#final sanity check...
AAAMB=`expr $SIZEPFILE \/ 1024`
T_sanititle="$(gettext 'First shutdown: sanity check')"
T_saniyes="$(gettext 'YES, SAVE')"
T_sanichange="$(gettext 'CHANGE FOLDER')"
while [ 1 ];do #110926
T_sanitext="`eval_gettext \"\Zb\Z1FINAL SANITY CHECK:\Zn\ZB
Partition you are saving to: \Zb\\\${SAVEPART}\ZB
The filesystem of \\\${SAVEPART} partition: \Zb\\\${SAVEFS}\ZB
Name of the save file: \Zb\\\${NAMEONLY}\ZB
Path (folder) of the save file: \Zb\\\${SAVEPATH}\ZB
Size of save file: \Zb\\\${SIZEPFILE}KB (\\\${AAAMB}MB)\ZB
Filesystem inside save file: \Zb\\\${SFFS}\ZB
\"`
"
T_back="$(gettext 'back')"
T_sanitext="$T_sanitext
`eval_gettext \"If they definitely look right, choose \Zb\\\${T_saniyes}\ZB button...
Looks ok, but you want to change the folder or anything else, choose \Zb\\\${T_back}\ZB...
If you decide not to save, choose \Zb\\\${T_notsave}\ZB...\"`"
# ${DIALOGEXE} ${BACKGROUNDYELLOW} ${TITLEPARAM} "$T_sanititle" --colors --no-collapse --extra-button --ok-label "$T_saniyes" --extra-label "$T_sanichange" --cancel-label "$T_notsave" --yesno "$T_sanitext" 0 0 >/dev/console #110926
${DIALOGEXE} ${BACKGROUNDYELLOW} ${TITLEPARAM} "$T_sanititle" --colors --no-collapse --extra-button --ok-label "$T_saniyes" --extra-label "$T_back" --cancel-label "$T_notsave" --yesno "$T_sanitext" 0 0 >/dev/console #140222

SANITYRET=$?
[ $SANITYRET -ne 0 -a $SANITYRET -ne 3 ] && return 1
[ $SANITYRET -eq 0 ] && break
# if [ $SANITYRET -eq 3 ];then #change folder.
if [ $SANITYRET -eq 3 ];then #start fresh
$0
exit
T_choosefoldertitle="$(gettext 'First shutdown: choose folder')"

script attached for your conveniance
shutdownconfig_with_back_button.png
 Description   
 Filesize   10.22 KB
 Viewed   1185 Time(s)

shutdownconfig_with_back_button.png

shutdownconfig.gz
Description  save as
/usr/sbin/shutdownconfig
(remove .gz)
make executable
gz

 Download 
Filename  shutdownconfig.gz 
Filesize  42.5 KB 
Downloaded  122 Time(s) 
Back to top
View user's profile Send private message 
ASRI éducation


Joined: 09 May 2009
Posts: 2467
Location: France

PostPosted: Sat 22 Feb 2014, 13:57    Post subject: Re: Precise Puppy 5.7.1
Subject description: shutdownconfig : back button instead of CHANGE_FOLDER
 

L18L wrote:
New forum member MyPuppysaysWauWau has posted about issues with shutdownconfig: no back button.

Here is my fix to get a back button that enables everyone
- to repeat the entire process
- or cancel without shutdown.

I'll try soon. This functionality can be very interesting.
Thank you.

_________________
Projet ASRI éducation => Association | Forum | Dépôt | Espace kids
Back to top
View user's profile Send private message Visit poster's website 
MyPuppysaysWauWau


Joined: 20 Feb 2014
Posts: 109
Location: Austria/Vienna

PostPosted: Sun 23 Feb 2014, 08:23    Post subject:  Screenshot
Subject description: works not correctly!
 

Hi,

Screeny 0.7 fails on my Laptop (Dell XPS1210) Sad





Regards from Vienna,
Walter
Back to top
View user's profile Send private message 
RSH


Joined: 05 Sep 2011
Posts: 2420
Location: Germany

PostPosted: Mon 03 Mar 2014, 01:15    Post subject:  

Hi.

What I did learn from programming functions, is: usually one can have only one function per name or one name per function.

I did not learn that it would be possible to have two functions using an equal name within the same code.

So why there is function free_coord twice in /usr/local/pup_event/frontend_funcs ???

Which one is used ?

If both are used, how does this work ?

And which one is executed first ?

Any clues ?

Thanks.

RSH

Code 1:
Code:
#v431 shinobar: fix for overlapping icons at some screen resolutions...
free_coord() {
 #find a free place on desktop. v410 avoid exact overlapping icons...
 #for left or right, i have flipped logic, so 'y' is horizontal...
 COORDSGRID="`grep -o ' x="[0-9]*" y="[0-9]*" ' /root/Choices/ROX-Filer/PuppyPin | sed 's/[0-9]"/"/g'`"
 case $ICON_PLACE_ORIENTATION in #091208 see /etc/eventmanager
  bottom|right)
   COORD_Y=`expr $SCRN_Y - $ICON_PLACE_EDGE_GAP` #091208 default 64, see /etc/eventmanager
  ;;
  *) #top or left
   COORD_Y=$ICON_PLACE_EDGE_GAP
 esac
 # import from v4.20p1JP 5Jun09, 18aug09 by Masaki Shinomiya : snap on the grid
 PIN_GRID_STEP=`grep "pinboard_grid_step" $HOME/.config/rox.sourceforge.net/ROX-Filer/Options | sed -e "s/ *<[^>]*>//g"`
 if [ "$PIN_GRID_STEP" ] && [ $PIN_GRID_STEP -gt 0 ];then
  PIN_GRID_STEP2=`expr $PIN_GRID_STEP / 2`
  COORD_Y=`expr \( $COORD_Y + $PIN_GRID_STEP2 \) / $PIN_GRID_STEP '*'  $PIN_GRID_STEP`
 fi
 COORD_X=$ICON_PLACE_START_GAP #091208 default 32, see /etc/eventmanager
 MAX_X=`expr $SCRN_X - 96`
 xPATTERN=" x=\"${COORD_X}\" y=\"${COORD_Y}\" "
 xyCNT=0 #precaution.
 while [ 1 ];do
  xgPATTERN="`echo -n "$xPATTERN" |  sed 's/[0-9]"/"/g'`"
  [ "`echo "$COORDSGRID" | grep "$xgPATTERN"`" = "" ] && break
  COORD_X=`expr $COORD_X + $ICON_PLACE_SPACING` #091208
  if [ $COORD_X -gt $MAX_X ];then #091208 start next line up.
   xyCNT=`expr $xyCNT + 1`
   [ $xyCNT -gt 1 ] && break
   case $ICON_PLACE_ORIENTATION in #091208 see /etc/eventmanager
    bottom)
     COORD_Y=`expr $SCRN_Y - $ICON_PLACE_SPACING`
    ;;
    *)
     COORD_Y=`expr $SCRN_Y + $ICON_PLACE_SPACING`
    ;;
   esac
   COORD_X=$ICON_PLACE_START_GAP
  fi
  xPATTERN=" x=\"${COORD_X}\" y=\"${COORD_Y}\" "
 done
}


Code 2:
Code:
free_coord() {
 #find a free place on desktop. v410 avoid exact overlapping icons...
 #091208 finetune placement, also any side of screen...
 #read the coords grid, code from shinobar...
 COORDSGRID="`grep -o ' x="[0-9]*" y="[0-9]*" ' /root/Choices/ROX-Filer/PuppyPin | sed 's/[0-9]"/"/g'`"
 PIN_GRID_STEP=`grep "pinboard_grid_step" $HOME/.config/rox.sourceforge.net/ROX-Filer/Options | sed -e "s/ *<[^>]*>//g"`
 [ ! $PIN_GRID_STEP ] && PIN_GRID_STEP=16 #16=medium.
 [ $PIN_GRID_STEP -eq 0 ] && PIN_GRID_STEP=16 #precaution.
 PIN_GRID_STEP2=`expr $PIN_GRID_STEP \/ 2`
 MAX_X=`expr $SCRN_X - 96`
 MAX_Y=`expr $SCRN_Y - 96`
 case $ICON_PLACE_ORIENTATION in #see /etc/eventmanager
  bottom)
   COORD_Y=`expr $SCRN_Y - $ICON_PLACE_EDGE_GAP` #default 64, see /etc/eventmanager
   COORD_Y=`expr \( $COORD_Y + $PIN_GRID_STEP2 \) / $PIN_GRID_STEP '*'  $PIN_GRID_STEP`
   COORD_X=$ICON_PLACE_START_GAP #default 32, see /etc/eventmanager
   COORD_X=`expr \( $COORD_X + $PIN_GRID_STEP2 \) / $PIN_GRID_STEP '*'  $PIN_GRID_STEP` #130613
   xPATTERN=" x=\"${COORD_X}\" y=\"${COORD_Y}\" "
   xyCNT=0 #precaution.
   while [ 1 ];do
    xgPATTERN="`echo -n "$xPATTERN" |  sed 's/[0-9]"/"/g'`"
    [ "`echo "$COORDSGRID" | grep "$xgPATTERN"`" = "" ] && break
    COORD_X=`expr $COORD_X + $ICON_PLACE_SPACING`
    if [ $COORD_X -gt $MAX_X ];then #start next line up.
     xyCNT=`expr $xyCNT + 1`
     [ $xyCNT -gt 1 ] && break
     COORD_Y=`expr $COORD_Y - $ICON_PLACE_SPACING`
     COORD_X=$ICON_PLACE_START_GAP
    fi
    xPATTERN=" x=\"${COORD_X}\" y=\"${COORD_Y}\" "
   done
  ;;
  top)
   COORD_Y=$ICON_PLACE_EDGE_GAP
   COORD_Y=`expr \( $COORD_Y + $PIN_GRID_STEP2 \) / $PIN_GRID_STEP '*'  $PIN_GRID_STEP`
   COORD_X=$ICON_PLACE_START_GAP #default 32, see /etc/eventmanager
   COORD_X=`expr \( $COORD_X + $PIN_GRID_STEP2 \) / $PIN_GRID_STEP '*'  $PIN_GRID_STEP` #130613
   xPATTERN=" x=\"${COORD_X}\" y=\"${COORD_Y}\" "
   xyCNT=0 #precaution.
   while [ 1 ];do
    xgPATTERN="`echo -n "$xPATTERN" |  sed 's/[0-9]"/"/g'`"
    [ "`echo "$COORDSGRID" | grep "$xgPATTERN"`" = "" ] && break
    COORD_X=`expr $COORD_X + $ICON_PLACE_SPACING`
    if [ $COORD_X -gt $MAX_X ];then #start next line down.
     xyCNT=`expr $xyCNT + 1`
     [ $xyCNT -gt 1 ] && break
     COORD_Y=`expr $COORD_Y + $ICON_PLACE_SPACING`
     COORD_X=$ICON_PLACE_START_GAP
    fi
    xPATTERN=" x=\"${COORD_X}\" y=\"${COORD_Y}\" "
   done
  ;;
  left)
   COORD_X=$ICON_PLACE_EDGE_GAP #default 64, see /etc/eventmanager
   COORD_X=`expr \( $COORD_X + $PIN_GRID_STEP2 \) / $PIN_GRID_STEP '*'  $PIN_GRID_STEP` #130613
   COORD_Y=$ICON_PLACE_START_GAP #default 32, see /etc/eventmanager
   COORD_Y=`expr \( $COORD_Y + $PIN_GRID_STEP2 \) / $PIN_GRID_STEP '*'  $PIN_GRID_STEP`
   xPATTERN=" x=\"${COORD_X}\" y=\"${COORD_Y}\" "
   xyCNT=0 #precaution.
   while [ 1 ];do
    xgPATTERN="`echo -n "$xPATTERN" |  sed 's/[0-9]"/"/g'`"
    [ "`echo "$COORDSGRID" | grep "$xgPATTERN"`" = "" ] && break
    COORD_Y=`expr $COORD_Y + $ICON_PLACE_SPACING`
    if [ $COORD_Y -gt $MAX_Y ];then #start next row.
     xyCNT=`expr $xyCNT + 1`
     [ $xyCNT -gt 1 ] && break
     COORD_X=`expr $COORD_X + $ICON_PLACE_SPACING`
     COORD_Y=$ICON_PLACE_START_GAP
    fi
    xPATTERN=" x=\"${COORD_X}\" y=\"${COORD_Y}\" "
   done
  ;;
  right)
   COORD_X=`expr $SCRN_X - $ICON_PLACE_EDGE_GAP` #default 64, see /etc/eventmanager
   COORD_X=`expr \( $COORD_X + $PIN_GRID_STEP2 \) / $PIN_GRID_STEP '*'  $PIN_GRID_STEP` #130613
   COORD_Y=$ICON_PLACE_START_GAP #default 32, see /etc/eventmanager
   COORD_Y=`expr \( $COORD_Y + $PIN_GRID_STEP2 \) / $PIN_GRID_STEP '*'  $PIN_GRID_STEP`
   xPATTERN=" x=\"${COORD_X}\" y=\"${COORD_Y}\" "
   xyCNT=0 #precaution.
   while [ 1 ];do
    xgPATTERN="`echo -n "$xPATTERN" |  sed 's/[0-9]"/"/g'`"
    [ "`echo "$COORDSGRID" | grep "$xgPATTERN"`" = "" ] && break
    COORD_Y=`expr $COORD_Y + $ICON_PLACE_SPACING`
    if [ $COORD_Y -gt $MAX_Y ];then #start next row back.
     xyCNT=`expr $xyCNT + 1`
     [ $xyCNT -gt 1 ] && break
     COORD_X=`expr $COORD_X - $ICON_PLACE_SPACING`
     COORD_Y=$ICON_PLACE_START_GAP
    fi
    xPATTERN=" x=\"${COORD_X}\" y=\"${COORD_Y}\" "
   done
  ;;
 esac
}


? ? ?

_________________
LazY Puppy
RSH's DNA
SARA B.
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 4245
Location: Gatineau (Qc), Canada

PostPosted: Mon 03 Mar 2014, 01:54    Post subject: Re: Precise Puppy 5.7.1
Subject description: shutdownconfig : back button instead of CHANGE_FOLDER
 

L18L wrote:
New forum member MyPuppysaysWauWau has posted about issues with shutdownconfig: no back button.

Here is my fix to get a back button that enables everyone
- to repeat the entire process
- or cancel without shutdown.
(...)


Danke, L18L.

This simple solution was waiting for someone to think about it, and you did! Smile
(Very free translation of the French: "Il suffisait d'y penser.")

How exportable is it? To other Puppy derivatives, I mean. Do you know?

BFN.

musher0

_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)
Back to top
View user's profile Send private message Visit poster's website 
musher0


Joined: 04 Jan 2009
Posts: 4245
Location: Gatineau (Qc), Canada

PostPosted: Mon 03 Mar 2014, 02:03    Post subject:  

RSH wrote:
Hi.

What I did learn from programming functions, is: usually one can have only one function per name or one name per function.
I did not learn that it would be possible to have two functions using an equal name within the same code.
So why there is function free_coord twice in /usr/local/pup_event/frontend_funcs ???
Which one is used ?
If both are used, how does this work ?
And which one is executed first ?
Any clues ?

Thanks.

RSH

Code 1:
(...)

Code 2:
(...)


Hi, RSH.

Do functions not behave like variables? Meaning: the 2nd one by the same name
supersedes (updates) the first? Not to mention that it should never happen in a
well-written script.

BFN.

musher0

PS. There are "literal" repetitions of script code in the "init" as well... (the one in initrd.gz).

_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)
Back to top
View user's profile Send private message Visit poster's website 
01micko


Joined: 11 Oct 2008
Posts: 7805
Location: qld

PostPosted: Mon 03 Mar 2014, 18:13    Post subject:  

RSH wrote:
Hi.

What I did learn from programming functions, is: usually one can have only one function per name or one name per function.

I did not learn that it would be possible to have two functions using an equal name within the same code.

So why there is function free_coord twice in /usr/local/pup_event/frontend_funcs ???

Which one is used ?

If both are used, how does this work ?

And which one is executed first ?

Any clues ?

Thanks.

RSH


Nice catch RSH. This is now fixed in woof. Musher0 is right that the second function overrides the first so no bug was seen (regarding the duplification) however of course it is a bug!

https://github.com/puppylinux-woof-CE/woof-CE/commit/4d485bece9fd604c0cf37aa878fab8a82da03e11

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send private message Visit poster's website 
L18L

Joined: 19 Jun 2010
Posts: 2507
Location: Moved from Hosla to www.eussenheim.de

PostPosted: Wed 05 Mar 2014, 11:08    Post subject: Re: Precise Puppy 5.7.1
Subject description: shutdownconfig : back button instead of CHANGE_FOLDER
 

musher0 wrote:
How exportable is it? To other Puppy derivatives, I mean. Do you know?

No, I don't know as I don't care about derivates....

Quote:
"Il suffisait d'y penser."
Ah bon, la PensOcracy
Back to top
View user's profile Send private message 
RSH


Joined: 05 Sep 2011
Posts: 2420
Location: Germany

PostPosted: Sat 08 Mar 2014, 06:19    Post subject:  

Hi.

I tried to run Precise-5.7.1 in VirtualBox-4.3.4 (shinobar's edition), but VirtualBox complains about my computer doesn't have PAE. So it did not start.

Without VirtualBox I can run and use exactly this Precise-5.7.1 Version.

Is VirtualBox wrong or my Computer?

Is there a non PAE Precise-5.7.1?


Thanks,

RSH

_________________
LazY Puppy
RSH's DNA
SARA B.
Back to top
View user's profile Send private message 
ASRI éducation


Joined: 09 May 2009
Posts: 2467
Location: France

PostPosted: Sat 08 Mar 2014, 06:32    Post subject:  

RSH wrote:
I tried to run Precise-5.7.1 in VirtualBox-4.3.4 (shinobar's edition), but VirtualBox complains about my computer doesn't have PAE. So it did not start.

Without VirtualBox I can run and use exactly this Precise-5.7.1 Version.

Is VirtualBox wrong or my Computer?

Is there a non PAE Precise-5.7.1?

Hello,
I think VirtualBox wrong.
For a non PAE Precise 5.71, you can use precise-5.7.1-retro.iso
http://distro.ibiblio.org/quirky/precise-5.7.1/
Cordialement,

_________________
Projet ASRI éducation => Association | Forum | Dépôt | Espace kids
Back to top
View user's profile Send private message Visit poster's website 
shinobar


Joined: 28 May 2009
Posts: 2630
Location: Japan

PostPosted: Sat 08 Mar 2014, 20:59    Post subject: PAE support on VirtualBox  

RSH wrote:
I tried to run Precise-5.7.1 in VirtualBox-4.3.4 (shinobar's edition), but VirtualBox complains about my computer doesn't have PAE. So it did not start.

Ensure the virtual machine settings.
virtualbox_pae.png
 Description   Of course the real CPU need to support PAE
 Filesize   10.19 KB
 Viewed   1522 Time(s)

virtualbox_pae.png


_________________
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 
RSH


Joined: 05 Sep 2011
Posts: 2420
Location: Germany

PostPosted: Sun 09 Mar 2014, 00:05    Post subject:  

Thanks.

I found this and tried this already. It began to boot, but it hangs when it comes to: making the filesystem usable...

A Precise 5.6 derivative and original Slacko 5.6.3 do make exactly the same problems. Lucid and THD boots fine.

Any clue, how to solve this (it destroys a vision of a cool app/function otherwise).

_________________
LazY Puppy
RSH's DNA
SARA B.
Back to top
View user's profile Send private message 
puppyto

Joined: 10 Apr 2010
Posts: 78

PostPosted: Tue 11 Mar 2014, 11:58    Post subject:    

Hello, anyone with Precise 5.7.1 on usb, has experienced like a freeze when execute "Menu---Shutdown---Power-off computer"? The black screen with "Precise-Puppy is now shutting down" remains indefinitely, so I have to remove the battery and unplug the power.
Back to top
View user's profile Send private message 
MyPuppysaysWauWau


Joined: 20 Feb 2014
Posts: 109
Location: Austria/Vienna

PostPosted: Sat 15 Mar 2014, 02:34    Post subject:    

Obsolete

Regards,
Walter
Back to top
View user's profile Send private message 
chrabak

Joined: 18 Mar 2014
Posts: 2

PostPosted: Tue 18 Mar 2014, 19:28    Post subject: precise5.7.1
Subject description: dupe directory structure in full install
 

First time posting so be nice:)

Run this cmd on a Precise 5.7.1 full install (with devx) and you will find
about 830 duplicate directory tree entries. I think this is a result of the sfs_load routine. Same with Slacko5.6.

find / -type d | sed -n '/.*\(\/.*\)\(\1\)$/{p}'

Discovered puppy 2009 and have found the joy of programming once again. Thx to all you puppy-makers.

Chris
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 23 of 25 [368 Posts]   Goto page: Previous 1, 2, 3, ..., 21, 22, 23, 24, 25 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Bugs ( Submit bugs )
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.1419s ][ Queries: 12 (0.0179s) ][ GZIP on ]