Re: trying to parse lines from an awkwardly formatted HAR file ...

2024-03-23 Thread Albretch Mueller
> Archive.org has a well-documented API at
> https://archive.org/developers/. There's even a command-line tool
> (assuming one doesn't want to use, say, the python library).

I had given a somewhat thorough reading to their API some time ago,
but didn’t find anything that interesting and I was thinking of
developing a java GraalVM API which would be more customizable, easily
usable for other text banks. I took a second look at it and they still
don’t address their own problems, like repeated texts (same exact
text/publication with different identifiers), not standardized
metadata definitions: fr., french, French, fr, … to specify the
language. Author names are entered as free text as well ... so what is
the point of even having an API when the metadata is not well-defined,
-kept.



Re: trying to parse lines from an awkwardly formatted HAR file ...

2024-03-23 Thread Albretch Mueller
Greg Wooledge via lists.debian.org


>Furthermore, whatever method you are using to *create* this HAR file

>is questionable, since apparently you aren't even getting a properly

>formatted file in the end.


>So, putting these together, it looks like you are taking a file that

>was intended to be used for diagnosing browser/network performance

>issues, and attempting to use this in place of a downloadable index

>of documents from archive.org.


Well, the Chromium HAR log utility has captured that file as a HAR
formatted one of sorts describing the client-server back and forth and
the Linux file utility is telling me it is: "JSON text data". You may
also go:


https://archive.org/search?query=Euklid+OR+Euclid+OR+Euclides%5B%5D=lending%3A%22is_readable%22


to save that page and tell me what can you start with its content.
This is what I mean with hellishly obfuscated "js cr@p" and I can't
understand why archive.org would do that.


>Do you have one of these HAR files in a *DIRECTLY DOWNLOADABLE URL*?


the sample json file (the HAR file from archive.org) I am using right
now was uploaded file to:


https://ergosumus.files.wordpress.com/2024/03/karl_rosenkranz02_ia.har_.odt


date

url="https://ergosumus.files.wordpress.com/2024/03/karl_rosenkranz02_ia.har_.odt;

time wget -q --spider --no-verbose --server-response "${url}"; _wgetq=$?

echo "// __ \$_wgetq: |$_wgetq|"


Sat Mar 23 01:39:17 PM CDT 2024

HTTP/1.1 200 OK

Server: nginx

Date: Sat, 23 Mar 2024 18:38:16 GMT

Content-Type: application/vnd.oasis.opendocument.text

Content-Length: 686303

Connection: keep-alive

Last-Modified: Sat, 23 Mar 2024 17:01:03 GMT

Expires: Thu, 18 Apr 2024 19:04:42 GMT

X-Orig-Src: 01_mogdir

X-nc: MISS mdw 24 np

X-Content-Type-Options: nosniff

Alt-Svc: h3=":443"; ma=86400

Accept-Ranges: bytes


real 0m0.582s

user 0m0.080s

sys 0m0.069s

// __ $_wgetq: |0|

~

$ date

Sat Mar 23 11:59:53 AM CDT 2024


$ ls -l Karl_Rosenkranz02_IA.har.*

-rw-r--r-- 1 user user 686303 Mar 23 11:59 Karl_Rosenkranz02_IA.har.odt

-rw-r--r-- 1 user user 4290474 Mar 21 19:17 Karl_Rosenkranz02_IA.har.txt

-rw-r--r-- 1 user user 686303 Mar 23 11:59 Karl_Rosenkranz02_IA.har.zip


$ file --brief Karl_Rosenkranz02_IA.har.*

Zip archive data, at least v2.0 to extract, compression method=deflate

JSON text data

Zip archive data, at least v2.0 to extract, compression method=deflate


$ file Karl_Rosenkranz02_IA.har.*

Karl_Rosenkranz02_IA.har.odt: Zip archive data, at least v2.0 to
extract, compression method=deflate

Karl_Rosenkranz02_IA.har.txt: JSON text data

Karl_Rosenkranz02_IA.har.zip: Zip archive data, at least v2.0 to
extract, compression method=deflate


$ sha256sum Karl_Rosenkranz02_IA.har.*

95c2bf849d67b6812193b72fc8504fcab71b49da7937ea8fd9421bee4075ac86
Karl_Rosenkranz02_IA.har.odt

79dd5a23748db1a7270927b6c16fc28cfff59eaf804ba24b2443da578903ede2
Karl_Rosenkranz02_IA.har.txt

95c2bf849d67b6812193b72fc8504fcab71b49da7937ea8fd9421bee4075ac86
Karl_Rosenkranz02_IA.har.zip

~

or you could:


a) go: https://en.wikipedia.org/wiki/Karl_Rosenkranz

b) click on: Works by or about Karl Rosenkranz (at Internet Archive)

c) on the archive.org page, select "texts" and "always available"
(meaning text which is public domain)

d) open "More Tools" ... as I explained before (with d.5 I meant you
may have to scroll down or use Key press combinations to "manually"
get all records) in Rosenkranz' case I got 169 texts.

~

>This tells me we're deep inside an X-Y problem. The original goal is

>possibly something like "I want an index of all the books about this

>Greek dude". Maybe start from there, and see what answers you get.


Actually, in order to deX-Y it in case anyone can offer any help, it
is more like "I want an index of all the books which have ever been
written/published" in order to read all of them ;-)


Data registries mind their own extant entries. There is no general,
"orbis unum" registry of all texts (generally meant in a philological,
semiological sense: videos, paintings, ...) just the registry not the
extant data. Terribly persuasive silly me tried to explain this idea
to the archive.org folks and they told me off.

What would that registry be good for? Well, let me use self serving
metaphors, some time ago people didn't know how many people lived in
their countries or even their cities, where did the Nile river start,
what an earth map would look like, ... There was a moment in the
history of humankind in which one person could actually have read all
extant literature (at least relating to one culture, say: "natural
philosophy"). Technically it is not so hard, according to google some
130 million books have been printed since the invention of the
printing press. Not that many, anyway. The idea of reading them all
seized me when I was little after reading a one liner by some Perugian
dude (as cannibalized by me):


"the greatest of all gifts and graces that God has granted us with is
the capacity of overcoming oneself".


Now, 

Re: trying to parse lines from an awkwardly formatted HAR file ...

2024-03-23 Thread Albretch Mueller
>On Sat, Mar 23, 2024 at 1:44 AM  wrote:
>> On Sat, Mar 23, 2024 at 12:53:24AM -0500, Albretch Mueller wrote:
>> out of a HAR file containing lots of obfuscating js cr@p and all kinds of
>> nonsense I was able to extract line looking like:

>It's not "js cr@p", It is called JSON. And there's a spec for
>it.

 Well, I am old enough to remember when JSON meant: "JavaScript Object
Notation" in the form of human-readable attribute:value text files.

 a) using a chromium-derived browser, which can be used to dump the
HAR file log of the network back and forth, go, e. g.:
  https://en.wikipedia.org/wiki/Anaxagoras
 b) click on the link that says: "Works by or about Anaxagoras" (at
Internet Archive)
 c) on the archive.org page, select "texts" and "always available"
(meaning text which is public domain, he died 25 centuries ago)
 d) then to produce the HAR file, go:
 d.1) More Tools > Developer Tools;
 d.2) click on "Network" tab;
 d.3) Filter: GET
 d.4) check: "Preserve Log"
 d.5) scroll down the page all the way to make the client-server back
and forth cascade
 d.6) save the network log as HAR file to then open and eyeball it!

>> I have tried substring substitution, sed et tr to no avail.
>You might have a lot of fun trying to parse JSON with sed and
>tr.

 1) That HAR file is not properly formatted. Instead of
"attribute":value pairs in the standard way, they have used front
slash + quote pairs (instead of just quotes) erratically all around
the file. That is why you can't use jq.
 2) since they (archive.org) have been changing the format they use on
their pages (to avoid html scrappers?), I don't try to make sense of
what they do. I would just use quick hacks and "keep moving".
 2.a) make editing copy of the file
 2.b) using sed I would parse out the lines with the data I need:
  sed --in-place --expression
's/{\\"index\\":\\"/\n{\\"index\\":\\"/g' ""
 2.c) once you extract them, you then need to parse the fields for
post processing.

 I have tried substring substitution, sed et tr to first replace all
front slash + quote pairs into quotes to then be able to use jq in the
happy way you should. I haven't been successful (is that the reason
why they obfuscate their pages in that way?)

 lbrtchx



trying to parse lines from an awkwardly formatted HAR file ...

2024-03-22 Thread Albretch Mueller
out of a HAR file containing lots of obfuscating js cr@p and all kinds of
nonsense I was able to extract line looking like:

var00='{\"index\":\"prod-h-006\",\"fields\":{\"identifier\":\"bub_gb_O2EAMAAJ\",\"title\":\"Die
Wissenschaft vom subjectiven Geist\",\"creator\":[\"Karl Rosenkranz\",
\"Mr. ABC123\"],\"collection\":[\"europeanlibraries\",
\"americana\"],\"year\":1843,\"language\":[\"German\"],\"item_size\":797368506},\"_score\":[50.629513]}'
echo "// __ \$var00: |$var00|"

The final result that I need would look like:

var02='bub_gb_O2EAMAAJ|Die Wissenschaft vom subjectiven Geist|["Karl
Rosenkranz", "Mr. ABC123"]|["europeanlibraries",
"americana"]|1843|["German"]|797368506|[50.629513]'
echo "// __ \$var02: |$var02|"

I have tried substring substitution, sed et tr to no avail.

lbrtchx


Re: electrons/the Internet doesn't like question authority niggahs?, or is it that I like to eat raw garlic, ...

2024-03-04 Thread Albretch Mueller
On 3/4/24, Andy Smith  wrote:
> Please could you rephrase your entire email to only contain
> coherent, direct questions at least tenuously about Debian.

 I am downloading one by one a bunch of (relatively small) documents I
need (I work on corpora research) and the critical part of my bash
script looks like:

   wget --no-check-certificate --server-response --no-verbose
--continue --user-agent="${ua}" --keep-session-cookies --execute
robots=off --waitretry=1 --tries=5  --output-document="${opdf}"
--output-file="${log}" "${pdf}"
   if [[ $? -ne 0 ]]; then
echo "// __ [$_ix/$_lns): ${pdf}|${dmn}_${bn}| *~ download failed"
 >> "${failed_log}" 2>&1
ping="${odir}/${dmn}_${dt}_ping.txt"; time ( ping -c 4 "${dmn}" >
"${ping}" 2>&1 ) >> "${ping}" 2>&1
trace="${odir}/${dmn}_${dt}_traceroute.txt"; time( sudo traceroute
--debug --tcp "${dmn}" > "${trace}" 2>&1 ) >> "${trace}" 2>&1
dig="${odir}/${dmn}_${dt}_dig.txt"; time ( dig +time=5 "${dmn}" >
"${dig}" 2>&1 ) >> "${dig}" 2>&1
   fi

 Most connections attempts are either missed or dropped even though I
am testing first that the data is there. Maybe you know a better way
you would share?
 When I use brave/private/TOR (which apparently uses its own DNS
strategy) things become a lot less problematic (even if noticeably
slower than it already is), so it seems I may have to run brave
through Selenium ...
 I have never been able to see a traceroute log in all its integrity.
I would not go:
 sudo service networking restart
 after every traceroute run, because I am using my employers Internet
and I don't want to risk "electrons" getting even angrier with me.
 lbrtchx



electrons/the Internet doesn't like question authority niggahs?, or is it that I like to eat raw garlic, ...

2024-03-04 Thread Albretch Mueller
spend days on end reading, coding and thinking about Math?

As part of turning society/the world as a whole into an "all tangible
things" panopticon they have turned the Internet into a
"freedom-loving" gulag for which they are even using "AI"; so, they
don’t even need to use V-Leute. Those minitrue folks are so smart!

Something that shouldn't be happening at all is that after I use
traceroute once, it doesn't work again and my Internet access speed
describes like a sinus curve which amplitude remains for the most part
under 16KiB per second and for more than one second as 0B per second.

_LINK="https://christuniversity.in/uploads/course/E_21-25_Lateral
Entry(1)_20210618043317.pdf"

 1) is the file actually there?:

wget -q --spider "${_LINK}"; _WGETQ=$?
echo "// __ \$_WGETQ: |$_WGETQ|"

echo "// __ $_WGETQ: |0|"

 2) As one of the recommendations I found which might relate to this
problematic:

$ ls -l /etc/resolv.conf
-rw-r--r-- 1 root root 204 Mar  3 18:59 /etc/resolv.conf
$

$ cat /etc/resolv.conf
# Generated by NetworkManager
# nameserver 192.168.1.254
# nameserver 192.168.68.1

# https://serverfault.com/questions/76421/wget-cant-resolve-host
# RED 2013-03-31
nameserver 8.8.8.8
nameserver 8.8.4.4
$

$ ls -l /etc/nsswitch.conf
-rw-r--r-- 1 root root 613 Mar  3 12:57 /etc/nsswitch.conf
$

$ cat /etc/nsswitch.conf
# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc-reference' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.

passwd: files
group:  files
shadow: files
gshadow:files

#hosts:  files mdns4_minimal [NOTFOUND=return] dns myhostname

hosts:  files dns mdns4_minimal [NOTFOUND=return] dns myhostname

networks:   files

protocols:  db files
services:   db files
ethers: db files
rpc:db files

netgroup:   nis

 3) dig, ping, traceroute and wget log:

$ ls -l christuniversity.in_*.*
-rwxrwxrwx 1 user user  617 Mar  4 05:42
christuniversity.in_20240304112021.846262299_dig.txt
-rwxrwxrwx 1 user user  219 Mar  4 05:42
christuniversity.in_20240304112021.846262299_ping.txt
-rwxrwxrwx 1 user user 1081 Mar  4 05:42
christuniversity.in_20240304112021.846262299_traceroute.txt
-rwxrwxrwx 1 user user  522 Mar  4 05:42
'christuniversity.in_EComp_21-25_Lateral
Entry1_20210618043317_20240304112021.846262299_wget.log'
-rwxrwxrwx 1 user user0 Mar  4 05:20
'christuniversity.in_EComp_21-25_Lateral Entry1_20210618043317.pdf'
$

// __ christuniversity.in_20240304112021.846262299_dig.txt


; <<>> DiG 9.18.19-1~deb12u1-Debian <<>> +time christuniversity.in
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 49715
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;christuniversity.in.   IN  A

;; ANSWER SECTION:
christuniversity.in.60  IN  A   103.105.225.131
christuniversity.in.60  IN  A   111.93.136.229

;; Query time: 327 msec
;; SERVER: 8.8.8.8#53(8.8.8.8) (UDP)
;; WHEN: Mon Mar 04 05:42:58 CST 2024
;; MSG SIZE  rcvd: 80


real0m0.428s
user0m0.040s
sys 0m0.046s

// __ christuniversity.in_20240304112021.846262299_ping.txt

PING christuniversity.in (103.105.225.131) 56(84) bytes of data.

--- christuniversity.in ping statistics ---
4 packets transmitted, 0 received, 100% packet loss, time 3080ms


real0m13.445s
user0m0.000s
sys 0m0.015s

// __ christuniversity.in_20240304112021.846262299_traceroute.txt

traceroute to christuniversity.in (111.93.136.229), 30 hops max, 60 byte packets
 1  _gateway (192.168.68.1)  16.964 ms  15.714 ms  17.508 ms
 2  * 192.168.1.254 (192.168.1.254)  18.381 ms *
 3  * * *
 4  * * *
 5  * * *
 6  * * *
 7  * * *
 8  * * *
 9  ix-be-39.ecore1.ct8-chicago.as6453.net (66.198.27.4)  64.819 ms
64.547 ms  64.685 ms
10  if-ae-44-2.tcore1.ct8-chicago.as6453.net (63.243.129.56)  80.053
ms  81.180 ms  85.409 ms
11  if-ae-26-2.tcore3.nto-newyork.as6453.net (216.6.81.28)  86.478 ms
*  81.806 ms
12  if-ae-34-14.tcore4.njy-newark.as6453.net (66.198.111.26)  81.795
ms if-ae-34-15.tcore4.njy-newark.as6453.net (66.198.111.58)  84.297 ms
 82.801 ms
13  if-ae-1-3.tcore3.njy-newark.as6453.net (216.6.57.5)  97.965 ms
88.660 ms  89.184 ms
14  66.198.70.10 (66.198.70.10)  306.240 ms *  301.191 ms
15  * * *
16  * * *
17  * * *
18  111.93.136.229 (111.93.136.229)  307.868 ms  313.512 ms  306.604 ms
19  * * *
20  * * *
21  * * *
22  * * *
23  * * *
24  * * *
25  * * *
26  * * *
27  * * *
28  * * *
29  * * *
30  * * *

real0m21.725s
user0m0.016s
sys 0m0.025s

// __'christuniversity.in_EComp_21-25_Lateral
Entry1_20210618043317_20240304112021.846262299_wget.log'

failed: Connection timed out.
failed: Connection timed out.
failed: Connection timed out.
failed: Connection timed out.
failed: Connection 

Re: bash parameter expansion "doesn't like" dots?

2024-03-03 Thread Albretch Mueller
 bash doesn't seem to like dots too close to brackets:

 echo "${_VAR//[^0-9a-zA-Z.,_-]/}"

 works fine.

 lbrtchx

On 3/3/24, Albretch Mueller  wrote:
> _VAR="admissions.piedmont.edu_files?trackid=wnm:1980=what-is-the-second-fundamental-theorem-of-calculus(1).pdf"
>
> echo "${_VAR//[^a-zA-Z0-9_-]/}"
>
> echo "${_VAR//[^a-zA-Z0-9_-.]/}"
>



Re: "I: update-initramfs is disabled (live system is running on read-only media)" ...

2024-02-16 Thread Albretch Mueller
On 2/16/24, to...@tuxteam.de  wrote:
> On Fri, Feb 16, 2024 at 01:44:22PM -0600, Albretch Mueller wrote:
>> I've got a relatively old laptop with an ATI Radeon HD card, which
>> firmware I can't update. Wild pixelations happen even on relatively
>> simple pages not just videos. It seems to be a common problem. What I
>
> What is a "simple page" and what does "pixelation" mean in this
> context? Or is that irrelevant?

 A relatively simple, js-based web page  I meant to say.

>> have searched and found out is that I will have to un/repack initramfs
>> ..., but I haven't found a relatively safe, complete procedure.
>>
>> How can you update the initramfs on read-only media?
>
> You can't. Initramfs resides in the boot medium. To update it,
> you have to write to said medium.

 Right on the Debian Kernel Handbook they tell you you may use
"initramfs hooks" for such things:

 
https://kernel-team.pages.debian.net/kernel-handbook/ch-update-hooks.html#s-initramfs-hooks

 even though I couldn't find exactly the
"/etc/initramfs/post-update.d/" directory used by  update-initramfs
for post update hook options, I notice what seems to be a bunch of
those in:

 /usr/share/initramfs-tools/hooks/

 lbrtchx



"I: update-initramfs is disabled (live system is running on read-only media)" ...

2024-02-16 Thread Albretch Mueller
I've got a relatively old laptop with an ATI Radeon HD card, which
firmware I can't update. Wild pixelations happen even on relatively
simple pages not just videos. It seems to be a common problem. What I
have searched and found out is that I will have to un/repack initramfs
..., but I haven't found a relatively safe, complete procedure.

How can you update the initramfs on read-only media?

$ sudo lspci | grep "VGA\|Radeon"
00:01.0 VGA compatible controller: Advanced Micro Devices, Inc.
[AMD/ATI] Wrestler [Radeon HD 6320]

$ sudo hwinfo --gfxcard
11: PCI 01.0: 0300 VGA compatible controller (VGA)
  [Created at pci.386]
  Unique ID: vSkL.bvK4VqmPxPA
  SysFS ID: /devices/pci:00/:00:01.0
  SysFS BusID: :00:01.0
  Hardware Class: graphics card
  Model: "ATI Wrestler [Radeon HD 6320]"
  Vendor: pci 0x1002 "ATI Technologies Inc"
  Device: pci 0x9806 "Wrestler [Radeon HD 6320]"
  SubVendor: pci 0x17aa "Lenovo"
  SubDevice: pci 0x21ec
  Driver: "radeon"
  Driver Modules: "radeon"
  Memory Range: 0xe000-0xefff (ro,non-prefetchable)
  I/O Ports: 0x3000-0x30ff (rw)
  Memory Range: 0xf030-0xf033 (rw,non-prefetchable)
  Memory Range: 0x000c-0x000d (rw,non-prefetchable,disabled)
  IRQ: 26 (4041584 events)
  I/O Ports: 0x3c0-0x3df (rw)
  Module Alias: "pci:v1002d9806sv17AAsd21ECbc03sc00i00"
  Driver Info #0:
Driver Status: radeon is active
Driver Activation Cmd: "modprobe radeon"
  Driver Info #1:
Driver Status: amdgpu is active
Driver Activation Cmd: "modprobe amdgpu"
  Config Status: cfg=new, avail=yes, need=no, active=unknown

Primary display adapter: #11

$ sudo dmesg | grep --ignore-case "VGA\|video\|display\|Radeon"
[0.226971] Console: colour VGA+ 80x25
[0.287622] smpboot: CPU0: AMD E-450 APU with Radeon(tm) HD
Graphics (family: 0x14, model: 0x2, stepping: 0x0)
[0.417444] acpi PNP0A08:00: ignoring host bridge window [mem
0x000ce000-0x000c window] (conflicts with Video ROM [mem
0x000c-0x000ce5ff])
[0.418510] pci :00:01.0: Video device with shadowed ROM at
[mem 0x000c-0x000d]
[0.457408] pci :00:01.0: vgaarb: setting as boot VGA device
[0.457408] pci :00:01.0: vgaarb: bridge control possible
[0.457408] pci :00:01.0: vgaarb: VGA device added:
decodes=io+mem,owns=io+mem,locks=none
[0.457408] vgaarb: loaded
[4.436446] ACPI: video: Video Device [VGA1] (multi-head: yes  rom:
no  post: no)
[4.436916] input: Video Bus as
/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:01/input/input9
[5.659994] [drm] radeon kernel modesetting enabled.
[5.660219] radeon :00:01.0: vgaarb: deactivate vga console
[5.662092] radeon :00:01.0: VRAM: 384M 0x -
0x17FF (384M used)
[5.662100] radeon :00:01.0: GTT: 1024M 0x1800 -
0x57FF
[5.662185] [drm] radeon: 384M of VRAM memory ready
[5.662191] [drm] radeon: 1024M of GTT memory ready.
[5.662317] radeon :00:01.0: firmware: direct-loading firmware
radeon/PALM_pfp.bin
[5.662374] radeon :00:01.0: firmware: direct-loading firmware
radeon/PALM_me.bin
[5.662433] radeon :00:01.0: firmware: direct-loading firmware
radeon/SUMO_rlc.bin
[5.662693] [drm] radeon: dpm initialized
[5.663081] radeon :00:01.0: firmware: direct-loading firmware
radeon/SUMO_uvd.bin
[5.684961] radeon :00:01.0: WB enabled
[5.684968] radeon :00:01.0: fence driver on ring 0 use gpu
addr 0x18000c00
[5.684974] radeon :00:01.0: fence driver on ring 3 use gpu
addr 0x18000c0c
[5.685422] radeon :00:01.0: fence driver on ring 5 use gpu
addr 0x00072118
[5.685956] radeon :00:01.0: radeon: MSI limited to 32-bit
[5.686097] radeon :00:01.0: radeon: using MSI.
[5.686153] [drm] radeon: irq initialized.
[6.331634] radeon :00:01.0: [drm] Skipping radeon atom DIG
backlight registration
[6.338785] [drm] Radeon Display Connectors
[6.338819] [drm]   VGA-1
[6.785182] fbcon: radeondrmfb (fb0) is primary device
[7.350484] radeon :00:01.0: [drm] fb0: radeondrmfb frame buffer device
[7.363349] [drm] Initialized radeon 2.50.0 20080528 for
:00:01.0 on minor 0
[   25.811867] thinkpad_acpi: This ThinkPad has standard ACPI
backlight brightness control, supported by the ACPI video driver
$

 lbrtchx



Re: File has unexpected size (x != y). Mirror sync in progress? [IP: ...] ...

2024-01-29 Thread Albretch Mueller
On 1/29/24, David Wright  wrote:
> On Sat 27 Jan 2024 at 14:50:25 (+), Albretch Mueller wrote:
>> On 1/19/24, David Wright  wrote:
>> > On Fri 19 Jan 2024 at 22:19:21 (+), Albretch Mueller wrote:
>> >>  Package dependencies to me are just DAGs,
>> > Are they? No circular dependencies?
>>
>>  The way I see them, "circular dependencies" are "cultural".
>> "organizational" issues not essentially technical ones. circular
>> dependencies happen in packages which should be part of the same node.
>> Show me examples in which it is not the case.
>
> To save time, I just used the list's search, and found a reference
> to presumably the wheezy Packages file:
>
> Package: openjdk-6-jre-headless
> Version: 6b38-1.13.10-1~deb7u1
> Depends: openjdk-6-jre-lib (= 6b38-1.13.10-1~deb7u1), [ … ]
>
> Package: openjdk-6-jre-lib
> Version: 6b38-1.13.10-1~deb7u1
> Depends: openjdk-6-jre-headless (>= 6b27)
>
> I guess that example gives you something cultural or
> organisational to chew on?

 Ha! openjdk-6-jre- {headless, lib} both of version
6b38-1.13.10-1~deb7u1 depend on one another! ;-)

>> >> [ … ] I haven’t found a book yet, explaining it all.
>> >> At times I have found great explanations about single aspects.
>> > What sales figures would you expect to see with such a book?
>>  ... and since that sounds to me like ransom money aren't you the one
>> who would determine the amount yourself?
> I haven't a clue what you're rambling on about. Ransom money?
> You originally wrote:
>> >> [ … ] So, to start I would
>> >> like to study the Debian packages and how dpkg establishes and keeps
>> >> those dependencies. What happens on the hire and on the repositories
>> >> with certificates ... I haven’t found a book yet, explaining it all.
>> >> At times I have found great explanations about single aspects.
> For there to be a book on the subject, someone has to invest
> the time and effort to write it, and persuade others to
> proofread and publish it. But who's this book for—a whole
> book … on Debian's APT and dpkg?

 Well, yes! I think that Debian's APT, dpkg, apt-clone, ... within the
context of how they compare to other packaging systems, their essence
and functions has the potential to become  very beneficial to the
Debian and Linux culture. The other day I heard the author of Qubes OS
himself say that his project was not the be all and end all of Linux
security, that the only way to use a computing device with some of
that thing they used to call "privacy" is not to ever connect it to
the Internet (even physically removing the pertinent hardware and
compiling the kernel without networking libraries if it comes to that)
and I remember Linus Torvalds himself saying once publicly that he
never connects his work horse computer to the Internet. He was even
profusely making faces while he did.

 I think Qubes OS in a sense is an aberration, too wasteful
operatively and I do think that you could run the same box in
air-gapped and exposed mode in the "touch of God" way I already
explained.

> Perhaps after you've studied your issues long enough, though,
> you might write one.

 ... and I don't know if you care about exact arithmetical computing,
the mind-body link, corpora research, ... but as a way to thank
you/the Debian culture I will let you know what came out of your help.

 lbrtchx



Re: Debian:12.4/stable [amd64] ...

2024-01-27 Thread Albretch Mueller
On 1/27/24, Andrew M.A. Cater  wrote:
> I am consistently *puzzled* by what you are trying to do: I think that
> that is just effectively recording the repository that the package comes
> from. What does your /etc/sources.list consist of - and if it references
> bookworm, in what way does 12.4 surprise you? (Hint: That will change
> in about two weeks to 12.5 ...)

 Thank you! I didn't know what it meant.

> Your approach to all of this is best described as idiosyncratic - if
> you really don't trust Debian and apt and the way we do things

 Debian and apt and the way things are done within this OS cultural
ecosystem are fine, except for the assumption of using the Internet as
a trusted medium to any extent ("except", right? ;-)). I just got some
retribution from the Internet AI Gods, it seems. No internet access
for a week ...

> what
> *do* you trust?

 Well, let me just say that it somehow makes me feel somewhat
satisfied. As some sort of conservation law I think when they give me
sh!t you are not getting it ...

 lbrtchx



Re: File has unexpected size (x != y). Mirror sync in progress? [IP: ...] ...

2024-01-27 Thread Albretch Mueller
On 1/19/24, David Wright  wrote:
> On Fri 19 Jan 2024 at 22:19:21 (+), Albretch Mueller wrote:
>>  Package dependencies to me are just DAGs,
> Are they? No circular dependencies?

 The way I see them, "circular dependencies" are "cultural".
"organizational" issues not essentially technical ones. circular
dependencies happen in packages which should be part of the same node.
Show me examples in which it is not the case.

>> [ … ] I haven’t found a book yet, explaining it all.
>> At times I have found great explanations about single aspects.
> What sales figures would you expect to see with such a book?

 ... and since that sounds to me like ransom money aren't you the one
who would determine the amount yourself?

 lbrtchx



Debian:12.4/stable [amd64] ...

2024-01-27 Thread Albretch Mueller
apt-get installation logs (in --dry-run mode) show lines like:
...
Inst libvncclient1 (0.9.14+dfsg-1 Debian:12.4/stable [amd64])
Inst vlc-bin (3.0.20-0+deb12u1 Debian:12.4/stable [amd64])
Inst vlc-plugin-qt (3.0.20-0+deb12u1 Debian:12.4/stable [amd64])
...
you can get most parts of the suffix: "Debian:12.4/stable [amd64]", in
various way except the ".4" and the "stable" parts.

How could you get, list those ".4" and "stable" attributes prior to
running apt-get?

lbrtchx



Re: File has unexpected size (x != y). Mirror sync in progress? [IP: ...] ...

2024-01-19 Thread Albretch Mueller
On 1/19/24, Andrew M.A. Cater  wrote:
> On Fri, Jan 19, 2024 at 03:22:52PM +0000, Albretch Mueller wrote:
>> On 1/19/24, Max Nikulin  wrote:
>> > Precise steps
>> > depend on degree of your paranoia.
>>  ... and mine is of the totally irrevocable, even joyful kind; so,
>> where are the steps?
>>  I have always believe that Debian’s basic assumptions about using the
>> Internet as a relatively secure, “private” venue are definitely more
>> worryingly irrational than my paranoia.
>>  I think at some point I will have to learn more about Debian’s apt
>> utility. Any documentation you would suggest explaining it all from
>> the protocoled structure of deb packages to the various installation
>> procedures depending on degree of paranoia? When I learn something I
>> like to learn all of it.
> What aspect? apt sits on top of package dependencies, package signing,
> package validation ...

 Well, "my mind" has been partially trained, partially conditioned to
be kind of mix of poetic/artistic, scientific (mostly Math and
Physics, but anything empirical I find fascinating and technical
things somewhat, but I can’t be abused by all that AI cr@p you find
everywhere these days) and downright paranoid and proudly, joyfully so
;-)

 To me saying that you can ensure security, that thing they used to
call "privacy", ... with software would be like saying that you could
invent some sort of esperanto which would not allow for people to lie.

 Package dependencies to me are just DAGs, what I am mostly interested
in is how the various hard-, soft- and "mind"-ware "techne" aspects
related to one another and for that kind of semiotic study you need to
look into the grammar established by the different processes that go
on a computer. The nodes of the DAGs (the "characters" of that
grammar) conditioning the different kinds of transformations offered
by the packages’ utilities when programs run. So, to start I would
like to study the Debian packages and how dpkg establishes and keeps
those dependencies. What happens on the hire and on the repositories
with certificates ... I haven’t found a book yet, explaining it all.
At times I have found great explanations about single aspects.

 lbrtchx



Re: File has unexpected size (x != y). Mirror sync in progress? [IP: ...] ...

2024-01-19 Thread Albretch Mueller
On 1/19/24, Max Nikulin  wrote:
> Precise steps
> depend on degree of your paranoia.

 ... and mine is of the totally irrevocable, even joyful kind; so,
where are the steps?

 I have always believe that Debian’s basic assumptions about using the
Internet as a relatively secure, “private” venue are definitely more
worryingly irrational than my paranoia.

 I think at some point I will have to learn more about Debian’s apt
utility. Any documentation you would suggest explaining it all from
the protocoled structure of deb packages to the various installation
procedures depending on degree of paranoia? When I learn something I
like to learn all of it.

 I tend to only mind what I am working on. I would just use an
unexposed computer and/or do things by hand/on paper if possible, but
you can’t do algorithmic simulations and tests by hand.

 lbrtchx

On 1/19/24, Max Nikulin  wrote:
> On 18/01/2024 12:45, Albretch Mueller wrote:
>> On 1/14/24, Max Nikulin wrote:
>>> Generally just pay attention that GPG keys for repositories are obtained
>>> through trusted channels.
>>
>>   How do you functionally (that is, give me the step-by-step command
>> line statements, ... in order to) do that?
>
> Verify installation (or live) image to have initial keyring
>
> https://lists.debian.org/msgid-search/uobl6l$i21$1...@ciao.gmane.io
> Re: Correction to last message for Debian 11 and Debian 12. Thu, 18 Jan
> 2024 23:55:48 +0700.
>
> Optionally install necessary keyring packages.
>
> When adding a third-party repository, evaluate that GPG key you are
> going to add really belongs to repository maintainers. Precise steps
> depend on degree of your paranoia.



Re: File has unexpected size (x != y). Mirror sync in progress? [IP: ...] ...

2024-01-17 Thread Albretch Mueller
On 1/14/24, Max Nikulin  wrote:
> On 14/01/2024 04:43, Jeffrey Walton wrote:
>>
>> And use of HTTP in other fetches is dangerous, and HTTPS should be
>> used. See
>> .
>
> https://security-tracker.debian.org/tracker/CVE-2019-3462
> states that this particular vulnerability has been fixed. Do you have
> any evidence that APT is still affected by another one related namely to
> HTTP?
>
> Serious vulnerabilities have been found in OpenSSL and other libraries.
> Do you think, it is a reason to stop using TLS?
>
> In the case of APT, unless you disabled it, content is verified using
> GPG keys and signatures, see apt-secure(8) and
> https://wiki.debian.org/SecureApt
>
> HTTP clear text communication allows to use caching proxies, so to
> decrease load of repository servers and communication channels.
>
> HTTPS may be a mitigation till a specific fix is installed.

$ date; sudo apt -o Acquire::http::AllowRedirect=false  update
Thu Jan 18 12:38:19 AM UTC 2024
Get:1 file:/run/live/medium bookworm InRelease
Ign:1 file:/run/live/medium bookworm InRelease
Get:2 file:/run/live/medium bookworm Release [4,535 B]
Get:2 file:/run/live/medium bookworm Release [4,535 B]
Get:3 file:/run/live/medium bookworm Release.gpg
Ign:3 file:/run/live/medium bookworm Release.gpg
Get:4 file:/run/live/medium bookworm/main amd64 Packages [48.2 kB]
Get:5 file:/run/live/medium bookworm/non-free-firmware amd64 Packages [30.4 kB]
Err:6 http://deb.debian.org/debian bookworm InRelease
  302  Found [IP: 151.101.162.132 80]
Reading package lists... Done
E: Failed to fetch
http://deb.debian.org/debian/dists/bookworm/InRelease  302  Found [IP:
151.101.162.132 80]
E: The repository 'http://deb.debian.org/debian bookworm InRelease' is
no longer signed.
N: Updating from such a repository can't be done securely, and is
therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user
configuration details.
$

> Generally just pay attention that GPG keys for repositories are obtained
> through trusted channels.

 How do you functionally (that is, give me the step-by-step command
line statements, ... in order to) do that?

 lbrtchx



Re: File has unexpected size (x != y). Mirror sync in progress? [IP: ...] ...

2024-01-13 Thread Albretch Mueller
 My access to the Internet seems to be fine. I tested various urls:

url="https://www.wired.co.uk/article/facebook-energy-heating-homes;
###
curlvers=$(curl --version | head -n 1 | awk '{print $2}')

bn=$(basename "${url}")
dt=$(date --utc +%Y%m%d%H%M%S.%N)
ofl="${bn}_${dt}.html"
errs="${bn}_${dt}_curl_${curlvers}_errors.log"

time(
 curl --silent --verbose --output "${ofl}" "${url}" 2> "${errs}";
 _CURLX=$?
 echo "// __ \$_CURLX: |${_CURLX}|" >> "${errs}"
) >> "${errs}"

ls -l "${errs}"; wc -l "${errs}";
ls -l "${ofl}"; wc -l "${ofl}";

On 1/13/24, to...@tuxteam.de  wrote:
> On Sat, Jan 13, 2024 at 04:36:14PM +, Albretch Mueller wrote:
>> On 1/13/24, Michael Kjörling <2695bd53d...@ewoof.net> wrote:
>> > On 13 Jan 2024 13:44 +, from lbrt...@gmail.com (Albretch Mueller):
>> >> E: Failed to fetch
>> >> https://myattwg.att.com/olam/jsp/login/uverse/VS/UverseAccount.html
>> >> File has unexpected size (7009 != 20884). Mirror sync in progress?
>> >> [IP: 184.31.10.246 443]
>> >>Hashes of expected file:
>> >> -
>> >> SHA256:eac7c87ae7118d29d55d497c8a3873dd1c0c062dd3df06ca74a4710ddcb950d9
>> >> - MD5Sum:40029a8ea9aa7a6c9ddf3aa60404c17a [weak]
>> >> - Filesize:20884 [weak]
>> >
>> > That URL doesn't look right. You wouldn't by any chance be behind a
>> > captive portal or something like that which is asking for
>> > reauthentication?
>>
>>  Assuming I am indeed "behind a captive portal or something like that
>> which is asking for reauthentication" why is it that it only reacts
>> when I visit certain sites, like the profiled ones I need to access
>> right after I boot up?
>
> We can't know. But you can: just point your browser (or curl, or wget)
> at that URL and see what it says. This is the bunch of HTML your package
> manager is trying to digest as a package.
>
> Lucky that it barfs early, I'd say.
>
> Cheers
> --
> t
>



Re: File has unexpected size (x != y). Mirror sync in progress? [IP: ...] ...

2024-01-13 Thread Albretch Mueller
On 1/13/24, Michael Kjörling <2695bd53d...@ewoof.net> wrote:
> On 13 Jan 2024 13:44 +, from lbrt...@gmail.com (Albretch Mueller):
>> E: Failed to fetch
>> https://myattwg.att.com/olam/jsp/login/uverse/VS/UverseAccount.html
>> File has unexpected size (7009 != 20884). Mirror sync in progress?
>> [IP: 184.31.10.246 443]
>>Hashes of expected file:
>> -
>> SHA256:eac7c87ae7118d29d55d497c8a3873dd1c0c062dd3df06ca74a4710ddcb950d9
>> - MD5Sum:40029a8ea9aa7a6c9ddf3aa60404c17a [weak]
>> - Filesize:20884 [weak]
>
> That URL doesn't look right. You wouldn't by any chance be behind a
> captive portal or something like that which is asking for
> reauthentication?

 Assuming I am indeed "behind a captive portal or something like that
which is asking for reauthentication" why is it that it only reacts
when I visit certain sites, like the profiled ones I need to access
right after I boot up?

 lbrtchx



File has unexpected size (x != y). Mirror sync in progress? [IP: ...] ...

2024-01-13 Thread Albretch Mueller
 I read off stackoverflow that I should just wait for a couple of
hours. I have waited more than 12.

$ which ffmpeg
$

$ sudo apt-get install ffmpeg
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  libavdevice59 libcdio-cdda2 libcdio-paranoia2
Suggested packages:
  ffmpeg-doc
The following NEW packages will be installed:
  ffmpeg libavdevice59 libcdio-cdda2 libcdio-paranoia2
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,964 kB of archives.
After this operation, 2,841 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://deb.debian.org/debian bookworm/main amd64 libcdio-cdda2
amd64 10.2+2.0.1-1 [20.9 kB]
Get:2 http://deb.debian.org/debian bookworm/main amd64
libcdio-paranoia2 amd64 10.2+2.0.1-1 [20.4 kB]
Get:3 http://deb.debian.org/debian bookworm/main amd64 libavdevice59
amd64 7:5.1.4-0+deb12u1 [111 kB]
Get:4 http://deb.debian.org/debian bookworm/main amd64 ffmpeg amd64
7:5.1.4-0+deb12u1 [1,811 kB]
Err:1 http://deb.debian.org/debian bookworm/main amd64 libcdio-cdda2
amd64 10.2+2.0.1-1
  File has unexpected size (7009 != 20884). Mirror sync in progress?
[IP: 184.31.10.246 443]
  Hashes of expected file:
   - SHA256:eac7c87ae7118d29d55d497c8a3873dd1c0c062dd3df06ca74a4710ddcb950d9
   - MD5Sum:40029a8ea9aa7a6c9ddf3aa60404c17a [weak]
   - Filesize:20884 [weak]
Err:2 http://deb.debian.org/debian bookworm/main amd64
libcdio-paranoia2 amd64 10.2+2.0.1-1
  File has unexpected size (7009 != 20884). Mirror sync in progress?
[IP: 184.31.10.246 443]
  Hashes of expected file:
   - SHA256:ef0610a344c1548c386868d7480bb4a7fc69b5bfb459e99df4c8f96c658c0088
   - MD5Sum:a568135bfb8fa5370fda17b8852edfdc [weak]
   - Filesize:20380 [weak]
Err:3 http://deb.debian.org/debian bookworm/main amd64 libavdevice59
amd64 7:5.1.4-0+deb12u1
  File has unexpected size (7009 != 20884). Mirror sync in progress?
[IP: 184.31.10.246 443]
  Hashes of expected file:
   - SHA256:479cdac9422e291a83eecaabb222369d4191710ddecbf7ac538dcfcc41df7a95
   - MD5Sum:a1042dd7161976d81355a8da1c728f4d [weak]
   - Filesize:60 [weak]
Err:4 http://deb.debian.org/debian bookworm/main amd64 ffmpeg amd64
7:5.1.4-0+deb12u1
  File has unexpected size (7009 != 20884). Mirror sync in progress?
[IP: 184.31.10.246 443]
  Hashes of expected file:
   - SHA256:078295a64b9f719f7beaea1aeec9d1d0376afee605ff078c542792916798123a
   - MD5Sum:ba928f239b23fc112343be32059fb47a [weak]
   - Filesize:1811108 [weak]
E: Failed to fetch
https://myattwg.att.com/olam/jsp/login/uverse/VS/UverseAccount.html
File has unexpected size (7009 != 20884). Mirror sync in progress?
[IP: 184.31.10.246 443]
   Hashes of expected file:
- SHA256:eac7c87ae7118d29d55d497c8a3873dd1c0c062dd3df06ca74a4710ddcb950d9
- MD5Sum:40029a8ea9aa7a6c9ddf3aa60404c17a [weak]
- Filesize:20884 [weak]
E: Failed to fetch
https://myattwg.att.com/olam/jsp/login/uverse/VS/UverseAccount.html
File has unexpected size (7009 != 20884). Mirror sync in progress?
[IP: 184.31.10.246 443]
   Hashes of expected file:
- SHA256:ef0610a344c1548c386868d7480bb4a7fc69b5bfb459e99df4c8f96c658c0088
- MD5Sum:a568135bfb8fa5370fda17b8852edfdc [weak]
- Filesize:20380 [weak]
E: Failed to fetch
https://myattwg.att.com/olam/jsp/login/uverse/VS/UverseAccount.html
File has unexpected size (7009 != 20884). Mirror sync in progress?
[IP: 184.31.10.246 443]
   Hashes of expected file:
- SHA256:479cdac9422e291a83eecaabb222369d4191710ddecbf7ac538dcfcc41df7a95
- MD5Sum:a1042dd7161976d81355a8da1c728f4d [weak]
- Filesize:60 [weak]
E: Failed to fetch
https://myattwg.att.com/olam/jsp/login/uverse/VS/UverseAccount.html
File has unexpected size (7009 != 20884). Mirror sync in progress?
[IP: 184.31.10.246 443]
   Hashes of expected file:
- SHA256:078295a64b9f719f7beaea1aeec9d1d0376afee605ff078c542792916798123a
- MD5Sum:ba928f239b23fc112343be32059fb47a [weak]
- Filesize:1811108 [weak]
E: Unable to fetch some archives, maybe run apt-get update or try with
--fix-missing?

$ date; sudo apt-get update
Sat Jan 13 08:27:12 AM UTC 2024
Get:1 file:/run/live/medium bookworm InRelease
Ign:1 file:/run/live/medium bookworm InRelease
Get:2 file:/run/live/medium bookworm Release [4,535 B]
Get:2 file:/run/live/medium bookworm Release [4,535 B]
Get:3 file:/run/live/medium bookworm Release.gpg
Ign:3 file:/run/live/medium bookworm Release.gpg
Hit:4 http://deb.debian.org/debian bookworm InRelease
Reading package lists... Done

$ sudo apt-get install --fix-missing
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

$ date; sudo apt-get install ffmpeg
Sat Jan 13 08:33:59 AM UTC 2024
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  libavdevice59 libcdio-cdda2 

Re: dmesg reporting lots of errors apparently emanating from a Realtek RTL810xE PCI Express Fast Ethernet controller ...

2024-01-08 Thread Albretch Mueller
On 1/6/24, Albretch Mueller  wrote:
>  I may not even have an NVMe card in my computer as the manufacturer
> claims.

 My DELL Inspiron 5593 actually does have a M.2 512GB KIOXIA NVMe SSD,
which I need to use! The problem, as I described here without getting
a solution for it:

// __ I cannot change BIOS settings on my laptop?

 
https://forums.tomshardware.com/threads/i-cannot-change-bios-settings-on-my-laptop.3833102/
~
 is that I can't access/change the BIOS settings on my own laptop to
make the hdd work in AHCI mode, I think. I have also read that Debian
Linux has problems operating such cards:

https://superuser.com/questions/1502756/debian-not-detecting-nvme-asus-zenbook-ux430ua

I purchased a Dell XPS 8930 with an NVMe dirve. Debian and Fedora did
not recognize the NVMe. I had to use Ubuntu 18.04 for the drive to be
recognized. I'm not sure what Ubuntu is doing that Debian is not, but
I suspect it has something to do with updates. Debian tends to stick
with old and broken software. They will not upgrade for users. – jww
Nov 23, 2019 at 4:28
~
 You may know how to deal with such problems, better than I do, since
I don't tend to mind the intricate technical details about computer
hardware, even though I understand well the physics in them.

 Every piece of computer hardware my paranoia uses seems to have a
mind of its own. I have decided to not use computers (do all the
writing by hand on paper), but the data processing and algorithmic
basis of my paper I have to do on a computer.

 Any suggestions?

 lbrtchx



Re: dmesg reporting lots of errors apparently emanating from a Realtek RTL810xE PCI Express Fast Ethernet controller ...

2024-01-06 Thread Albretch Mueller
 Sorry, but I don't think I am making much sense out those reported errors.
 I may not even have an NVMe card in my computer as the manufacturer claims.
 lbrtchx



Re: dmesg reporting lots of errors apparently emanating from a Realtek RTL810xE PCI Express Fast Ethernet controller ...

2024-01-06 Thread Albretch Mueller
On 1/6/24, Jeffrey Walton  wrote:
> Before going down the rabbit hole, I would:
>
>   2. use a new [known good] ethernet cable

 I am not even using a cable!

>There is another discussion of PCI AER at
>.
>You might find something of interest in it.

 Thank you I spent some time going over their discussions which in two
cases were pretty similar to my problem and I decided to post my
problem:

 
https://forums.developer.nvidia.com/t/dmesg-reporting-lots-of-errors-apparently-relating-to-my-nvidia-card-and-realtek-rtl810xe-pci-express-fast-ethernet-controller/278001

 I will let you know how it went.

 lbrtchx



Re: dmesg reporting lots of errors apparently emanating from a Realtek RTL810xE PCI Express Fast Ethernet controller ...

2024-01-05 Thread Albretch Mueller
 I started my computer with the Bullseye Debian live DVD and the dmesg
log is not flooded with such error messages (as it does with
Bookworm):

[ 8095.737532] pcieport :00:1d.0: AER: Multiple Corrected error
received: :01:00.0
[ 8095.737572] r8169 :01:00.0: PCIe Bus Error: severity=Corrected,
type=Physical Layer, (Receiver ID)
[ 8095.737576] r8169 :01:00.0:   device [10ec:8136] error
status/mask=0001/6000
[ 8095.737579] r8169 :01:00.0:[ 0] RxErr  (First)

 This is what dmesg told me about the two networking interfaces
(before I exposed my computer):

$ sudo dmesg | grep "r8169\|ath10k_pci"
[1.162609] r8169 :01:00.0 eth0: RTL8106e, c0:3e:ba:26:aa:93,
XID 449, IRQ 124
[1.191058] r8169 :01:00.0 enp1s0: renamed from eth0
[   47.676697] ath10k_pci :02:00.0: enabling device ( -> 0002)
[   47.677983] ath10k_pci :02:00.0: pci irq msi oper_irq_mode 2
irq_mode 0 reset_mode 0
[   47.982673] ath10k_pci :02:00.0: firmware: failed to load
ath10k/pre-cal-pci-:02:00.0.bin (-2)
[   47.982709] ath10k_pci :02:00.0: firmware: failed to load
ath10k/cal-pci-:02:00.0.bin (-2)
[   47.982723] ath10k_pci :02:00.0: firmware: failed to load
ath10k/QCA9377/hw1.0/firmware-6.bin (-2)
[   47.982735] ath10k_pci :02:00.0: firmware: failed to load
ath10k/QCA9377/hw1.0/firmware-5.bin (-2)
[   47.982747] ath10k_pci :02:00.0: firmware: failed to load
ath10k/QCA9377/hw1.0/firmware-4.bin (-2)
[   47.982758] ath10k_pci :02:00.0: firmware: failed to load
ath10k/QCA9377/hw1.0/firmware-3.bin (-2)
[   47.982771] ath10k_pci :02:00.0: firmware: failed to load
ath10k/QCA9377/hw1.0/firmware-2.bin (-2)
[   47.982774] ath10k_pci :02:00.0: Failed to find firmware-N.bin
(N between 2 and 6) from ath10k/QCA9377/hw1.0: -2
[   47.982777] ath10k_pci :02:00.0: could not fetch firmware files (-2)
[   47.982779] ath10k_pci :02:00.0: could not probe fw (-2)
[   88.046124] r8169 :01:00.0: firmware: failed to load
rtl_nic/rtl8106e-1.fw (-2)
[   88.046204] r8169 :01:00.0: Direct firmware load for
rtl_nic/rtl8106e-1.fw failed with error -2
[   88.046223] r8169 :01:00.0: Unable to load firmware
rtl_nic/rtl8106e-1.fw (-2)
[   88.046679] RTL8208 Fast Ethernet r8169-0-100:00: attached PHY
driver [RTL8208 Fast Ethernet] (mii_bus:phy_addr=r8169-0-100:00,
irq=IGNORE)
[   88.213703] r8169 :01:00.0 enp1s0: Link is Down

 Then I install the ath10 drivers to be able to connect to the
Internet and dmesg is still fine, but I can't use the NVRAM.

$ sudo lspci -nn | grep PCIe
$
$ sudo lspci -nn | grep PCI
00:1d.0 PCI bridge [0604]: Intel Corporation Ice Lake-LP PCI Express
Root Port #9 [8086:34b0] (rev 30)
00:1d.1 PCI bridge [0604]: Intel Corporation Device [8086:34b1] (rev 30)
01:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd.
RTL810xE PCI Express Fast Ethernet controller [10ec:8136] (rev 07)
$

 In order to use the NVRAM you suggested to me to update to Bookworm,
but then there appears to be some conflict between the NVRAM which I
do see and the wired Realtek Ethernet controller, which I don't
understand because I am not using that:

01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL810xE
PCI Express Fast Ethernet controller (rev 07)

 firmware at all.

 Any elucidations on such firm-, hardware, OS conflicts?

 lbrtchx



dmesg reporting lots of errors apparently emanating from a Realtek RTL810xE PCI Express Fast Ethernet controller ...

2024-01-05 Thread Albretch Mueller
 I decided to upgrade to Bookworm because I needed to use some NVRAM
memory supposedly available in my computer, but then my wireless
Ethernet started to "complain". I initially thought those errors might
be related to the lazy use of the Ethernet drivers from Bullseye but
when I started to use Bookworm's drivers the errors became more
complicated. Following some hints from:

 
https://askubuntu.com/questions/863150/pcie-bus-error-severity-corrected-type-physical-layer-id-00e5receiver-id

[290569.588458] pcieport :00:1d.0: AER: Multiple Corrected error
received: :01:00.0
[290569.588488] r8169 :01:00.0: PCIe Bus Error:
severity=Corrected, type=Physical Layer, (Receiver ID)
[290569.588489] r8169 :01:00.0:   device [10ec:8136] error
status/mask=0001/6000
[290569.588491] r8169 :01:00.0:[ 0] RxErr  (First)

 I found out it was the Realtek RTL810xE PCI Express Fast Ethernet controller:

$ lspci -nn | grep PCIe
00:1d.1 PCI bridge [0604]: Intel Corporation Ice Lake-LP PCIe Port
[8086:34b1] (rev 30)

$ sudo hwinfo --pci
...
14: PCI 100.0: 0200 Ethernet controller
  [Created at pci.386]
  Unique ID: lkKU.j9EpqGNzpV9
  Parent ID: 1GTX.j6F4IaHYGk7
  SysFS ID: /devices/pci:00/:00:1d.0/:01:00.0
  SysFS BusID: :01:00.0
  Hardware Class: network
  Model: "Realtek RTL810xE PCI Express Fast Ethernet controller"
  Vendor: pci 0x10ec "Realtek Semiconductor Co., Ltd."
  Device: pci 0x8136 "RTL810xE PCI Express Fast Ethernet controller"
  SubVendor: pci 0x1028 "Dell"
  SubDevice: pci 0x097c
  Revision: 0x07
  Driver: "r8169"
  Driver Modules: "r8169"
  Device File: enp1s0
  I/O Ports: 0x3000-0x3fff (rw)
  Memory Range: 0x9140-0x91400fff (rw,non-prefetchable)
  Memory Range: 0x9120-0x91203fff (ro,non-prefetchable)
  IRQ: 16 (2575859 events)
  HW Address: c0:3e:ba:26:aa:93
  Permanent HW Address: c0:3e:ba:26:aa:93
  Link detected: no
  Module Alias: "pci:v10ECd8136sv1028sd097Cbc02sc00i00"
  Driver Info #0:
Driver Status: r8169 is active
Driver Activation Cmd: "modprobe r8169"
  Config Status: cfg=new, avail=yes, need=no, active=unknown
...
$

$ sudo hwinfo --network
25: None 00.0: 10701 Ethernet
  [Created at net.126]
  Unique ID: VV91.ndpeucax6V1
  Parent ID: qru8.BzdVZ3YOQjC
  SysFS ID: /class/net/wlp2s0
  SysFS Device Link: /devices/pci:00/:00:1d.1/:02:00.0
  Hardware Class: network interface
  Model: "Ethernet network interface"
  Driver: "ath10k_pci"
  Driver Modules: "ath10k_pci"
  Device File: wlp2s0
  HW Address: 5c:3a:45:0a:fb:c1
  Permanent HW Address: 5c:3a:45:0a:fb:c1
  Link detected: yes
  Config Status: cfg=new, avail=yes, need=no, active=unknown
  Attached to: #4 (Ethernet controller)

26: None 00.0: 10700 Loopback
  [Created at net.126]
  Unique ID: ZsBS.GQNx7L4uPNA
  SysFS ID: /class/net/lo
  Hardware Class: network interface
  Model: "Loopback network interface"
  Device File: lo
  Link detected: yes
  Config Status: cfg=new, avail=yes, need=no, active=unknown

27: None 00.0: 10701 Ethernet
  [Created at net.126]
  Unique ID: QObM.ndpeucax6V1
  Parent ID: lkKU.j9EpqGNzpV9
  SysFS ID: /class/net/enp1s0
  SysFS Device Link: /devices/pci:00/:00:1d.0/:01:00.0
  Hardware Class: network interface
  Model: "Ethernet network interface"
  Driver: "r8169"
  Driver Modules: "r8169"
  Device File: enp1s0
  HW Address: c0:3e:ba:26:aa:93
  Permanent HW Address: c0:3e:ba:26:aa:93
  Link detected: no
  Config Status: cfg=new, avail=yes, need=no, active=unknown
  Attached to: #8 (Ethernet controller)
$



 After using Bookworm drivers I am still getting:

[ 9514.141680] pcieport :00:1d.0: AER: Multiple Corrected error
received: :01:00.0
[ 9514.141723] r8169 :01:00.0: PCIe Bus Error: severity=Corrected,
type=Physical Layer, (Receiver ID)
[ 9514.141728] r8169 :01:00.0:   device [10ec:8136] error
status/mask=0001/6000
[ 9514.141734] r8169 :01:00.0:[ 0] RxErr  (First)

Why would such errors start happening with I tried to use the NVRAM
card? Why would that happen? How do you troubleshoot such errors in a
more in depth way?

lbrtchx



Re: difference in seconds between two formatted dates ...

2023-12-29 Thread Albretch Mueller
 at the end of the day I had my cake and ate it, too:

site="www.debian.com"
site="www.google.fr"
###
dt=$(date +%Y%m%d%H%M%S.%N);
whois > "${site}_${dt}_whois.log" 2>&1
sudo strace --output "${site}_${dt}_strace_ping.log" ping "${site}" -c
4 > "${site}_${dt}_ping.log" 2>&1
ls -l "${site}_${dt}"*".log"; wc -l "${site}_${dt}"*".log"

 Once again, thank you Greg,
 lbrtchx



Re: difference in seconds between two formatted dates ...

2023-12-26 Thread Albretch Mueller
On 12/26/23, Greg Wooledge  wrote:
> If you want to launch a SIMPLE BACKGROUND PROCESS (note the SIMPLE here,
> this is IMPORTANT), and then strace it while it runs, you'd do it like
> this:
>
> ping www.google.fr -c 4 &
> pid=$!
> strace -p "$pid"
> wait "$pid"

 I am getting an "Operation not permitted" error while strace tries to
attach to that pid:

 "strace: attach: ptrace(PTRACE_SEIZE, 52527): Operation not permitted"


$   ping www.google.fr -c 4 &
pid=$!
strace -p "$pid"
wait "$pid"
[1] 52527
strace: attach: ptrace(PTRACE_SEIZE, 52527): Operation not permitted
PING www.google.fr (64.233.185.94) 56(84) bytes of data.
64 bytes from yb-in-f94.1e100.net (64.233.185.94): icmp_seq=1 ttl=55
time=54.2 ms
64 bytes from yb-in-f94.1e100.net (64.233.185.94): icmp_seq=2 ttl=55
time=61.3 ms
64 bytes from yb-in-f94.1e100.net (64.233.185.94): icmp_seq=3 ttl=55
time=60.5 ms
64 bytes from yb-in-f94.1e100.net (64.233.185.94): icmp_seq=4 ttl=55 time=125 ms

--- www.google.fr ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3005ms
rtt min/avg/max/mdev = 54.240/75.219/124.823/28.769 ms
[1]+  Doneping www.google.fr -c 4
$



Re: difference in seconds between two formatted dates ...

2023-12-26 Thread Albretch Mueller
On 12/26/23, Greg Wooledge  wrote:
> On Tue, Dec 26, 2023 at 02:57:54PM +0000, Albretch Mueller wrote:
>>  1) how do you set up the process to be straced as a parameter? Something
>> like:
>> prx="echo hello"
>> logfile="file.txt"
>> #
>> strace "${prx}" 2>"${logfile}"
>> ls -l "${logfile}"; wc -l "${logfile}"; cat "${logfile}"
>
> Why?  This does not appear to have any usefulness.  You're just making
> your life harder for no reason.

 Well, the way I see such my options, you could:
 1.1) parametrize a call to a function, or
 1.2) use named files for each type of strace run.
 I would rather use §1.1

> See also <https://mywiki.wooledge.org/BashFAQ/050>.

 Thank you. As you have suggested to me. I will have to use a
highlevel language if I want to take care of my "coblesome" cases. I
tend to entangle myself in corner cases for which scripts aren't so
useful.

>>  2) how do you know for sure that you are stracing the same process
>> that you are running and is logging some data?
>
> You are EXTREMELY confused about something, and we NEED to address this
> immediately.
>
> If you run "strace ./foo", a new instance of ./foo is launched right
> then and there, and you get the system call trace of THAT instance.

 Based on:

 
https://askubuntu.com/questions/137233/how-to-command-ping-display-time-and-date-of-ping/867500

 I think I am getting close to where I need to with this (am I?):

$ bash -c 'ping www.google.fr -c 4 &'; echo "Caller PID: $$"; strace -p $$
Caller PID: 45588
strace: Process 45588 attached
wait4(-1, PING www.google.fr (142.250.190.131) 56(84) bytes of data.
64 bytes from ord37s36-in-f3.1e100.net (142.250.190.131): icmp_seq=1
ttl=54 time=50.0 ms
64 bytes from ord37s36-in-f3.1e100.net (142.250.190.131): icmp_seq=2
ttl=54 time=34.7 ms
64 bytes from ord37s36-in-f3.1e100.net (142.250.190.131): icmp_seq=3
ttl=54 time=38.7 ms
64 bytes from ord37s36-in-f3.1e100.net (142.250.190.131): icmp_seq=4
ttl=54 time=40.3 ms

--- www.google.fr ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3004ms
rtt min/avg/max/mdev = 34.735/40.952/50.048/5.628 ms



^Cstrace: Process 45588 detached
 
$

 However, strace doesn't end gracefully even though it seems to attach
to the running process  before it starts and based on what strace
itself logs, the process seems to end just fine.



Re: difference in seconds between two formatted dates ...

2023-12-26 Thread Albretch Mueller
On 12/26/23, Thomas Schmitt  wrote:
> man strace says:
>   -o filename Write the trace output to the file  filename  rather
>   than  to  stderr.
>
> So strace normally directs its output to stderr. That's file descriptor 2.
> You can redirect it by the "2>file" gesture of the shell:
>
>   $ strace echo hello 2>file
>   hello
>   $ cat file
>   execve("/bin/echo", ["echo"], [/* 35 vars */]) = 0
>   brk(0)  = 0x13ba000
>   ...
>   exit_group(0)   = ?
>   +++ exited with 0 +++
>
> Or you may use the mentioned -o option which will keep the tracee's stderr
> out of the file:
>
>   $ strace -o file echo hello
>   hello
>   $ cat file
>   ...

 three questions:

 1) how do you set up the process to be straced as a parameter? Something like:
prx="echo hello"
logfile="file.txt"
#
strace "${prx}" 2>"${logfile}"
ls -l "${logfile}"; wc -l "${logfile}"; cat "${logfile}"

 2) how do you know for sure that you are stracing the same process
that you are running and is logging some data? I had read up from the
links that I included that there are ways to make the shell spit the
process number before a process is run, but how do you then insert the
stracing segment in the one liner in order the use that process id
before the process is actually run?

 The way I understand the PID options of strace:

strace --help ...
 -p PID, --attach=PID: trace process with process id PID, may be repeated
 --tips[=[[id:]ID][,[format:]FORMAT]]: show strace tips, tricks, and
tweaks on exit
 id: non-negative integer or random; default is random
 format: none, compact, full; default is compact

 it seems to be attaching to some already running deamon or server process.

 How do you make it swallow a process that would go in one step/moment?

 3) I have noticed that strace output is not totally predictable, so
"parsing" is not that safe, straightforward

 prx="echo hello"
logfile="file.txt"
#
strace "${prx}" 2>"${logfile}"
ls -l "${logfile}"; wc -l "${logfile}"; cat "${logfile}"


$ strace file strace.wlog.txt 2>&1 | tail -n 5
write(1, "strace.wlog.txt: ASCII text, wit"..., 56strace.wlog.txt:
ASCII text, with very long lines (348)
) = 56
munmap(0x7f127f083000, 8281024) = 0
exit_group(0)   = ?
+++ exited with 0 +++

$ strace wget --help  2>&1 | tail -n 5
Email bug reports, questions, discussions to 
and/or open issues at https://savannah.gnu.org/bugs/?func=additem=wget.
) = 956
exit_group(0)   = ?
+++ exited with 0 +++
$

Notice the diffing "munmap(0x7f127f083000, 8281024) = 0" line
which I think comes from strace.

 lbrtchc



Re: difference in seconds between two formatted dates ...

2023-12-25 Thread Albretch Mueller
On 12/25/23, Greg Wooledge  wrote:
> If you want to see what a process is doing, there's strace.  It can
> even be told to follow all the children of a process (strace -f).

 But how do you strace a program saving the output (of the stracing)
in a logfile while you also save that program's output without making
it part of the stracing? Say you go:

$ strace -f wget --help

You can clearly see the output of "wget --help" tailgated as part of
the stracing (which, of course, you can parse out), but I want two
separate log files. One for the stracing and the other for the actual
output of that program you ran.

I found some posts suggesting that to be possible, but I couldn't get it right:

https://serverfault.com/questions/205498/how-to-get-pid-of-just-started-process
https://askubuntu.com/questions/137233/how-to-command-ping-display-time-and-date-of-ping/867500#867500

lbrtchx



Re: difference in seconds between two formatted dates ...

2023-12-25 Thread Albretch Mueller
On 12/21/23, Greg Wooledge  wrote:
> So... this is interesting.  Apparently timedatectl doesn't simply look
> at the target of /etc/localtime.  There's a DELAY before the value is
> correctly reported.  This tells me that timedatectl is in communication
> with some process (perhaps PID 1, I don't know), and this other process
> only discovers that /etc/localtime has changed after some time has passed.
> Is it *polling*?  I have no idea, but that's what it looks like.

 This thread has taken a life of its own and I have learned quite a
bit from our back and forth. This is not how I intuitively thought it
worked. I thought you had to actively ask the OS to update itself ...
Now I am interested in learning all there is to be learned from this
whole time keeping methodology and how it relates to systemd and the
boot process.

 Is there a way to start the Linux kernel of a Debian Live running
instance enabling you to log the whole process (in a more in depth way
than dmesg) and then go "follow tcp" for each listed process in dmesg
as you do with wireshark?

 lbrtchx



Re: difference in seconds between two formatted dates ...

2023-12-24 Thread Albretch Mueller
On 12/25/23, David Wright  wrote:
> On Sun 24 Dec 2023 at 23:05:53 (+), Albretch Mueller wrote:
>> On 12/18/23, Max Nikulin  wrote:
...
>> Why would %S be in the range
>> second (00..60), instead of (00..59)?:
>
> Leap seconds—see the example already in the thread:
>   https://lists.debian.org/debian-user/2023/12/msg00976.html

 So, a possible (the only?) solution to those kinds of problems would
be to always and explicitly use UTC, right? Or, using the longitude 20
West (just crossing Iceland, which is 60+ North) or 170 West (too
close to "Vladimir Putin") where so few people live that I don't think
that anyone would care about day time savings or any of that.

 All kinds of software keep time diffs. I am trying to use it in an
obvious human readable way right in the file names.

 lbrtchx



Re: difference in seconds between two formatted dates ...

2023-12-24 Thread Albretch Mueller
On 12/18/23, Max Nikulin  wrote:
> Timestamp format you have chosen is ambiguous.
>
> TZ=Europe/Berlin date -d '@1698539400' '+%Y%m%d%H%M%S'
> 20231029023000
>
> TZ=Europe/Berlin date -d '@1698543000' '+%Y%m%d%H%M%S'
> 20231029023000
>
> You had issues with setting time and timezone, so '+%s' may give
> incorrect results.

Hmm! and one hour difference is not detected, because of the way is
being parsed. Why would that happen? Why would %S be in the range
second (00..60), instead of (00..59)?:

seks00=1698539400; TZ=Europe/Berlin date -d '@1698539400' '+%Y%m%d%H%M%S'

seks02=1698543000; TZ=Europe/Berlin date -d '@1698543000' '+%Y%m%d%H%M%S'

diff_seks=$(( seks02 - seks00 ))
echo "// __ \$diff_seks: |$diff_seks|"

https://man7.org/linux/man-pages/man1/date.1.html
%Y year
%m month (01..12)
%d day of month (e.g., 01)
%H hour (00..23)
%M minute (00..59)
%S second (00..60)
~
 C



Re: difference in seconds between two formatted dates ...

2023-12-20 Thread Albretch Mueller
On 12/21/23, Max Nikulin  wrote:
> as a primary source. For majority using systemd

 and what would the systemd way to synch the RTC (Real Time Clock) and
UTC? Why is it I am noticing a 14 seconds difference on my computer
(booted with a Debian Live DVD)?

$ readlink /etc/localtime
/usr/share/zoneinfo/Etc/UTC

$ ls -l /etc/localtime
lrwxrwxrwx 1 root root 27 Dec 14 03:14 /etc/localtime ->
/usr/share/zoneinfo/Etc/UTC

$ timedatectl
   Local time: Thu 2023-12-21 00:52:20 UTC
   Universal time: Thu 2023-12-21 00:52:20 UTC
 RTC time: Thu 2023-12-21 00:52:06
Time zone: Etc/UTC (UTC, +)
System clock synchronized: no
  NTP service: n/a
  RTC in local TZ: no
$

 lbrtchx



Re: difference in seconds between two formatted dates ...

2023-12-20 Thread Albretch Mueller
On 12/20/23, to...@tuxteam.de  wrote:
> On Wed, Dec 20, 2023 at 07:15:20AM -0500, Greg Wooledge wrote:
>> On Wed, Dec 20, 2023 at 07:43:51AM +, Albretch Mueller wrote:
>> >  I do see the good in what you are suggesting to me and I will have to
>> > include time zones in the file names as well and deal with the
>> > possible cases (someone working at Charles de Gaulle Airport in
>> > Paris/France boards a plane to Boston Logan/MA/USA ...).
>
> How would this person's computer notice?

 The only way I see is for the running computer on "exposed mode" to
check via systemd if the time zone has been changed and reset it in
that case before you use date for file naming for all data that is
kept in a measured way.

 In the case of the person flying from Paris to Boston he will find
out that he flew away from continental Europe once he reboots his
computer in "exposed mode" (pun intended). He will notified of the
time zone he had used before and all such deltas will be kept. The
only measured data that will be deleted is the one which remains the
same.

 lbrtchx



Re: difference in seconds between two formatted dates ...

2023-12-19 Thread Albretch Mueller
On 12/20/23, David Wright  wrote:
> To be fair to the OP, there was no official "script", but just some code:
>   https://lists.debian.org/debian-user/2023/12/msg00894.html
> which I pasted into /tmp/lbrtchx.sh. The filename suffix was a mere
> convenience to make emacs colour the code and tidy the indentation,
> speeding up finding lines broken by the MUA. I then ran it with:
>   $ bash /tmp/lbrtchx.sh
>
>> It *looks* like this command is trying to take a date/time string in
>> one format, and convert it to a different format, and then append a
>> +00:00 time zone offset even though that's not the correct offset for
>> the author's time zone (as far as I know).
>
> Yes, I'm guessing that the OP is in my timezone, as just a few of
> their previous posts have -5/-6 offsets. But most are +0, and
> I wonder whether the OP ran this code on an all-UTC machine.
> (IDK whether their using gmail is relevant.)

 If I understand what you seem to not understand about my work around
to get a time difference in seconds out of my "cobblesome" date
formatting for file names, this is my time zone (remember I am using a
Debian Live DVD, on "exposed mode" ;-))

$ date +%z
+

$ cat  /etc/localtime
TZif2UTCTZif2UTC
UTC0

 At the end of the day, all I need is a time difference in seconds
(and yes, milliseconds would be better), which would be the same
regardless of your time zone.

 I do see the good in what you are suggesting to me and I will have to
include time zones in the file names as well and deal with the
possible cases (someone working at Charles de Gaulle Airport in
Paris/France boards a plane to Boston Logan/MA/USA ...). But the
actual question I will have to deal with is how to check and possibly
reset the time zone and the time via a network in a reliable way once
a ToG booted computer gains access to the Internet for which I will
have to use systemd-timesyncd when it boots and shuts down/ when it
changes modes.

 Am I clearer now?

 Thank you,
 lbrtchx



Re: difference in seconds between two formatted dates ...

2023-12-17 Thread Albretch Mueller
On 12/18/23, David Wright  wrote:
> Another problem in what you posted is that you sometimes run date
> in your local timezone (generally for the "now" times), but you
> append +00:00 as the timezone for those --date strings that you
> construct from several substrings. You need to use UT throughout.

 What difference would that make when all I need is a time difference?
The way I understand such time format issues is that it needs to just
be the same in the two dates.

>> ANyway, my hack around it wasn't effortful at
>> all.
>
> I don't know whether you're referring to something already posted,
> or some new script written in the wake of what you've read here.

 That silly hack which lousy bash script I posted within its test case

 lbrtchx



Re: difference in seconds between two formatted dates ...

2023-12-17 Thread Albretch Mueller
On 12/18/23, David Wright  wrote:
> When you write   dt00=$(date +%Y%m%d%H%M%S)
> that's /your/ format, not coreutils'.

 I (erroneously?) thought coreutils was maintaining Linux date, so if
they tell you on their --help instructions to use certain options
(including cobbling them together to your heart's content) and you are
telling them you are using their format and how, they should be able
to parse that string. ANyway, my hack around it wasn't effortful at
all.

 lbrtchx



Re: difference in seconds between two formatted dates ...

2023-12-17 Thread Albretch Mueller
On 12/17/23, Andy Smith  wrote:
>> how on earth would that not always produce an accurate duration?
>
> All this paranoia, but in computer time you trust? 
> Falsehoods programmers believe about time
> https://gist.github.com/timvisee/fcda9bbdff88d45cc9061606b4b923ca

 and how does my paranoia relate to that wall of itemized statements
which could be reduced to just a few? No the earth doesn't revolve
around the sun in exactly 356 days, ... and the adoption of the
Gregorian calendar already caused quite a fuss in the history of
humankind, which, believe me, didn't have to do at all with my
paranoia.

 All my paranoia is talking about is that:
 1) for historical reasons going back to the Sumerian/Babylonian
civilization, the date format we use is not 10-based
 2) coreutils date is not quite true to itself when it comes to en-
and decoding its own formatting options
 3) since time is a scalar magnitude, a time difference will be
constant regardless of my paranoia and the statements on that link you
posted.
 4) contrary to what happens with floating point numbers (which, in
general, you can't represent truthfully as binary), a time difference
in seconds is whole number which you can exactly represent as binary.

 Even people who are not paranoid and know their sh!t would easily see
my points. I would say it is primary school Arithmetic.

 lbrtchx



Re: difference in seconds between two formatted dates ...

2023-12-17 Thread Albretch Mueller
 Well, yes, "date --date= ..." doesn't work in the way I would wish
("logically" think about it):

 
https://www.gnu.org/software/coreutils/manual/html_node/General-date-syntax.html

 parsing any format allowed by date:

 
https://www.gnu.org/software/coreutils/manual/html_node/Date-conversion-specifiers.html

 which made me think of how/why did I start using my "coblesome"
formatting, but there is nothing really that homely about it. Those
formatting options are listed right on:

 date --help

$ date --version 2>&1 | head -n 1
date (GNU coreutils) 8.32

 Based on to...@tuxteam.de's suggestions I worked around a downright
simple hack around those formatting problematics with coreutils date:

s00=$(date +%s)
dt00=$(date +%Y%m%d%H%M%S)

dttm00ISeks="${dt00:0:4}-${dt00:4:2}-${dt00:6:2}T${dt00:8:2}:${dt00:10:2}:${dt00:12:2}+00:00"
ISeks00=$(date -d"${dttm00ISeks}" +%s)

if [[ $s00 -eq $ISeks00 ]]; then
 echo "// __ \$ISeks00: |$ISeks00|, \$dttm00ISeks: |${dttm00ISeks}|
conversion OK!"
else
 echo "// __ \$s00: |$s00|, \$dt00: |${dt00}|"
 echo "// __ \$ISeks00: |$ISeks00|, \$dttm00ISeks: |${dttm00ISeks}|
conversion NOT OK!"
fi

# 63 weeks 5 days 11 hours 0 minutes et 43 seconds later
s02=$(( s00 + 63*7*24*60*60 + 5*24*60*60 + 11*60*60 + 0*60 + 43))

dt02=$(date --date @${s02} +%Y%m%d%H%M%S)
echo "// __ \$s02: |$s02|, \$dt02: |${dt02}|"

dttm02ISeks="${dt02:0:4}-${dt02:4:2}-${dt02:6:2}T${dt02:8:2}:${dt02:10:2}:${dt02:12:2}+00:00"
ISeks02=$(date -d"${dttm02ISeks}" +%s)

if [[ $s02 -eq $ISeks02 ]]; then
 echo "// __ \$ISeks02: |$ISeks02|, \$dttm02ISeks: |${dttm02ISeks}|
conversion OK!"
 _diffs=$(( s02 - s00 ))
 _diffISeks=$(( ISeks02 - ISeks00 ))
 if [[ $_diffs -eq $_diffISeks ]]; then
  echo "// __ differences also OK!"
 else
  echo "// __  differences NOT OK! \$_diffs: |$_diffs|, \$_diffISeks:
|${_diffISeks}|"
 fi
else
 echo "// __ \$s02: |$s02|, \$dt02: |${dt02}|"
 echo "// __ \$ISeks02: |$ISeks02|, \$dttm02ISeks: |${dttm02ISeks}|
conversion NOT OK!"
fi

 thank you,
 lbrtchx



Re: difference in seconds between two formatted dates ...

2023-12-17 Thread Albretch Mueller
On 12/17/23, to...@tuxteam.de  wrote:
> On Sun, Dec 17, 2023 at 10:12:11AM +0000, Albretch Mueller wrote:
>> dt00=$(date +%Y%m%d%H%M%S)
>> echo "// __ \$dt00: |${dt00}|"
>>
>> ... after some long processing for which seconds would be exact
>> enough, then I would like to get the seconds elapsed since dt00, like
>> this:
>>
>> dt02=$(date +%Y%m%d%H%M%S)
>> echo "// __ \$dt02: |${dt02}|"
>
> [...]
>>  because bash Arithmetic is 10-based.
>
> You wouldn't expect bash to intuit such a crooky arithmetic as
> Gregorian datetime (and then, based on what? The number beginning
> with 2023? Sounds kind of exciting).

 Actually, my basic idea is if you can encode a date using formatting
options this utility provides, then you should be able to decode it
using the same options that same utility provides, no? ... and then
get "seconds since 1970-01-01" which wouldn't matter when you are
computing the difference between two 10-based whole numbers which can
be represented exactly in binary Arithmetic.

> If you could live with a datetime format which date can understand
> (instead of your cobbled-up pseudo numeric monster above) ...

 Thank you. I learned something out of it, but I used such "cobbled-up
pseudo numeric monster" because, in kind of a poor-man's "measured"
way, I use size, line count, last mod and sha256 metadata in file
names baselining the system's state. I avoid spaces and any other
characters you can't use in most fs' and/or may be interpreted by
shells or OSs in their own ways.

On 12/17/23, Greg Wooledge  wrote:
> On Sun, Dec 17, 2023 at 10:12:11AM +, Albretch Mueller wrote:
>> ... after some long processing for which seconds would be exact
>> enough, then I would like to get the seconds elapsed since dt00
>
> Are you working in bash, or sh?

 bash

> Bash offers some alternatives, to avoid having to fork two date(1)
> processes, light as those are.  The first is:
>
> unicorn:~$ printf -v dt00 '%(%s)T' -1
> unicorn:~$ echo "$dt00"
> 1702821082

 but this is not what I meant and I am sure you can once again impress
everyone here with your bash skills/wisdom. Is there such a thing as:

 dt00=$(date +%Y%m%d%H%M%S)
 printf -(whatever the formatting for seconds would be) "${dt00}%Y%m%d%H%M%S"

 I dealing with my "exposed mode" kinds of states ;-). I use a
computer which initial state is kept as part of the file name as I
explained, then as part of another ("exposed" or "private") reboot I
want to check that file, so I would not be able to then simply do $((
dt02 - dt00 ))

 After rebooting (separately for "exposed" or "private" mode):
 a) those kinds of name measured files are checked,
 b) if everything is fine you would keep some basic statistics (last
difference; as well as, incrementally, average, stddev, skewness and
kurtosis of differences so far)
 c) delete the file(s) previous to the latest one
 ...

 and, no, I am not expecting for bash to do that kind of statistics
for me, but I would love to see once again how wrong I am.

On 12/17/23, Andy Smith  wrote:
> น Pedants at this point may feel the need to launch launch into a
> sub-thread about how subtracting one epoch time from another doesn't
> always produce an accurate duration. I can't stop you, but it won't
> be news to me.

 No calendar issue here. All is needed is turning dates into seconds
to get the time diff in seconds. I am not trying to start a
sub-thread, but how on earth would that not always produce an accurate
duration?

 lbrtchx



difference in seconds between two formatted dates ...

2023-12-17 Thread Albretch Mueller
dt00=$(date +%Y%m%d%H%M%S)
echo "// __ \$dt00: |${dt00}|"

... after some long processing for which seconds would be exact
enough, then I would like to get the seconds elapsed since dt00, like
this:

dt02=$(date +%Y%m%d%H%M%S)
echo "// __ \$dt02: |${dt02}|"

you get seconds in dt00 and dt02 and then the difference. You can't
go: $(( dt02 - dt00 )) because bash Arithmetic is 10-based.

I am pretty sure there is such a thing in bash, but I can't find it in
my scripts.

lbrtchx



Re: was nvramtool removed from the package repository?

2023-12-16 Thread Albretch Mueller
On 12/16/23, to...@tuxteam.de  wrote:
> https://packages.debian.org/search?keywords=nvramtool=names=all=all
> Last appearance is Debian Buster (oldoldstable, LTS).
> But there's a package with a like-named binary, which might be
> what you are looking for:
>   https://packages.debian.org/bookworm/amd64/coreboot-utils/filelist

 Well, time to upgrade to bookworm. I kept using bullseye because I
hadn't found the time to pay homage to the new new thing.

 lbrtchx



was nvramtool removed from the package repository?

2023-12-16 Thread Albretch Mueller
$ sudo apt-get update
Hit:1 http://deb.debian.org/debian bullseye InRelease
Reading package lists... Done
$

$ sudo apt-get install nvramtool
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package nvramtool

$ uname -a
Linux debian 5.10.0-18-amd64 #1 SMP Debian 5.10.140-1 (2022-09-02)
x86_64 GNU/Linux

lbrtchx



Re: setting IFS to new line doesn't work while searching?

2023-12-15 Thread Albretch Mueller
On 12/15/23, Greg Wooledge  wrote:
> More to the point, bash has a 'readarray' command which does what you
> *actually* want:
>
> readarray -t fndar < <(find "$sdir" ...)
>
 Yes, that was what I actually needed!

 lbrtchx



setting IFS to new line doesn't work while searching?

2023-12-15 Thread Albretch Mueller
sdir="$(pwd)"
#fndar=($(IFS=$'\n'; find "$sdir" -type f -printf '%P|%TY-%Tm-%Td
%TI:%TM|%s\n' | sort --version-sort --reverse))
#fndar=($(IFS='\n'; find "$sdir" -type f -printf '%P|%TY-%Tm-%Td
%TI:%TM|%s\n' | sort --version-sort --reverse))
fndar=($(find "$sdir" -type f -printf '%P|%TY-%Tm-%Td %TI:%TM|%s\n' |
sort --version-sort --reverse))
fndarl=${#fndar[@]}
echo "// __ \$fndarl: |${fndarl}|${fndar[0]}"

the array construct ($( ... )) is using the space (between the date
and the time) also to split array elements, but file names and paths
may contain spaces, so ($( ... )) should have a way to reset its
parsing metadata, or, do you know of any other way to get each whole
-printf ... line out of find as part of array elements?

lbrtchx



Re: why would "tr --complement --squeeze-repeats ..." append the substitution char once more? ...

2023-12-11 Thread Albretch Mueller
On 12/11/23, Greg Wooledge  wrote:
> 1) Many implementations of echo will interpret parts of their argument(s),
>in addition to processing options like -n.  If you want to print a
>variable's contents to standard output without *any* interpretation,
>use printf.
>
> printf %s "$myvar"
> printf '%s\n' "$myvar"
>

 I will use "printf ..." from now on.

> 2) As tomas already told you, the square brackets in
>
> tr -c -s '[A-Za-z0-9.]' _
>
>are literal.  You're using a command which will keep left and right
>square brackets in the input, *not* replacing them with underscores.
>This may not be what you want.

 My mistake, even though it didn't get in the way of what I was trying
to do. I replaced :alnum: by what I thought it meant and left the
brackets.

> 3) In locales other than C or POSIX, ranges like A-Z are *not* necessarily
>synonyms for [:upper:].  As I've already mentioned, GNU tr is known to
>contain bugs, so you're getting lucky here.  The bugs in GNU tr happen
>to work the way you're expecting, so that A-Z is treated like [:upper:]
>when it should not be.  If at some point in the future GNU tr is fixed
>to conform to POSIX, your script may break.
>
>The correct tr command you should be using if you want to retain
>accented letters (as defined in your locale) is:
>
> tr -c -s '[:alnum:].' _
>
>If you want to discard accented letters, then either of these is OK:
>
> LC_COLLATE=C tr -c -s '[:alnum:].' _
> LC_COLLATE=C tr -c -s 'A-Za-z0-9.' _
>

 I like your second one liner much better (LC_COLLATE=C tr -c -s 'A-Za-z0-9.' _)

 I tend to avoid '[:alnum:].' because the intended meaning of
"ALphabetic et NUMeric" characters, even though it depends on the
locale has a strong ASCII accent to it.

> Thus, we come full circle.

 Yes, we did. Thank you, lbrtchx



Re: why would "tr --complement --squeeze-repeats ..." append the substitution char once more? ...

2023-12-11 Thread Albretch Mueller
 Ach, yes! I forgot echo by default appends a new line character at
the end of every string it spits out. In order to suppress it you need
to use the "n" option: "echo -n ..."

_FL_TYPE="   abc  á é í ó ú ü ñ Á É Í Ó Ú Ü Ñ 123 birdiehere ¿ ¡ §
ASCII  ä ö ü ß Ä Ö Ü Text"
echo "// __ \$_FL_TYPE: |${_FL_TYPE}|"
_FL_TYPE=$(echo "${_FL_TYPE}" | xargs)
echo "// __ \$_FL_TYPE: |${_FL_TYPE}|"
_FL_TYPE=$(echo -n "${_FL_TYPE}" |  tr --complement --squeeze-repeats
'[A-Za-z0-9.]' '_');
echo "// __ \$_FL_TYPE: |${_FL_TYPE}|"

// __ $_FL_TYPE: |   abc  á é í ó ú ü ñ Á É Í Ó Ú Ü Ñ 123 birdiehere
¿ ¡ § ASCII  ä ö ü ß Ä Ö Ü Text|
// __ $_FL_TYPE: |abc á é í ó ú ü ñ Á É Í Ó Ú Ü Ñ 123 birdiehere ¿ ¡
§ ASCII ä ö ü ß Ä Ö Ü Text|
// __ $_FL_TYPE: |abc_123_birdie_here_ASCII_Text|

 Thank you,
 lbrtchx



Re: why would "tr --complement --squeeze-repeats ..." append the substitution char once more? ...

2023-12-11 Thread Albretch Mueller
 "tr --complement --squeeze-repeats ..." makes sure that the replaced
characters only appear once (that it doesn't immediately repeat). Say
you have something like "  " (two spaces) or "?$|" (three characters)
which will be replaced by just an underscore.

In the case of: "ASCII text"
 what should come out of it is: "ASCII_text"
 not: "ASCII_text_"
 no underscore at the end. That is the question I have.

 I use such constructs as: "[A-Za-z0-9.]" to make explicit to myself
and other people what I mean. I work in corpora research dealing with
text based various alphabets not just in ASCII so I avoid any kinds of
linguistic/cultural shortcuts and abbreviations.

 lbrtchx

On 12/11/23, to...@tuxteam.de  wrote:
> On Mon, Dec 11, 2023 at 08:04:06AM +, Albretch Mueller wrote:
>> On 12/11/23, Greg Wooledge  wrote:
>> > Please tell us ...
>>
>>  OK, here is what I did as a t-table
>
> [...]
>
> Your style is confusing, to say the least. Why not play with minimal
> examples and work your way up from that?
>
>> the two strings are not the same length even though your are just
>> replacing ASCII characters, why did:
>> echo "${ftype}" | tr --complement --squeeze-repeats '[A-Za-z0-9.]' '_'
>> place a character at the end?
>
> Two things stick out:
>
>  1. with --squeeze-repeats you are challenging tr to output less
>characters than the input has:
>
>trotzki:~$ echo -n "this is a #   string ###" | tr -cs 'a-z' '_'
>=> this_is_a_string_
>
>(I allowed myself to simplify things a bit) See? tr is squeezing
>repeats (repeated matches), the space-plus-three-hashes at the
>end gets squeezed to just one _, thus changing the length.
>If your strings contain more than one non-alphanumeric (something
>I don't feel like even trying a guess at), this is bound to happen.
>You ordered it.
>
>  2. This is tr, not regexp, so '[A-Za-z0-9.]' isn't doing what you
>think it does. It will match '[', 'A' to 'Z', 'a' to 'z','.' and
>']'. I guess you want to say 'A-Za-z0-9.'
>
>  3. As a convenience, tr has char classes. Perhaps [:alnum:] is for
>you. No idea whether this is a GNU extension
>
>  4. In case of doubt, read the man page :)
>
> Cheers
> --
> t
>



Re: why would "tr --complement --squeeze-repeats ..." append the substitution char once more? ...

2023-12-11 Thread Albretch Mueller
On 12/11/23, Greg Wooledge  wrote:
> Please tell us ...

 OK, here is what I did as a t-table

echo "abc123" > file.txt  # obvious text file
ftype=$(file --brief file.txt)  # got its type as reported by the "file" utility
echo "// __ \$ftype: |${ftype}|"
ftypelen=${#ftype}  # length of the string containing the file type
echo "// __ \$ftypelen: |${ftypelen}|"

# removing spaces et any other char which is not '[A-Za-z0-9.]'
replacing with underscores ...
# here is what I think to be an error happened instead of just
replacing ... by underscores
# it adds an underscore at the end?
ftype2=$(echo "${ftype}" | tr --complement --squeeze-repeats
'[A-Za-z0-9.]' '_');
echo "// __ \$ftype2: |${ftype2}|"
ftype2len=${#ftype2}
echo "// __ \$ftype2len: |${ftype2len}|"

the two strings are not the same length even though your are just
replacing ASCII characters, why did:
echo "${ftype}" | tr --complement --squeeze-repeats '[A-Za-z0-9.]' '_'
place a character at the end?
Probably echo and tr are not dancing well together. echo might be
tailgating an end of string character which tr then replaces with an
underscore.
which option do I use with echo for that not to happen?
SHould I probably play with IFS ...?

lbrtchx


On 12/11/23, Greg Wooledge  wrote:
> On Mon, Dec 11, 2023 at 02:53:07AM +, Albretch Mueller wrote:
>> echo "abc123" > file.txt
>> ftype=$(file --brief file.txt)
>> echo "// __ \$ftype: |${ftype}|"
>> ftypelen=${#ftype}
>> echo "// __ \$ftypelen: |${ftypelen}|"
>>
>> # removing spaces ...
>> ftype2=$(echo "${ftype}" | tr --complement --squeeze-repeats
>> '[A-Za-z0-9.]' '_');
>> echo "// __ \$ftype2: |${ftype2}|"
>> ftype2len=${#ftype2}
>> echo "// __ \$ftype2len: |${ftype2len}|"
>
> Please tell us:
>
>  * What you are trying to do.
>
>  * What you did (is the previous code all in a script?  if so, this is a
>good answer for this part).
>
>  * What result you got.
>
>  * What you expected to get.



why would "tr --complement --squeeze-repeats ..." append the substitution char once more? ...

2023-12-10 Thread Albretch Mueller
echo "abc123" > file.txt
ftype=$(file --brief file.txt)
echo "// __ \$ftype: |${ftype}|"
ftypelen=${#ftype}
echo "// __ \$ftypelen: |${ftypelen}|"

# removing spaces ...
ftype2=$(echo "${ftype}" | tr --complement --squeeze-repeats
'[A-Za-z0-9.]' '_');
echo "// __ \$ftype2: |${ftype2}|"
ftype2len=${#ftype2}
echo "// __ \$ftype2len: |${ftype2len}|"

lbrtchx



Re: ToG Linux (first draft of a RFC) ...

2023-12-09 Thread Albretch Mueller
On 12/9/23, Albretch Mueller  wrote:
> the CIA was giving money to Ukrainian people but in
> order to get it they had to use their cell phones ;-)

 which (cell phones) they would also get "for free", mind you.

 And well ..., yes, even if you remove the networking hard and
software, all RF devices need are electrons moving around in ways you
can control and encode. Some time ago, I heard the expected news that
they had managed to sandwich a RF circuitry on the layers of a chip!
So, expect for everybody to start making their own chips at least for
their most critical infrastructure!

 There will however always be physical ways to hack a hack. Imagine a
bugged cell phone, you could always physically extend the
functionality you need and keep the cell phone itself encased in a
Faraday cage at all times.

 lbrtchx



Re: ToG Linux (first draft of a RFC) ...

2023-12-09 Thread Albretch Mueller
On 12/9/23, Greg Wooledge  wrote:
>> On 09.12.23 at 10:13, Albretch Mueller wrote:
>> >   As anyone could see you could even run a network of detached
>> > computers without networking interfaces in a "touch of God" kind of
>> > way ...

 Thank you. I should have more clearly stated that those computing
devices would go each about their particular business situationally in
an air-gapped mode to then each go about their "collective
intelligence" on a separate computer, a "server" of sorts.

> What I don't understand is what these computers would be *doing*.  Why
> does he need them at all?  If he needs them, why does he need them to
> be detached from each other and from the rest of the world?

 These days, everything from microwave ovens to pacemakers are
computing devices, but why should they be wifi-enabled? People don't
seem to even realize that since the 1990's they have been driving
computers on wheels. Then you hear that Vladimir Putin assassinated
Michael Hastings for saying the same Joe Biden said only two decades
before; you hear targeted individuals talking about of smoke rings
(something that can't happen in nature by itself) to then hear about
COVID-19 and how it was all started in China by some dissident
"freedom-loving" bats, ... I even heard once as part of those marginal
comments you hear which make you go like, say what?, that courtesy of
U.S. tax payers the CIA was giving money to Ukrainian people but in
order to get it they had to use their cell phones ;-)

 Think monitoring devices in hospitals, schools, power plants, ... I
once heard that some "intelligence department" knew the grounding
truth about some matter which happened in some remote place in Russia,
because they had been monitoring the cell phones of not only "we the
people", but even the police and, of course, when you hear such thing,
since neither Physics nor "God" have "blue-eyed sons" (contrary to
what some Israelis/Jewish people may think) or as they say "what is
good for the goose is good for the gander", that also means that "the
Chinese", "Russians", ... are able to do the same thing (of course, in
their case they do it "because they hate freedom"). Now, imagine that
at least the police would use a "ToG network" (to call it something)
without any networking capabilities on a hard- and software level
(just the necessary functionality, for example, passively getting GPS
coordinates for which you don't need the whole networking stack) for
their computing devices with a One-Time pad lease for the session they
will be using it (and they would be physically powered for the amount
of time they need to be used) which they must relinquish after each
day of work to their base and which data would be encrypted (reusing
the initial OTP) in ways that only the server which leased the OTP
would be able to decrypt. Think of how they hacked the enigma machine
and how Nazis suspected such a thing to have happened:

 https://en.wikipedia.org/wiki/Erhard_Maertens

 What could those "freedom hating" Chinese, "what the heck is freedom"
Russians, all those "intelligence departments", ... do about any of
it?

> The only things I can imagine are ...

> Whatever he's doing, I'm confident he won't tell us, or at least not in
> a way I'll be able to understand.

 I explained the basic idea to a friend over the phone and clarified
to him a number of doubts he had about it. He got it. He also realized
that it wasn't much of a hassle, really. And he told me that I come up
with such ideas because I have been forced to look at reality from a
different point of view. In a Hegelian, karmic way it is a good thing
that people looking at reality from different vantage points can talk
to one another, even though, as they say, "misunderstanding is as
mutual as love should be".  No XY problem whatsoever, and I am not
trying to hide anything from anyone (whatever "hiding", "privacy", ...
could possibly mean these days). As Mike Rogers (of Pink Floyd fame)
said when he was being accused of being a racist, anti-zionist or a
zionist, (or whatever he was accused of), ...: "if I am, at the very
least, I should be conscious of it".

 Keeping an external drive you never connect to the Internet could be
understood as a sneakernet aspect of it.

 lbrtchx



Re: ToG Linux (first draft of a RFC) ...

2023-12-09 Thread Albretch Mueller
On 12/9/23, Albretch Mueller  wrote:
>  As anyone could see you could even run a network of detached
> computers without networking interfaces in a "touch of God" kind of
> way, some sort of "leased One-time pad touches of God" specifically
> for each, all coordinated through and which data/information would end
> up in a kind of "server", you could even use cell phones to do such
> thing ...

 I could even envision industries around such specifications. The only
reason why such things haven’t happened (would not ever happen?) is
because police, politicians and IT companies (which these days are all
the same) want to run society as if we were all rats in a maze they
control real time in a predictive and cross correlating way in which
everything is ephemeral to "we the people" while they keep a click by
click, keystroke by keystroke, breath by breath, ...  data
Doppelgänger of each of us.

 Something "my paranoia" noticed as part of the Snowden revelations
which IMO hasn’t been aired, questioned, discussed enough was that the
NSA, as part of their "all tangible things" doctrine, was most
interested in people’s medical records. Why?!? Why would "they" care
about people’s health? Isn’t the safety and betterment of society what
they should be interested in? To top it all "we the people" didn’t get
the extent to which they were making fun of us when they said that:
"what matters is how we use that information, not that we collect
it"!!!

 This is how the world we are living in looks like:

// __ 36C3 - The sustainability of safety, security and privacy:

 https://www.youtube.com/watch?v=2m5EMkVTydI

 (7:35) Internet of things or -Internet of Targets-
 (8:15) just as a car has got about 50 computers in it
 (11:20) hospital safety usability failures kill about 2000 people a
year in the UK, just about car accidents (and he was just talking
about impedance in the GUIs! not even about "errare humanum est")
 (12:30) some dude manage to gain access to 450,000 active pace makers over wifi
 (15:20) modern cars have about 10 radio frequency interfaces
 (23:20) initially light bulbs could be on for more than a century,
... these days companies make it from almost impossible to illegal to
fix things in order to make money
 ...
~
 At some point it all became so unbelievable, out of it all weird that
I had to take as some sarcastic theatrics. Like when he showed
hospital rooms and the number of network-enabled, RF devices in it.

 Since things happen for a reason, as part of explaining why Anderson
could have at the very least asked why this is all happening)

 lbrtchx



Re: ToG Linux (first draft of a RFC) ...

2023-12-09 Thread Albretch Mueller
On 12/7/23, Arno Lehmann  wrote:
> it's quite interesting that you use a platform such as wordpress,
> running code you can not control, to discuss such matters.

 I was just brainstorming, dumping a stream of consciousness with a
relatively comprehensive outline of the main ideas.

> Wouldn't it be more reasonable to self host

 That will definitely happen at some point. I will have to test first
the Linux initialization process (it’s runlevels) and how to make it
dance together with GRUB nicely (no mysteries whatsoever there).

> ... using a hoster providing
> decent privacy and aonymity or a technology such as Tor?

 I am not into protagonism and that is not my main line of research,
occupation. I would like to culture (invite more like-minded people to
own) that open source project. Anyone could take over hosting it (I
would pay for the first two years) and anything we do we would openly
(well, almost! ;-)). As they say: true security, privacy, ... can not
be hidden. All we do and say we would to the four winds. Once it is
vetted we could even ask nicely for it to be included as part of the
Debian or some other hosting.

> Also, what I know about secure, air-gapped systems, can be summarized
> quite easily:
>
> - You can not use the same hardware air gapped and non air gapped.

 I beg to differ and at the end of the day this is something that can
be physically/technically proved. Basically, how could you hack a
computer which you booted without a physical networking interface and
(part of the objectives) without loading the networking capabilities
from the kernel by exploiting Linux' runlevels? All you would need to
do is automating updates to that configuration.

> - Maintaining such systems is a pain.

 Well, not really! Booting a Debian Live DVD doesn't take more time
than booting Windows (from scratch) and the whole idea of using a
package extensions USB pen drive would automate updates. This
basically is all there is to maintaining it. You would be basically
making use of the BIOS and RAM of a computer (you don't even need to
own), you would keep the whole OS and all extras you need in your
shirt's front pocket. If they mess with the BIOS you will notice it
because the thing will not work and it would report the BIOS change
and exactly how, what the difference is and for basic physical reasons
you can't infect a computer's RAM.

> - There are no shortcuts.

 Well, no! ... and this is a good thing! We both, "hackers" and "we
the people", have to follow step by step procedures (what Ancient
Greek thinkers called "techne" and later we meant by "functions" up to
Descartes, before all that non-sensical "black box", I/O mindset took
over), what makes the difference is "the touch of God" and that no one
can take away from you that you could take care of your own security,
privacy (as existential philosophers would say: "absolutely no one,
nothing can take away your freedom").

 Notice that I am not just talking about computer soft and hardware. I
got my education as a theoretical Physicist (basically a double-major
in Physics and Math) an der TU Dresden, so I tend to see, understand
every through its physics.

 Experiment:
 1) use a hermetic metal (not plastic, looking like metal!) box (one
of those they use for candies)
 2) turn on your cell phone and carefully put it inside (making sure
it stays on)
 3) close the metal box
 4) right in front of that box place a call to your own phone using another one.
 * since EM waves can't reach your phone it would not only be
functionally off the grid, but off the confines of the universe! and
"Vladimir Putin" couldn't do sh!t about it!
 Isn't that cool!?!?! Now, doesn't it make it even cooler that you can
do such thing without spending one cent?

> Small anecdote: A colleague recently visited a US agencies secure site
> to help them with some software deployment. He could bring one DVD-R,
> not -RW, there. No electronic equipment.

 Well, yes! and how would those kinds of anecdotes speak against a
"touch of God"?

 As anyone could see you could even run a network of detached
computers without networking interfaces in a "touch of God" kind of
way, some sort of "leased One-time pad touches of God" specifically
for each, all coordinated through and which data/information would end
up in a kind of "server", you could even use cell phones to do such
thing ...

 lbrtchx



Re: ToG Linux (first draft of a RFC) ...

2023-12-07 Thread Albretch Mueller
 Hopefully finally! We should brainstorm our initial thoughts about it
there and once we could envision some completion and continuing hope
to it, we can move it into a formal github open source project:

 https://ergosumus.wordpress.com/2023/12/07/tog-linux-first-draft-of-a-rfc/

 lbrtchx



Re: ToG Linux (first draft of a RFC) ...

2023-12-07 Thread Albretch Mueller
 BTW, except for the GRUB/boot loading phase and its possible useful
aspects relating to ToG-L (which I haven't found the time to study), I
would say that 80%+ of the whole project I have already implemented
with my lousy bash scripts skills and in java/GRAALVM as a first
"proof of concept" and of the rest of it I have kept a thoroughgoing
functional mental map. I have had to fight such issues for a long time
and I initially thought of such things as ad hoc momentary solutions
to be able to use the Internet, but at some point I started to think
of it in an articulate and comprehensive way.

> 2.5)* where are the knoppix-like boot options: "toram",
> "tohd=", "fromhd=", "myconf=<...>", "home=<...>"
> in Debian Live?

 We all know that a DVD caddy could be easily bugged as well (the USPS
keeps stocks of all kinds of equally looking things which are bugged)
and  a DVD caddy is more of a mechanical, more power consuming thing,
so it would be ideal to go the knoppix-like "toram" way. Knoppix these
days is based a debian, so figuring out the grub hack to pass start up
arguments to the kernel at boot time shouldn't be difficult. You would
also be freeing the DVD port in case you need it.

> 6.1)* you will have to keep one in your backpack inside of a
> protective box or use a partition of your USB pendrive to boot your
> computer (ideally if some sort of knoppix-like fromhd boot option is
> used, there should be an option to check the size, type and sha*sum of
> the iso)

 "bootfrom" would be also nice (I think in knoppix you can even
combine the "bootfrom=<...>.iso" and "toram" start up options!). These
days it doesn't matter much because you could use WSL (Windows
Subsystem for Linux), but for whatever reason you may want to just use
Linux.

> ... that thing they used to call "privacy".

 I am old enough to remember the times in which telling someone that:
"you care about their privacy" would have been taken as an odd joke.
It would tacitly mean that -you have no privacy whatsoever-! Privacy
is one of those things you would have to take care of yourself! (ToG-L
would enable "we the people" to do so) In some European countries not
just the government has implanted chips in military personnel, but
your boss would make it a precondition to be hired even though it
doesn't relate to your job description in the least! "We the people"
would get chipped just to be part of a dance club! Some government
have had ideas about chipping everyone which makes you wonder if
people have started to lose their senses "in the end of times" ...

 Einstein who made his main occupation the mathematically measurable
aspect of the it, mind you, said: "two things are infinite: the
universe and human stupidity; and I'm not sure about the universe".

 I am not trying to be persuasive anyone. I actually think in the
times we are living things have gotten more than half way off for way
too long and we, scientists, tech monkeys and Mathematicians could and
should inform "we the people" and help them more actively have their
stand on, way out of such issues.

 lbrtchx



Re: ToG Linux (first draft of a RFC) ...

2023-12-06 Thread Albretch Mueller
 Oh, well! "My paranoia" as Greg would say ;-)
 Yes, they removed it again! I have no effing idea why (other than
messing with me)
 You could hopefully see my back and forths with them:
 
https://wordpress.com/forums/topic/how-long-does-it-take-for-a-new-post-to-become-active/
 Let me resume fighting them to see if they allow my post (they
hadn't, then they did for a while, ...)
 I will keep you all posted. Given the options I hope our community
doesn't get too upset about us going about our initial brainstorming
here.
 lbrtchx



Re: packages listed vs. apt-rdepends --follow=Depends ...

2023-12-06 Thread Albretch Mueller
On 12/2/23, Albretch Mueller  wrote:
> On 12/2/23, Tom Furie  wrote:
>> 'apt depends ' would list the direct dependencies without
>> recursion.
> $ apt depends wget 2>&1 | grep "  Depends: " | awk '{ print $2}'

 that didn't work, dpkg would still demand dependencies, so I decided
to change the strategy to:
 1) using apt-get install ...
 2) save the install log into a file (apt-get install reports to you
the order of installation) from which you can then created a dpkg
based script
 3) move all packages from /var/cache/ ... to wherever is needed.
~
On 12/2/23, Darac Marjal  wrote:
> There used to be "apt-zip" (no longer in Debian), which was
> built around the idea of using ZIP disks for transferring files.
> "apt-zip-list" would use the state of packages on the disconnected
> system to product a "want list" of files to be downloaded. This "want
> list" would be a shell script consisting of various wget or curl
> commands. The script would be taken over to the connected system and
> run, to pull the required packages onto a high-capacity removable medium
> (such as a USB drive or ZIP drive). Back at the disconnected system,
> "apt-zip-inst" would complete the process, installing the files from the
> removable medium.

 Hmm! ... and the apt-zip functionality doesn't exist anymore in the
same way that it rains and thunders when the Gods decide? When a
package is removed or discontinued, is there a formal explanation as
to why?

 I don't know why and I decided to change my approach, but I tried to use the:
 https://manpages.ubuntu.com/manpages/noble/en/man8/apt-get.8.html
 -s, --simulate, --just-print, --dry-run, --recon, --no-act
 functionality, but it didn't work:
 "E: Command line option --dry-run is not understood in combination
with the other options"
 then I found confusing explanations about users being confused:
 
https://serverfault.com/questions/1074702/apt-get-update-dry-run-command-does-not-work-anymore
~
On 12/3/23, Greg Wooledge  wrote:
> After that, it was revealed that the whole project is based on some
> paranoid fantasy.  The non-networked computer is non-networked only
> because the OP believes that "they" (that's literally the word which
> was used) are using "AI" to watch the OP "24/7".  This makes me less
> inclined to take the project seriously.

 Greg, quite honestly, I'd wish it would just be my "paranoid
fantasy", but, unfortunately, I will have disappoint you, with all the
streams of data "they" are collecting from everyone of us, "they" are
keeping a data Doppelgänger of everyone of us.

 lbrtchx



Re: Could/should you set Dir::Cache::{pkgcache, srcpkgcache} = ""; if all you are doing is locally downloading dependencies of an installation package?

2023-12-06 Thread Albretch Mueller
 What I had been doing is use "depends" to get all dependencies and
then download each of them. I think that is why I was getting those
repeated binary files. I thought when you said "download" you just
meant "download".
lbrtchx



ToG Linux (first draft of a RFC) ...

2023-12-06 Thread Albretch Mueller
ToG Linux ("Touch of God" (no blasphemy intended) a la Michelangelo's
"The Creation of Adam", with one of the poetic connotations being, to
make best use of what you know to be certain, what "you can touch"
(can exclusively reach with certainty), is readily available in your
immediacy (before the physical reality of fields was understood,
Leibniz made fun of Newton's "actions at a distance", of which Newton
himself admitted not to know its origin and nature ...))
This would be a first draft about what could be considered a poor-man
Debian Live air-gap running instance. I post it here because Debian is
definitely my favorite distro (and many other are based on it), the
deb live and blends mailing lists are mostly about specific changes to
their project and I am talking about general topics relating to
securing a Debian Linux running instance in a relatively straight
forward way based on options which are already available. No fanciness
or "conceptual demands"! Nothing new under the sun! It is more of a
„Deutsches Eck” kind of thing, making things confluent to make good of
them.
Some of the ideas have nothing to do with Debian per se, but
objectives which conceptual ecosystem aims at being able to use
computers with some of that thing they used to call "privacy", at the
very least less exposure. Most of the measures are procedural and
physical (involving hardware). Using just software would just be an
illusive waste of time.
~
0. Objectives:
0.1) even though by their very nature OSs', applications, network-
and/or IO-enabled computers can't possibly be secure, any malicious
software which manage to get in your system would be mindlessly erased
simply by a less than a minute reboot (only that would keep "hackers"
away, they need persistence and they know they would be exposing their
rear end to the four winds and that you won't have to spend your mind
on worries and/or your hard earned money on "virus scanners", "malware
detectors", ...);
0.2) you may be able to and should use the same computer in both:
exposed, and "air-gapped" mode;
0.3) ToG would require just some disciplined and prudent exercise of
your exposed activities, (if any) near to zero comma nada monetary
investment;
0.4) ToG would let its user base have -some- healthy and aware
tranquility of mind when it comes to safety and "privacy";
0.5) the use of a package extensions phase during the boot process,
makes blends unnecessary, since you would enhance the functionality of
your initial Debian Live DVD during boot up in whichever way you want
and even use other supported architecture*.
*:
0.5)* multi-session DVDs for various architectures?
0.5)* generally speaking people using certain applications (say
eclipse or Wazuh unified XDR and SIEM protection framework) would have
a better sense of where the configuration and work files are kept.
~
1) What you will need:
1.1) Debian Live on a DVD[-R|+R] write-once and finalize disk (you
can't physically write onto) (alternatively USB pen drives could be
used, but are not recommended, they are not simple "WYSWYG" things (a
USB pen drive can be a RF device in ways you can't simply tell apart
from regular ones) and most (all?) breaks into air-gap systems have
been through misuse of USB pen drives)*
1.2) a "package extensions" USB pen drive (where you would keep extra,
specific packages you need, not included in §1.1) and a lokal web
references file;
1.3) a computer, you own*, which:
1.3.1) BIOS doesn't include networking, is open source (could be
"trusted and checked") and which binaries you can linearize and dump
in full as a file*;
1.3.2) BIOS lets you choose the boot device;
1.3.3) is not powered, not connected to the Internet (either as part
of a wired or wireless network);
1.4) you will have a hard drive for your own your data which you never
connect to the Internet*.
*:
1.1)* an 8 cm (3.1 inches) DVD could be used which would easily fit in
your shirt's front pocket including the §1.2 USB pen drive, with the
most basic functionality.
1.3)* if you don't own the computer you are using, you will use the
Debian Live DVD as such without extra extensions automatic fanciness
and there will still be the option to update §1.2 for the new
architecture and Linux version/distribution, but it must be done on
the box you own which is the one with allows you access to the §1.2
strategy.
1.3.1)* Is there such a "safe BIOS"? Could you follow a physically
safe procedure around this? Could you: a) dump the BIOS data onto a
file? b) blank and reset the BIOS?, c) import a "new" binary and check
it?
1.4)* why aren't hard drives being produced with a physical/mechanical
switch to enable them to read data into or NOT?
1.4)* which HAL (Hardware AnaLyzer) techniques are used to check the
hardware inside hard disk drives and computers?
~
2) GRUB boot up Procedure (boot loaders' moment!):
2.1) insert Debian Live DVD;
2.2) power on computer;
2.3) select DVD as starting device;
2.4) as part of a secure boot procedure, at the grub 

Re: Could/should you set Dir::Cache::{pkgcache, srcpkgcache} = ""; if all you are doing is locally downloading dependencies of an installation package?

2023-12-04 Thread Albretch Mueller
On 12/2/23, David Wright  wrote:
> Obviously I'm trying to replicate what you do.
...
> Presumably you're running more commands than you revealed above?

 Yes, I am; for each "  Depends: " package I have been using apt-get download

 lbrtchx



Re: packages listed vs. apt-rdepends --follow=Depends ...

2023-12-01 Thread Albretch Mueller
On 12/2/23, Tom Furie  wrote:
> 'apt depends ' would list the direct dependencies without
> recursion.

 Thank you, I think I got what I needed (at least for now).

$ apt depends wget
wget
  Depends: libc6 (>= 2.28)
  Depends: libgnutls30 (>= 3.7.0)
  Depends: libidn2-0 (>= 0.6)
  Depends: libnettle8
  Depends: libpcre2-8-0 (>= 10.22)
  Depends: libpsl5 (>= 0.16.0)
  Depends: libuuid1 (>= 2.16)
  Depends: zlib1g (>= 1:1.1.4)
  Conflicts: 
  Recommends: ca-certificates
$

$ apt depends wget 2>&1 | grep "  Depends: " | awk '{ print $2}'
libc6
libgnutls30
libidn2-0
libnettle8
libpcre2-8-0
libpsl5
libuuid1
zlib1g
$

On 12/2/23, Greg Wooledge  wrote:
> On Fri, Dec 01, 2023 at 10:01:54PM -0600, David Wright wrote:
>> That requires you to be online, aka "exposed mode". The OP only
>> exposes a live USB to the outside world, not their "real" system.
>
> If the OP doesn't have a same-release, same-architecture connected
> system to use for this purpose, then I don't have an answer.  I don't
> deal with this stone-age crap any longer, and I am unable to express
> how *happy* I am that this is the case.

 At times *being* and *keeping moving* is entirely fine, you don't
have to be *happy* and I am not sure if I am living in the stone-age
or the brave new world in which we are living these days. One thing is
sure, I can't be naive about any of it.

 I do have the "same-release, same-architecture connected system" I
just want to make as sure (among other things meaning -on a hardware
level-), as I possibly could that, by simply rebooting a live DVD you
can "switch" (as it were) from one to the other.

 As a simple matter of economy (I use almost exclusively amd64 based
hardware), I am trying to streamline a way of:
 a) booting a live Deb Linux from a DVD (which, physically, you can't
write onto)
 b) running a short script with an array of utility packages which are
not part of §a's install base preferably from a pen drive or a
subdirectory of a hard drive you could mount
 then you would:
 1) boot up
 2) (from the USB pen drive) run §b's dpkg-based script
 3) install the extra stuff you need including Selenium-automation
versions of firefox (gecko) and brave (chromium)
~
 4) go into "exposed mode": setup networking, macchanger (I know in my
case it is silly, but I do it anyway), ...
 ...
 after going about the exposed-mode tests you need to and all
etceteras you had to check out online
~
 (n-2)) disconnect yourself from the internet (software + hardware by
removing the wifi USB dongle or cable) ...
 (n-1)) optionally, run script to check which files were changed
during your run and how
 n) shutdown

 Some of you have suggested using apt-clone and apt-move, but I think
this is a simpler way to solve what you see as an XY problem and it
doesn't really matter if you use a "different", "newer" version of Deb
Linux. Most probably all of this is plain nonsense to all of you, but
I have no other way to work. They are even using "AI" to mess with
people they target and it doesn't matter if they know well (which they
have actually told me) that you are not a criminally minded dude, a
threat to society, ... and they are quite literally
watching/monitoring you 24x7.

 lbrtchx



Re: packages listed vs. apt-rdepends --follow=Depends ...

2023-12-01 Thread Albretch Mueller
 direct dependencies of packages which haven't been downloaded,
install. I need to download those packages.
 These should be a straightforward way to do that or an easy hack.
 lbrtchx



Re: packages listed vs. apt-rdepends --follow=Depends ...

2023-12-01 Thread Albretch Mueller
On 12/2/23, Tom Furie  wrote:
...
> This is a recursive search, also showing dependencies of dependencies,
> etc.

 How can you list just the direct dependencies? and how safe is it
downloading and installing only those via dpkg?

 lbrtchx



Re: Could/should you set Dir::Cache::{pkgcache, srcpkgcache} = ""; if all you are doing is locally downloading dependencies of an installation package?

2023-12-01 Thread Albretch Mueller
On 11/30/23, David Wright  wrote:
> On Thu 30 Nov 2023 at 21:05:38 (+), Albretch Mueller wrote:
>>  I also notice repeated copies of {src-, pkgcache}.bin files for each
>> downloaded package even though I am downloading them to specific
>> subdirectories in order to then install them using dpkg.
>>  Do you really need those binaries and cache instructions if you are
>> just downloading the installation dependencies? How do you remove,
>> disregard those kinds of caching strategies in a graceful way?
>
> Perhaps you could elaborate on the commands you're running.

 I am using apt-rdepends --follow=Depends 

 to download all dependencies into a subdirectory for each package
then I notice the same files: srcpkgcache.bin et pkgcache.bin in every
subdirectory.

> BTW could you not write part of your post in the Subject line

 I understand, It won't happen again
 lbrtchx



packages listed vs. apt-rdepends --follow=Depends ...

2023-12-01 Thread Albretch Mueller
https://packages.debian.org/bullseye/wget

shows 8 packages as "depends"

dep: libc6 (>= 2.28)
dep: libgnutls30 (>= 3.7.0)
dep: libidn2-0 (>= 0.6)
dep: libnettle8
dep: libpcre2-8-0 (>= 10.22)
dep: libpsl5 (>= 0.16.0)
dep: libuuid1 (>= 2.16)
dep: zlib1g (>= 1:1.1.4)
~
 vs. 17 using apt-rdepends --follow=Depends:

$ apt-rdepends --follow=Depends "wget" | grep --invert-match ^\
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
wget
libc6
libcrypt1
libgcc-s1
gcc-10-base
libgnutls30
libgmp10
libhogweed6
libnettle8
libidn2-0
libunistring2
libp11-kit0
libffi7
libtasn1-6
libpcre2-8-0
libpsl5
libuuid1
zlib1g
~
 these packages weren't listed on packages.debian.org:

libcrypt1
libgcc-s1
gcc-10-base
libgmp10
libhogweed6
libunistring2
libp11-kit0
libffi7
libtasn1-6
~
 why? and which list should one trust (more)?

 lbrtchx



Could/should you set Dir::Cache::{pkgcache, srcpkgcache} = ""; if all you are doing is locally downloading dependencies of an installation package?

2023-11-30 Thread Albretch Mueller
 I also notice repeated copies of {src-, pkgcache}.bin files for each
downloaded package even though I am downloading them to specific
subdirectories in order to then install them using dpkg.
 Do you really need those binaries and cache instructions if you are
just downloading the installation dependencies? How do you remove,
disregard those kinds of caching strategies in a graceful way?
 lbrtchx



Re: it would be nice is Debian live includes the Wazuh unified XDR and SIEM protection framework ...

2023-11-11 Thread Albretch Mueller
On 11/11/23, to...@tuxteam.de  wrote:
> In which case you aren't the customer, but the cattle.

 Once we go into exposed mode (go online), we tacitly become all
cattle, don't we? What I am talking about is being more of an
unleashed cattle, a leashed one that is aware.

On 11/11/23, Marco  wrote:
> Am 11.11.2023 01:26 schrieb Albretch Mueller:
>
>>  the politics behind the "cloud trial" may not be compatible with
>> Debian, but I don't know if there is a way to work around such issues
>> or just use the other parts of it:
>
> Why can't you install it manually, maybe with a script?

 Yes, of course, you can always do so. I meant it would be best if
certain security issues are dealt on a hardware level. It may sound as
"paranoid", "crazy" to you, but I always go into exposed mode using a
Debian Live DVD, basically:

 1) boot up
 2) mount local drive (reset my home dir ...)
 3) mount USB pen with extra stuff I need
 4) customize my run by using dpkg to install packages from the USB pen drive
 5) unmount, remove pen drive
 6) physically plug in Internet enabling hardware
 7) install the drivers to be able to connect to the Internet ...
...
 (n-2)) disconnect yourself from the internet (software + hardware by
removing the wifi USB dongle or cable) ...
 (n-1)) run script to check which files were changed during your run and how
 n) shutdown

 Yes, it is cumbersome, but it is the only way I can access the
Internet with some reliability.

 It is not just about soft- and hardware level measures, "hackers" as
part of their modus operandi need "persistence". They would not spend
their while and expertise knowing well that by shutting down your
computer you would be effortlessly erasing all their cr@p, along with
all cookies and all of that and they are smart enough to realize that
they would risk exposing their rear end to the four winds. If they
continue doing such thing you will know the kinds of "legally
protected" hackers that would not mind such risk.

 lbrtchx



it would be nice is Debian live includes the Wazuh unified XDR and SIEM protection framework ...

2023-11-10 Thread Albretch Mueller
 the politics behind the "cloud trial" may not be compatible with
Debian, but I don't know if there is a way to work around such issues
or just use the other parts of it:

 https://wazuh.com/

// __ this Cybersecurity Platform is FREE

 https://www.youtube.com/watch?v=i68atPbB8uQ
~
 lbrtchx



Re: can you parse and "tail" at once? (and if you can't why not?)

2023-10-23 Thread Albretch Mueller
 Thank you very much, Greg!
 Since ".description" is constant (an extension used by youtube) I chose to go:
 ydx=".description"
 ydxL=${#ydx}
 ...
 yut=${yl:-${ydxL}}
...
 where yl is the line read in in the way you suggested.
 lbrtchx



Re: can you parse and "tail" at once? (and if you can't why not?)

2023-10-22 Thread Albretch Mueller
On 10/22/23, Andy Smith  wrote:
> So you might consider telling us what you will do next with the
> suffix of each line.

 Now you have gone into mind reading mode.

On 10/22/23, Andy Smith  wrote:
> Most of the points Greg makes to you are matters of correctness, not
> matters of taste.

 that you called "matters of correctness" may be "visual things" to
other people. this is something I see on a daily basis I don't try to
"correct" my students ways, but help them learn, see things for
themselves.

> I don't know how many times you will have the opportunity to
> continue talking with knowledgable people who try to help you, if
> you dismiss their points as them just being "upset" over aesthetics.

 and I don't understand your adhominen cr@p. For one, Greg understood
right away my problem which I explicitly explained, so from where do
you take the time to keep talking about any of it?

On 10/22/23, gene heskett  wrote:
> Very well said Andy.
> "There are four boxes to be used in defense of liberty:
>   soap, ballot, jury, and ammo. Please use in that order."
> -Ed Howdershelt (Author, 1940)
> If we desire respect for the law, we must first make the law respectable.
>   - Louis D. Brandeis

 Nor do I understand what support from "the international community"
(tm) has to do with some Linux bash script.

 lbrtchx



Re: can you parse and "tail" at once? (and if you can't why not?)

2023-10-22 Thread Albretch Mueller
 OK, Greg's suggestion once again "made my day".
 I know at some point I will have to code everything in some
programming language, but for now I will just get things done as
quickly as possible.
 Also, Greg, please, I would like for you to understand that it is not
my intention to upset you about what you find visually upsetting. We
have talked about that before.
 I am sure you could certainly understand that there are reasons why
some people build certain habits and that not everyone gets upset
about the same kinds of "secondary accidents" (as Aristotle would put
it). Some people may have a hard time even noticing what upsets you.
 lbrtchx



can you parse and "tail" at once? (and if you can't why not?)

2023-10-22 Thread Albretch Mueller
 After generating a file with lines of text, I have to:
 1) parse some of those lines based on a pattern I know (no regex
necessary, just a FS path)
 2) once parsed from those lines I need the last n characters only
 I am trying to use a one liner like:
 cat "${IFL}" | grep "${DESC_DIR}" | tail -c+$_DESC_DIR
 but this one liner repeats the output and the tail

 Say the lines of text in IFL are:
[info] 123XYZ: 
/media/user/1234qwer/Algebraic_Geometry04/20231022040239/Uppsala_Algebra/45_16.3_45MEB5h5H9Y.description
[info] 123XYZ: 
/media/user/1234qwer/Algebraic_Geometry04/20231022040239/Uppsala_Algebra/46_17.1_LE_gl5RcDnY.description
[info] 123XYZ: 
/media/user/1234qwer/Algebraic_Geometry04/20231022040239/Göttsche/17_9jKzwoBGFs8.description
[info] 123XYZ: 
/media/user/1234qwer/Algebraic_Geometry04/20231022040239/Göttsche/18_plOUIOo91lI.description
[info] 123XYZ: 
/media/user/1234qwer/Algebraic_Geometry04/20231022040239/Göttsche/19_TJ7yAiq8gEw.description
[info] 123XYZ: 
/media/user/1234qwer/Algebraic_Geometry04/20231022040239/Göttsche/20_UMBEgb14uqw.description

 I know the prefix:
[info] 123XYZ: /media/user/1234qwer/Algebraic_Geometry04/20231022040239/

 I need as output:

Uppsala_Algebra/45_16.3_45MEB5h5H9Y
Uppsala_Algebra/46_17.1_LE_gl5RcDnY
Göttsche/17_9jKzwoBGFs8
Göttsche/18_plOUIOo91lI
Göttsche/19_TJ7yAiq8gEw
Göttsche/20_UMBEgb14uqw
~
 lbrtchx



Re: "sudo apt-get install android-tools-adb" ... (then no device listed)

2023-09-25 Thread Albretch Mueller
On 9/25/23, Albretch Mueller  wrote:
>  Most probably there is a setting in that phone I haven’t been able to
> find.

 Android awakens when I unplug the cable from the computer; so,
something is being somehow detected.

 lbrtchx



Re: "sudo apt-get install android-tools-adb" ... (then no device listed)

2023-09-25 Thread Albretch Mueller
On 9/24/23, Michel Verdier  wrote:
> If you use USB you need a cable allowing data, some allow only power.

 The  USB cable I have been using to charge the battery of that phone
visually seems to be the same exact one being advertised as doubling
as a data cable, but running:
 $ sudo lsusb
 Before and after plugging in the phone doesn’t show any difference.
 Is there a way to test for sure that cable is the right one?
~
On 9/25/23, Marco  wrote:
> According to the Google documentation:

 which I found:

// __ Transfer files between your computer and Android device

 https://support.google.com/android/answer/9064445?hl=en-GB
~
 doesn’t really explain what to do. They apparently want for you to
transfer your files to google drive and all that non sense.

 I also tried mtp fs utility, but I am getting the error message:
detect failed: no MTP devices found

 go-mtpfs -android  ""
 2023/09/25 12:10:10 detect failed: no MTP devices found
~
 I also tried jmtpfs:

$ which jmtpfs
/usr/bin/jmtpfs

$ jmtpfs --version
jmtpfs version: 0.5
FUSE library version: 2.9.9
fusermount version: 2.9.9
using FUSE kernel interface version 7.19

$ sudo jmtpfs
No mtp devices found.
~
 Most probably there is a setting in that phone I haven’t been able to find.

 lbrtchx



Re: "sudo apt-get install android-tools-adb" ... (then no device listed)

2023-09-24 Thread Albretch Mueller
On 9/24/23, Marco M.  wrote:
> On most Android phones, you need to explicit allow data transfers.

 What do you functionally mean? I need for you to talk to me like
this:  a) go "Settings"; b) ...

 Thank you,
 lbrtchx

On 9/24/23, Marco M.  wrote:
> Am 24.09.2023 um 19:45:11 Uhr schrieb Albretch Mueller:
>
>>  How can you troubleshoot that problem or, do you know about any other
>> way to transfer your data to a drive off your phone?
>
> On most Android phones, you need to explicit allow data transfers.
> Did you do?
>
>



"sudo apt-get install android-tools-adb" ... (then no device listed)

2023-09-24 Thread Albretch Mueller
$ uname -a
Linux debian 5.10.0-18-amd64 #1 SMP Debian 5.10.140-1 (2022-09-02)
x86_64 GNU/Linux

$ sudo apt-get update
...

$ date; sudo apt-get install android-tools-adb
Sun 24 Sep 2023 02:07:24 PM UTC
...

$ which adb
/usr/bin/adb

$ adb --version
Android Debug Bridge version 1.0.41
Version 28.0.2-debian
Installed as /usr/lib/android-sdk/platform-tools/adb

$ adb devices
* daemon not running; starting now at tcp:5037
* daemon started successfully
List of devices attached

$

 As usual (being a TI makes your life so enjoyable!) I found similar
posts online and ways to solve such problems (some of them quite
voodoo-like):

 
https://stackoverflow.com/questions/21170392/my-android-device-does-not-appear-in-the-list-of-adb-devices
~
 Basically, I need to transfer selected data (whatsapp, messages,
phone calls, ...) off my phone to my computer's hdd.

 How can you troubleshoot that problem or, do you know about any other
way to transfer your data to a drive off your phone?

 lbrtchx



why would ping and traceroute give you different IP addresses?

2023-08-14 Thread Albretch Mueller
site="download.gluonhq.com"
date
time ping "${site}" -c 4
time traceroute "${site}"

$ site="download.gluonhq.com"
date
time ping "${site}" -c 4
time traceroute "${site}"
Mon 14 Aug 2023 11:54:19 PM UTC
PING s3-website.us-east-1.amazonaws.com (54.231.134.85) 56(84) bytes of data.
64 bytes from s3-website-us-east-1.amazonaws.com (54.231.134.85):
icmp_seq=1 ttl=242 time=47.8 ms
64 bytes from s3-website-us-east-1.amazonaws.com (54.231.134.85):
icmp_seq=2 ttl=242 time=54.9 ms
64 bytes from s3-website-us-east-1.amazonaws.com (54.231.134.85):
icmp_seq=3 ttl=242 time=46.2 ms
64 bytes from s3-website-us-east-1.amazonaws.com (54.231.134.85):
icmp_seq=4 ttl=242 time=48.1 ms

--- s3-website.us-east-1.amazonaws.com ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3004ms
rtt min/avg/max/mdev = 46.246/49.253/54.875/3.320 ms

real0m3.186s
user0m0.005s
sys 0m0.000s

traceroute to download.gluonhq.com (52.216.228.138), 30 hops max, 60
byte packets
 1  _gateway (192.168.68.1)  9.267 ms  9.223 ms  8.035 ms
 2  dsldevice.attlocal.net (192.168.1.254)  10.349 ms  10.333 ms  10.319 ms
 3  99-178-252-1.lightspeed.stlsmo.sbcglobal.net (99.178.252.1)
33.434 ms  33.420 ms  33.406 ms
 4  71.154.70.113 (71.154.70.113)  34.515 ms  33.379 ms  38.092 ms
 5  * * *
 6  32.130.88.131 (32.130.88.131)  50.165 ms  42.200 ms  35.492 ms
 7  * * *
 8  * * *
 9  * * *
10  * * *
11  * * *
12  * * *
13  * * *
14  * * *
15  * * *
16  * * *
17  * * *
18  * * *
19  * * *
20  * * *
21  * * *
22  * * *
23  s3-website-us-east-1.amazonaws.com (52.216.228.138)  50.960 ms
50.902 ms  53.215 ms

real0m15.213s
user0m0.009s
sys 0m0.000s
$



Re: Why wouldn't "stringing" of an input parameter using an array work? ...

2023-06-18 Thread Albretch Mueller
the error message I got was:
 find: possible unquoted pattern after predicate `-path'?
lbrtchx



Re: Why wouldn't "stringing" of an input parameter using an array work? ...

2023-06-18 Thread Albretch Mueller
On 6/8/23, Greg Wooledge  wrote:
> Yes.  Use an array.
> kate "${_KSX_AR[@]}" &

 I tried the same kind of magic with find, but it didn't work. I don't
want to have to have to hard code the statement into find. Any way to
work around this?:

_DIR_BRNX="/media/user/60320G593EB7250F"

_X_SUB_DIRS_AR=(
"${_DIR_BRNX}/org/archive"
"${_DIR_BRNX}/com/pdffiles"
)

_X_SUB_DIRS_AR_L=${#_X_SUB_DIRS_AR[@]}
echo "// __ \$_X_SUB_DIRS_AR_L: |${_X_SUB_DIRS_AR_L}|"

###
_DT=$(date +%Y%m%d%H%M%S)

_SFX=$(basename ${_DIR_BRNX})
_ERR_LOG="${_SFX}_${_DT}_errors.log"
_TM_LOG="${_SFX}_${_DT}_tm.log"

_TMPFL="${_SFX}_$(mktemp "${_DT}".XX)_temp.ls"
echo "// __ \$_TMPFL: |${_TMPFL}|"

time ( find "${_DIR_BRNX}" -path "${_X_SUB_DIRS_AR[@]}" -prune -type f
-printf '%s|%d|%P|' -exec file --brief {} \; 1> "${_TMPFL}" 2>
"${_ERR_LOG}" ) > "${_TM_LOG}" 2>&1



Re: Why wouldn't "stringing" of an input parameter using an array work? ...

2023-06-08 Thread Albretch Mueller
On 6/8/23, Greg Wooledge  wrote:
> Yes.  Use an array.
...
 ;-), it "magically" worked:

_FL1="file1_ps_-aux.txt"; sudo ps -aux > "${_FL1}"
_FL2="file2_dmesg.txt"; sudo dmesg > "${_FL2}"
_FL3="file3_printenv.txt"; sudo printenv > "${_FL3}"

ls -l "file"*".txt"; wc -l "file"*".txt"

_KSX_AR=(
"${_FL1}"
"${_FL2}"
"${_FL3}"
)

kate "${_KSX_AR[@]}" &

 Now, if I could only save and import the configuration file I use
into a directory of my choosing that would make my day! I may have to
go monkey:

 1) find where it keeps that metadata and how
 2) save that file into my own storage each time kate is closed
 3) move it to wherever kate expects to read it from every time before
starting kate

 BTW, sometimes it is important to think through, own your mistaken
ways of seeing things (it helps even unconsciously not to repeat
them), why is it in the bash shell that wasn't that happy about my
ways?



Why wouldn't "stringing" of an input parameter using an array work? ...

2023-06-08 Thread Albretch Mueller
 Why would:

kate "file1_ps_-aux.txt" "file2_dmesg.txt" "file3_printenv.txt" &

kate "${_FL1}" "${_FL2}" "${_FL3}" &

 work?, but stringing the file names using a loop wouldn't?

 I need to keep somehow declaratively the files read in by kate at
start up, so I thought of using an array:
#
_FL1="file1_ps_-aux.txt"; sudo ps -aux > "${_FL1}"
_FL2="file2_dmesg.txt"; sudo dmesg > "${_FL2}"
_FL3="file3_printenv.txt"; sudo printenv > "${_FL3}"

ls -l "file"*".txt"; wc -l "file"*".txt"

_KSX_AR=(
"${_FL1}"
"${_FL2}"
"${_FL3}"
)
_KSX_AR_L=${#_KSX_AR[@]}
echo "// __ \$_KSX_AR_L: |$_KSX_AR_L|"

# kate session files to be opened
_KSX=""

if [[ ${_KSX_AR_L} > 0 ]]; then
 if [[ -f "${_KSX_AR[0]}" ]]; then
  _KSX="\"${_KSX_AR[0]}\""
  if [[ ${_KSX_AR_L} > 1 ]]; then
   for(( _IX=1; _IX<${_KSX_AR_L}; ++_IX )); do
if [[ -f "${_KSX_AR[_IX]}" ]]; then
 _KSX="${_KSX} \"${_KSX_AR[$_IX]}\""
 echo "// __ [$_IX/$_KSX_AR_L): |${_KSX}|"
fi
   done
  fi
 fi
fi

#
echo "// __ \${_KSX}: |${_KSX}|"

# this doesn't seem to work
kate "${_KSX}" &

lbrtchx



Re: No space left on device ...

2023-05-20 Thread Albretch Mueller
On 5/17/23, Jeffrey Walton  wrote:
> On Wed, May 17, 2023 at 1:06 PM Dan Ritter  wrote:
>> Albretch Mueller wrote:
>> Assuming you have network access close to boot time, you might
>> want to run an NTP daemon to get the time from a selection of
>> other servers.
> Nowadays, time is something that can be handled locally with a Gossip
> protocol. Let your watch or phone or television or toaster tell your
> computer what time it is. No need for a remote call to a server.
>
>> Debian runs a pool, which is configured by default in ntp-server
>> and chrony, at least.

 I have to use a Debian Live DVD to access the Internet; so, probably
these utilities should be included. I can't entertain functional
illusions about taking care of my business in any other way. It is
thoroughly annoying and time wasting, but you also "live and learn". I
have been running dmesg and comparing its output as I access the
Internet (all problems go away when you close all browser windows and
disconnect yourself from the Internet) one of their jokes is making
the hard drive crazily rev and then you find the message:

 [70778.162999] Thunar[1669]: segfault at 48 ip 55a03faca360 sp
7ffc52dc2088 error 4 in thunar[55a03fa9f000+7f000]

 When our AI-based "Miss Information" Godmother gets angry with you ;-)

 They are even able to change BIOS settings while your computer is
running through your browser!

// __ List BIOS Settings using PowerShell (Posted onJune 22, 2016AuthorMrNetTek)

 http://eddiejackson.net/wp/?p=10909
~
 so, at some point I will have to get diffable dumps of the BIOS in
addition to running diffing the output of dmesg.

 The main problems I am having are brought about by:

 1) the BIOS of the laptop I use these days having wireless networking
which is started by the BIOS (at some point I will try dealing with
that by disconnecting the built-in hardware). In the ways I understand
"reality" (and "quid est verum?", right?) the BIOS should not be
taking care of networking, "have a mind of its own";

 2) javascript is the main attacking framework used by "the
government" and how can you use the Internet these days with
javascript disabled? (it would be like trying to breathe underwater)

 3) "the government" is using AI for their societally-wide
Zersetzung-like "social control" (as "good Christian" "freedom lovers"
call -repression-)

 How do I know, am so sure about it? Well, this is a pattern that I
have been noticing for 30 years I have lived in "'the' land of 'the'
'free' ...": you post an "unAmerican" comment (here in the U.S. you
can say "eff 'the establishment' ..." and no one cares about it, in
fact, you didn't say anything even in a physical/acoustic sense, but
in a "lexical priming" kind of way, if you elaborate on your
statements even if in a jestful way, "patriots"/their "'patriotic'
'AI'" seem to go crazy about it).

 This is what happened last/this time: you notice the people you get
the news from (I don't watch TV, read newspapers, nor am I on social
networks, ... in fact, I wonder from where people find the time for
such thoroughly stupid, morally debasing pastimes) have been black
holed -again-, to then after some barely sophisticated be found here:

// __ Introducing: Miss Information, Your Fairy Government Godmother

 https://odysee.com/@Odysee:8/missinfo:d
~
 About our new Godmother "Miss Information". Do you remember when she
decided it was about time for "Vladimir Putin" to suicide Michael
Hastings for spreading misinformation?

 https://en.wikipedia.org/wiki/Michael_Hastings_(journalist)

 Two days after the crash, the Los Angeles Police Department declared
that there were no signs of foul play.[65] The coroner's report ruled
the death to be an accident.[66] An autopsy showed that the cause of
death was massive blunt force trauma consistent with a high-speed
crash.[66]
~
 I cracked jokes around how unjust and non-sensical was it that that
not only "unAmerican", but also, as if it were not enough, "pro
Russia" "Vladimir Putin" suicided Hastings when all he did was the
same as Biden did only 20 years earlier. Do we need either "Vladimir
Putin" or our, not exactly fair and clarifying government appointed
Godmother?
~
 The aim of that Zersetzung-like (as they "freedom-lovingly" call it
themselves: "relentless pursuit"), which was thoroughly "studied" with
social animals and humans as part of their „Operativer Vorgänge"
("operational procedures") by the East German stasi is not to kill
you, but thoroughly destroy your existence to the point of inducing
the belief in people of committing suicide as a way "not to let them
get you" ... Does it actually work? Well, you don't have 

Re: No space left on device ...

2023-05-17 Thread Albretch Mueller
> Yes, I did. I had to reset the BIOS to "factory settings" which also
> changed the clock time which then I couldn't change with hwclock ...

 "Another day another problem": computer clock back to BIOS factory settings

 Your Computer Clock is Wrong:
 Your computer thinks it is 8/7/2022, which prevents Firefox from
connecting securely. To visit www.google.com, update your computer
clock in your system settings to the current date, time, and time
zone, and then refresh www.google.com.
 www.google.com has a security policy called HTTP Strict Transport
Security (HSTS), which means that Firefox can only connect to it
securely. You can’t add an exception to visit this site.
~
 In case someone runs into the same problem, for some reason I can't
quite understand "sudo hwclock --set" wasn't working. Someone helped
me:

 https://manpages.debian.org/stretch/util-linux/hwclock.8.en.html
 https://wiki.debian.org/DateTime

 and "date" worked! Which I has always taken to be a wrapper command to hwclock!

$ date
Sun 07 Aug 2022 01:35:45 PM UTC

$ sudo date --set "2023-05-16 11:13:00 AM"
Tue 16 May 2023 11:13:00 AM UTC

$ sudo hwclock --get
2022-05-11 02:02:36.883165+00:00

$ sudo hwclock --systohc

$ sudo hwclock --get
2023-05-16 11:15:22.564093+00:00

 "Amazing!"
 lbrtchx



Re: No space left on device ...

2023-05-15 Thread Albretch Mueller
> Has this ever worked in the past? It is my understanding that the Linux NTFS 
> driver is read-only.
> Mounting how exactly? And what is the contents of /proc/mounts? Maybe
> you mounted the partition read only?

 Well, actually, yes. This is how I have been mounting the Windows
NTFS of my laptop and my employer's as well without any problems
whatsoever. I just open the file browser/viewer and click the drive to
mount it in order to unmount, eject it you right click on it. It
works.

>> $ cp "No space left on device" > No_space_left_on_device.txt
>> bash: No_space_left_on_device.txt: No space left on device

>That *shouldn't* work. I get:

 my mistake I meant: echo "No space left on device" >
No_space_left_on_device.txt

> Does anybody read signatures any more?

 Apparently, some of us do. ;-) My obfuscation of the path didn't
relate to the error.

> First thing to try is to boot back into Windows and see if there is a
message about the drive. If so, let Windows 'fix' it. I've had cases
where the drive was not cleanly unmounted and Linux has mounted it
read-only. Windows was able to repair it, whatever the problem was.

 THis is the second thing I did. I booted into the BIOS and run an
exhaustive test/diagnostic on every physical part of it twice. It all
tested fine, including the hard drive.

 Then something spooky happened. I couldn't care less about Windows,
but then "'the BIOS' 'told me'" it would fix my laptop and it effing
did without messing with any of my data!!! Then I could boot into
windows again ... once I checked everything was fine I went back to my
Debian live ways.

 Every electronic thing I use has a mind of its own, that makes your
life so much more enjoyable! ;-)

> Did you disable the Fast Boot feature in Windows?

 Yes, I did. I had to reset the BIOS to "factory settings" which also
changed the clock time which then I couldn't change with hwclock ...
but when I booted the laptop with a network access at the library. It
did reset the clock apparently using WIndows time servers.

 That fix took me like four hours (dealing with the nonsense of the
installation ...), but at the end of th eday I was able to go back to
my do, do, do, ... mode.

 Thank you,
 lbrtchx



No space left on device ...

2023-05-14 Thread Albretch Mueller
I have been mounting an NTFS file system on a Windows laptop without
any problems whatsoever with a Debian Live DVD:

$ uname -a
Linux debian 5.10.0-18-amd64 #1 SMP Debian 5.10.140-1 (2022-09-02)
x86_64 GNU/Linux

and even though Linux utilities are telling me I do have space on the drive:

$ date; sudo df -h | grep "Filesystem\|/dev/sd"
Sun 14 May 2023 06:55:23 PM UTC
Filesystem  Size  Used Avail Use% Mounted on
/dev/sda1   286G  167G  120G  59% /media/user/60320G593EB7250F
$

$ date; time sudo du --summarize --human-readable  /media/user/60320G593EB7250F
Sun 14 May 2023 07:13:43 PM UTC
166G/media/user/60320G593EB7250F

real0m45.230s
user0m1.073s
sys 0m15.443s
$

when I try to save or download a file I consistently get the same error message:

$ cp "No space left on device" > No_space_left_on_device.txt
bash: No_space_left_on_device.txt: No space left on device

that started happening right after a WiFi connection at a library was
shutdown, which I waited for with my script running, accessing the
Internet, because I wanted to test such a case. Script "gracefully"
worked as programmed to do, but that other error started right after
the connection was cut off.

I have no idea how could those two things be related! Why would that
happen? Any suggestions, please?

lbrtchx



Re: sha256sum --text generating blank spaces and hyphens?

2023-05-01 Thread Albretch Mueller
On 4/27/23, David Christensen  wrote:
> Please see the OP, step (d).

>On 4/26/23, Albretch Mueller  wrote:
>>  a) encode the string name as base64
>> b) calculate the sha256sum of §a
>>  c) use §b as file name (of course, leaving the original extension as it
>> is)
>>  d) include a "§b_file_name.txt" plain text file descriptor which only
>> content is the actual prehash name of that file.

 I do that because base64 would (must?) work on any OS and the
conversion from and to any other encoding is straightforward. As you
suggested, I am more friendly to the idea of including hashes of the
data payload, even though I think it is not that important, because
the actual big problem that corpora research people have is files with
exactly the same look and feel and the same content which have
different hashes (for example, pdf files). I have been thinking about
a way to compute hashes which resemble more faithfully, both,
structural and content similarity among files. Do you know of any way
to do such thing? The structural aspect should be "easy". It could be
handled as DAGs of some sort of XPaths.

  I was actually going to show to you what I meant, but I was happy to
see "I was wrong". I even waited to try it from some other access
point. I have used this one liner to show how
google/youtube/NSA/"Vladimir Putin"/... was watermarking files for
whatever reason, but it worked fine when I was trying to show it to
you ;-)

_YT_URI=EngW7tLk6R8; _OFL="${_YT_URI}_"$(date +%Y%m%d%H%M%S)".mp4";
./yt-dlp --verbose --format "mp4" --output "${_OFL}" -- "${_YT_URI}";
ls -l "${_OFL}"; file --brief "${_OFL}"; time sha256sum "${_OFL}"


-rwxrwxrwx 1 user user 828540 Aug 15  2022 EngW7tLk6R8_20230501185618.mp4
ISO Media, MP4 v2 [ISO 14496-14]
0b950b88667b5fec35f3dd54005c16e5e742c703a0c776ec6da11b60a4775ae6
EngW7tLk6R8_20230501185618.mp4

-rwxrwxrwx 1 user user 828540 Aug 15  2022 EngW7tLk6R8_20230501185657.mp4
ISO Media, MP4 v2 [ISO 14496-14]
0b950b88667b5fec35f3dd54005c16e5e742c703a0c776ec6da11b60a4775ae6
EngW7tLk6R8_20230501185657.mp4

 Max Nikulin (12023-04-28):
> And you will quickly face servers that sends incorrectly Content-Type or
> intentionally put application/octet-stream with no sniff header to force
> browser to save the file instead of opening it e.g. in built-in PDF
> reader.

 Even if not totally syntactic (so you can't functionally solve it
with some code), this is a relatively manageable problem, you would:

 a) take notice of the sites that do such things;
 b) sniff not only the http headers, but notice the file extension of
the file; and
 c) safe the file to a temp repository for the Linux util "file" to be
run on it ...

 Out of those heuristics you should be able to strategize around such problems.

 lbrtchx



Re: sha256sum --text generating blank spaces and hyphens?

2023-04-27 Thread Albretch Mueller
On 4/27/23, Max Nikulin  wrote:
> I have never tried: "Open-source self-hosted web archiving"
> https://github.com/ArchiveBox/ArchiveBox
>
> This one allows to save selected part of a page:
> https://github.com/danny0838/webscrapbook/

 Thank you for keeping me busy! From their recommendations:

 https://github.com/ArchiveBox/ArchiveBox/wiki/Web-Archiving-Community

 https://en.wikipedia.org/wiki/List_of_Web_archiving_initiatives

 https://coptr.digipres.org/index.php/Main_Page
~
 However, what I have in mind is definitely more than archiving, which
would be only the first phase of it.

// __ [Corpora-List] towards a "pan document format" (pun intended) . . .

 
https://list.elra.info/mailman3/hyperkitty/list/corp...@list.elra.info/message/4AULI3UUQ7BQG5ANFYGEEL7FXQXIILYN/
~
 In particular, I am interested in a corpus of "universally appealing writers"

// __ list of authors and their work ...

 
https://list.elra.info/mailman3/hyperkitty/list/corp...@list.elra.info/thread/5PFZUBNLRWW2FDHDWHPKZYOMAGZLOWXG/#4BTSFS5OCUFWVWU4ZDSBJ765DQFWWI7B/
~
 lbrtchx



Re: sha256sum --text generating blank spaces and hyphens?

2023-04-26 Thread Albretch Mueller
On 4/26/23, David Christensen  wrote:
> I suggest hashing the document content rather than the URL.  This would
> work nicely for static documents.

 What do you mean by "hashing the document content"?

 How would that help when what you are trying to do is cleanse and
canonize texts as best as you could to find relationships among their
text segments?

 lbrtchx



Re: sha256sum --text generating blank spaces and hyphens?

2023-04-26 Thread Albretch Mueller
On 4/26/23, David Wright  wrote:
> I guess you need the expense of sha256 rather than md5 as you're
> downloading the entire web?

 I am not downloading the entire web. I have no way of knowing how
they entertained those ideations but I think we could use their
estimate when google said that approximately 1 million and a half
books have been ever published. Think of it! It is not that much data.
It would all fit nicely in one hard drive; include some searching
capability and "bye bye google" will be the name of your movie. At
times you need to gain a sense of things before going into exposed
mode to search for something (which these days means making sure you
are not being baited into something else)

On 4/26/23, Dan Ritter  wrote:
> The only characters used in the sha256 hash itself are [a-f] and
> [0-9]

 Yes, I knew that; that is why I could not understand why sha256sum
was being "courteous" to me.

On 4/26/23, Nicolas George  wrote:
> shaXsum always writes X/4 hexadecimal nibbles then two spaces then the
> file name. If the input is from stdin, then the convention is the file
> name is ‘-’.
>
> (Well, not always always: if the file name contains very special
> characters, it will use an escaped output format. And there is the -z
> option.)

On 4/26/23, Thomas Schmitt  wrote:
> "FILE" is the minus-sign for standard input. The second blank is there
> to indicate the text mode of sha256sum.
> Only the first blank is somewhat puzzling. But it's always there.
>
>
> https://www.gnu.org/software/coreutils/manual/html_node/sha2-utilities#sha2-utilities
> points to
>
> https://www.gnu.org/software/coreutils/manual/html_node/md5sum-invocation.html
> which says
>   For each file, ‘md5sum’ outputs by default, the MD5 checksum, a space,
>   a flag indicating binary or text input mode, and the file name. Binary
>   mode is indicated with ‘*’, text mode with ‘ ’ (space). Binary mode is
>   the default on systems where it’s significant, otherwise text mode is
>   the default. The cksum command always uses binary mode and a ‘ ’
>   (space) flag.
>
> So the first blank can be relied on and thus the proposal by Andy Smith
> to use "awk '{print $1}'" is valid.

 OK, now I see why cutting off the string on the first space that
appears is safe. I never saw such cases because I always used sha*sums
on files. I would expect if a user enters a string via printf that was
all there was to it. Of course, sha*sums can tell apart a file from a
text string.

On 4/26/23, Jeffrey Walton  wrote:
> There's no guarantee a URL will map onto a filesystem.

> I seem to
> recall Stunnel tried to do that in a caching mode, but it had weird
> corner cases. (In addition to problems with filesystems that had
> character set and path limitations).

 Well, no; and I am fine with:
 a) trying to best match both; the URL path as best as possible
 b) the extra malabarism base64-ing and hashsing the name of the file ...

 Something I have learned as a corpora research kind of guy is not to
ever try to "educate" people. I would just take their sh!t as they
dump it and cleanse, deal with it!

 You would not hear the end of it if I start telling stories of the
kind of cr@p you find out there when you look at the web from that
point of view.

> I think your best bet is to digest the URL into a representation. I
> suggest using SipHash+Base64 or Base64URL. SipHash provides collision
> resistance, a uniform distribution, and its fast. SipHash has a very
> good pedigree since it was designed by Jean-Philippe Aumasson and
> Daniel J. Bernstein. The final Base64 or Base64URL encoding ensures
> you stay within printable character range without reserved file system
> characters.

 Thank you I will look into what they did when I get a chance,

 lbrtchx


On 4/26/23, Albretch Mueller  wrote:
> On 4/26/23, David Wright  wrote:
>> I guess you need the expense of sha256 rather than md5 as you're
>> downloading the entire web?
>
>  I am not downloading the entire web. I have no way of knowing how
> they entertained those ideations but I think we could use their
> estimate when they said that approximately 1 million and a half books
> have been ever published. Think of it! It is not that much data. It
> would all fit nicely in one hard drive include some searching
> capability and "bye bye google" will be the name of your movie.
>
> On 4/26/23, Dan Ritter  wrote:
>> The only characters used in the sha256 hash itself are [a-f] and
>> [0-9]
>
>  Yes, I knew that; that is why I could not understand why sha256sum
> was being "courteous" to me.
>
> On 4/26/23, Nicolas George  wrote:
>> shaXsum always writes X/4 hexadecimal nibbles then two spaces then the
>> file name. If the input is from 

Re: sha256sum --text generating blank spaces and hyphens?

2023-04-26 Thread Albretch Mueller
On 4/26/23, David Wright  wrote:
> I guess you need the expense of sha256 rather than md5 as you're
> downloading the entire web?

 I am not downloading the entire web. I have no way of knowing how
they entertained those ideations but I think we could use their
estimate when they said that approximately 1 million and a half books
have been ever published. Think of it! It is not that much data. It
would all fit nicely in one hard drive include some searching
capability and "bye bye google" will be the name of your movie.

On 4/26/23, Dan Ritter  wrote:
> The only characters used in the sha256 hash itself are [a-f] and
> [0-9]

 Yes, I knew that; that is why I could not understand why sha256sum
was being "courteous" to me.

On 4/26/23, Nicolas George  wrote:
> shaXsum always writes X/4 hexadecimal nibbles then two spaces then the
> file name. If the input is from stdin, then the convention is the file
> name is ‘-’.
>
> (Well, not always always: if the file name contains very special
> characters, it will use an escaped output format. And there is the -z
> option.)

On 4/26/23, Thomas Schmitt  wrote:
> "FILE" is the minus-sign for standard input. The second blank is there
> to indicate the text mode of sha256sum.
> Only the first blank is somewhat puzzling. But it's always there.
>
>
> https://www.gnu.org/software/coreutils/manual/html_node/sha2-utilities#sha2-utilities
> points to
>
> https://www.gnu.org/software/coreutils/manual/html_node/md5sum-invocation.html
> which says
>   For each file, ‘md5sum’ outputs by default, the MD5 checksum, a space,
>   a flag indicating binary or text input mode, and the file name. Binary
>   mode is indicated with ‘*’, text mode with ‘ ’ (space). Binary mode is
>   the default on systems where it’s significant, otherwise text mode is
>   the default. The cksum command always uses binary mode and a ‘ ’
>   (space) flag.
>
> So the first blank can be relied on and thus the proposal by Andy Smith
> to use "awk '{print $1}'" is valid.

 OK, now I see why cutting off the string on the first space that
appears is safe. I never saw such cases because I always used sha*sums
on files. I would expect if a user enters a string via printf that was
all there was to it. Of course, sha*sums can tell apart a file from a
string a plain text.

On 4/26/23, Jeffrey Walton  wrote:
> There's no guarantee a URL will map onto a filesystem.

> I seem to
> recall Stunnel tried to do that in a caching mode, but it had weird
> corner cases. (In addition to problems with filesystems that had
> character set and path limitations).

 Well, no; and I am fine with:
 a) trying to best match both; the URL path as best as possible
 b) the extra malabarism base64-ing and hashsing the name of the file ...

 Something I have learned as a corpora research kind of guy is not to
ever try to "educate" people. I would just take their sh!t as they
dump it and cleanse, deal with it!

 You would not hear the end of it if I start telling stories of the
kind of cr@p you find out there when you look at the web from that
point of view: from folks at archive.org who would list: "Henry
Valentine Miller", "Henry V. Miller", "Henry Miller", "henry miller",
"Miller, Henry", "Miller, Henry 12-1891 06-1980" apparently as
different authors/"creators", to the gutenberb.org large text bank
including some protagonistic bs in the actual texts, to developers of
libreoffice watermarking text with some cr@p which of course is being
used for "monitoring" purposes by the kinds of folks who put
"intelligence" in the names of the organizations they work for and to
make sure they are making sense they put flags around them when they
fart through their mouths whatever nonsense they think of.

 I had had rehearsing day dreams about becoming a dictator of the
world ;-) and making people do "the right thing" (tm) ... until I had
once an epiphany while watching Trump talk to a media prestitude who
caracteristically wasn't making much sense. After asking a few
questions trying to make sense of what she was saying, prestitude said
"let me formulate it better". Trump quietly sat back saying: "OK, take
your time"!!!

 I was amazed! There you have someone the U.S. media, who as a mouth
piece of the status quo, were being viscerally offensive towards
anything relating to him, including posting on the front page of
mainstream US news papers naked pictures of his wife and mother of his
child one month before she became "the first lady" and he took it
easy, respectfully on her! That was the best case I have noticed so
far of "separating the message from the messenger". I mean people who
erect all those pay walls and somehow see themselves as authoring,
guarding content are not even the messengers and we all have to put up
with their bs.

> I think your best bet is to digest the URL into a representation. I
> suggest using SipHash+Base64 or Base64URL. SipHash provides collision
> resistance, a uniform distribution, and its fast. SipHash has a very
> good 

Re: sha256sum --text generating blank spaces and hyphens?

2023-04-26 Thread Albretch Mueller
On 4/26/23, Andy Smith  wrote:
> If you're referring to the space and then the file name ("-" in case
> of stdin) on the end, you can just select only the first output up
> to whitespace with e.g. awk:
>
> _SHA256=$(printf '%s' "${_TXT}" | sha256sum | awk '{print $1}')

 Yes, you could but I am trying to find out why this is happening
instead of truncating the string when a space appears because I don't
think what would be safe.

> These web sites can change their URLs at any time you know, so it
> may not be worth trying to replicate their structure locally.

 yes, I know and my way to deal with such issues is:

 a) by including in the name of the web log of the download the date
and time ...
 b) once the data file is downloaded, say a pdf file of an old book or
some publication, all the metadata in the front and back pages of the
book are OCRed, the actual title, ISBN, publishing date ...

On 4/26/23, to...@tuxteam.de  wrote:
>>  a) encode the string name as base64
>>  b) calculate the sha256sum of §a
>
> Why the detour over base64?

 because I would like to include the three strings in the file descriptor:
 a) the crazy long name
 b) its base64 representation
 c) §b's sha256sum representation which is the one used for the file
name and the log of the download.

 I would like to make this scheme "fool (and fail) proof" as they say.
There is no way in earth that a file system messes with all three
aspects of it.

>>  c) use §b as file name (of course, leaving the original extension as it
>> is)
>
> Why the extension? DOS nostalgia?

 The local copies should represent the web URLs as close as possible
in order to minimize "what came from where" kinds of confusions. Also
from the same URL you would then download the corresponding pdf file
with exactly the same name, the only difference being the extension.

>> // __ $_SHA256:
>> |7d5895cb24ab49692a8ad495e036074fec8e61b22040544f02a9b69c926dbdeb  -|
>
>
> I only see harmless hexadecimal chars there.
>
>>  I am trying to avoid funky characters and sha256sum --text still
>> generates them!?!
>
> Where are there "funky chars"?

 This is the first time I have seen blank spaces and hyphens in a text
segment's sum. Those characters might be confusing.

> Besides, I don't think --text does what you think it does. Quoting
> the manpage:
>
>   "Note: There is no difference between binary mode and text
>mode on GNU systems."

 Thank you. I was playing with different options to see if that was
the reason I was getting those white spaces and hyphens at the end.

 Why is that happening? How could it be avoided? COuld you set the
characters used in the representation of a sum?

 lbrtchx



sha256sum --text generating blank spaces and hyphens?

2023-04-26 Thread Albretch Mueller
 This is not a debian question per se (more like a Linux bash one),
but I wasn't able to find an answer on the Internet.

 Here is first the problem I am having before you start reading a
conspiracy theory into it ;-)

 I need to somehow map URL on the web to a local file, but you can't
do that for two main reasons:

 1) URLs are free text
 2) which people take to their heart's content.

 Take for example:

 
https://dokumen.pub/qdownload/nietzsche-und-der-deutsche-geist-band-4-ausbreitung-und-wirkung-des-nietzscheschen-werkes-im-deutschen-sprachraum-bis-zum-ende-des-zweiten-weltkrieges-ein-schrifttumsverzeichnis-der-jahre-1867-1945-ergnzungen-berichtigungen-und-gesamtverzeichnisse-zu-den-bnden-i-iii-9783110202861-9783110189865-3110189860.html

 that file and the pdf you would download I need to map to a local
directory looking like: ... /pub/dokumen/qdownload/ ...

 but the file name (excluding the extension) is 306 characters long,
which Windows NTFS would not swallow. There may be also funky rules
regarding character sets and where in a string certain chars may be
used; so, as a way to work around those kinds of problems I:

 a) encode the string name as base64
 b) calculate the sha256sum of §a
 c) use §b as file name (of course, leaving the original extension as it is)
 d) include a "§b_file_name.txt" plain text file decriptor which only
content is the actual prehash name of that file.


 
https://dokumen.pub/qdownload/nietzsche-und-der-deutsche-geist-band-4-ausbreitung-und-wirkung-des-nietzscheschen-werkes-im-deutschen-sprachraum-bis-zum-ende-des-zweiten-weltkrieges-ein-schrifttumsverzeichnis-der-jahre-1867-1945-ergnzungen-berichtigungen-und-gesamtverzeichnisse-zu-den-bnden-i-iii-9783110202861-9783110189865-3110189860.html
 
_TXT="nietzsche-und-der-deutsche-geist-band-4-ausbreitung-und-wirkung-des-nietzscheschen-werkes-im-deutschen-sprachraum-bis-zum-ende-des-zweiten-weltkrieges-ein-schrifttumsverzeichnis-der-jahre-1867-1945-ergnzungen-berichtigungen-und-gesamtverzeichnisse-zu-den-bnden-i-iii-9783110202861-9783110189865-3110189860"
 _B64TXTENC=$(printf '%s' "${_TXT}" | base64 )
 echo "// __ \$_B64TXTENC: |${_B64TXTENC}|"
 _B64TXTDEC=$(printf '%s' "${_B64TXTENC}" | base64 --decode)
 echo "// __ \$_B64TXTDEC: |${_B64TXTDEC}|"
 if [[ "${_TXT}" == "${_B64TXTDEC}" ]]; then
  echo "// __ [[ \${_TXT} == \${_B64TXTDEC} ]]: |${_TXT}|"
  _SHA256=$(printf '%s' "${_TXT}" | sha256sum --text )
  echo "// __ \$_SHA256: |${_SHA256}|"
 fi

// __ $_SHA256:
|7d5895cb24ab49692a8ad495e036074fec8e61b22040544f02a9b69c926dbdeb  -|

 I am trying to avoid funky characters and sha256sum --text still
generates them!?!

 I work like this because I need replicate the original URL as a local
path in a way that would be compatible any file system.

 Do you know of a better way to deal with such issues?

 lbrtchx



Re: What do all those "* * *" mean on a traceroute log?

2023-04-14 Thread Albretch Mueller
On 4/13/23, Lee  wrote:
> you should probably start off with
>   https://archive.nanog.org/sites/default/files/10_Roisman_Traceroute.pdf
> A Practical Guide to (Correctly)
> Troubleshooting with Traceroute

 thank you, lbrtchx



Re: What do all those "* * *" mean on a traceroute log?

2023-04-12 Thread Albretch Mueller
On 4/12/23, debian-u...@howorth.org.uk  wrote:
> I was playing with the addresses listed by Albretch ...

On 4/12/23, David Wright  wrote:
> After googling them, I gave Moxee a call. They answer to a subtly
> different name, but it's the same business: a Canadian/US company
> that's been family-owned through three generations. Their website
> is now hosted by godaddy, so I guess they just hang on to those old
> addresses. I don't know why they have their Moxee plant's street
> address on it. (Their godaddy registration is buttoned up in the
> modern manner.)

 Once again, "social" issues remind me of my dear grandpa Hegel ;-).
There must be idiotic people like me for "smart" people out there to
"be themselves".

 The issue at hand was the traceroute exaggerated "* * *" output, no?
BTW, I made sure to put a "'little' tin hat" on my post and phrased it
knowing well "it would be archived", but, in case you want to believe
me, those actions weren't directed at you.

 Here are my candidate elucidations (and from the little corner from
which I see reality Occam's Razor doesn't really apply); either the
"international community" (tm) doesn't like that niggah me has to
download vast amounts of data items (it is almost exclusively text
anyway, so I don't know what the big deal is and I have noticed people
on the same network (using windows terminals) with more than one
browser window open watching high def videos) so, it might be my usage
patterns which is flagged as "dangerous" dude misbehaving.

 There is also some idiotic perp invariably dressed on a pink shirt
that USG is paying to occupy a relatively retired seat where I used to
sit my days. Unfortunately, I couldn't take a picture of him for you
to "analyze it" ...

 lbrtchx



Re: What do all those "* * *" mean on a traceroute log?

2023-04-12 Thread Albretch Mueller
On 4/12/23, Greg Wooledge  wrote:
> unicorn:~$ traceroute www.google.com
> traceroute to www.google.com (142.250.190.4), 30 hops max, 60 byte packets
>  1  routerlogin.net (10.0.0.1)  0.413 ms  0.355 ms  0.415 ms
>  2  65-131-222-254.mnfd.centurylink.net (65.131.222.254)  38.070 ms  39.776
> ms  36.299 ms
>  3  75.160.81.21 (75.160.81.21)  41.687 ms  45.801 ms  39.873 ms
>  4  * * *
>  5  ae0.11.bar2.Toronto1.level3.net (4.69.151.242)  56.715 ms
> ae14.14.bar2.Toronto1.level3.net (4.69.216.246)  56.550 ms
> ae0.11.bar2.Toronto1.level3.net (4.69.151.242)  58.637 ms
> [...]
> No response was received from hop number 4, so traceroute shows me * * *
there.

 Yes, but should it happen on every hop? In my case it happens while I
am trying to reach every site and from wherever I have the chance to
get some relatively decent Internet access?

 A descriptive metaphor would be. You can see the traffic light once
you get out of your home's drive way, but the rest of all of them
misfunction regardless of where you are driving and the time of the
day and it always, consistently and apparently, exclusively happens to
-you- ;-)

 lbrtchx



SQUASHFS error: Unable to read fragment cache entry ...

2023-04-12 Thread Albretch Mueller
 I always use a Debian live DVD while exposed.
 The thing is that in order to squeeze every minute of attention I
possibly can I tend to:
 a) just close the lid of my laptop
 b) while keeping the DVD player attached to the laptop
 c) then, reopen it and continue.
 That way I avoid like 5 minutes of configuration time.
 Not always, but most of the times I start getting those kinds of errors.
 Basically, I need to be able to close my laptop and pack it up while
I am going from point A to B and then take it out and continue.
 How do you guys to that? I mean, "you guys who must use live DVD" ;-)
 Any helpful tip would be appreciated!
 lbrtchx



What do all those "* * *" mean on a traceroute log?

2023-04-12 Thread Albretch Mueller
 I have found a few examples and "explanations" but in the cases of
the examples I have seen by other people, like:

 
https://serverfault.com/questions/733005/what-does-having-mean-in-the-command-traceroute-and-how-can-you-cope-wit

 It is not with every site and it is mostly with one hop. I my case it
is with all sites and once the packets reach the web (from hop 5 to
30), from wherever I connect to the Internet. Why would that happen
and why would that -consistently- "happen" to me?

$ traceroute google.com
traceroute to google.com (172.217.0.174), 30 hops max, 60 byte packets
 1  _gateway (199.83.128.1)  6.687 ms  6.660 ms  6.683 ms
 2  199.83.240.2 (199.83.240.2)  6.101 ms  6.622 ms  6.610 ms
 3  ad.nypl.org (199.254.254.1)  6.600 ms  6.588 ms  6.577 ms
 4  199.254.252.1 (199.254.252.1)  6.566 ms  6.590 ms  6.738 ms
 5  * * *
. . .
30  * * *

$ traceroute microsoft.com
traceroute to microsoft.com (20.81.111.85), 30 hops max, 60 byte packets
 1  _gateway (199.83.128.1)  12.353 ms  12.319 ms  12.306 ms
 2  199.83.240.2 (199.83.240.2)  11.803 ms  12.281 ms  12.268 ms
 3  ad.nypl.org (199.254.254.1)  12.256 ms  12.244 ms  12.231 ms
 4  199.254.252.1 (199.254.252.1)  12.255 ms  12.243 ms  12.511 ms
 5  * * *
. . .
30  * * *

$ traceroute debian.org
traceroute to debian.org (149.20.4.15), 30 hops max, 60 byte packets
 1  _gateway (199.83.128.1)  16.821 ms  17.804 ms  17.784 ms
 2  199.83.240.2 (199.83.240.2)  4.739 ms  5.086 ms  5.070 ms
 3  ad.nypl.org (199.254.254.1)  5.054 ms  5.389 ms  5.023 ms
 4  199.254.252.1 (199.254.252.1)  6.805 ms  6.282 ms  6.773 ms
 5  * * *
. . .
30  * * *

 lbrtchx



Re: gradle wants openjdk-11 even if a newer version is installed? ...

2023-03-29 Thread Albretch Mueller
On 3/29/23, debian-u...@howorth.org.uk  wrote:
> As others have pointed out, apt-get doesn't work like that. It seems to
> me that the gradle package is wrong in having java as a dependency,
> since the need can be resolved at run-time rather than install time,
> and by a dynamic link. So bug report the gradle package, not apt-get.

 Well, debian folks say it is gradle folks the ones that didn't get it
right and vice versa.
 As you could see from their installation page, the one and only
installation prerequisite is a java version after the reflection API
was introduced. I would guess everyone who works from a Debian install
and need to install gradle is because they are using java already.
There have been 7 releases till JDK 19.

 Maybe debian packages should have various installation candidates
based on the JDK one has installed or during configuration of the
package if no java install is reachable it should look for it in the
filesystem and if it is still not found tell user and abort the
installation.

 lbrtchx



Re: gradle wants openjdk-11 even if a newer version is installed? ...

2023-03-28 Thread Albretch Mueller
 OK this is what the gradle folks told me/us:

 
https://discuss.gradle.org/t/gradle-wants-as-java-version-openjdk-11-even-if-a-newer-version-is-installed/45254/6

 Gradle itself would just use the Java from your JAVA_HOME or as
fallback from PATH (given you use a version that is compatible with
your Gradle version, otherwise it will most likely fail to execute
later on).
~
 so, the installation by apt-get should have detected that I had set
JAVA_HOME and the included the JDK in my PATH.

 In case someone stumbles on the same problems, runs into the same
thread, here are the quick steps about how to install gradle on Linux
(without gregorian chanting " ... and if you use Windows, ... and if
you use MacOS, ..."):

 1) look for the installation file at: https://gradle.org/install/

 right now:
$ date
Tue 28 Mar 2023 06:14:52 PM UTC

 it was: https://services.gradle.org/distributions/gradle-8.0.2-all.zip

 2) set the directory where you want to keep the installation file

 3) download the file to §2 using wget, curl or your browser

 4) choose an 

 5) unzip -d "§4: which ever  you chose" "§2:
path to the installation file "

 6) set your: PATH="/bin"$PATH

 7) test everything is OK:

$ which gradle
/bin/gradle

$ gradle --version

ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.

Please set the JAVA_HOME variable in your environment to match the
location of your Java installation.

$ JAVA_HOME="<...>/GraalVM/graalvm-ce-java19-22.3.0"
PATH="${JAVA_HOME}/bin:$PATH"

which javac
javac -version

which java
java -version
<...>/GraalVM/graalvm-ce-java19-22.3.0/bin/javac
javac 19.0.1

<...>/GraalVM/graalvm-ce-java19-22.3.0/bin/java
openjdk version "19.0.1" 2022-10-18
OpenJDK Runtime Environment GraalVM CE 22.3.0 (build 19.0.1+10-jvmci-22.3-b08)
OpenJDK 64-Bit Server VM GraalVM CE 22.3.0 (build
19.0.1+10-jvmci-22.3-b08, mixed mode, sharing)

$ gradle --version

Welcome to Gradle 8.0.2!

Here are the highlights of this release:
 - Improvements to the Kotlin DSL
 - Fine-grained parallelism from the first build with configuration cache
 - Configurable Gradle user home cache cleanup

For more details see https://docs.gradle.org/8.0.2/release-notes.html



Gradle 8.0.2


Build time:   2023-03-03 16:41:37 UTC
Revision: 7d6581558e226a580d91d399f7dfb9e3095c2b1d

Kotlin:   1.8.10
Groovy:   3.0.13
Ant:  Apache Ant(TM) version 1.10.11 compiled on July 10 2021
JVM:  19.0.1 (GraalVM Community 19.0.1+10-jvmci-22.3-b08)
OS:   Linux 5.10.0-18-amd64 amd64

$ gradle --help

To see help contextual to the project, use gradle help

USAGE: gradle [option...] [task...]

-?, -h, --help Shows this help message.
...

$



  1   2   3   4   5   >