xenialPup-7.0.6 32-bits with kernel 4.1

A home for all kinds of Puppy related projects
Message
Author
musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#166 Post by musher0 »

Hi Glen.

Thanks for the logging code.

As to your 256 G Sandisk "locked" problem, I'd post it on its own thread in
the forum. You have a much greater chance of drawing attention from
people if it has its own title in the threads list -- than buried here.

As for me, I am pretty much clueless (with a couple of exceptions)
concerning hardware. So... no, I won't give you a bash one-liner for this,
I'm not that sure of myself!!! ;)

However, my initial instinct would be to answer: have you tried to change
the properties of the partition through the ROX-Filer ? Please see attached
capture.

That panel can be obtained by typing Ctrl-P in /mnt; then a crosshair
appears, and then you click on the desired partition with this crosshair.

You should be able to change (tick / un-tick) any of the boxes. But don't
mess with it. The example presented allows read-write-and-execute for
anything on this ram1 partition (in other words: it is the default, as it
should be for regular use partitions).

Perhaps you need to do this from the Puppy or OS the crash occurred on.
(Note the "perhaps".)

I'd also suggest a poweroff and reboot of your Pup with the drive connected.
Sometimes, this by itself is enough to reset the normal partition defaults.

Poweroff, not just reboot. As in:
-- poweroff everything, including turning off the monitor, the speakers, and
any outside drive;
-- wait a couple of minutes;
-- turn everything on again, and then reboot as you normally do.

IHTH.
Attachments
partition-properties.jpg
(84.37 KiB) Downloaded 1328 times
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
glene77is
Posts: 196
Joined: Tue 17 Aug 2010, 22:09
Location: Memphis, TN, USA
Contact:

#167 Post by glene77is »

Musher
Thanks for the tips.
Have tried most, and will go through all again.

Always a possibility,
I may have mounted it away from the fan,
and the 256 GB flashdrive got hot with mass copying.
Normally, I keep the large flashdrives by the fan,
hanging on a USB multiport. Otherwise, they get hot on mass copying.
When I say 'mass copying',
I refer to a mass copy of my 'backup' 256 GB
onto a new 256 GB.

Have gone back to the Hard-Drive and installed puppy distros for :
Lupu 525, Slacko 57, Slacko 632, Tahr 605, Xenial 708.
Have set up Directory version and/or the 4fs version
and plan to have both versions available from menu.lst.
Most function OK now.

I have found I like developing/mucking/tinkering in the Directory version.
I like the security made available by skipping the save2flash function.
When I make a mistake in codework, I just break-out and "reboot"
which reloads the prior version and I can start again.

Since I do frequent save2flash and then xarchive the savefiles
( which include a date-time-stamp in their name )
I noticed that the 256 GB flashdrives can get hot.
So, I hang then from a USB multiport, over the computer fan.



For developing a 4fs version,
to include custom display tracking and logging functions,
I use this technique :
(1) I have been able to load the 4fs version into Geany
( all relevant programs like rc.sysinit, rc.shutdown, sfs_load, fixmenus)
(2) then import (via Geany ) from the Directory version.

It is basically a Careful "copy/paste all" method.
WHEN I do a
(1) Geany "save"
(2) "save2flash"
THEN the 4fs file updates all index and file lengths.

I found an un-suspected feature
when setting pmode = ataflash or atahd or usbflash.
In general :
(1) "ataflash" or 'usbflash' requires a Linux ( ext2,3,4 partition) Directory ,
and allows the 'asktosave' to control saves.
(2) "atahd" can use the current hard-drive NTFS partitiion,
in a 4fs savefile, with 'auto save' .

This little discovery allows me to run Xenial ( both 4fs and Directory)
on my hard-drive system computer.
Prior to this, I had to always run the 4fs version on the hard-drives.



#==============================================================================
#&&& Xenial 7.0.8 GAE sample Log Method
#==============================================================================

### Assume that in rc.sysinit, you echo a little string > to clear/init the LogFile.

### Insert this "sample Library Subroutine"
in the first lines of each file to be logged.
### Each running script file will call itw 'own' logfunk???"
which inserts the script name.
### This example is for "sfs_load", and it titled "logfunksfs" .

### Script for "fixmenus", and all other files is similar ,
### just ID each program: "sfs_load","fixmenus", "rc.sysUP", "rc.sysDN", etc.
### Each of these programs makes many calls to its own "logfunk???"
### This example is for "sfs_load", and it titled "logfunksfs" .

#~ logfunksfs() {

### (1) name of current running script ;
ie, rc.sysUP, rc.sysDN, sfs_load, fixmenus .
#~ lcNameStr="sfs_load"

### (2) incoming parameter message,
#~ lcMsgStr="'$1'"

### (3) date-time-stamp
#~ lcDtsStr="`date -R | cut -f 2-5 -d ' ' | cut -f 1 -d '.' | tr '[a-z]' '[A-Z]'` z"

### (4) logging target file
#~ GaeLogFunkUp="/GAE-log-funk-up.tmp"
### filename copied from /etc/rc.d/GAE/GAE-SPEC
#~ lcFileStr="${GaeLogFunkUp}"

### build final string to write
#~ lcMsgStr="$lcNameStr : $lcMsgStr : $lcDtsStr "

### ( ) echo out to logging file.
#~ echo -e "$lcMsgStr" >> ${lcFileStr}

#~ } ### end logfunksample
###...........................................................................




I don't think I am presenting anything really 'new' for you,
just a 'sharing' exercise.
As always, YMMV ( your milage may vary ) .
Puppy Linux is more fun than a barrel of M$ monkeys :P
www.geocities.WS/glene77is
glene77is --- {^,^} --- electricity is shocking, Memphis, TN, USA.

User avatar
glene77is
Posts: 196
Joined: Tue 17 Aug 2010, 22:09
Location: Memphis, TN, USA
Contact:

#168 Post by glene77is »

Guys,
I have resolved "my" problems with HardDrive Xenial 7.0.8
not reading a Directory SaveFile.

My old eyes did not see the difference between "," or "."
and sometimes I just imagined that there was a "," or "." written in place
--- yuk!. :shock:

So, Xenial frugal alongside M$XP :
(1) The SaveFile.4fs are installed on sda1 ( format NTFS )
(2) The SaveFile Directory are installed on sda5 ( format EXT2 )

I find that Xenial is the more tolerant of errors,
compared to Slacko 632.
YMMV !

Thanks for a place to write my little adventures.
Puppy Linux is more fun than a barrel of M$ monkeys :P
www.geocities.WS/glene77is
glene77is --- {^,^} --- electricity is shocking, Memphis, TN, USA.

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#169 Post by musher0 »

Hi glen!

Thanks for the infos.

And thanks for the thanks about the writing space! (Although those should
actually be directed to forum moderator Flash and forum owner John Murga.)

BFN.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#170 Post by musher0 »

Hello all.

I recompiled the Sound eXchange (aka sox or SoX) version 14.4.2 (2015;
latest v. as of this writing) for xenialPup-706. It is available at:
https://augras.eu/puppy_linux/musher0/x ... 14.4.2.pet

Those of you who do not know SoX, please head for:
http://sox.sourceforge.net

In short, SoX is a sound suite in CLI that can generate sounds, play a wide
range of music formats, and process tags of music pieces. But please go
read the docs? No summary can do it justice.

Enjoy!
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
glene77is
Posts: 196
Joined: Tue 17 Aug 2010, 22:09
Location: Memphis, TN, USA
Contact:

Xenial Editing and Experimenting

#171 Post by glene77is »

Guys,

I have been tracking the functional flow of the rc.sysinit and rc.shutdown
and several other scripts that are involved.
This activity has been with Tahrpup 605 and Xenialpup 708.

In the process I noticed several differences :

Tahr savefile size (without internet activity) is small about 19 MB.
( when IRON browser loaded special, then the size is about 64 MB )
( I check and edit the save-file directly /root/.cache
( to clear out any residual files from internet activity )
( I noticed that several websites flood my OS with advertisements
( which can lock up my system with CPU 100% )
...
Tahr savefile must be 'copied' to a new savefile with a different name.
... if you want a new-named-date-time-stamped file to edit.
Tahr savefiles are locked to 'rename' or 'move' operations.
Tahr rc.sysinit is written as !/bin/ash
Tahr rc.shutdown is written as !/bin/sh

Xenial savefile size ( without internet activity) is larger about 280MB
( only IRON browser loaded special )
( I check and edit the save-file directly /root/.cache
( to clear out any residual files from internet activity )
( I noticed that several websites flood my OS with advertisements
( which can lock up my system with CPU 100% )
...
Xenial savefile can be "copied" to a new savefile with different name.
... if you want a new-named-date-time-stamped file to edit.
Xenial savefiles are not locked to 'rename' nor 'move' operations.
Xenial rc.sysinit is written as !/bin/ash
Xenial rc.shutdown is written as !/bin/sh

So, as I try writing BASH code, mostly it works.
But,
WHEN I strike-out references to !/bin/sh
(1) change rc.sysinit to !/bin/bash.
(2) change rc.shutdown to !/bin/bash.
(3) change rc.update to no language declaration
(4) check/change any other related script
(5) leave my rc.sysvar and rc.syslib with no language declaration
THEN the result is that
my BASH code functions work almost as written in the manual.

As I check around, I find that one /bin script will grep into rc.sysinit
to find some text ... but that is all.
There is No Other script that I have found
that greps nor calls functions out of rc.sysinit nor rc.shutdown.

As an experiment I replaced the 'asktosave' function
with a totally script text-mode function.
Just as an exercise.
Works OK ... if you like that sort of thing
... all the BASH code works ... that was the point.

As an experiment, , in both Tahr and Xenial ,
I opened "/" and called "select all" and called "count" = 71 Gig Bytes.
Must be expanding everything in the system files ! for the "count" .

So, savefiles : the Tahr is about 64 MB vs. Xenial about 274 MB.
If I load more, then the size increases.

I already 'expect' that one of our script-coding experts will point out
that I am only working with a "frugal" install,
and
that these little findings are not adequately representative of Puppy Linux.

Are there other comments about these findings ?





.
Last edited by glene77is on Sun 30 Dec 2018, 03:56, edited 1 time in total.
Puppy Linux is more fun than a barrel of M$ monkeys :P
www.geocities.WS/glene77is
glene77is --- {^,^} --- electricity is shocking, Memphis, TN, USA.

User avatar
glene77is
Posts: 196
Joined: Tue 17 Aug 2010, 22:09
Location: Memphis, TN, USA
Contact:

Xenial editing and experiments

#172 Post by glene77is »

Fellows:
Little mis-writing on the previous post
... but I found the "edit" button and fixed it.
.
As I continued embedding calls to my BASH subroutines
located in a script file '/etc/rc.d/rc.syslib' and '/etc/rc.d/rc.sysvar'
I uncovered what appear to be "scope" related issues.
.
These "encapsulation" issues can be quickly worked-round
by back-stepping to the vintage "cut-n-paste" method
of simulating subroutine calls.
.
Last edited by glene77is on Thu 10 Jan 2019, 01:16, edited 1 time in total.
Puppy Linux is more fun than a barrel of M$ monkeys :P
www.geocities.WS/glene77is
glene77is --- {^,^} --- electricity is shocking, Memphis, TN, USA.

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

Re: Xenial editing and experiments

#173 Post by musher0 »

glene77is wrote:Fellows:
Little mis-writing on the previous post
... but I found the "edit" button and fixed it.
Yeah, little miss Edit(h) is a sweetheart! :lol:
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
mikeslr
Posts: 3890
Joined: Mon 16 Jun 2008, 21:20
Location: 500 seconds from Sol

Re: Xenial editing and experiments

#174 Post by mikeslr »

musher0 wrote: Yeah, little miss Edit(h) is a sweetheart! :lol:
That's a matter of opinion. Archie always told her to "Stifle it!" :lol:

By the bye, Have a Happy New Year.

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

Re: Xenial editing and experiments

#175 Post by musher0 »

mikeslr wrote:
musher0 wrote: Yeah, little miss Edit(h) is a sweetheart! :lol:
That's a matter of opinion. Archie always told her to "Stifle it!" :lol:

By the bye, Have a Happy New Year.
You too!
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
glene77is
Posts: 196
Joined: Tue 17 Aug 2010, 22:09
Location: Memphis, TN, USA
Contact:

editing and experiments

#176 Post by glene77is »

MusherO

Here is a little message routine :

#######################################
#
### rc.str2msg

### usage:
### . /etc/rc.d/rc.str2msg "string" "color" "margin"
### . /etc/rc.d/rc.str2msg "string" "3" "10"

### capture all params to local lcVar
lcParam1=${1}
lcParam2=${2}
lcParam3=${3}

### trap margin

case "${lcParam3}" in
1)
/bin/echo -n -e "\\033[1G" >/dev/console ;;
2)
/bin/echo -n -e "\\033[10G" >/dev/console ;;
3)
/bin/echo -n -e "\\033[15G" >/dev/console ;;
4)
/bin/echo -n -e "\\033[20G" >/dev/console ;;
5)
/bin/echo -n -e "\\033[25G" >/dev/console ;;
6)
/bin/echo -n -e "\\033[30G" >/dev/console ;;
7)
/bin/echo -n -e "\\033[35G" >/dev/console ;;
*) ### default
/bin/echo -n -e "\\033[15G" >/dev/console ;;
esac

### defaults for common
lcMsgMgn="\\033[15G"
lcMsgClr="\\033[1;32m"

### trap color
case "${lcParam2}" in
1)
/bin/echo -n -e "\\033[1;31m" >/dev/console ;;
2)
/bin/echo -n -e "\\033[1;32m" >/dev/console ;;
3)
/bin/echo -n -e "\\033[1;33m" >/dev/console ;;
4)
/bin/echo -n -e "\\033[1;34m" >/dev/console ;;
5)
/bin/echo -n -e "\\033[1;35m" >/dev/console ;;
6)
/bin/echo -n -e "\\033[1;36m" >/dev/console ;;
7)
/bin/echo -n -e "\\033[1;37m" >/dev/console ;;
*)
/bin/echo -n -e "\\033[1;38m" >/dev/console ;;
esac

### send message
/bin/echo -n "$1" >>/dev/console
### send clear color
/bin/echo -e "\\033[0;m" >>/dev/console

return $1
}
##### end: rc.str2msg #######################################

Here is another to do a standard banner
which I use to show flow of program code
as it passes down past each one of PeaBee "######## title #####" :

#--- rc.str2banner -------------------------------------------------------------
### 33 36 33
lcMsgStr1="$1"
lcMsgStr2="$2"
lcMsgStr3="$3"
/bin/echo -e "\\033[13G\\033[1;33m $lcMsgStr1 \\033[1;36m $lcMsgStr2 \\033[1;33m $lcMsgStr3 \\033[0;39m" > /dev/console
#------------------------------------------------------------------------------

Sends a left margin-str , central message , right margin-str .

***
Puppy Linux is more fun than a barrel of M$ monkeys :P
www.geocities.WS/glene77is
glene77is --- {^,^} --- electricity is shocking, Memphis, TN, USA.

nbah07
Posts: 18
Joined: Sat 28 Apr 2018, 23:09

much action over here

#177 Post by nbah07 »



musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#178 Post by musher0 »

Hello nbah07.

I apologize for the delay.

-- I cannot answer all questions. Perhaps I knew the answers at the time, but now only
God knows them! :)

-- I have no recollection of PaleMoon itself asking for ReCapcha's answers.
-- Please remember that you cannot blame the behavior of a badly-designed web site
on the browser.
-- Try another browser?

-- What does the hplip-scan package do? If for a scanner, I do not have one.

-- It is possible that "putting the portable to sleep" does not work properly. I built this
XenialPup from the woof-CE recipe on a desktop computer. Obviously, I cannot test
"portable mode" on a desktop, sorry. I apologize for any inconvenience, but perhaps
ask someone who uses a portable. I have no way of counter-testing your experiment.

-- Why change virtual terminal? One is enough, yes? In my experience, reading
messages in /tmp/xerrs.log and from dmesg should give you good indication of what
is going wrong.

IHTH.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#179 Post by musher0 »

Hello again, nbah07.

About many threads in htop for a browser:

In htop, you can "condense" the various userland threads for any browser into one:
-- hit F2 (settings) from main htop view
-- in the settings panel, highlight the 2nd item in the left column (display options)
-- go to the right column with right arrow on keyboard
-- scroll down to the line that mentions "userland process threads"
-- press space bar to activate (an "x" will show for this line)
-- press F10 to save the setting.

Then you will have only one process thread for the browser.

Please see illustration attached.

IHTH.
Attachments
htop_Userland-Threads.jpg
(Partial view)
(245.54 KiB) Downloaded 459 times
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

nbah07
Posts: 18
Joined: Sat 28 Apr 2018, 23:09

pull the best from miserables

#180 Post by nbah07 »

musher0 wrote:enjoy, musher. no regrets on time compliance. we could think it's by our side, instead of rushing ahead, as many 4 pads friends endear when out for a walk.
Pointing again the possibility of a regret,
what project, distro-wise, have you working on? Still rowing (if reads offensive, quit) along the elder machines? specially laptops since it's my current piece. I honestly didn't want to search/test related distros again in manner to drive the end of other computer tasks. yes, i [s]was[/s] am poorly diagnosed with "task jitterer" - like it would be any relevant an opnion of frivolous peers, but heh, they ones who call the rules.
it's great you still read this thread.

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#181 Post by musher0 »

Hi nbah07.

No project at the moment, after doing some exploration of / contributions to jrb's
UpupBB32-light. I discovered the excellent MLTerm terminal doing that: it's an "old kid
on the block", as terminals go, but it was a surprising discovery for me (in the positive
sense). Also got interested in ICU (International Components for Unicode).

For now enjoying what is turning out to be a nice breezy Canadian summer!
In short, recharging the batteries!

BFN.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

nbah07
Posts: 18
Joined: Sat 28 Apr 2018, 23:09

#182 Post by nbah07 »

musher0 wrote:Have great journey.
...

User avatar
glene77is
Posts: 196
Joined: Tue 17 Aug 2010, 22:09
Location: Memphis, TN, USA
Contact:

#183 Post by glene77is »

Musher0,
Hello again.

I have moved on through UpupBB up to (+15).
This is a well written distro, by PeaBee.


I have written a "backup script" "pupsave-back-2-tar"
which works with a Frugal Install.
This will back-up the current "savefile" in .tar.gz format
and suffixes the current date-time-stamp.

Our work is a revision of "pupsave-backup 1.2.1" by 2byte,
fixing bugs and modifiying to match the way I do backups of 'savefile'.

Our script is titled "/usr/sbin/" "upupsave-back-2-tar"
and it runs successfuly in :
Tahr-606, UpupBB-03 ( +10, +12, +14, +15 ) .

EDIT:
We reinstalled Xenial 708, and first test was OK.

The script and two screen shots are attached.
Attachments
pupsave-back-2-tar-help.jpg
pupsave-back-2-tar help page screen shot.
(208.29 KiB) Downloaded 216 times
pupsave-back-2-tar-main.jpg
pupsave-back-2-tar main page screen shot.
(123.23 KiB) Downloaded 215 times
pupsave-back-2-tar.zip
pupsave-back-2-tar main script.
(4.7 KiB) Downloaded 100 times
Last edited by glene77is on Fri 13 Dec 2019, 18:44, edited 3 times in total.
Puppy Linux is more fun than a barrel of M$ monkeys :P
www.geocities.WS/glene77is
glene77is --- {^,^} --- electricity is shocking, Memphis, TN, USA.

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

#184 Post by bigpup »

I suggest you post this program in the Additional Software section of this forum.
Probably good place to put it is in the Utilities subsection.
http://www.murga-linux.com/puppy/index. ... order=DESC

If it is offered as something to use.
It needs to be tested in a lot of Puppy versions by a lot of people.
Plus, new programs or scripts need to go in Additional Software section, unless they are made for just one specific version of Puppy.
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)

User avatar
glene77is
Posts: 196
Joined: Tue 17 Aug 2010, 22:09
Location: Memphis, TN, USA
Contact:

#185 Post by glene77is »

bigpup wrote:I suggest you post this program in the Additional Software section of this forum.
Probably good place to put it is in the Utilities subsection.
http://www.murga-linux.com/puppy/index. ... order=DESC

If it is offered as something to use.
It needs to be tested in a lot of Puppy versions by a lot of people.
Plus, new programs or scripts need to go in Additional Software section, unless they are made for just one specific version of Puppy.

Right On! BigPup.
Will do.
Puppy Linux is more fun than a barrel of M$ monkeys :P
www.geocities.WS/glene77is
glene77is --- {^,^} --- electricity is shocking, Memphis, TN, USA.

Post Reply