Re: OT: Thunderbird - Emparejar hilos de correo [SOLUCIONADO a medias...]

2024-07-12 Thread Camaleón
El 2024-07-11 a las 15:23 -0300, Javier ArgentinaBBAR escribió:
> El jue, 11 jul 2024 a las 12:56, Camaleón () escribió:
> >
> > El 2024-07-11 a las 08:47 -0400, Roberto C. Sánchez escribió:
> >
> > > On Thu, Jul 11, 2024 at 09:44:57AM -0300, Javier ArgentinaBBAR wrote:
> > > > Buenos días.
> > > >
> > > > Esto es totalmente OT, pero es una cosa que se me ha ocurrido, por si
> > > > alguien sabe si existe, pues no encuentro forma de hacerlo.
> > > >
> > > > Hay gente que tiene la maldita costumbre de responder correos (mi
> > > > correo A) con un nuevo correo (el correo X), es decir, en vez de
> > > > pulsar "Responder", o aunque más no sea "Reenviar", hacen un correo
> > > > nuevo, por lo que se pierde el hilo, y la poderosísima herramienta
> > > > "Abrir mensaje en conversación" de Thunderbird, se me va al caño.
> > > >
> > > > Pregunta:
> > > > ¿Existe alguna forma de hacer que un correo X pueda pasar a formar
> > > > parte del hilo de un correo A preexistente?
> > > >
> > > > Saludos y gracias de antemano.
> > > >
> > > https://bugzilla.mozilla.org/show_bug.cgi?id=36024
> > >
> > > Lleva 25 años abierto ese bug.
> > >
> > > Me parece que nos hará falta seguir esperando. :-/
> >
> > Y la medalla de oro en la categoría de _clientes de correo electrónico_
> > es para (bum, bumm, bummm, bummm).
> >
> > ¡¡¡ Mutt !!! 磊
> >
> > :-)
> >
> > 
> > http://www.mutt.org/doc/manual/#editing-threads
> >
> > 14.2. Breaking Threads
> >
> > On mailing lists, some people are in the bad habit of starting a new
> > discussion by hitting “reply” to any message from the list and changing
> > the subject to a totally unrelated one. You can fix such threads by
> > using the  function (bound by default to #), which will
> > turn the subthread starting from the current message into a whole
> > different thread.
> > ***
> >
> > Bonus track → _Mutt 1.0 was released on October 22, 1999._
> 
> Graciosa.
> En el trabajo, como el 90% de los trabajos del planeta, son
> Windows-dependientes.

Hay versión de Mutt para Windows >:-)

Y te lo dice alguien que en el trabajo y en casa usa Linux y Windows, 
Mutt, Thunderbird, Outlook, Windows Mail... vamos, de todo un poco.
 
> Pero lo solucioné:
> Hay un "add-on": Header Tools Lite
> 
> Permite editar el ID y Referencia del correo, con lo que un "copiar y
> pegar" une el correo fuera de hilo, al hilo que yo deseo.
> O puedo quebrarlo con un nuevo ID
> Requiere un poquito de práctica, y no es muy intuitivo que digamos.
> Y si es un hilo lo que quiero hacer, debo hacerlo correo por correo.
> Pero funciona.
> 
> Saludos y gracias.

Otra, por si acaso:

Header Tools Improved 4.7 
https://addons.thunderbird.net/en-US/thunderbird/addon/header-tools-improved/

Aún así, no dejes de echar un vistazo a la documentación por si algún 
parámetro modificable te sirviera o coadyuvara:

MailNews:Message Threading
https://wiki.mozilla.org/MailNews:Message_Threading

Saludos,

-- 
Camaleón 



Re: stty permanently undef "start"

2024-07-11 Thread Max Nikulin

On 11/07/2024 22:56, Greg Wooledge wrote:

On Thu, Jul 11, 2024 at 22:43:58 +0700, Max Nikulin wrote:

On 10/07/2024 20:55, Greg Wooledge wrote:

  test -t 0 && stty -ixon


I have a question opposite to the original one. Is it possible to disable
xon for bash prompt, but enable it while foreground commands are
running? Sometimes I use [Ctrl+s] to pause verbose output of some tool. On
the other hand I do not mind to use forward search in readline history.


In theory... you could run "stty -ixon" in the PROMPT_COMMAND variable,
and "stty ixon" in a DEBUG trap.


It seems PS0='$(stty ixon 2>/dev/null)' might be a better variant. I 
have not tested it thoroughly yet.


I just have realized that enabling semantic terminal-shell integration 
in konsole merely injects


if [[ ! $PS1 =~ 133 ]] ; then

PS1='\[\e]133;L\a\]\[\e]133;D;$?\]\[\e]133;A\a\]'$PS1'\[\e]133;B\a\]' ;
PS2='\[\e]133;A\a\]'$PS2'\[\e]133;B\a\]' ;
PS0='\[\e]133;C\a\]' ; fi

and it allows to mark prompt, command, and output.

https://per.bothner.com/blog/2019/shell-integration-proposal/
https://docs.kde.org/stable5/en/konsole/konsole/semantic-shell-integration.html



Re: General questions

2024-07-11 Thread Lee
On Thu, Jul 11, 2024 at 7:55 AM 타토카  wrote:
>
> And can you explain to me what is it, please? *
>
> $ alias | grep sha
> alias sha1='/usr/bin/openssl dgst -sha1 '
> alias sha256='/usr/bin/openssl dgst -sha256 '
> alias sha512='/usr/bin/openssl dgst -sha512 '

It's a way of getting sha sums for a file.  I've been carrying those
in my .bashrc file for ages.. I don't remember if I didn't know about
the sha1sum program or it didn't exist in cygwin at the time, but I
found a method that worked and quit looking.  By now it's "muscle
memory" -- like returning from vacation and not being able to remember
your password, but go down to the cafeteria, get a cup of coffee,
return to your desk, turn your PC on and enter your password without
thinking.  I found a method that worked and don't think about it any
more.  You probably should use the sha1sum, sha256sum, sha512sum
programs though - if only to reduce confusion when you're talking to
other people :)

Regards
Lee



Re: General questions

2024-07-11 Thread Franco Martelli

On 11/07/24 at 13:55, 타토카 wrote:

And can you explain to me what is it, please? *

$ alias | grep sha
alias sha1='/usr/bin/openssl dgst -sha1 '
alias sha256='/usr/bin/openssl dgst -sha256 '
alias sha512='/usr/bin/openssl dgst -sha512 '


Since you are asking this question maybe you don't know that after 
verified the authenticity of SHA512SUMS.sign SHA512SUMS files you must 
use the file SHA512SUMS to verify the authenticity of the .iso files you 
will download.


If you open SHA512SUMS in an editor you see a list of checksum that they 
belong to respective .iso or .torrent files.


Recently I downloaded the "debian-12.6.0-amd64-DVD-1.iso" iso image 
using a .torrent file. After downloaded the .torrent file place it 
together SHA512SUMS in the same directory, then verify the authenticity 
with the command:


$ sha512sum --ignore-missing -c SHA512SUMS
debian-12.6.0-amd64-DVD-1.iso.torrent: OK

Now you are ready to download the .iso, open the .torrent file in your 
favorite Torrent client and start the download, then check the 
authenticity of the .iso with exactly the same command:


$ sha512sum --ignore-missing -c SHA512SUMS
debian-12.6.0-amd64-DVD-1.iso: OK

This step might take a while, so be patient, after done that you are 
ready to burn a DVD, copy the .iso to an USB key, install to a virtual 
machine… but this is another story ^_^


Cheers,
--
Franco Martelli



Re: OT: Thunderbird - Emparejar hilos de correo [SOLUCIONADO a medias...]

2024-07-11 Thread Javier ArgentinaBBAR
El jue, 11 jul 2024 a las 12:56, Camaleón () escribió:
>
> El 2024-07-11 a las 08:47 -0400, Roberto C. Sánchez escribió:
>
> > On Thu, Jul 11, 2024 at 09:44:57AM -0300, Javier ArgentinaBBAR wrote:
> > > Buenos días.
> > >
> > > Esto es totalmente OT, pero es una cosa que se me ha ocurrido, por si
> > > alguien sabe si existe, pues no encuentro forma de hacerlo.
> > >
> > > Hay gente que tiene la maldita costumbre de responder correos (mi
> > > correo A) con un nuevo correo (el correo X), es decir, en vez de
> > > pulsar "Responder", o aunque más no sea "Reenviar", hacen un correo
> > > nuevo, por lo que se pierde el hilo, y la poderosísima herramienta
> > > "Abrir mensaje en conversación" de Thunderbird, se me va al caño.
> > >
> > > Pregunta:
> > > ¿Existe alguna forma de hacer que un correo X pueda pasar a formar
> > > parte del hilo de un correo A preexistente?
> > >
> > > Saludos y gracias de antemano.
> > >
> > https://bugzilla.mozilla.org/show_bug.cgi?id=36024
> >
> > Lleva 25 años abierto ese bug.
> >
> > Me parece que nos hará falta seguir esperando. :-/
>
> Y la medalla de oro en la categoría de _clientes de correo electrónico_
> es para (bum, bumm, bummm, bummm).
>
> ¡¡¡ Mutt !!! 磊
>
> :-)
>
> 
> http://www.mutt.org/doc/manual/#editing-threads
>
> 14.2. Breaking Threads
>
> On mailing lists, some people are in the bad habit of starting a new
> discussion by hitting “reply” to any message from the list and changing
> the subject to a totally unrelated one. You can fix such threads by
> using the  function (bound by default to #), which will
> turn the subthread starting from the current message into a whole
> different thread.
> ***
>
> Bonus track → _Mutt 1.0 was released on October 22, 1999._
>
> Saludos,
>
> --
> Camaleón
>

Graciosa.
En el trabajo, como el 90% de los trabajos del planeta, son
Windows-dependientes.

Pero lo solucioné:
Hay un "add-on": Header Tools Lite

Permite editar el ID y Referencia del correo, con lo que un "copiar y
pegar" une el correo fuera de hilo, al hilo que yo deseo.
O puedo quebrarlo con un nuevo ID
Requiere un poquito de práctica, y no es muy intuitivo que digamos.
Y si es un hilo lo que quiero hacer, debo hacerlo correo por correo.
Pero funciona.

Saludos y gracias.

JAP



Re: stty permanently undef "start"

2024-07-11 Thread Greg Wooledge
On Thu, Jul 11, 2024 at 22:43:58 +0700, Max Nikulin wrote:
> On 10/07/2024 20:55, Greg Wooledge wrote:
> >  test -t 0 && stty -ixon
> 
> I have a question opposite to the original one. Is it possible to disable
> xon for bash prompt, but enable it while foreground commands are
> running? Sometimes I use [Ctrl+s] to pause verbose output of some tool. On
> the other hand I do not mind to use forward search in readline history.

In theory... you could run "stty -ixon" in the PROMPT_COMMAND variable,
and "stty ixon" in a DEBUG trap.

The DEBUG trap is run before each command, and the PROMPT_COMMAND
commands are run before displaying the prompt.  So, it *should* work,
as long as you're aware that commands might change the terminal modes
themselves, and you aren't using DEBUG for anything else that would
interfere.



Re: stty permanently undef "start"

2024-07-11 Thread Max Nikulin

On 10/07/2024 20:55, Greg Wooledge wrote:

 test -t 0 && stty -ixon


I have a question opposite to the original one. Is it possible to 
disable xon for bash prompt, but enable it while foreground 
commands are running? Sometimes I use [Ctrl+s] to pause verbose output 
of some tool. On the other hand I do not mind to use forward search in 
readline history.


I have in mind a wrapper scripts that disables ixon while applications 
like rtorrent are running. For emacs it should be some elisp code since 
ixon should be active for "emacs -batch".


Can xon/xoff be managed from terminal application menu rather than from 
inside of the terminal? It may be alternative to shell-specific feature.




Re: bluetooth que no empareja

2024-07-11 Thread hubble
On Thu, 11 Jul 2024 08:43:14 +0200
Camaleón  wrote:

> El 2024-07-10 a las 20:54 +0200, hubble escribió:
> 
> > Hola,
> > Actualicé de Bullseye a bookworm hace unos meses en un ordenador algo viejo 
> > ya que no cuenta con bluetooth incorporado, utilizo un usb-bluetooth para 
> > oir audio en un altavoz bluetooth. Hasta la actualización el bluetooth 
> > funcionaba correctamente.
> > 
> > Creí que el bluetooth se rompió  el día que no conseguía emparejarse (Ha 
> > fallado la configuración del dispositivo, decía un mensaje de error cuando 
> > intentaba emparejar).
> > 
> > Compré otro dispositivo usb-bluetooth y para mi sorpresa fallaba en lo 
> > mismo (Ha fallado la configuración del dispositivo, decía un mensaje de 
> > error).
> > 
> > Fuí al portatil (desactive el bluetooth nativo) y allí sí que funciona.
> > 
> > Eso me ha hecho deducir que el fallo está en mi sistema de escritorio. 
> > 
> > La única cosa que he sabido hacer es mirar el estado del servidor:
> > --
> > ~# systemctl status bluetooth.service 
> > ● bluetooth.service - Bluetooth service
> >  Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; 
> > preset: enabled)
> >  Active: active (running) since Wed 2024-07-10 19:50:56 CEST; 1min 44s 
> > ago
> >Docs: man:bluetoothd(8)
> >Main PID: 8719 (bluetoothd)
> >  Status: "Running"
> >   Tasks: 1 (limit: 4513)
> >  Memory: 912.0K
> > CPU: 48ms
> >  CGroup: /system.slice/bluetooth.service
> >  └─8719 /usr/libexec/bluetooth/bluetoothd
> > 
> > de jul. 10 19:50:56 migjorn bluetoothd[8719]: Starting SDP server
> > de jul. 10 19:50:56 migjorn bluetoothd[8719]: 
> > profiles/audio/vcp.c:vcp_init() D-Bus experimental not enabled
> > de jul. 10 19:50:56 migjorn bluetoothd[8719]: src/plugin.c:plugin_init() 
> > Failed to init vcp plugin
> > de jul. 10 19:50:56 migjorn bluetoothd[8719]: 
> > profiles/audio/mcp.c:mcp_init() D-Bus experimental not enabled
> > de jul. 10 19:50:56 migjorn bluetoothd[8719]: src/plugin.c:plugin_init() 
> > Failed to init mcp plugin
> > de jul. 10 19:50:56 migjorn bluetoothd[8719]: 
> > profiles/audio/bap.c:bap_init() D-Bus experimental not enabled
> > de jul. 10 19:50:56 migjorn bluetoothd[8719]: src/plugin.c:plugin_init() 
> > Failed to init bap plugin
> > de jul. 10 19:50:56 migjorn bluetoothd[8719]: Bluetooth management 
> > interface 1.22 initialized
> > de jul. 10 19:51:14 migjorn bluetoothd[8719]: 
> > profiles/sap/server.c:sap_server_register() Sap driver initialization 
> > failed.
> > de jul. 10 19:51:14 migjorn bluetoothd[8719]: sap-server: Operation not 
> > permitted (1)
> 
> ^^^
> 
> (...)
> 
> Ese mensaje puede ser signficativo.
> 
> > Así que sí, encuentro errores.
> > 
> > He reinstalado bluez bluez-obexd bluedevil, sin éxito.
> > 
> > A ver si a alguien se le ocurre por donde puedo tirar para solucionarlo.
> 
> Te paso algunos enlaces que te pueden servir:
> 
> Bluetooth speaker no sound. Sap driver initialization failed
> https://forums.bunsenlabs.org/viewtopic.php?id=7910
> 
> [SOLVED]Can't Pair Bluetooth Devices
> https://forums.debian.net/viewtopic.php?t=151557
> 
> [Testing - Bookworm] Bluetooth stopped working after upgrade [solved]
> https://forums.debian.net/viewtopic.php?t=154544
> 
> Pero en Google encuentras muchos más: 
> 
> https://www.google.com/search?q=Sap+driver+initialization+failed
> 
> Saludos,
> 
> -- 
> Camaleón 
> 

Muchas gracias Camaleon, pero dado el atino de Fernando C. Estrada ya no me ha 
hecho falta indagar más.

Gracias.


-- 
hubble 



[SOLUCIONADO] Re: bluetooth que no empareja

2024-07-11 Thread hubble
On Thu, 11 Jul 2024 01:56:34 +
"Fernando C. Estrada"  wrote:

> El miércoles, 10 de julio de 2024 a las 12:54 PM, hubble 
>  escribió:
> 
> > Actualicé de Bullseye a bookworm hace unos meses en un ordenador algo viejo 
> > ya que no cuenta con bluetooth incorporado, utilizo un usb-bluetooth para 
> > oir audio en un altavoz bluetooth. Hasta la actualización el bluetooth 
> > funcionaba correctamente.
> 
> > 2024-07-10T12:56:03.905931+02:00 migjorn wireplumber[1836]: SPA handle 
> > 'api.bluez5.enum.dbus' could not be loaded; is it installed?
> 
> > A ver si a alguien se le ocurre por donde puedo tirar para solucionarlo.
> 
> Intenta instalando "libspa-0.2-bluetooth" y nos cuentas.
> 
> Saludos,
> 



   _   
  | |  
  ___ | | __ _ 
 / _ \| |/ _` |
| (_) | | (_| |
 \___/|_|\__,_|

Bueno, no sabía cómo hacer la ola en un email, creo que esta manera es correcta.

La has clavado a la primera, ha sido instalar "libspa-0.2-bluetooth" y NO ha 
funcionado. Con tal de darle un poco de confianza he reiniciado "et voilà" ya 
funciona!

Muchas gracias Fernando 8-)



-- 
hubble 



Re: OT: Thunderbird - Emparejar hilos de correo

2024-07-11 Thread Camaleón
El 2024-07-11 a las 08:47 -0400, Roberto C. Sánchez escribió:

> On Thu, Jul 11, 2024 at 09:44:57AM -0300, Javier ArgentinaBBAR wrote:
> > Buenos días.
> > 
> > Esto es totalmente OT, pero es una cosa que se me ha ocurrido, por si
> > alguien sabe si existe, pues no encuentro forma de hacerlo.
> > 
> > Hay gente que tiene la maldita costumbre de responder correos (mi
> > correo A) con un nuevo correo (el correo X), es decir, en vez de
> > pulsar "Responder", o aunque más no sea "Reenviar", hacen un correo
> > nuevo, por lo que se pierde el hilo, y la poderosísima herramienta
> > "Abrir mensaje en conversación" de Thunderbird, se me va al caño.
> > 
> > Pregunta:
> > ¿Existe alguna forma de hacer que un correo X pueda pasar a formar
> > parte del hilo de un correo A preexistente?
> > 
> > Saludos y gracias de antemano.
> > 
> https://bugzilla.mozilla.org/show_bug.cgi?id=36024
> 
> Lleva 25 años abierto ese bug.
> 
> Me parece que nos hará falta seguir esperando. :-/

Y la medalla de oro en la categoría de _clientes de correo electrónico_ 
es para (bum, bumm, bummm, bummm). 

¡¡¡ Mutt !!! 磊  

:-)


http://www.mutt.org/doc/manual/#editing-threads

14.2. Breaking Threads

On mailing lists, some people are in the bad habit of starting a new 
discussion by hitting “reply” to any message from the list and changing 
the subject to a totally unrelated one. You can fix such threads by 
using the  function (bound by default to #), which will 
turn the subthread starting from the current message into a whole 
different thread. 
***

Bonus track → _Mutt 1.0 was released on October 22, 1999._

Saludos,

-- 
Camaleón 



Re: General questions

2024-07-11 Thread Dan Purgert
On Jul 11, 2024, Greg Wooledge wrote:
> On Thu, Jul 11, 2024 at 17:23:43 +0500, 타토카 wrote:
> > But, what do you mean: "Because you haven't established a chain of trust
> > from yourself to any of the signatures."
> 
> Imagine someone walks up to you on the street and hands you a contract,
> which is signed by someone you've never heard of.
> 
> You don't know the guy who gave you the contract.  You've never seen him
> before.  So, you don't trust him. [...]

I always liked the analogy of schoolwork / notes.

Say you missed last Friday's class, and you need the notes (where "the
notes" correspond to "the pgp key in question").

Scenario A: "untrusted" ("website with a link / posted fingerprint")
You run into someone from class, who you don't really know all that
well, but you do know they answer the professor pretty often (and
correctly at that).  

Scenario B: "web of trust" ("one or more trusted signatures on that key")
Nearly the same as "A", but the other person is a friend-of-a-friend.
You can ask your friend when you meet them for lunch if you can trust
the classmate's notes.

Scenario C: "fully trusted" ("you made the effort to verify the owner")
You ask you best friend since second grade for their notes.  You know
they've been an "A" student since forever, and they take amazing notes.



-- 
|_|O|_| 
|_|_|O| Github: https://github.com/dpurgert
|O|O|O| PGP: DDAB 23FB 19FA 7D85 1CC1  E067 6D65 70E5 4CE7 2860


signature.asc
Description: PGP signature


Re: OT: Thunderbird - Emparejar hilos de correo

2024-07-11 Thread Javier ArgentinaBBAR
El jue, 11 jul 2024 a las 9:48, Roberto C. Sánchez
() escribió:
>
> On Thu, Jul 11, 2024 at 09:44:57AM -0300, Javier ArgentinaBBAR wrote:
> > Buenos días.
> >
> > Esto es totalmente OT, pero es una cosa que se me ha ocurrido, por si
> > alguien sabe si existe, pues no encuentro forma de hacerlo.
> >
> > Hay gente que tiene la maldita costumbre de responder correos (mi
> > correo A) con un nuevo correo (el correo X), es decir, en vez de
> > pulsar "Responder", o aunque más no sea "Reenviar", hacen un correo
> > nuevo, por lo que se pierde el hilo, y la poderosísima herramienta
> > "Abrir mensaje en conversación" de Thunderbird, se me va al caño.
> >
> > Pregunta:
> > ¿Existe alguna forma de hacer que un correo X pueda pasar a formar
> > parte del hilo de un correo A preexistente?
> >
> > Saludos y gracias de antemano.
> >
> https://bugzilla.mozilla.org/show_bug.cgi?id=36024
>
> Lleva 25 años abierto ese bug.
>
> Me parece que nos hará falta seguir esperando. :-/
>
> Saludos,
>
> -Roberto
>
> --
> Roberto C. Sánchez
>

¡Dios!, y yo que creía ser "original" en la pregunta.
¡25 años! Bodas de plata. Habría que hacer fiestita.

JAP



Re: OT: Thunderbird - Emparejar hilos de correo

2024-07-11 Thread Roberto C . Sánchez
On Thu, Jul 11, 2024 at 09:44:57AM -0300, Javier ArgentinaBBAR wrote:
> Buenos días.
> 
> Esto es totalmente OT, pero es una cosa que se me ha ocurrido, por si
> alguien sabe si existe, pues no encuentro forma de hacerlo.
> 
> Hay gente que tiene la maldita costumbre de responder correos (mi
> correo A) con un nuevo correo (el correo X), es decir, en vez de
> pulsar "Responder", o aunque más no sea "Reenviar", hacen un correo
> nuevo, por lo que se pierde el hilo, y la poderosísima herramienta
> "Abrir mensaje en conversación" de Thunderbird, se me va al caño.
> 
> Pregunta:
> ¿Existe alguna forma de hacer que un correo X pueda pasar a formar
> parte del hilo de un correo A preexistente?
> 
> Saludos y gracias de antemano.
> 
https://bugzilla.mozilla.org/show_bug.cgi?id=36024

Lleva 25 años abierto ese bug.

Me parece que nos hará falta seguir esperando. :-/

Saludos,

-Roberto

-- 
Roberto C. Sánchez



OT: Thunderbird - Emparejar hilos de correo

2024-07-11 Thread Javier ArgentinaBBAR
Buenos días.

Esto es totalmente OT, pero es una cosa que se me ha ocurrido, por si
alguien sabe si existe, pues no encuentro forma de hacerlo.

Hay gente que tiene la maldita costumbre de responder correos (mi
correo A) con un nuevo correo (el correo X), es decir, en vez de
pulsar "Responder", o aunque más no sea "Reenviar", hacen un correo
nuevo, por lo que se pierde el hilo, y la poderosísima herramienta
"Abrir mensaje en conversación" de Thunderbird, se me va al caño.

Pregunta:
¿Existe alguna forma de hacer que un correo X pueda pasar a formar
parte del hilo de un correo A preexistente?

Saludos y gracias de antemano.

JAP



Re: General questions

2024-07-11 Thread Greg Wooledge
On Thu, Jul 11, 2024 at 17:23:43 +0500, 타토카 wrote:
> But, what do you mean: "Because you haven't established a chain of trust
> from yourself to any of the signatures."

Imagine someone walks up to you on the street and hands you a contract,
which is signed by someone you've never heard of.

You don't know the guy who gave you the contract.  You've never seen him
before.  So, you don't trust him.

You can do a little bit of research on the person whose signature is on
the contract.  Maybe she's famous.  You look her up on the Internet, and
it turns out that she's well known in certain circles.  If her signature
is on this contract, then the contract is probably worth something.

But how do you know whether this is really her signature, or a forgery?

If you knew her in person, you could go to her office, ask her to sign
something in your presence, and compare her signature to the one you see
on the contract.

But you don't know her in person.  She lives really far away, and she's
too important and too busy to want to spend a lot of time signing blank
pieces of paper for people like you anyway.

But maybe you know someone who knows her.  Your lawyer friend -- maybe
he's worked with her before.  He might know what her signature looks
like.  He might be able to tell you whether the signature on the contract
is valid.

So, you go to your lawyer friend, and you show him the contract, and
he says "Yeah, that looks legit."

Now you know what her signature looks like, or at least you've got
verification from a source that you trust.

> Is it only for Debian developers? And is it very important?

In theory, anybody can attend a key signing party, and get in-person
verification of various GPG keys.  Once you've got a few keys from
people that you trust, your web of trust expands.

If you've got a trusted key from Joe Smith, and Joe Smith says he
trusts a key belonging to Sara Jones, and Sara Jones says she trusts
the Debian signing key that you're trying to verify, then you have a
chain of trust from yourself, to Joe, to Sara, to the Debian key.

In practice, very few people do this, because it's a LOT of effort.



Re: General questions

2024-07-11 Thread Thomas Schmitt
Hi,

cybertat...@gmail.com wrote:
> gpg: WARNING: This key is not certified with a trusted signature!

That's normal. The concept of a "web of trust" suffers from the fact
that most people which i know good enough to trust them in general
have no idea of PGP and thus are not really trustworthy in special.
  https://en.wikipedia.org/wiki/Web_of_trust

The best verification you can get outside the web of trust is the
key fingerprint which must match one of the published fingerprints on
  https://www.debian.org/CD/verify
I deem them trustworthy because they did not change in years.

(Cryptographers might object that old keys are poor keys. But they will
also be right with telling you that cryptography is a minefield and thus
amateurs like us should stay away from it.)


> And can you explain to me what is it, please?
> $ alias | grep sha
> alias sha1='/usr/bin/openssl dgst -sha1 '
> alias sha256='/usr/bin/openssl dgst -sha256 '
> alias sha512='/usr/bin/openssl dgst -sha512 '

Shell commands "sha1", "sha256", and "sha512" were somewhere defined to
actually be runs of program /usr/bin/openssl with the checksum algorithms
given by the command names.

Usually people get told to use shell commands "sha256sum" and "sha512sum"
which are supposed to run the programs /usr/bin/sha256sum and
/usr/bin/sha512sum from package "coreutils".

In order to find out from where the "alias" definitions stem, you will
have to check the startup scripts of your shell. Like ~/.bashrc .


Have a nice day :)

Thomas



Re: General questions

2024-07-11 Thread 타토카
Ok, I think this is really enough for verification ( Maybe (^_^) ).
But, what do you mean: "Because you haven't established a chain of trust
from yourself to any of the signatures."
Is it only for Debian developers? And is it very important?

On Thu, Jul 11, 2024 at 4:58 PM Greg Wooledge  wrote:

> On Thu, Jul 11, 2024 at 16:47:45 +0500, 타토카 wrote:
> > Why 64 signatures not checked and no ultimately trusted keys found here:
> > $ gpg --import key-DA87E80D6294BE9B.txt
> > gpg: key DA87E80D6294BE9B: 64 signatures not checked due to missing keys
> > gpg: key DA87E80D6294BE9B: public key "Debian CD signing key
> > " imported
> > gpg: Total number processed: 1
> > gpg:   imported: 1
> > gpg: no ultimately trusted keys found
> >
> > And this:
> > gpg: WARNING: This key is not certified with a trusted signature!
> > gpg:  There is no indication that the signature belongs to the
> > owner.
>
> Because you haven't established a chain of trust from yourself to any
> of the signatures.
>
> You've downloaded this key from the Internet.  And it's signed by 64
> other keys.  That's all you know.  You have no idea whether any of those
> 64 signing keys are trustworthy.
>
> At some point, you have to say "This is good enough."  And then you move
> on with your life, either installing Debian from the image that you have,
> or not.
>
> You've already done far more verification than most people do.
>
>


Re: General questions

2024-07-11 Thread Greg Wooledge
On Thu, Jul 11, 2024 at 16:47:45 +0500, 타토카 wrote:
> Why 64 signatures not checked and no ultimately trusted keys found here:
> $ gpg --import key-DA87E80D6294BE9B.txt
> gpg: key DA87E80D6294BE9B: 64 signatures not checked due to missing keys
> gpg: key DA87E80D6294BE9B: public key "Debian CD signing key
> " imported
> gpg: Total number processed: 1
> gpg:   imported: 1
> gpg: no ultimately trusted keys found
> 
> And this:
> gpg: WARNING: This key is not certified with a trusted signature!
> gpg:  There is no indication that the signature belongs to the
> owner.

Because you haven't established a chain of trust from yourself to any
of the signatures.

You've downloaded this key from the Internet.  And it's signed by 64
other keys.  That's all you know.  You have no idea whether any of those
64 signing keys are trustworthy.

At some point, you have to say "This is good enough."  And then you move
on with your life, either installing Debian from the image that you have,
or not.

You've already done far more verification than most people do.



Re: General questions

2024-07-11 Thread 타토카
And can you explain to me what is it, please? *

$ alias | grep sha
alias sha1='/usr/bin/openssl dgst -sha1 '
alias sha256='/usr/bin/openssl dgst -sha256 '
alias sha512='/usr/bin/openssl dgst -sha512 '

On Thu, Jul 11, 2024 at 4:47 PM 타토카  wrote:

> Why 64 signatures not checked and no ultimately trusted keys found here:
> $ gpg --import key-DA87E80D6294BE9B.txt
> gpg: key DA87E80D6294BE9B: 64 signatures not checked due to missing keys
> gpg: key DA87E80D6294BE9B: public key "Debian CD signing key
> " imported
> gpg: Total number processed: 1
> gpg:   imported: 1
> gpg: no ultimately trusted keys found
>
> And this:
> gpg: WARNING: This key is not certified with a trusted signature!
> gpg:  There is no indication that the signature belongs to the
> owner.
>
> This is weird. Why Fedora does not have this, but Debian does.
>
> And can you explain to me what is it, please?
>
> On Thu, Jul 11, 2024 at 4:00 AM Lee  wrote:
>
>> On Wed, Jul 10, 2024 at 6:07 PM 타토카  wrote:
>> >
>> > Hello, dear Debian Community.
>> >
>> > I just wanted to check a key with GPG.
>> >
>> > I have found this on https://www.debian.org/CD/verify:
>> >
>> > pub   rsa4096/DA87E80D6294BE9B 2011-01-05 [SC]
>> >
>> > Key fingerprint = DF9B 9C49 EAA9 2984 3258  9D76 DA87 E80D 6294 BE9B
>> >
>> > uid  Debian CD signing key 
>> >
>> >
>> > How can I download this key for GPG checking?
>>
>> Click on the link, that takes you to
>>   https://www.debian.org/CD/key-DA87E80D6294BE9B.txt
>> and save the file.  Then gpg --import it
>>
>> $ gpg --import key-DA87E80D6294BE9B.txt
>> gpg: key DA87E80D6294BE9B: 64 signatures not checked due to missing keys
>> gpg: key DA87E80D6294BE9B: public key "Debian CD signing key
>> " imported
>> gpg: Total number processed: 1
>> gpg:   imported: 1
>> gpg: no ultimately trusted keys found
>>
>> hrmmm... 64 signatures not checked due to missing keys due to missing
>> keys doesn't look good, but you've got the key now.
>>
>> I checked by going to
>> http://mirror.us.leaseweb.net/debian-cd/12.6.0/amd64/iso-dvd/ and got
>> the SHA512SUMS and SHA512SUMS.sign files.
>> Verify them by
>>
>> $ gpg --verify SHA512SUMS.sign SHA512SUMS
>> gpg: Signature made Sat Jun 29 16:50:24 2024 EDT
>> gpg:using RSA key DF9B9C49EAA9298432589D76DA87E80D6294BE9B
>> gpg: Good signature from "Debian CD signing key
>> " [unknown]
>> gpg: WARNING: This key is not certified with a trusted signature!
>> gpg:  There is no indication that the signature belongs to the
>> owner.
>> Primary key fingerprint: DF9B 9C49 EAA9 2984 3258  9D76 DA87 E80D 6294
>> BE9B
>>
>> so the contents of SHA512SUMS are trustworthy.  Or as trustworthy as I
>> can verify.. somebody else hopefully knows how to get all the missing
>> keys and mark the DA87E80D6294BE9B key as trusted.
>>
>> and for whatever it's worth, I use these aliases:
>> $ alias | grep sha
>> alias sha1='/usr/bin/openssl dgst -sha1 '
>> alias sha256='/usr/bin/openssl dgst -sha256 '
>> alias sha512='/usr/bin/openssl dgst -sha512 '
>>
>> Regards,
>> Lee
>>
>


Re: General questions

2024-07-11 Thread 타토카
Why 64 signatures not checked and no ultimately trusted keys found here:
$ gpg --import key-DA87E80D6294BE9B.txt
gpg: key DA87E80D6294BE9B: 64 signatures not checked due to missing keys
gpg: key DA87E80D6294BE9B: public key "Debian CD signing key
" imported
gpg: Total number processed: 1
gpg:   imported: 1
gpg: no ultimately trusted keys found

And this:
gpg: WARNING: This key is not certified with a trusted signature!
gpg:  There is no indication that the signature belongs to the
owner.

This is weird. Why Fedora does not have this, but Debian does.

And can you explain to me what is it, please?

On Thu, Jul 11, 2024 at 4:00 AM Lee  wrote:

> On Wed, Jul 10, 2024 at 6:07 PM 타토카  wrote:
> >
> > Hello, dear Debian Community.
> >
> > I just wanted to check a key with GPG.
> >
> > I have found this on https://www.debian.org/CD/verify:
> >
> > pub   rsa4096/DA87E80D6294BE9B 2011-01-05 [SC]
> >
> > Key fingerprint = DF9B 9C49 EAA9 2984 3258  9D76 DA87 E80D 6294 BE9B
> >
> > uid  Debian CD signing key 
> >
> >
> > How can I download this key for GPG checking?
>
> Click on the link, that takes you to
>   https://www.debian.org/CD/key-DA87E80D6294BE9B.txt
> and save the file.  Then gpg --import it
>
> $ gpg --import key-DA87E80D6294BE9B.txt
> gpg: key DA87E80D6294BE9B: 64 signatures not checked due to missing keys
> gpg: key DA87E80D6294BE9B: public key "Debian CD signing key
> " imported
> gpg: Total number processed: 1
> gpg:   imported: 1
> gpg: no ultimately trusted keys found
>
> hrmmm... 64 signatures not checked due to missing keys due to missing
> keys doesn't look good, but you've got the key now.
>
> I checked by going to
> http://mirror.us.leaseweb.net/debian-cd/12.6.0/amd64/iso-dvd/ and got
> the SHA512SUMS and SHA512SUMS.sign files.
> Verify them by
>
> $ gpg --verify SHA512SUMS.sign SHA512SUMS
> gpg: Signature made Sat Jun 29 16:50:24 2024 EDT
> gpg:using RSA key DF9B9C49EAA9298432589D76DA87E80D6294BE9B
> gpg: Good signature from "Debian CD signing key
> " [unknown]
> gpg: WARNING: This key is not certified with a trusted signature!
> gpg:  There is no indication that the signature belongs to the
> owner.
> Primary key fingerprint: DF9B 9C49 EAA9 2984 3258  9D76 DA87 E80D 6294 BE9B
>
> so the contents of SHA512SUMS are trustworthy.  Or as trustworthy as I
> can verify.. somebody else hopefully knows how to get all the missing
> keys and mark the DA87E80D6294BE9B key as trusted.
>
> and for whatever it's worth, I use these aliases:
> $ alias | grep sha
> alias sha1='/usr/bin/openssl dgst -sha1 '
> alias sha256='/usr/bin/openssl dgst -sha256 '
> alias sha512='/usr/bin/openssl dgst -sha512 '
>
> Regards,
> Lee
>


Re: Debian12 with nginx and php-fpm

2024-07-11 Thread Stefano Prina

Ciao Michael,


simply the old-style /etc/init.d "start" that you show in your
post did not suffice.

I do note that you seem to have a mix of TCP ports here; both 80, 8080
(in the requested URL) and 8090 (in the podman invocation).


After your email, I double checked and I reported wrongly the port on 
the browser url.. of course there were no others containers running a 
the host


Anyway I tested the procedure using

* a vm as you did, and I confirm it is working... starting the services 
using systemd simply works.


* a vm, stopping the services using the systemd and restarting them 
using init.d and it works.


* docker running on a debian host, starting the services using init.d 
and it works.


* podman running on a debian host, starting the services using init.d 
and it works.


So case close... because the first try was running on a different 
distribution, confining all the check to debian do not reproduce the issue.


Thanks for your feedback

Stefano


Re: stty permanently undef "start"

2024-07-11 Thread Nicolas George
songbird (12024-07-10):
>   but for my own purposes i also like to do things for
> terminals when they open up (my session manager and the
> overall desktop will store multiple desktops and all of
> the terminals i have open in each of them when i ask it
> to).

This is absolutely legitimate.

Note that tings in .bashrc will not affect terminals that run directly
another program, like “xterm -e vim”.

>   then in my .bashrc file i check to see what directory
> the terminal opens in and create aliases and other things
> for the specific project that i've got in that directory.
> it's very nice to have just the aliases and environment
> variables and other commands all set up and ready to go.

This too is absolutely fine. I have even seen done this in pre-prompt
functions to have it exec when changing directory in the same shell.

>   it's not a hack

This is not the hack. The hack comes when (1) you put things to
initialize the extended environment in .bashrc, (2) you source .bashrc
when it is not sourced.

All because this idiot bash does not have a .bashenv.

Regards,

-- 
  Nicolas George



Re: question related to cp (-p) and /tmp

2024-07-11 Thread Thomas Schmitt
Hi,

Max Nikulin wrote:
> Thomas, do you have in your collection of strange files a one moved out of a
> directory encrypted using fscrypt?

Not yet. I will have to think whether such files pose any particular
backup problem.


Have a nice day :)

Thomas



Re: bluetooth que no empareja

2024-07-11 Thread Camaleón
El 2024-07-10 a las 20:54 +0200, hubble escribió:

> Hola,
> Actualicé de Bullseye a bookworm hace unos meses en un ordenador algo viejo 
> ya que no cuenta con bluetooth incorporado, utilizo un usb-bluetooth para oir 
> audio en un altavoz bluetooth. Hasta la actualización el bluetooth funcionaba 
> correctamente.
> 
> Creí que el bluetooth se rompió  el día que no conseguía emparejarse (Ha 
> fallado la configuración del dispositivo, decía un mensaje de error cuando 
> intentaba emparejar).
> 
> Compré otro dispositivo usb-bluetooth y para mi sorpresa fallaba en lo mismo 
> (Ha fallado la configuración del dispositivo, decía un mensaje de error).
> 
> Fuí al portatil (desactive el bluetooth nativo) y allí sí que funciona.
> 
> Eso me ha hecho deducir que el fallo está en mi sistema de escritorio. 
> 
> La única cosa que he sabido hacer es mirar el estado del servidor:
> --
> ~# systemctl status bluetooth.service 
> ● bluetooth.service - Bluetooth service
>  Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; preset: 
> enabled)
>  Active: active (running) since Wed 2024-07-10 19:50:56 CEST; 1min 44s ago
>Docs: man:bluetoothd(8)
>Main PID: 8719 (bluetoothd)
>  Status: "Running"
>   Tasks: 1 (limit: 4513)
>  Memory: 912.0K
> CPU: 48ms
>  CGroup: /system.slice/bluetooth.service
>  └─8719 /usr/libexec/bluetooth/bluetoothd
> 
> de jul. 10 19:50:56 migjorn bluetoothd[8719]: Starting SDP server
> de jul. 10 19:50:56 migjorn bluetoothd[8719]: profiles/audio/vcp.c:vcp_init() 
> D-Bus experimental not enabled
> de jul. 10 19:50:56 migjorn bluetoothd[8719]: src/plugin.c:plugin_init() 
> Failed to init vcp plugin
> de jul. 10 19:50:56 migjorn bluetoothd[8719]: profiles/audio/mcp.c:mcp_init() 
> D-Bus experimental not enabled
> de jul. 10 19:50:56 migjorn bluetoothd[8719]: src/plugin.c:plugin_init() 
> Failed to init mcp plugin
> de jul. 10 19:50:56 migjorn bluetoothd[8719]: profiles/audio/bap.c:bap_init() 
> D-Bus experimental not enabled
> de jul. 10 19:50:56 migjorn bluetoothd[8719]: src/plugin.c:plugin_init() 
> Failed to init bap plugin
> de jul. 10 19:50:56 migjorn bluetoothd[8719]: Bluetooth management interface 
> 1.22 initialized
> de jul. 10 19:51:14 migjorn bluetoothd[8719]: 
> profiles/sap/server.c:sap_server_register() Sap driver initialization failed.
> de jul. 10 19:51:14 migjorn bluetoothd[8719]: sap-server: Operation not 
> permitted (1)

^^^

(...)

Ese mensaje puede ser signficativo.

> Así que sí, encuentro errores.
> 
> He reinstalado bluez bluez-obexd bluedevil, sin éxito.
> 
> A ver si a alguien se le ocurre por donde puedo tirar para solucionarlo.

Te paso algunos enlaces que te pueden servir:

Bluetooth speaker no sound. Sap driver initialization failed
https://forums.bunsenlabs.org/viewtopic.php?id=7910

[SOLVED]Can't Pair Bluetooth Devices
https://forums.debian.net/viewtopic.php?t=151557

[Testing - Bookworm] Bluetooth stopped working after upgrade [solved]
https://forums.debian.net/viewtopic.php?t=154544

Pero en Google encuentras muchos más: 

https://www.google.com/search?q=Sap+driver+initialization+failed

Saludos,

-- 
Camaleón 



Re: stty permanently undef "start"

2024-07-10 Thread songbird
Greg Wooledge wrote:
...
> Sadly, the days of designing software to accomodate actual hardware
> terminals are quite far behind us.

  true.

  having been annoyed by the quit keys of Firefox i just
went and found the way to turn that off.  been burned by
that one too many times and i'd still not looked into it
but i hope now that at least i've gotten that one nixed.


  songbird



Re: [OT] Re: the 'original' string function?

2024-07-10 Thread tomas
On Wed, Jul 10, 2024 at 08:53:40PM +0200, Emanuel Berg wrote:
> Here is a piece of code after all wild ideas, but uncoded.

[...]

> ;;; -*- lexical-binding: t -*-

[...]

If you are doing this in Emacs Lisp, after all, there /is/
a Levenshtein distance function in there. Finding its name
is left as an exercise to the reader, though...

Cheers

(I always found standard Levenshtein distances to be just
a tiny step of a powerful generalisation, by being able to
assign weights to the substitutions, but that's me)

-- 
t


signature.asc
Description: PGP signature


Re: question related to cp (-p) and /tmp

2024-07-10 Thread Max Nikulin

On 10/07/2024 08:48, Greg Wooledge wrote:

On Wed, Jul 10, 2024 at 08:20:23 +0700, Max Nikulin wrote:

On 10/07/2024 02:35, Thomas Schmitt wrote:


setfattr -n system.nfs4_acl -v 
'\0\0\0\3\0\0\0\0\0\0\0\0\0\26\1\247\0\0\0\6OWNER@\0\0\0\0\0' /tmp/x


Shell does not interpret backslashes in single (and double) quotes. $'\0...'
might be better


You cannot pass raw NUL bytes as an argument to a program.


Thanks. For some reason I believed that either execve or a similar 
system call may pass arguments directly without copy relying on 
NULL-terminating strings. Even if it were working, started program would 
have to obtain actual length e.g. from another argument. Dealing with 
high level languages tracking string length last time caused partial 
blindness.


Of course, I was unaware of that setfacl may treat escaping internally.

P.S.
Thomas, do you have in your collection of strange files a one moved out 
of a directory encrypted using fscrypt? When the directory is locked, 
attempts to read file cause "Required key not available" errors. There 
is no tool to find what particular key should be added to keyring


https://docs.kernel.org//filesystems/fscrypt.html#encryption-context

It is up to individual filesystems to decide where to store it, but
normally it would be stored in a hidden extended attribute. It should
not be exposed by the xattr-related system calls such as getxattr() and
setxattr()...


so getfattr reports nothing.



Re: bluetooth que no empareja

2024-07-10 Thread Fernando C. Estrada
El miércoles, 10 de julio de 2024 a las 12:54 PM, hubble 
 escribió:

> Actualicé de Bullseye a bookworm hace unos meses en un ordenador algo viejo 
> ya que no cuenta con bluetooth incorporado, utilizo un usb-bluetooth para oir 
> audio en un altavoz bluetooth. Hasta la actualización el bluetooth funcionaba 
> correctamente.

> 2024-07-10T12:56:03.905931+02:00 migjorn wireplumber[1836]: SPA handle 
> 'api.bluez5.enum.dbus' could not be loaded; is it installed?

> A ver si a alguien se le ocurre por donde puedo tirar para solucionarlo.

Intenta instalando "libspa-0.2-bluetooth" y nos cuentas.

Saludos,



Re: stty permanently undef "start"

2024-07-10 Thread eben

On 7/10/24 21:18, Greg Wooledge wrote:

On Wed, Jul 10, 2024 at 21:01:41 -0400, e...@gmx.us wrote:

On 7/10/24 18:57, Greg Wooledge wrote:

On Wed, Jul 10, 2024 at 18:39:38 -0400, songbird wrote:

that is a strange choice of termination and i would
actually consider it a bug in rtorrent, ESC or Ctrl-C
should work for that purpose.


Emacs and bash both use Ctrl-S to do stuff, and in both cases, you need
to reconfigure your (virtual) terminal via stty(1) or equivalent to
disable XOFF/XON flow control before it'll work.

I'm sure these aren't the only three terminal programs that use ^S and/or
^Q as key bindings, under the assumption that you can press those keys
without triggering flow control.  They're the only ones I'm currently
aware of, but I'd be shocked if there aren't more.


^Q also quits LibreOffice apps, Thunderbird, Firefox, Pluma, and GIMP.


Those are all X11 clients, though, yes?  It's a completely different
story compared to terminal programs.


Ah yes, it'd be a weird choice for a terminal app.

--
LEO:  Now is not a good time to photocopy your butt and staple it
to your boss' face, oh no.  Eat a bucket of tuna-flavored pudding
and wash it down with a gallon of strawberry Quik.  -- Weird Al



Re: Program Not Showing Up in Menu

2024-07-10 Thread Patrick Wayodi
Thanks. You're right, I should've read the full description of the program.

On Thu, Jul 11, 2024 at 3:29 AM Dan Ritter  wrote:

> Patrick Wayodi wrote:
> > I have installed a program but it's not showing up in the Applications
> > menu. The program is called Monero. I installed it using these commands:
> > sudo apt-get update
> > sudo apt-get install monero
>
> That's because it has no graphical interface. It's a daemon plus
> command line tools.
>
> -dsr-
>


Re: stty permanently undef "start"

2024-07-10 Thread Greg Wooledge
On Wed, Jul 10, 2024 at 21:01:41 -0400, e...@gmx.us wrote:
> On 7/10/24 18:57, Greg Wooledge wrote:
> > On Wed, Jul 10, 2024 at 18:39:38 -0400, songbird wrote:
> > >that is a strange choice of termination and i would
> > > actually consider it a bug in rtorrent, ESC or Ctrl-C
> > > should work for that purpose.
> > 
> > Emacs and bash both use Ctrl-S to do stuff, and in both cases, you need
> > to reconfigure your (virtual) terminal via stty(1) or equivalent to
> > disable XOFF/XON flow control before it'll work.
> > 
> > I'm sure these aren't the only three terminal programs that use ^S and/or
> > ^Q as key bindings, under the assumption that you can press those keys
> > without triggering flow control.  They're the only ones I'm currently
> > aware of, but I'd be shocked if there aren't more.
> 
> ^Q also quits LibreOffice apps, Thunderbird, Firefox, Pluma, and GIMP.

Those are all X11 clients, though, yes?  It's a completely different
story compared to terminal programs.



Re: [OT] Re: the 'original' string function?

2024-07-10 Thread jeremy ardley




On 10/7/24 23:41, Emanuel Berg wrote:

jeremy ardley wrote:


The modern way would be to use a LLM in API mode and set
a context to achieve your aims.


Here is the command. Turns out, I used the llamafile method
with llava or mistral as LLMs.

In the command, we see '-c 2048'. This, says the man file, is
to "Set the size of the prompt context." If the unit is bytes
(chars) it isn't a lot.

But then note '--prompt-cache-all' so what you do can be saved
and brought back.

While this I'm sure is enough for a lot of use cases, here we
envision a huge backlog file, obviously it cannot be loaded in
chunks of 2048 chars at the time.

I also provide a CLI but REPL version for people who would
care to experiment. But neither method will work for this,
at least not in their present form.

llm is a link so you can alternate between llava and mistral
as LLM :)

taskset -c 0-2   \
./llm\
   --cli  \
   --log-disable  \
   --prompt-cache-all \
   --silent-prompt\
   -c 2048\
   -ngl   \
   -p "$(cat $src)" > $dst

./llm \
 --cli   \
 --color \
 --log-disable   \
 --silent-prompt \
 -cml\
 -i  \
 -ld log \

Versions are:

$ mistral-7b-instruct-v0.2.Q5_K_M.llamafile --version
llamafile v0.8.5 (Apache License 2.0)

llava-v1.5-7b-q4.llamafile

Apache License 2.0 is FOSS so this is all CLI, all local and
free. If it can be made to work for this, maybe people would
be happy about it all tho there isn't an old school algorithm
which is deterministic and you can fiddle with until it is
just right, so you are missing that out unfortunately.




I asked ChatGPT4 about this using your original email as a prompt. It 
came back with a solution based on how LLMs are trained but it would 
have required some development. The many-dimensional vector comparison 
mechanisms used in LLMs do seem quite well matched to what you want to do.


In your case, without fully knowing precisely what your aim is, one 
possible approach is to put all the text you want to search into a 
GPT4All localdocs directory where it will be indexed on the fly. Then 
create a prompt/context with the search text and instructions to 
generate a similarity index and report any that meet some threshold.


You will have to get the results in some format such as json and post 
process


You may want to get ChatGPT 4 to help you craft the general prompt.

For reference, I have GPT4All and am planning to use its localdocs 
feature with man page text. That will ensure that answers it gives on 
technical questions will at least quote the man pages accurately.




Re: stty permanently undef "start"

2024-07-10 Thread eben

On 7/10/24 18:57, Greg Wooledge wrote:

On Wed, Jul 10, 2024 at 18:39:38 -0400, songbird wrote:

   that is a strange choice of termination and i would
actually consider it a bug in rtorrent, ESC or Ctrl-C
should work for that purpose.


Emacs and bash both use Ctrl-S to do stuff, and in both cases, you need
to reconfigure your (virtual) terminal via stty(1) or equivalent to
disable XOFF/XON flow control before it'll work.

I'm sure these aren't the only three terminal programs that use ^S and/or
^Q as key bindings, under the assumption that you can press those keys
without triggering flow control.  They're the only ones I'm currently
aware of, but I'd be shocked if there aren't more.


^Q also quits LibreOffice apps, Thunderbird, Firefox, Pluma, and GIMP.

--
  "God does not play dice" -- Einstein
   "Not only does God play dice, he sometimes throws
   them where they can't be seen." -- Stephen Hawking



Re: Program Not Showing Up in Menu

2024-07-10 Thread Dan Ritter
Patrick Wayodi wrote: 
> I have installed a program but it's not showing up in the Applications
> menu. The program is called Monero. I installed it using these commands:
> sudo apt-get update
> sudo apt-get install monero

That's because it has no graphical interface. It's a daemon plus
command line tools.

-dsr-



Re: [SOLVED] Re: Creating PDF/A from LaTeX source and from existing PDF

2024-07-10 Thread Max Nikulin

On 10/07/2024 15:37, Ceppo wrote:

but I couldn't build a working gs command.

[...]

[1]: https://github.com/qpdf/qpdf/issues/85


There is a link to gs arguments





Program Not Showing Up in Menu

2024-07-10 Thread Patrick Wayodi
I have installed a program but it's not showing up in the Applications
menu. The program is called Monero. I installed it using these commands:
sudo apt-get update
sudo apt-get install monero


Re: ask for drivers

2024-07-10 Thread Dan Ritter
Jeff Pang wrote: 
> greetings,
> 
> I am trying to install Debian on my counterfeit pad. Do you know where to
> find touch screen drivers?

Can you run lsusb and lspci or otherwise provide details on what
hardware is installed? 

cat /proc/bus/input/devices 
might be of use.

X11 touch screen input is normally handled by an xinput driver;
not all of them are installed by default when you install xorg.

-dsr-



Re: Security Flaw:

2024-07-10 Thread David Christensen

On 7/9/24 23:34, Richard Bostrom wrote:

I cannot update my passphrase in crypttab although the passphrase is updated in 
the OS I cannot enter my OS without using the latest passphrase.

Yours sincerely
Richardh Bostrom



Passphrases in crypttab(5) are for disks, disk partitions, virtual 
devices, etc., and are unrelated to user passwords.  Changing one does 
not affect the other, and vice versa.



If you are using LUKS to encrypt a partition, LUKS supports more than 
one passphrase.  See cryptsetup(8).  To change the passphrase, I would 
add the new passphrase, reboot, and enter the new passphrase to verify. 
When you are confident the new passphrase works, delete the old passphrase.



David



Re: stty permanently undef "start"

2024-07-10 Thread songbird
Nicolas George wrote:
> Greg Wooledge (12024-07-10):
>> There are many legitimate or semi-legitimate situations where a .bashrc
>> file might be read by a shell that's not running inside a terminal.
>> 
>> One of them is if someone chooses to dot in ~/.profile from their
>> ~/.xsession file, or something analogous to it.  Or perhaps their
>> operating system does this automatically in certain kinds of login.
>> 
>> Another might be a scripted ssh session being run from cron, or some
>> other parent that's not in a terminal.  Analogously, the ancient
>> predecessors of ssh (rsh, rexec) had exactly the same issues.
>
> What you describe is not legitimate, even semi-, these are hacks by
> people who cannot be bothered to organize their configuration properly.

  i see no problem with that at all.

  but for my own purposes i also like to do things for
terminals when they open up (my session manager and the
overall desktop will store multiple desktops and all of
the terminals i have open in each of them when i ask it
to).

  then in my .bashrc file i check to see what directory
the terminal opens in and create aliases and other things
for the specific project that i've got in that directory.
it's very nice to have just the aliases and environment
variables and other commands all set up and ready to go.

  it's not a hack, it's a way of being efficient and
working the way that suits me.  it also helps eliminate
some problems because i can also set my various PATH
environment variables to just what is needed and not
any thing more.

...


  songbird



Re: General questions

2024-07-10 Thread Lee
On Wed, Jul 10, 2024 at 6:07 PM 타토카  wrote:
>
> Hello, dear Debian Community.
>
> I just wanted to check a key with GPG.
>
> I have found this on https://www.debian.org/CD/verify:
>
> pub   rsa4096/DA87E80D6294BE9B 2011-01-05 [SC]
>
> Key fingerprint = DF9B 9C49 EAA9 2984 3258  9D76 DA87 E80D 6294 BE9B
>
> uid  Debian CD signing key 
>
>
> How can I download this key for GPG checking?

Click on the link, that takes you to
  https://www.debian.org/CD/key-DA87E80D6294BE9B.txt
and save the file.  Then gpg --import it

$ gpg --import key-DA87E80D6294BE9B.txt
gpg: key DA87E80D6294BE9B: 64 signatures not checked due to missing keys
gpg: key DA87E80D6294BE9B: public key "Debian CD signing key
" imported
gpg: Total number processed: 1
gpg:   imported: 1
gpg: no ultimately trusted keys found

hrmmm... 64 signatures not checked due to missing keys due to missing
keys doesn't look good, but you've got the key now.

I checked by going to
http://mirror.us.leaseweb.net/debian-cd/12.6.0/amd64/iso-dvd/ and got
the SHA512SUMS and SHA512SUMS.sign files.
Verify them by

$ gpg --verify SHA512SUMS.sign SHA512SUMS
gpg: Signature made Sat Jun 29 16:50:24 2024 EDT
gpg:using RSA key DF9B9C49EAA9298432589D76DA87E80D6294BE9B
gpg: Good signature from "Debian CD signing key
" [unknown]
gpg: WARNING: This key is not certified with a trusted signature!
gpg:  There is no indication that the signature belongs to the owner.
Primary key fingerprint: DF9B 9C49 EAA9 2984 3258  9D76 DA87 E80D 6294 BE9B

so the contents of SHA512SUMS are trustworthy.  Or as trustworthy as I
can verify.. somebody else hopefully knows how to get all the missing
keys and mark the DA87E80D6294BE9B key as trusted.

and for whatever it's worth, I use these aliases:
$ alias | grep sha
alias sha1='/usr/bin/openssl dgst -sha1 '
alias sha256='/usr/bin/openssl dgst -sha256 '
alias sha512='/usr/bin/openssl dgst -sha512 '

Regards,
Lee



Re: stty permanently undef "start"

2024-07-10 Thread Greg Wooledge
On Wed, Jul 10, 2024 at 18:39:38 -0400, songbird wrote:
> Franco Martelli wrote:
> > Hi everybody,
> >
> > I sometime use "rtorrent" (apt show rtorrent) to download isos and other 
> > big files. It happens that when I had to quit rtorrent by press Ctrl-Q I 
> > cannot because the key combination Ctrl-Q is trapped by the console due 
> > to "stty" default configuration:
> 
>   that is a strange choice of termination and i would
> actually consider it a bug in rtorrent, ESC or Ctrl-C
> should work for that purpose.

Emacs and bash both use Ctrl-S to do stuff, and in both cases, you need
to reconfigure your (virtual) terminal via stty(1) or equivalent to
disable XOFF/XON flow control before it'll work.

I'm sure these aren't the only three terminal programs that use ^S and/or
^Q as key bindings, under the assumption that you can press those keys
without triggering flow control.  They're the only ones I'm currently
aware of, but I'd be shocked if there aren't more.

Sadly, the days of designing software to accomodate actual hardware
terminals are quite far behind us.



Re: NetworkManager with dnsmasq caching NXDOMAIN response of router

2024-07-10 Thread songbird
Greg Wooledge wrote:
> On Wed, Jul 10, 2024 at 15:11:20 +0200, Detlef Vollmann wrote:
>> NetworkManager is the "default" (whatever "default" means) as it serves
>> well the need of many users to connect a client machine to the Internet.
>
> It's only the "default" if a Desktop Environment is installed.  On a
> Standard Debian installation (e.g. one you'd use for servers), NM is
> not installed at all.

  when it got installed i masked it out and continued my
manual ways as i don't want an automatic network connection
coming up.  i don't always do things on-line so i don't want
a connection just sitting there doing nothing but getting
probes and messages from the bozo's doing whatever on the
local ISP network.


> Worry less about what the "default" is, because the entire concept of
> defaults is extremely vague in Debian.  Debian offers a multitude
> of choices.  Worry more about how to solve *your* own problems, using
> whichever solution is most suitable.

  yes.  :)  and then try to remember what you've done that
isn't quite normal...  some years later you may forget and
i don't write all my stuff down.  next time i do a clean
install i'll have to keep a better log of my local changes.
i have a lot of things masked out from systemd that i don't
use.


  songbird



Re: Automatic creation of last-known-good boot configuration

2024-07-10 Thread songbird
Dan Ritter wrote:
> Jens Schmidt wrote: 
>> On Debian testing I've been bitten by the systemd upgrade and the
>> systemd package split recently, rendering my dracut-LUKS-based
>> system unbootable.  I know that my warranty is void since I'm on
>> testing, but both these issues would have been much easier to cope
>> with if there had been some good backup of my initramfs and kernel
>> below /boot.
>> 
>> So I thought that there might be some automatism like this:
>> 
>>   If the currently used kernel and initramfs have been in use
>>   already N times and if the boot time has been lower then M
>>   minutes each time (and if some other conditions are fulfilled),
>>   then consider that kernel and initramfs good and save them away
>>   where they will not be overwritten by regular kernel/initramfs
>>   maintenance.
>
> Are you using grub as your bootloader? Normally apt upgrade
> leaves the last N (N=5?) kernels and initramfs in /boot, and
> configures grub to make them available. apt dist-upgrade, on the
> other hand, tries to remove the oldest unused kernel and
> initramfs each time.

  i do tell apt specifically to not remove any kernel images
by using the option NeverAutoRemove in apt.conf 

=
APT 
{

  NeverAutoRemove  { "linux-image.*";  };  // packages that should never
// considered for autoRemove
};
=

  usually after each kernel upgrade i'll remove the third oldest one
leaving me the most current one and the one that i used previously
if it seems to have been stable enough.  i like doing some things
manually and this is one of them.  the other one i prefer to do
myself is bring up the network connection.  sometimes i don't need
it so prefer to leave the connection off...

  also, just out of a good idea i usually keep a stable booting
partition.  this saves me at times.


  songbird



Re: stty permanently undef "start"

2024-07-10 Thread songbird
Franco Martelli wrote:
> Hi everybody,
>
> I sometime use "rtorrent" (apt show rtorrent) to download isos and other 
> big files. It happens that when I had to quit rtorrent by press Ctrl-Q I 
> cannot because the key combination Ctrl-Q is trapped by the console due 
> to "stty" default configuration:

  that is a strange choice of termination and i would
actually consider it a bug in rtorrent, ESC or Ctrl-C
should work for that purpose.

  ...

  songbird



Re: General questions

2024-07-10 Thread 타토카
Hello, dear Debian Community.

I just wanted to check a key with GPG.

I have found this on https://www.debian.org/CD/verify:

pub   rsa4096/DA87E80D6294BE9B 2011-01-05 [SC]

Key fingerprint = DF9B 9C49 EAA9 2984 3258  9D76 DA87 E80D 6294 BE9B

uid  Debian CD signing key 


How can I download this key for GPG checking? Can I do next:

gpg --keyserver keyring.debian.org --recv-keys DA87E80D6294BE9B


If not, can you give an advice how to do it right?


ask for drivers

2024-07-10 Thread Jeff Pang

greetings,

I am trying to install Debian on my counterfeit pad. Do you know where 
to find touch screen drivers?


regards

--
Jeff Pang
jeffp...@aol.com



Re: Production Ready

2024-07-10 Thread Andy Smith
Hi Richard,

On Tue, Jul 09, 2024 at 02:03:55PM +, Richard Bostrom wrote:
> I think Debian is production ready in it's current state. Users
> only needs full control over updates. A simple leaflet of best
> practices. Ten pages or so might be enough.

Some of us have already been using Debian "in production" for
multiple decades. However "in production" means different things to
different people, since Debian is used in a wide variety of
contexts.

If you see areas that need improvement and you have ideas about
that, you need to submit suggestions as bugs in the Debian bug
tracker where the maintainers of the package can see them. Your
suggestions may also be more appropriate for the upstream developers
not the Debian maintainers (if your issue isn't particular to
Debian, for example).

What isn't effective is what you've done here: posted a vague
comment to a user-level support forum. We don't know what you are
talking about and even if we did, we don't generally have any more
ability to make change in the software than you do. This place is
for assisting people with how to use Debian and the software on it.

Having said that, your previous messages such as the "rsync is
broken … oh no it's not, I just didn't understand how to use it" do
suggest that possibly you might want to first frame your suggestions
for improvement as specific questions to a support forum along the
lines of "can software X do this? Am I doing it wrong?" before you
go down the route of assuming you have encountered an actual
deficiency.

Thanks,
Andy

-- 
https://bitfolk.com/ -- No-nonsense VPS hosting



bluetooth que no empareja

2024-07-10 Thread hubble
Hola,
Actualicé de Bullseye a bookworm hace unos meses en un ordenador algo viejo ya 
que no cuenta con bluetooth incorporado, utilizo un usb-bluetooth para oir 
audio en un altavoz bluetooth. Hasta la actualización el bluetooth funcionaba 
correctamente.

Creí que el bluetooth se rompió  el día que no conseguía emparejarse (Ha 
fallado la configuración del dispositivo, decía un mensaje de error cuando 
intentaba emparejar).

Compré otro dispositivo usb-bluetooth y para mi sorpresa fallaba en lo mismo 
(Ha fallado la configuración del dispositivo, decía un mensaje de error).

Fuí al portatil (desactive el bluetooth nativo) y allí sí que funciona.

Eso me ha hecho deducir que el fallo está en mi sistema de escritorio. 

La única cosa que he sabido hacer es mirar el estado del servidor:
--
~# systemctl status bluetooth.service 
● bluetooth.service - Bluetooth service
 Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; preset: 
enabled)
 Active: active (running) since Wed 2024-07-10 19:50:56 CEST; 1min 44s ago
   Docs: man:bluetoothd(8)
   Main PID: 8719 (bluetoothd)
 Status: "Running"
  Tasks: 1 (limit: 4513)
 Memory: 912.0K
CPU: 48ms
 CGroup: /system.slice/bluetooth.service
 └─8719 /usr/libexec/bluetooth/bluetoothd

de jul. 10 19:50:56 migjorn bluetoothd[8719]: Starting SDP server
de jul. 10 19:50:56 migjorn bluetoothd[8719]: profiles/audio/vcp.c:vcp_init() 
D-Bus experimental not enabled
de jul. 10 19:50:56 migjorn bluetoothd[8719]: src/plugin.c:plugin_init() Failed 
to init vcp plugin
de jul. 10 19:50:56 migjorn bluetoothd[8719]: profiles/audio/mcp.c:mcp_init() 
D-Bus experimental not enabled
de jul. 10 19:50:56 migjorn bluetoothd[8719]: src/plugin.c:plugin_init() Failed 
to init mcp plugin
de jul. 10 19:50:56 migjorn bluetoothd[8719]: profiles/audio/bap.c:bap_init() 
D-Bus experimental not enabled
de jul. 10 19:50:56 migjorn bluetoothd[8719]: src/plugin.c:plugin_init() Failed 
to init bap plugin
de jul. 10 19:50:56 migjorn bluetoothd[8719]: Bluetooth management interface 
1.22 initialized
de jul. 10 19:51:14 migjorn bluetoothd[8719]: 
profiles/sap/server.c:sap_server_register() Sap driver initialization failed.
de jul. 10 19:51:14 migjorn bluetoothd[8719]: sap-server: Operation not 
permitted (1)


haciendo un: "cat /var/log/syslog | grep bluez"

2024-07-10T12:51:14.776615+02:00 migjorn dbus-daemon[971]: [session uid=1000 
pid=971] Activating via systemd: service name='org.bluez.obex' 
unit='obex.service' requested by ':1.15' (uid=1000 pid=1117 
comm="/usr/bin/kded5")
2024-07-10T12:51:14.778415+02:00 migjorn dbus-daemon[601]: [system] Activating 
via systemd: service name='org.bluez' unit='dbus-org.bluez.service' requested 
by ':1.31' (uid=1000 pid=1117 comm="/usr/bin/kded5")
2024-07-10T12:51:14.850136+02:00 migjorn dbus-daemon[971]: [session uid=1000 
pid=971] Successfully activated service 'org.bluez.obex'
2024-07-10T12:51:14.970653+02:00 migjorn dbus-daemon[601]: [system] 
Successfully activated service 'org.bluez'
2024-07-10T12:56:03.905931+02:00 migjorn wireplumber[1836]: SPA handle 
'api.bluez5.enum.dbus' could not be loaded; is it installed?
2024-07-10T18:54:04.458369+02:00 migjorn plasmashell[7113]: kf.bluezqt: 
PendingCall Error: "br-connection-profile-unavailable"
2024-07-10T19:06:22.521831+02:00 migjorn plasmashell[7348]: kf.bluezqt: 
PendingCall Error: "br-connection-profile-unavailable"
2024-07-10T19:15:12.141377+02:00 migjorn plasmashell[7485]: kf.bluezqt: 
PendingCall Error: "br-connection-profile-unavailable"


Un # tail -f /var/log/syslog   cuando se pincha el USB

2024-07-10T20:51:38.638051+02:00 migjorn systemd[1]: systemd-rfkill.service: 
Deactivated successfully.
2024-07-10T20:51:40.000500+02:00 migjorn kernel: [28926.753425] usb 2-1.4: new 
full-speed USB device number 68 using ehci-pci
2024-07-10T20:51:40.080513+02:00 migjorn kernel: [28926.833425] usb 2-1.4: 
device descriptor read/64, error -32
2024-07-10T20:51:40.268512+02:00 migjorn kernel: [28927.021423] usb 2-1.4: 
device descriptor read/64, error -32
2024-07-10T20:51:40.456502+02:00 migjorn kernel: [28927.209426] usb 2-1.4: new 
full-speed USB device number 69 using ehci-pci
2024-07-10T20:51:40.958623+02:00 migjorn kernel: [28927.710184] usb 2-1.4: New 
USB device found, idVendor=0a12, idProduct=0001, bcdDevice=19.58
2024-07-10T20:51:40.958657+02:00 migjorn kernel: [28927.710192] usb 2-1.4: New 
USB device strings: Mfr=0, Product=2, SerialNumber=0
2024-07-10T20:51:40.958660+02:00 migjorn kernel: [28927.710194] usb 2-1.4: 
Product: EDRClassone
2024-07-10T20:51:40.958663+02:00 migjorn kernel: [28927.713929] Bluetooth: 
hci0: unexpected event for opcode 0x
2024-07-10T20:51:40.960560+02:00 migjorn kernel: [28927.716930] Bluetooth: 
hci0: CSR: Setting up dongle with HCI ver=3 rev=07a6; LMP ver=3 subver=07a6; 
manufacturer=10

Re: [OT] Re: the 'original' string function?

2024-07-10 Thread Emanuel Berg
Here is a piece of code after all wild ideas, but uncoded.

I think I can come up with a lot of those!

They should compare the data but as close to the way a human
thinks as possible.

So, the size of something was my initial idea as that is
a very human first thing to note. Who has the biggest house,
car or army, that's a big player and I want a Big Mac.

Okay, I felt the need to post some code and not be all talk
but anyway I'll now work on with this and not bother you with
this idea anymore, aight? :)

;;; -*- lexical-binding: t -*-
;;
;; this file:
;;   https://dataswamp.org/~incal/emacs-init/b-a-original.el

(require 'pcase)

(defun length-test (s1 s2)
  (pcase-let*((l1 (length s1))
  (l2 (length s2))
  (`(,n ,d) (if (< l1 l2) `(,l1 ,l2) `(,l2 ,l1))) )
(round (* 100 (/ n d 1.0))) ))

;; (length-test "b" "a"); 100
;; (length-test "a" "original") ;  12
;; (length-test "original" "b") ;  12

(provide 'b-a-original)

-- 
underground experts united
https://dataswamp.org/~incal



Re: stty permanently undef "start"

2024-07-10 Thread Greg Wooledge
To summarize:

 * When configuring your shell dot files, make sure you DON'T write
   anything to stdout, unless you have verified that stdout is a
   terminal.  Otherwise, it can mess up ssh sessions and other things.

 * Likewise, DON'T run stty, or other terminal manipulation commands,
   unless you've verified that stdin is a terminal.  Otherwise, it
   can cause errors, which may have unpredictable results in some
   situations.

 * If you feel that this doesn't apply to you, fine.

 * For the rest of us, Debian has compiled its bash package with the
   option that causes it to read .bashrc when run under sshd, even
   when a command is given.

 * Also, some operating systems, such as SuSE, have historically
   configured their shells to read EVERY dot file regardless of
   invocation mode.  So, thinking "but it shouldn't read .bashrc because
   I'm doing X, Y, or Z" may not necessarily be correct on such systems.

 * Also, some operating systems read your shell dot files during an X
   session startup, during which there is no terminal.



Re: [OT] Re: the 'original' string function?

2024-07-10 Thread Emanuel Berg
tomas wrote:

> Uh -- it was a quote. They aren't supposed to be original.

Spoiler alert: This post contains higher-order originality.

I mentioned computing the similarity with a bunch of tests.
The result can then be expressed as a string of test results.

And what happens next? You guessed it, you run the same
algorithm again! Only now asking who has the most
original originality test result string!

It is happening. Originality turning hyper-original!

\o/

-- 
underground experts united
https://dataswamp.org/~incal



Re: [OT] Re: the 'original' string function?

2024-07-10 Thread tomas
On Wed, Jul 10, 2024 at 06:03:46PM +0200, Emanuel Berg wrote:
> tomas wrote:
> 
> > ChatGPT is bullshit

This is not a comment, but the title of an academic article.
Worth reading, BTW.

Link is in my original post.

> Without context then:
> 
>   The comment "ChatGPT4 is bullshit" is not original as it is
>   a common expression used to express frustration [...]
> 
> Not a bad start!

I'd guess that this has been injected directly into ChatGPT. Perhaps
by an African worker [1], earning less than two dollars an hour.

> I agree that comment would score between 0 and 5 as it doesn't
> have any originality to it, really.

Uh -- it was a quote. They aren't supposed to be original.

Cheers

[1] 
https://www.theguardian.com/technology/article/2024/jul/06/mercy-anita-african-workers-ai-artificial-intelligence-exploitation-feeding-machine
-- 
t


signature.asc
Description: PGP signature


Re: [OT] Re: the 'original' string function?

2024-07-10 Thread Emanuel Berg
Greg Wooledge wrote:

> The problem will be something at the PhD level which the OP
> somehow believes is a high school level problem.
>
> I lost all faith when the OP revealed that their initial
> problem description was just an *instance* of some
> overarching question, and that they really wanted an
> n-dimensional generalization of that already bleeding-edge
> research question.

Well, thank you!

A cognitive idea no doubt!

"The General Exception".

PhD dissertation by E. Berg AKA B. A. Original.

-- 
underground experts united
https://dataswamp.org/~incal



Re: [OT] Re: the 'original' string function?

2024-07-10 Thread Emanuel Berg
Nicolas George wrote:

> You cannot have a more general basic mechanical algorithm
> unless you know what you want it to do.

I think one should do a network of nodes that all have
computed distances to every other and the one with the longest
sum of distances is the most isolated, so, most original!

So it is some sort of topology algorithm? Maybe it already
exists in some form. Most distant node to everything else?
Easter Island?

But an expensive algorithm, yes, in this unoptimized form.

Anyway, you got me thinking, it is all good. I can start
coding some stuff even now, that just compares very
simple units. A weighted sum of such comparison can then be
put together and the comparison can begin.

See? I know some way. And I know some day :)

-- 
underground experts united
https://dataswamp.org/~incal



Re: [OT] Re: the 'original' string function?

2024-07-10 Thread Emanuel Berg
Nicolas George wrote:

> You still need to define unlike.

That's an idea!

You define similarity and the least similar to its most
similar other item is the most original.

Best suggestion yet?

Or, did you think it quite, but not exactly like that?

-- 
underground experts united
https://dataswamp.org/~incal



Re: [OT] Re: the 'original' string function?

2024-07-10 Thread Emanuel Berg
Greg Wooledge wrote:

> I lost all faith when the OP revealed that their initial
> problem description was just an *instance* of some
> overarching question, and that they really wanted an
> n-dimensional generalization of that already bleeding-edge
> research question.

Oh, no, don't worry, this is the problem!

If one can solve it to output data there are a lot of
interesting applications.

What is the most original sentence, paragraph, or page in some
classic novel?

Who is the most original poster on some IRC channel, with some
bot keeping a rank?

Those are just toy examples I made up just now, but I'm sure
one could do really useful things with it as well. It is more
difficult to shoot from the holster here tho, but it is always
like that, there are always applications, and you don't expect
where, even.

What would be interesting to theorize about for those
attracted by such things would be the algorithm, but perhaps
even more interesting how one would define originality?
Because the program would be a de facto enforcer of its
own definition.

For example, is originality something that exists now, and
before it did, it didn't? I.e., a new thing? Or can
a combination of old things actually be as original?

Yes, it can - if you define the algorithm that way.

-- 
underground experts united
https://dataswamp.org/~incal



Re: [OT] Re: the 'original' string function?

2024-07-10 Thread Emanuel Berg
debian-user wrote:

>> You can use that:
>> 
>> https://en.wikipedia.org/wiki/Levenshtein_distance
>
> Levenshtein distance isn't suited to the problem.
> It compares the entirety of two strings. Emanuel is
> interesting in comparing one string against substrings of
> a potentially much larger string, or even substrings of the
> first string in random order against portions of the
> second string!

Yes, this is how I see it as well.

But maybe I'm wrong and it can be included as part of some
bigger algorithm, maybe?

-- 
underground experts united
https://dataswamp.org/~incal



Re: [OT] Re: the 'original' string function?

2024-07-10 Thread Emanuel Berg
tomas wrote:

> ChatGPT is bullshit

Without context then:

  The comment "ChatGPT4 is bullshit" is not original as it is
  a common expression used to express frustration [...]

Not a bad start!

I agree that comment would score between 0 and 5 as it doesn't
have any originality to it, really.

-- 
underground experts united
https://dataswamp.org/~incal



Re: stty permanently undef "start"

2024-07-10 Thread tomas
On Wed, Jul 10, 2024 at 05:08:20PM +0200, Nicolas George wrote:
> Greg Wooledge (12024-07-10):

[...]

> > (I won't even bother explaining because you CLEARLY know better than I
> > do about all topics.  Enjoy your day.)
> 
> The risk of passive-aggressive like that is that you risk to be right.

Folks, let it be. You're both smart, you're both (kinda) right. and you
are both typically pretty helpful around here.

Enjoy life :-)

Cheers
-- 
t


signature.asc
Description: PGP signature


Re: [OT] Re: the 'original' string function?

2024-07-10 Thread Emanuel Berg
jeremy ardley wrote:

> The modern way would be to use a LLM in API mode and set
> a context

How do I set the context?

That is the backlog file, right?

This is the step that is missing from my commands.

-- 
underground experts united
https://dataswamp.org/~incal



Re: [OT] Re: the 'original' string function?

2024-07-10 Thread Emanuel Berg
jeremy ardley wrote:

> The modern way would be to use a LLM in API mode and set
> a context to achieve your aims.

Here is the command. Turns out, I used the llamafile method
with llava or mistral as LLMs.

In the command, we see '-c 2048'. This, says the man file, is
to "Set the size of the prompt context." If the unit is bytes
(chars) it isn't a lot.

But then note '--prompt-cache-all' so what you do can be saved
and brought back.

While this I'm sure is enough for a lot of use cases, here we
envision a huge backlog file, obviously it cannot be loaded in
chunks of 2048 chars at the time.

I also provide a CLI but REPL version for people who would
care to experiment. But neither method will work for this,
at least not in their present form.

llm is a link so you can alternate between llava and mistral
as LLM :)

taskset -c 0-2   \
./llm\
  --cli  \
  --log-disable  \
  --prompt-cache-all \
  --silent-prompt\
  -c 2048\
  -ngl   \
  -p "$(cat $src)" > $dst

./llm \
--cli   \
--color \
--log-disable   \
--silent-prompt \
-cml\
-i  \
-ld log \

Versions are:

$ mistral-7b-instruct-v0.2.Q5_K_M.llamafile --version
llamafile v0.8.5 (Apache License 2.0)

llava-v1.5-7b-q4.llamafile

Apache License 2.0 is FOSS so this is all CLI, all local and
free. If it can be made to work for this, maybe people would
be happy about it all tho there isn't an old school algorithm
which is deterministic and you can fiddle with until it is
just right, so you are missing that out unfortunately.

-- 
underground experts united
https://dataswamp.org/~incal



Re: stty permanently undef "start"

2024-07-10 Thread Franco Martelli

On 10/07/24 at 16:45, Greg Wooledge wrote:

test -t 0 && stty -ixon

That should be safe to add to your .bashrc.

...

One of them is if someone chooses to dot in ~/.profile from their
~/.xsession file, or something analogous to it.  Or perhaps their
operating system does this automatically in certain kinds of login.


I changed my mind and I pasted the above command into ~/.profile thanks 
it worked, now "rtorrent" quit properly by pressing the Ctrl-Q 
combination. Despite "start" it's not set as "undef":


~$ stty -a
speed 38400 baud; rows 28; columns 110; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = M-^?; eol2 
= M-^?; swtch = ; start = ^Q;
stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W; lnext = ^V; discard = ^O; 
min = 1; time = 0;

-parenb -parodd -cmspar cs8 -hupcl -cstopb cread -clocal -crtscts
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl -ixon 
ixoff -iuclc -ixany -imaxbel iutf8
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 
vt0 ff0
isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop 
-echoprt echoctl echoke -flusho -extproc



The system is a headless RaspberryPI always up (Debian 11.7) that I use 
as DHCP/BIND9/CUPS/SSH server. I run "rtorrent" inside a "screen" session:


~$ screen -S Torrent -d -m /usr/bin/rtorrent

All looks fine now.
Cheers

--
Franco Martelli



Re: stty permanently undef "start"

2024-07-10 Thread Nicolas George
Greg Wooledge (12024-07-10):
> hobbit:~$ echo 'echo I AM BASHRC' >> .bashrc
> hobbit:~$ ssh localhost date
> greg@localhost's password: 
> I AM BASHRC
> Wed Jul 10 11:01:00 EDT 2024
> hobbit:~$ 

~ $ echo "I am in zshrc" >> .zshrc
~ $ ssh localhost date
~ $ ssh localhost date   
Wed Jul 10 17:05:01 CEST 2024

> Debian is, by your definition, a hack made by people who cannot be
> bothered to organize their configuration properly.
> 
> Good to know.

Indeed. Anything that uses bash is, because bash lacks one config file
to make it possible to organize its configuration in a way that always
work. Hence, when using bash, hacks upon hacks to work around that core
issue.

> (I won't even bother explaining because you CLEARLY know better than I
> do about all topics.  Enjoy your day.)

The risk of passive-aggressive like that is that you risk to be right.

Regards,

-- 
  Nicolas George



Re: stty permanently undef "start"

2024-07-10 Thread Greg Wooledge
On Wed, Jul 10, 2024 at 16:50:38 +0200, Nicolas George wrote:
> Greg Wooledge (12024-07-10):
> > There are many legitimate or semi-legitimate situations where a .bashrc
> > file might be read by a shell that's not running inside a terminal.
> > 
> > One of them is if someone chooses to dot in ~/.profile from their
> > ~/.xsession file, or something analogous to it.  Or perhaps their
> > operating system does this automatically in certain kinds of login.
> > 
> > Another might be a scripted ssh session being run from cron, or some
> > other parent that's not in a terminal.  Analogously, the ancient
> > predecessors of ssh (rsh, rexec) had exactly the same issues.
> 
> What you describe is not legitimate, even semi-, these are hacks by
> people who cannot be bothered to organize their configuration properly.

hobbit:~$ echo 'echo I AM BASHRC' >> .bashrc
hobbit:~$ ssh localhost date
greg@localhost's password: 
I AM BASHRC
Wed Jul 10 11:01:00 EDT 2024
hobbit:~$ 

Debian is, by your definition, a hack made by people who cannot be
bothered to organize their configuration properly.

Good to know.

(I won't even bother explaining because you CLEARLY know better than I
do about all topics.  Enjoy your day.)



Re: stty permanently undef "start"

2024-07-10 Thread Nicolas George
Greg Wooledge (12024-07-10):
> There are many legitimate or semi-legitimate situations where a .bashrc
> file might be read by a shell that's not running inside a terminal.
> 
> One of them is if someone chooses to dot in ~/.profile from their
> ~/.xsession file, or something analogous to it.  Or perhaps their
> operating system does this automatically in certain kinds of login.
> 
> Another might be a scripted ssh session being run from cron, or some
> other parent that's not in a terminal.  Analogously, the ancient
> predecessors of ssh (rsh, rexec) had exactly the same issues.

What you describe is not legitimate, even semi-, these are hacks by
people who cannot be bothered to organize their configuration properly.

> When adding new commands to your shell dot files, always wrap commands
> that assume/require the presence of a terminal in a check for a terminal.
> You'll save yourself a *lot* of headaches.

I save myself a lot of headaches by proper places for each snippet of
configuration. Which I can do because I use zsh instead of bash. zshrc
for interactive shell, zshenv for all shells, zprofile for interactive
login shells, etc.

We should not encourage people to pile hacks upon hacks.

Regards,

-- 
  Nicolas George



Re: stty permanently undef "start"

2024-07-10 Thread Dan Ritter
Franco Martelli wrote: 
> Hi everybody,
> 
> I sometime use "rtorrent" (apt show rtorrent) to download isos and other big
> files. It happens that when I had to quit rtorrent by press Ctrl-Q I cannot
> because the key combination Ctrl-Q is trapped by the console due to "stty"
> default configuration:

A glance at the wiki suggests that ctrl-Q just calls
"system.shutdown.normal"

So binding any other key to that command would be useful for
you. 

Unfortunately, issue #817 says:

"You can override/set key-bindings with rtorrent-ps, although
you have to build your own ;) or get a precompiled build if
you're lucky."

Otherwise it would be ctrl-x, then system.shutdown.normal.

-dsr-




Re: stty permanently undef "start"

2024-07-10 Thread Greg Wooledge
On Wed, Jul 10, 2024 at 16:27:16 +0200, Nicolas George wrote:
> David Wright (12024-07-10):
> > Someone might source .bashrc from a binary in order to
> > access functions that are defined within it.
> 
> That would be shooting oneself in the foot. No need to cater for them.

There are many legitimate or semi-legitimate situations where a .bashrc
file might be read by a shell that's not running inside a terminal.

One of them is if someone chooses to dot in ~/.profile from their
~/.xsession file, or something analogous to it.  Or perhaps their
operating system does this automatically in certain kinds of login.

Another might be a scripted ssh session being run from cron, or some
other parent that's not in a terminal.  Analogously, the ancient
predecessors of ssh (rsh, rexec) had exactly the same issues.

When adding new commands to your shell dot files, always wrap commands
that assume/require the presence of a terminal in a check for a terminal.
You'll save yourself a *lot* of headaches.



Re: stty permanently undef "start"

2024-07-10 Thread Nicolas George
David Wright (12024-07-10):
> Someone might source .bashrc from a binary in order to
> access functions that are defined within it.

That would be shooting oneself in the foot. No need to cater for them.

Regards,

-- 
  Nicolas George



Re: stty permanently undef "start"

2024-07-10 Thread David Wright
On Wed 10 Jul 2024 at 16:00:48 (+0200), Nicolas George wrote:
> Greg Wooledge (12024-07-10):
> > You could -- but if you do so, you should definitely surround it with
> > a check for stdin being a terminal (test -t 0 or equivalent).
> 
> Does bash execute .bashrc when it is not interactive?

Someone might source .bashrc from a binary in order to
access functions that are defined within it.

> Does bash think it is interactive when its input is not a tty?

That would then be irrelevant.

Cheers,
David.



Re: stty permanently undef "start"

2024-07-10 Thread Nicolas George
Greg Wooledge (12024-07-10):
> You could -- but if you do so, you should definitely surround it with
> a check for stdin being a terminal (test -t 0 or equivalent).

Does bash execute .bashrc when it is not interactive?

Does bash think it is interactive when its input is not a tty?

Regards,

-- 
  Nicolas George



Re: stty permanently undef "start"

2024-07-10 Thread Greg Wooledge
On Wed, Jul 10, 2024 at 15:49:59 +0200, Franco Martelli wrote:
> ~$ stty start undef
> 
> So, is there a way to permanently set "start" as "undef"? Maybe under /etc/?
> Should I put this command in .bashrc?

You could -- but if you do so, you should definitely surround it with
a check for stdin being a terminal (test -t 0 or equivalent).

The proper way to disable XOFF/XON flow control, though, is to use
"stty -ixon".  The same disclaimer applies: only do it when you've
verified that stdin is a terminal.

test -t 0 && stty -ixon

That should be safe to add to your .bashrc.



stty permanently undef "start"

2024-07-10 Thread Franco Martelli

Hi everybody,

I sometime use "rtorrent" (apt show rtorrent) to download isos and other 
big files. It happens that when I had to quit rtorrent by press Ctrl-Q I 
cannot because the key combination Ctrl-Q is trapped by the console due 
to "stty" default configuration:


~$ stty -a
speed 38400 baud; rows 28; columns 110; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = M-^?; eol2 
= M-^?; swtch = ; start = ^Q;
stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W; lnext = ^V; discard = ^O; 
min = 1; time = 0;

-parenb -parodd -cmspar cs8 -hupcl -cstopb cread -clocal -crtscts
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon 
ixoff -iuclc -ixany -imaxbel iutf8
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 
vt0 ff0
isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop 
-echoprt echoctl echoke -flusho -extproc


Notice the "start = ^Q;" setting, thus every time I want to quit 
"rtorrent" I must give this command before pressing Ctrl-Q into "rtorrent":


~$ stty start undef

So, is there a way to permanently set "start" as "undef"? Maybe under 
/etc/? Should I put this command in .bashrc?


TIA
--
Franco Martelli



Re: Automatic creation of last-known-good boot configuration

2024-07-10 Thread Nicolas George
Jens Schmidt (12024-07-10):
> On Debian testing I've been bitten by the systemd upgrade and the
> systemd package split recently, rendering my dracut-LUKS-based
> system unbootable.  I know that my warranty is void since I'm on
> testing, but both these issues would have been much easier to cope
> with if there had been some good backup of my initramfs and kernel
> below /boot.
> 
> So I thought that there might be some automatism like this:
> 
>   If the currently used kernel and initramfs have been in use
>   already N times and if the boot time has been lower then M
>   minutes each time (and if some other conditions are fulfilled),
>   then consider that kernel and initramfs good and save them away
>   where they will not be overwritten by regular kernel/initramfs
>   maintenance.
> 
> Scripting something like that shouldn't be too hard, but I wonder
> if there already is a package implementing that?  A cursory search
> hasn't brought up anything.  There is package dracut-config-rescue,
> but that only configures a variable that does not seem to be used
> by dracut itself.

I will say: this is probably not possible with Debian, since an apt-get
(dist-)uupgrade replaces distributed files, and initrds are rebuilt,
etc.

You can consider using a LVM snapshot, but you can only make one
reliably when the system is read-only. You can consider using a
filesystem snapshot, but filesystems that support snapshots have their
own set of problems.

On the other hand, I can say it is a feature of NixOS, I saw it last
week when somebody asked me “I made a mistake, our VM doesn't boot
anymore, can I access the GRUB console?” and they just rebooted on the
previous configuration. But NixOS is not Debian, it is barely Unix as
far as I can see.

Regards,

-- 
  Nicolas George



Re: Automatic creation of last-known-good boot configuration

2024-07-10 Thread Dan Ritter
Jens Schmidt wrote: 
> On Debian testing I've been bitten by the systemd upgrade and the
> systemd package split recently, rendering my dracut-LUKS-based
> system unbootable.  I know that my warranty is void since I'm on
> testing, but both these issues would have been much easier to cope
> with if there had been some good backup of my initramfs and kernel
> below /boot.
> 
> So I thought that there might be some automatism like this:
> 
>   If the currently used kernel and initramfs have been in use
>   already N times and if the boot time has been lower then M
>   minutes each time (and if some other conditions are fulfilled),
>   then consider that kernel and initramfs good and save them away
>   where they will not be overwritten by regular kernel/initramfs
>   maintenance.

Are you using grub as your bootloader? Normally apt upgrade
leaves the last N (N=5?) kernels and initramfs in /boot, and
configures grub to make them available. apt dist-upgrade, on the
other hand, tries to remove the oldest unused kernel and
initramfs each time.

-dsr-



Re: NetworkManager with dnsmasq caching NXDOMAIN response of router

2024-07-10 Thread Greg Wooledge
On Wed, Jul 10, 2024 at 15:11:20 +0200, Detlef Vollmann wrote:
> NetworkManager is the "default" (whatever "default" means) as it serves
> well the need of many users to connect a client machine to the Internet.

It's only the "default" if a Desktop Environment is installed.  On a
Standard Debian installation (e.g. one you'd use for servers), NM is
not installed at all.

Worry less about what the "default" is, because the entire concept of
defaults is extremely vague in Debian.  Debian offers a multitude
of choices.  Worry more about how to solve *your* own problems, using
whichever solution is most suitable.



Re: NetworkManager with dnsmasq caching NXDOMAIN response of router

2024-07-10 Thread Detlef Vollmann

On 7/8/24 11:50, David Ayers wrote:



On 8/7/24 11:42, jeremy ardley wrote:
I also forgot to mention my usual warning:

NetworkManager is *not* stable and if you do anything complex with it
you can expect trouble.


Personally I use systemd-networkd as that seems much more stable and
predictable and is easier to congigure



NetworkManager is the default... I assume that the defaults is what is
the most stable.  If it is not, there should be a process to exchange
the default.  I'd really like to avoid straying from what most people
use.


Only responding to this part.

NetworkManager is the "default" (whatever "default" means) as it serves
well the need of many users to connect a client machine to the Internet.

I doubt that many users use NetworkManager for what you're trying to do.
So you probably are "straying from what most people use".

  Detlef



Re: [OT] Re: the 'original' string function?

2024-07-10 Thread Greg Wooledge
On Wed, Jul 10, 2024 at 14:41:30 +0200, Nicolas George wrote:
> debian-u...@howorth.org.uk (12024-07-10):
> > Levenshtein distance isn't suited to the problem.
> 
> Either your crystal ball is much better than mine or you are trusting
> yours too much, because we have not been told what the problem is.

The problem will be something at the PhD level which the OP somehow
believes is a high school level problem.

I lost all faith when the OP revealed that their initial problem
description was just an *instance* of some overarching question, and
that they really wanted an n-dimensional generalization of that already
bleeding-edge research question.

Whatever the actual issue is, nobody here is going to be able to solve
it.  I can guarantee it.



Re: [OT] Re: the 'original' string function?

2024-07-10 Thread Nicolas George
debian-u...@howorth.org.uk (12024-07-10):
> Levenshtein distance isn't suited to the problem.

Either your crystal ball is much better than mine or you are trusting
yours too much, because we have not been told what the problem is.

>   It compares the
> entirety of two strings. Emanuel is interesting in comparing one string
> against substrings of a potentially much larger string,

This is not what I read in the messages.

> or even
> substrings of the first string in random order against portions of the
> second string!

This is what I am trying to get the OP to explicit.

Regards,

-- 
  Nicolas George



Re: How to find suitable mailing list or USENET group

2024-07-10 Thread Richard Owlett

On 07/09/2024 06:01 PM, Jeffrey Walton wrote:

On Tue, Jul 9, 2024 at 12:51 PM Richard Owlett  wrote:


My particular problem is finding an active user oriented list/group for
KDE's Kate editor. All I found is a developers' list.

In general, how does one find a suitable mailing list or USENET group?
Others must have the same general problem.


Michel Verdier provided a good suggestion with
.


Yes. I did a duckduckgo  search of the archives and found some Kate 
related posts. None for a few years. I haven't had a chance yet to read 
those posts.

I have subscribed.



Reddit communities are another source of support. r/kde looks like it
has Kate related discussions.


My browser is SeaMonkey and have it configured for my needs.
I haven't yet found a compatible usable browser viewed forum.
Part of the reason I specified "mailing list or USENET group" ;}




I prefer Reddit over Stack Exchange. I find the Stack Exchange is
mostly full of low quality crap.

Jeff






Re: Automatic creation of last-known-good boot configuration

2024-07-10 Thread Michel Verdier
On 2024-07-10, Jens Schmidt wrote:

> So I thought that there might be some automatism like this:
>
>   If the currently used kernel and initramfs have been in use
>   already N times and if the boot time has been lower then M
>   minutes each time (and if some other conditions are fulfilled),
>   then consider that kernel and initramfs good and save them away
>   where they will not be overwritten by regular kernel/initramfs
>   maintenance.

I compile my kernel adding a version suffixe. But the problem is the same
if I compile a new version without a different suffixe.

Perhaps a better way would be to save the "good" kernel in /boot with an
additionnal suffixe. Then generate a grub entry for it (update-grub
should does it). So you can directly boot with it. It supposes enough
available space in /boot.



Re: [OT] Re: the 'original' string function?

2024-07-10 Thread debian-user
Nicolas George  wrote:
> Emanuel Berg (12024-07-10):
> > Okay, this is gonna be a challenge to most guys who have been
> > processing text for a long time.
> > 
> > So, I would like a command, function or script, 'original',
> > that takes a string STR and a text file TXT and outputs
> > a score, from 0 to 100, how _original_ STR is, compared to
> > what is already in TXT.
> > 
> > So if I do
> > 
> > $ original "This isn't just another party" comments.txt
> > 
> > this will score 0 if that exact phrase to the letter already
> > exists in comments.txt.
> > 
> > But it will score 100 if not a single of those words exists in
> > the file! Because that would be 100% original.
> > 
> > Those endpoints are easy. But how to make it score - say - 62%
> > if some of the words are present, mostly spelled like that and
> > combined in ways that are not completely different?
> > 
> > Note: The above examples are examples, other definitions of
> > originality are okay. That is not the important part now - but
> > can be as interesting a part, later.  
> 
> You can use that:
> 
> https://en.wikipedia.org/wiki/Levenshtein_distance

Levenshtein distance isn't suited to the problem. It compares the
entirety of two strings. Emanuel is interesting in comparing one string
against substrings of a potentially much larger string, or even
substrings of the first string in random order against portions of the
second string!



Automatic creation of last-known-good boot configuration

2024-07-10 Thread Jens Schmidt
On Debian testing I've been bitten by the systemd upgrade and the
systemd package split recently, rendering my dracut-LUKS-based
system unbootable.  I know that my warranty is void since I'm on
testing, but both these issues would have been much easier to cope
with if there had been some good backup of my initramfs and kernel
below /boot.

So I thought that there might be some automatism like this:

  If the currently used kernel and initramfs have been in use
  already N times and if the boot time has been lower then M
  minutes each time (and if some other conditions are fulfilled),
  then consider that kernel and initramfs good and save them away
  where they will not be overwritten by regular kernel/initramfs
  maintenance.

Scripting something like that shouldn't be too hard, but I wonder
if there already is a package implementing that?  A cursory search
hasn't brought up anything.  There is package dracut-config-rescue,
but that only configures a variable that does not seem to be used
by dracut itself.

Please CC me when replying.

Thanks!



Re: [OT] Re: the 'original' string function?

2024-07-10 Thread Emanuel Berg
Nicolas George wrote:

>> The modern way would be to use a LLM in API mode and set
>> a context to achieve your aims.
>
> All modern languages have some kind of rand() function.
> I assumed the OP wanted to do something useful with
> the answers.

Yes, of course!

/B. A. Original

-- 
underground experts united
https://dataswamp.org/~incal



Re: [OT] Re: the 'original' string function?

2024-07-10 Thread Nicolas George
Emanuel Berg (12024-07-10):
> Indeed, one can have a bunch of such rules and apply them and
> award points and stuff.
> 
> But maybe one could also have a more general, basic
> mechanical/math/stats inspired algorithm?

You cannot have a more general basic mechanical algorithm unless you
know what you want it to do.

> One can also see the data as a bunch of entries, say one for
> each line. To what extent is the new entry unlike all others?

You still need to define unlike.

> See? How can we define what is original in a way that 1.
> makes sense and 2. is useful for this application?

Only you know what “this application” is.

Regards,

-- 
  Nicolas George



Re: [OT] Re: the 'original' string function?

2024-07-10 Thread Emanuel Berg
jeremy ardley wrote:

> The modern way would be to use a LLM in API mode and set
> a context to achieve your aims.
>
> You can do this locally using a LLM hosted on your computer
> or you can use a remote API such as ChatGPT.

Okay, great, I already have this installed from the console,
all setup just another model.

But, what should I with it? Just ask how original is this?

-- 
underground experts united
https://dataswamp.org/~incal



Re: [OT] Re: the 'original' string function?

2024-07-10 Thread Emanuel Berg
Nicolas George wrote:

> You can use that:
>
> https://en.wikipedia.org/wiki/Levenshtein_distance
>
> But you also need to define what you want with more
> precision:
>
> How do you count the replacement of a word by a synonym?
>
> How do you count a change in the order of the words?
>
> How do you count a transparent spelling mistake?
>
> How do you count a spelling mistake that turns a word into
> another existing word?

Indeed, one can have a bunch of such rules and apply them and
award points and stuff.

But maybe one could also have a more general, basic
mechanical/math/stats inspired algorithm?

Or a combination!

I forgot to say, the file with data. One can either see this
as just a bunch of data. How original is the new data compared
to the old.

One can also see the data as a bunch of entries, say one for
each line. To what extent is the new entry unlike all others?

That sounds more easy, but not necessarily so because that can
be applied generally as well.

"This entry was unlike all others. However bits and pieces of
it appear all over the place."

See? How can we define what is original in a way that 1.
makes sense and 2. is useful for this application?

> Not related to Debian, putting "[OT]" in the subject.

I forgot to say, one is expected to only use software from the
Debian repos or other sources readily available on
FOSS Unix-like systems.

-- 
underground experts united
https://dataswamp.org/~incal



Re: [OT] Re: the 'original' string function?

2024-07-10 Thread tomas
On Wed, Jul 10, 2024 at 12:31:25PM +0200, Nicolas George wrote:
> jeremy ardley (12024-07-10):
> > The modern way would be to use a LLM in API mode and set a context to
> > achieve your aims.
> 
> All modern languages have some kind of rand() function.

Which is way more CO2 efficient, at that :-)

> I assumed the OP wanted to do something useful with the answers.

ChatGPT is bullshit [1].

Cheers

[1] https://link.springer.com/article/10.1007/s10676-024-09775-5
-- 
t


signature.asc
Description: PGP signature


Re: [OT] Re: the 'original' string function?

2024-07-10 Thread Nicolas George
jeremy ardley (12024-07-10):
> The modern way would be to use a LLM in API mode and set a context to
> achieve your aims.

All modern languages have some kind of rand() function. I assumed the OP
wanted to do something useful with the answers.

Regards,

-- 
  Nicolas George



Re: [OT] Re: the 'original' string function?

2024-07-10 Thread jeremy ardley




On 10/7/24 18:01, Nicolas George wrote:

Emanuel Berg (12024-07-10):

Okay, this is gonna be a challenge to most guys who have been
processing text for a long time.

So, I would like a command, function or script, 'original',
that takes a string STR and a text file TXT and outputs
a score, from 0 to 100, how _original_ STR is, compared to
what is already in TXT.

So if I do

$ original "This isn't just another party" comments.txt

this will score 0 if that exact phrase to the letter already
exists in comments.txt.

But it will score 100 if not a single of those words exists in
the file! Because that would be 100% original.

Those endpoints are easy. But how to make it score - say - 62%
if some of the words are present, mostly spelled like that and
combined in ways that are not completely different?

Note: The above examples are examples, other definitions of
originality are okay. That is not the important part now - but
can be as interesting a part, later.


You can use that:

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

But you also need to define what you want with more precision:

How do you count the replacement of a word by a synonym?

How do you count a change in the order of the words?

How do you count a transparent spelling mistake?

How do you count a spelling mistake that turns a word into another
existing word?

Not related to Debian, putting “[OT]” in the subject.

Regards,



The modern way would be to use a LLM in API mode and set a context to 
achieve your aims.


You can do this locally using a LLM hosted on your computer or you can 
use a remote API such as ChatGPT.


This is usually scripted in python.

The interesting thing is you can get a good LLM such as GPT4 to help 
write a context to be run by a lesser LLM.


You should not expect perfection and may not get 100% repeatable results 
but It'll still be fairly good.




Re: the 'original' string function?

2024-07-10 Thread Thomas Schmitt
Hi,

Emanuel Berg wrote:
> how to make it score - say - 62%
> if some of the words are present, mostly spelled like that and
> combined in ways that are not completely different?

Looks like a popular aspect of artificial intelligence.
Googling "ai distance between texts" brings arbitrarily sophisticated
ways of fuzzy text comparison. Like:
  
https://medium.com/activewizards-machine-learning-company/comparison-of-the-text-distance-metrics-aed2eadfd1f1
  https://en.wikipedia.org/wiki/Levenshtein_distance

The public search engines use such comparisons themselves.
"hunt the wumpis" usually leads to "hunt the wumpus".


Have a nice day :)

Thomas



[OT] Re: the 'original' string function?

2024-07-10 Thread Nicolas George
Emanuel Berg (12024-07-10):
> Okay, this is gonna be a challenge to most guys who have been
> processing text for a long time.
> 
> So, I would like a command, function or script, 'original',
> that takes a string STR and a text file TXT and outputs
> a score, from 0 to 100, how _original_ STR is, compared to
> what is already in TXT.
> 
> So if I do
> 
> $ original "This isn't just another party" comments.txt
> 
> this will score 0 if that exact phrase to the letter already
> exists in comments.txt.
> 
> But it will score 100 if not a single of those words exists in
> the file! Because that would be 100% original.
> 
> Those endpoints are easy. But how to make it score - say - 62%
> if some of the words are present, mostly spelled like that and
> combined in ways that are not completely different?
> 
> Note: The above examples are examples, other definitions of
> originality are okay. That is not the important part now - but
> can be as interesting a part, later.

You can use that:

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

But you also need to define what you want with more precision:

How do you count the replacement of a word by a synonym?

How do you count a change in the order of the words?

How do you count a transparent spelling mistake?

How do you count a spelling mistake that turns a word into another
existing word?

Not related to Debian, putting “[OT]” in the subject.

Regards,

-- 
  Nicolas George



the 'original' string function?

2024-07-10 Thread Emanuel Berg
Okay, this is gonna be a challenge to most guys who have been
processing text for a long time.

So, I would like a command, function or script, 'original',
that takes a string STR and a text file TXT and outputs
a score, from 0 to 100, how _original_ STR is, compared to
what is already in TXT.

So if I do

$ original "This isn't just another party" comments.txt

this will score 0 if that exact phrase to the letter already
exists in comments.txt.

But it will score 100 if not a single of those words exists in
the file! Because that would be 100% original.

Those endpoints are easy. But how to make it score - say - 62%
if some of the words are present, mostly spelled like that and
combined in ways that are not completely different?

Note: The above examples are examples, other definitions of
originality are okay. That is not the important part now - but
can be as interesting a part, later.

I'm not sure what function can solve this but I'm sure it will
be very original!

-- 
underground experts united
https://dataswamp.org/~incal



Re: Changing the passphrase in crypttab [Was: Security Flaw:]

2024-07-10 Thread Ceppo
On Wed, Jul 10, 2024 at 09:09:06AM GMT, Ceppo wrote:
> If  this isn't your case, we probably need some more details to be able to
> help you.

And I forgot the most important question: how did you encrypt your disk?


--
Ceppo


signature.asc
Description: PGP signature


Re: question related to cp (-p) and /tmp

2024-07-10 Thread Thomas Schmitt
Hi,

Patrice Duroux wrote:
> $ getfattr -d test.sh
> $

One could get the impression that "system." attributes are kept obscure
by developers' intention.

I now found in the man page a few sentences which could be the origin of
my dim (and distorted) memories about this name space:

  -m pattern, --match=pattern
 Only  include attributes with names matching the regular expression
 pattern.  The  default  value  for  pattern  is  "^user\\.",  which
 includes  all the attributes in the user namespace. Specify "-" for
 including all attributes.

So what do you get from this run ?

  getfattr -d -m - test.sh


> $ nfs4_getfacl test.sh
> # file: test.sh
> A::OWNER@:rwaxtTcCy
> A::GROUP@:rxtcy
> A::EVERYONE@:tcy

It seems that
  man 5 nfs4_acl
gives explanations of the settings under "ACE FLAGS:".

I expect that nfs4_setfacl -x could remove the offending attribute, if not
setfacl -x does.
(I would rather move this file to my directory tree of strange files,
which i keep for testing purposes.)


Have a nice day :)

Thomas



Re: Changing the passphrase in crypttab [Was: Security Flaw:]

2024-07-10 Thread Ceppo
Hello!
Reading some man pages, if you used the default encryption tool when installing
Debian you should be able to change the passphrase just with this:

cryptsetup luksChangeKey 

If  this isn't your case, we probably need some more details to be able to help
you.

On Wed, Jul 10, 2024 at 06:34:59AM GMT, Richard Bostrom wrote:
> I cannot update my passphrase in crypttab

What did you try and what was the outcome?

> although the passphrase is updated in the OS

How did you "update the passphrase in the OS"?

> I cannot enter my OS without using the latest passphrase.

What happens when you enter the old passphrase? And what when you enter the new
one?


P.S.: you should always choose a meaningful subject for your emails. "Security
Flaw" really looks spam and is easily discarded by spam filters, and even if
the message were delivered most people would probably throw it away without
even opening it. In your case there isn't a security flaw at all, so it is also
misleading. I'm just recommending to take care of your requests, people are
willing to help but don't have enough time to manually check every suspicious
message that reaches their inbox :).


--
Ceppo


signature.asc
Description: PGP signature


[SOLVED] Re: Creating PDF/A from LaTeX source and from existing PDF

2024-07-10 Thread Ceppo
On Mon, Jul 08, 2024 at 05:20:57PM GMT, Jeffrey Walton wrote:
> The pdf-linter I use to verify a pdf document is qpdf,
> . It is available on most distributions,
> including Debian, Fedora and Red Hat.
>
> The command to check the document is `qpdf --check `.

This command doesn't show me any info abouy PDF/A compliance. man says it
"merely checks that the PDF file is syntactically valid".

> > I will also probably have to upload under the same requirement some
> > third-party PDF, which is not PDF/A, without access to an editable version.
> > Is there a way to convert them to PDF/A? I know that converting from an
> > editable version would be the correct way for this, but I have no real way
> > to get it.
>
> qpdf may provide this functionality, but I have never used it.

[1] says PDF/A conversion is out of scope for the library. However, [2] pointed
me to ocrmypdf and this command produces a valid PDF/A-1b file:

ocrmypdf --output-type pdfa-1 --tesseract-timeout=0 --skip-text \
input.pdf output.pdf

Another comment pointed out this relies on ghostscript, but I couldn't build a
working gs command. I will try harder as soon as I have some free time. Anyway
I have my conversion tool now, and I'm happy with it.

As a short summary of this thread outcome, I can:

- compile with `pdflatex` as usual
- convert to PDF/A with the `ocrmypdf` command above (probably not the most
  clean way, but it works)
- validate with veraPDF

Thanks everyone for your help, it was higly appreciated even when it didn't
work as expected!


[1]: https://github.com/qpdf/qpdf/issues/85
[2]: https://github.com/qpdf/qpdf/issues/85#issuecomment-1278055568


--
Ceppo


signature.asc
Description: PGP signature


Re: question related to cp (-p) and /tmp

2024-07-10 Thread Patrice Duroux
> So we now know how to prevent the immediate problem.
> Does "system.nfs4_acl" show up in
>  getfattr -d test.sh
> ?

$ getfattr -d test.sh
$
And this is the same regardless the value (permissions or skip) for
system.nfs4_acl in /etc/xattr.conf

> Maybe it is the right package to learn more about the attribute of your
> file. Maybe it is even the origin of its existence.

$ nfs4_getfacl test.sh
# file: test.sh
A::OWNER@:rwaxtTcCy
A::GROUP@:rxtcy
A::EVERYONE@:tcy

So nothing more interesting to me despite my ignorance on NFS4.

Le mer. 10 juil. 2024 à 09:11, Thomas Schmitt  a écrit :
>
> Hi,
>
> Patrice Duroux wrote:
> > On the other hand, after modifying /etc/xattr.conf to replace:
> > system.nfs4_aclpermissions
> > by:
> > system.nfs4_aclskip
> > then test.sh works nicely:
>
> So we now know how to prevent the immediate problem.
>
> Does "system.nfs4_acl" show up in
>
>   getfattr -d test.sh
>
> ?
>
>
> > Is there a risk to leave /etc/xattr.conf like this?
>
> Given our test results with "system.nfs4_acl" and your success with the
> changed configuration, i'd say it is mostly beneficial.
>
> You could of course try to remove this hard-to-digest attribute
> from the file:
>
>   setfattr -x system.nfs4_acl test.sh
>
>
> > If I am right, this file is provided by libattr1 package and its
> > content is from upstream:
> > https://git.savannah.nongnu.org/cgit/attr.git/tree/xattr.conf
>
> I probably misinterpreted the comment in coreutils copy.c.
> SELinux and xattr.conf are not associated but only handled together in
> that piece of code.
>
>
> There remains the question how your file got this attribute.
> Was it created when the filesystem was exported via NFS ?
>
> In the web i find references to a command nfs4_setfacl.
> Debian has it in package nfs4-acl-tools:
>   https://tracker.debian.org/pkg/nfs4-acl-tools
> Not very active but present from "old-old-stable" to Sid.
>
> Maybe it is the right package to learn more about the attribute of your
> file. Maybe it is even the origin of its existence.
>
>
> Have a nice day :)
>
> Thomas
>



Re: question related to cp (-p) and /tmp

2024-07-10 Thread Patrice Duroux
On the other hand, after modifying /etc/xattr.conf to replace:
system.nfs4_aclpermissions
by:
system.nfs4_aclskip
then test.sh works nicely:
$ ./test.sh
-rwxr-x--- 1 patrice patrice 300 Jul  9 10:46 ./test.sh
option: -p
exitcode: 0
-rwxr-x--- 1 patrice patrice 300 Jul  9 10:46 /tmp/test.sh
option: --preserve=mode
exitcode: 0
-rwxr-x--- 1 patrice patrice 300 Jul 10 08:32 /tmp/test.sh
option: --preserve=timestamps
exitcode: 0
-rwxr-x--- 1 patrice patrice 300 Jul  9 10:46 /tmp/test.sh
option: --preserve=ownership
exitcode: 0
-rwxr-x--- 1 patrice patrice 300 Jul 10 08:32 /tmp/test.sh

Is there a risk to leave /etc/xattr.conf like this?
This file also has a line regarding 'system.nfs4acl'.
Is this for any compatibility?

If I am right, this file is provided by libattr1 package and its
content is from upstream:
https://git.savannah.nongnu.org/cgit/attr.git/tree/xattr.conf

Le mar. 9 juil. 2024 à 21:33, Thomas Schmitt  a écrit :
>
> Hi,
>
> (I Cc: patrice.dur...@gmail.com because i see no "LDOSUBSCRIBER" in
> the "X-Spam-Status:" header.)
>
> Jumping ahead:
>
> Look into the local file
>
>   /etc/xattr.conf
>
> and try what happens if you change
>
>   system.nfs4_acl   permissions
>
> to
>
>   system.nfs4_acl   skip
>
> or if you newly insert thie "skip" line if no "system.nfs4_acl" is to see.
>
> --
> How i came to that proposal:
>
> Patrice Duroux wrote:
> > $ LANG=C strace cp -p test.sh /tmp
>
> strace is a very good idea.
>
>
> > flistxattr(4, NULL, 0)  = 16
> > flistxattr(4, "system.nfs4_acl\0", 16)  = 16
>
> Somehow your file has an extended file attribute "system.nfs4_acl".
> Inquire by:
>
>   getfattr -d test.sh
>
> (I dimly remember that one needs superuser authority to read "system."
> attributes. But i cannot find this in man 1 getfattr.)
>
>
> > openat(AT_FDCWD, "/etc/xattr.conf", O_RDONLY) = 6
>
> According to Google this is a configuration file:
>   
> https://sources.suse.com/SUSE:SLE-15-SP6:Update:CR/minimal-image/f2d0d3c549d068931c52fb2e94925dd7/INCLUDED/SUSE:SLE-15:GA::attr::efd1f5b9c0b136b5dfc37de3f2d9c977/xattr.conf
>   ...
>   # How to handle extended attributes when copying between files
>   ...
>   # Actions:
>   #   permissions - copy when trying to preserve permissions.
>   #   skip - do not copy.
>   ...
>   system.nfs4_acl   permissions
>
> cp sees this configuration file associated to SELinux:
>
>   https://sources.debian.org/src/coreutils/9.4-3.1/src/copy.c/?hl=751#L749
>   /* Exclude SELinux extended attributes that are otherwise handled,
>  and are problematic to copy again.  Also honor attributes
>  configured for exclusion in /etc/xattr.conf.
>
>
> > fsetxattr(5, "system.nfs4_acl",
> > "\0\0\0\3\0\0\0\0\0\0\0\0\0\26\1\247\0\0\0\6OWNER@\0\0\0\0\0", 80, 0) = -1
> > EOPNOTSUPP (Operation not supported)
>
> Here the error happens while trying to set the attribute.
> Shell equivalent is
>
>   setfattr -n system.nfs4_acl -v 
> '\0\0\0\3\0\0\0\0\0\0\0\0\0\26\1\247\0\0\0\6OWNER@\0\0\0\0\0' /tmp/x
>
> and yields here (even for the superuser and on ext4 filesystem)
>
>   setfattr: /tmp/x: Operation not supported
>
> I'm not sure whether the value is a digestible format.
> But if i do the same with a name in the "user." namespace i get no error
>
>   setfattr -n user.x -v '\0\0\0...lengthy.string.above...' /tmp/x
>
>
> Have a nice day :)
>
> Thomas
>



Re: question related to cp (-p) and /tmp

2024-07-10 Thread Thomas Schmitt
Hi,

Patrice Duroux wrote:
> On the other hand, after modifying /etc/xattr.conf to replace:
> system.nfs4_aclpermissions
> by:
> system.nfs4_aclskip
> then test.sh works nicely:

So we now know how to prevent the immediate problem.

Does "system.nfs4_acl" show up in

  getfattr -d test.sh

?


> Is there a risk to leave /etc/xattr.conf like this?

Given our test results with "system.nfs4_acl" and your success with the
changed configuration, i'd say it is mostly beneficial.

You could of course try to remove this hard-to-digest attribute
from the file:

  setfattr -x system.nfs4_acl test.sh


> If I am right, this file is provided by libattr1 package and its
> content is from upstream:
> https://git.savannah.nongnu.org/cgit/attr.git/tree/xattr.conf

I probably misinterpreted the comment in coreutils copy.c.
SELinux and xattr.conf are not associated but only handled together in
that piece of code.


There remains the question how your file got this attribute.
Was it created when the filesystem was exported via NFS ?

In the web i find references to a command nfs4_setfacl.
Debian has it in package nfs4-acl-tools:
  https://tracker.debian.org/pkg/nfs4-acl-tools
Not very active but present from "old-old-stable" to Sid.

Maybe it is the right package to learn more about the attribute of your
file. Maybe it is even the origin of its existence.


Have a nice day :)

Thomas



Security Flaw:

2024-07-10 Thread Richard Bostrom
I cannot update my passphrase in crypttab although the passphrase is updated in 
the OS I cannot enter my OS without using the latest passphrase.

Yours sincerely
Richardh Bostrom

  1   2   3   4   5   6   7   8   9   10   >