Re: Cuelgues aleatorios

2023-09-19 Thread Luis Muñoz Fuente


El 18/9/23 a las 17:56, Camaleón escribió:
Muchas gracias a todos por vuestras ideas. Voy a investigarlas. Primero
he activado poder reiniciar con SysRq.

También he desactivado la aceleración por hardware de los navegadores.

Ya os contaré si lo soluciono.

Saludos



Re: Variable de entorno para un programa específico.

2023-09-19 Thread fernando sainz
El mié, 20 sept 2023 a las 7:34, fernando sainz (<
fernandojose.sa...@gmail.com>) escribió:

>
> Puedes crear un alias e iniciar la variable en él.
>
> alias 'avidemus=QT_QPA_PLATFORM=xcb  /usr/bin/avidemux'
>
> No se si es lo que buscas, espero te sirva.
>
> Un saludo.
>
>
>
Perdón, la comilla lógicamente no va ahi...
alias avidemus ='QT_QPA_PLATFORM=xcb  /usr/bin/avidemux'


Saludos.



> El mar, 19 sept 2023 a las 23:20, JavierDebian (<
> javier.debian.bb...@gmail.com>) escribió:
>
>> Buenas tardes.
>>
>> Hace un tiempo, escribí esto:
>> https://lists.debian.org/debian-user-spanish/2023/06/msg00022.html
>>
>> Con Avidemux, lo he solucionado, parcialmente.
>> Abro consola y
>> $ export QT_QPA_PLATFORM=xcb
>> $ avidemux
>>
>> Es decir, configuro la variable de entorno QT_QPA_PLATFORM para que
>> utilice X11 en vez de Wayland, en una consola dentro de una sesión en
>> Plasma KDE Wayland.
>> Va de maravilla.
>> Lindo pero impráctico.
>>
>> La preguntonta:
>> ¿Cómo hacer para configurar UN programa específico para que utilice X11
>> en lugar de Wayland cuando inicie?
>>
>> Sé cómo poner variables de entorno.
>> Sé cómo hacerlas volátiles o permanentes.
>> Sé como hacerlo localmente y para todo el sistema.
>> No sé cómo hacerlo para UN programa específico, y no lo encuentro.
>>
>> Gracias.
>>
>> JAP
>>
>>


Re: Variable de entorno para un programa específico.

2023-09-19 Thread fernando sainz
Puedes crear un alias e iniciar la variable en él.

alias 'avidemus=QT_QPA_PLATFORM=xcb  /usr/bin/avidemux'

No se si es lo que buscas, espero te sirva.

Un saludo.


El mar, 19 sept 2023 a las 23:20, JavierDebian (<
javier.debian.bb...@gmail.com>) escribió:

> Buenas tardes.
>
> Hace un tiempo, escribí esto:
> https://lists.debian.org/debian-user-spanish/2023/06/msg00022.html
>
> Con Avidemux, lo he solucionado, parcialmente.
> Abro consola y
> $ export QT_QPA_PLATFORM=xcb
> $ avidemux
>
> Es decir, configuro la variable de entorno QT_QPA_PLATFORM para que
> utilice X11 en vez de Wayland, en una consola dentro de una sesión en
> Plasma KDE Wayland.
> Va de maravilla.
> Lindo pero impráctico.
>
> La preguntonta:
> ¿Cómo hacer para configurar UN programa específico para que utilice X11
> en lugar de Wayland cuando inicie?
>
> Sé cómo poner variables de entorno.
> Sé cómo hacerlas volátiles o permanentes.
> Sé como hacerlo localmente y para todo el sistema.
> No sé cómo hacerlo para UN programa específico, y no lo encuentro.
>
> Gracias.
>
> JAP
>
>


Printer HP LaserJet MFP M234sdw 5085B1

2023-09-19 Thread Aleix Piulachs
Hallo linuxers
Almost all the files on this printer are for debian-buster but I’m using
bookworm with python3.11 and the laptop asus f75a with:
Host bridge: intel 3rd gen
VGA: intel 3rd gen core processor graphics

Isa bridge: intel hm76 express chipset LPC controller

Communication controler: intel 7series/c216 chipset family MEI controller

SATA controller: intel 7series 6port AHCI mode

The files That fail are:

python3_3.7.3-1_amd64.deb
python3-minimal_3.7.3-1_amd64.deb
libpython3.7-minimal:amd64
libpython3.7-stdlib:amd64
libqt4-dbus:amd64
libqtcore4:amd64
libqtdbus4:amd64
libqtgui4:amd64
python3.7-minimal
python3-dbus.mainloop.qt
python3-pyqt4
qdbus
libqt4-declarative:amd64
libqt4-designer:amd64
libqt4-help:amd64
libqt4-network:amd64
libqt4-script:amd64
libqt4-scripttools:amd64
libqt4-sql:amd64
libqt4-svg:amd64
libqt4-test:amd64
libqt4-xml:amd64
libqt4-xmlpatterns:amd64
libqtassistantclient4:amd64

error: debian-12 version is not supported, so all dependències may not be
installed. However trying to install using debian-11 version packages
I’ve installed it but there’s a file problem
python3-dbus.mainloop.qt

Can you solve it?
I’ ve downloaded hplip too.. and there are problems


Re: [a bit OT] Automate a (G o o g l e) search from a list of strings

2023-09-19 Thread Greg Wooledge
On Tue, Sep 19, 2023 at 09:53:25PM -0400, Karl Vogel wrote:
> On Tue, Sep 19, 2023 at 10:42:14AM -0400, steve wrote:
> > I have a list of 200 keywords and would like for every one to launch a
> > search on a specific website and put the result(s) in a file [...]
> 
> Take a list of words and turn it into a single Google query matching any
> of them:
> 
> me% cat keywords
> corsairs
> buccaneers
> privateers
> 
> Desired query:
> 
> https://www.google.com/search?q=corsairs+OR+buccaneers+OR+privateers

It sounds more like steve wanted 200 separate searches, one for each
keyword.  For that, you'd use a very simple loop.

> Script:
> 
> me% cat search
> #!/bin/sh
> export PATH=/usr/local/bin:/bin:/usr/bin
> set -o nounset
> umask 022
> 
> query=$(tr "[:space:]" "+" < keywords |
> sed -e 's/ /+OR+/g' -e 's/+$//' -e 's/+/+OR+/g')
> 
> curl -s -L -o pirate.htm "https://www.google.com/search?q=${query};
> ls -l pirate.htm
> exit 0

Joining a list (array) of strings into a big string is so horribly ugly
in /bin/sh.  Switching to bash buys you so many better options.

#!/bin/bash
mapfile -t words < keywords
printf -v query '%s+OR+' "${words[@]}"
query=${query%+OR+}
curl -s -L -o output.html "https://www.google.com/search?q=$query;

Of course, if you were writing this for publication, you'd want to
URL-encode the keywords themselves, because they might contain spaces,
plus signs, ampersands, etc.



Re: [a bit OT] Automate a (G o o g l e) search from a list of strings

2023-09-19 Thread Karl Vogel
On Tue, Sep 19, 2023 at 10:42:14AM -0400, steve wrote:
> I have a list of 200 keywords and would like for every one to launch a
> search on a specific website and put the result(s) in a file [...]

Take a list of words and turn it into a single Google query matching any
of them:

me% cat keywords
corsairs
buccaneers
privateers

Desired query:

https://www.google.com/search?q=corsairs+OR+buccaneers+OR+privateers

Script:

me% cat search
#!/bin/sh
export PATH=/usr/local/bin:/bin:/usr/bin
set -o nounset
umask 022

query=$(tr "[:space:]" "+" < keywords |
sed -e 's/ /+OR+/g' -e 's/+$//' -e 's/+/+OR+/g')

curl -s -L -o pirate.htm "https://www.google.com/search?q=${query};
ls -l pirate.htm
exit 0

Results:

me% ./search
-rw-r--r-- 1 vogelke 220487 19-Sep-2023 21:33:21 pirate.htm

If you want results in text form, lots of programs can do that:

me% lynx -cookies -accept_all_cookies -dump -width 80 pirate.htm
Tampa Bay Buccaneers: Buccaneers Home
www.buccaneers.com
The official source of the latest Bucs headlines, news, videos, photos,
tickets, rosters, stats, schedule and gameday information.
  
People also ask
What is the difference between a pirate and a corsair?
What kind of pirate is a corsair?
What were Spanish pirates called?
What is the history of corsairs?

Pirates, Privateers, Corsairs, Buccaneers: What's the Difference?
www.britannica.com > Demystified > Geography & Travel
Corsairs were essentially privateers, although the term corsair carried
an added religious connotation because the conflict was between Muslim
and Christian...

HTH.

-- 
Karl Vogel  I don't speak for the USAF or my company

Leonardo diCaprio in Titanic: Despite acting like a plank of wood,
he still can't float.  --"Top Ten Most Welcome Movie Deaths", Stylus Magazine



enregistrament d'àudio amb el xip Realtek ALC1220

2023-09-19 Thread Ernest Adrogué
Hola,

Fa més de 3 anys que estic intentant enregistrar àudio amb el xip de
so integrat Realtek ALC1220 i encara no ho he aconseguit.

Concretament és el xip que porta la placa mare X470 Taichi d'Asrock.

Algú està familiaritzat amb aquest maquinari i ha aconseguit
enregistrar so?

He provat de tot, però només aconsegueixo enregistrar silenci o soroll
estàtic.  Un cop vaig enregistrar la sortida.  Però l'entrada mai.


Salutacions



Variable de entorno para un programa específico.

2023-09-19 Thread JavierDebian

Buenas tardes.

Hace un tiempo, escribí esto:
https://lists.debian.org/debian-user-spanish/2023/06/msg00022.html

Con Avidemux, lo he solucionado, parcialmente.
Abro consola y
$ export QT_QPA_PLATFORM=xcb
$ avidemux

Es decir, configuro la variable de entorno QT_QPA_PLATFORM para que 
utilice X11 en vez de Wayland, en una consola dentro de una sesión en 
Plasma KDE Wayland.

Va de maravilla.
Lindo pero impráctico.

La preguntonta:
¿Cómo hacer para configurar UN programa específico para que utilice X11 
en lugar de Wayland cuando inicie?


Sé cómo poner variables de entorno.
Sé cómo hacerlas volátiles o permanentes.
Sé como hacerlo localmente y para todo el sistema.
No sé cómo hacerlo para UN programa específico, y no lo encuentro.

Gracias.

JAP



Re: [a bit OT] Automate a (G o o g l e) search from a list of strings

2023-09-19 Thread Jason

On 19.09.23 16:52, Nicolas George wrote:

If not, then what you intend is completely forbidden by Google's terms
and service. And they have detection: please only do this on a computer
and network access when you will be the only one inconvenienced when
they block your access. It happened on a computer I co-administrate.


I wouldn't query Google directly. They are evil, as already mentioned.

Use an alternative front-end, for example https://searx.be
Source and list of public instances https://github.com/searxng/searxng

cheers
Jason




OpenPGP_0x0D0C34B5DF58FE9D.asc
Description: OpenPGP public key


OpenPGP_signature.asc
Description: OpenPGP digital signature


Re: Amanda (was: sata driver compataility Q)

2023-09-19 Thread Glenn
My all time fav for file level backups is BackupPC. De-duplicates files in the 
compressed pool.

Glenn 

On September 19, 2023 12:18:36 p.m. ADT, gene heskett  
wrote:
>On 9/19/23 08:59, Stefan Monnier wrote:
>>> Compared to the setup required for amanda, that sounds very inviting. Amanda
>>> has a very steep learning curve just because it is so versatile I'm still
>>> waiting on stuff, so no more actual progress.
>> 
>> I used Amanda many years ago and was quite pleased with it, but I must
>> say I'm having a hard time imagining it in my current world where tapes
>> don't make much sense for backups.
>> 
>Thats where vtapes come in, A vtape is nothing more than a directory on the 
>backup medium, which for me was a BIG hard drive with in my case, 60 suddirs, 
>used as tapes. Each contained individual files identified as to backup level 
>which was a way ti differentiate a full copy, or what had ben changed since 
>the last full, or what had been changed since the last level 1, wash rinse 
>repeat for ever deeper levels. And with or w/o compression. Executables 
>generally aren't worth the time to compress. Ditto for a dir full if pictures 
>or pdf's. They are not very compressible.  In the days of tapes, a buffer 
>drive was used to build up each entry as a big file that was then copied to 
>the tape w/o any shoe-shining of the tapedrive, saveibg the huge wear and tear 
>of the tape if it had to stop and wait for data from the compressor. Then back 
>uo a few feet, back forward to begin a fresh write at the end of the previous 
>track. But since spinning rust is random access, amd so is the vtape, I don't 
>think the anti-shoeshine has much if any advantage whrn using vtapes. With 
>some filesystems it might reduce fragmentation but that was never a problem 
>with ext4. I ran with that buffer drive for about 17 yeas, starting out with a 
>4 tape seagate dds4 tape drive but it was by far, the least dependable thing 
>in that whole chain. I was then backing up 3 cnc machines and this ones 
>predecessor, but the drive needed a months vacation in Oklahoma city about 2x 
>a year for a new head drum that seagate would not sell me, a CET with 
>extensive experience replacing even smaller, more precise and damn sure more 
>expensive at $3500 a copy dvc-pro broadcast vcr heads.  So I tried vtapes, 
>first on a 220G drive but soon opted for a bigger one as they became 
>available, and had just graduated to a pair of seagates first 2T's, both of 
>which just disapeared off the sata buss in the middle of the night. the main 
>drive for this machine and the amanda drive. They were about 2 weeks old. So I 
>rebuilt this machine using a 500G Samsung SSD. I was out of the amanda 
>business and lost everything with those 2 failures, whih upset me so much I 
>never tried to warranty them. I was done with spinning rust.
>
>Some of the loss was the only pix of my first wife who had a stroke and died 
>in '68 at 34. Left me with 3 children to raise, but the big C and a bottle of 
>scotch has since eliminated them. And my personal email archive that went back 
>to '98 when I built my first linux machine using a 400 mhz k6 cpu. Put RedHat 
>5.0 on it.  And I was in hog heaven, I never owned a windows machine until I 
>needed one for the road after I retired in 2002 and became a consultant, going 
>around to other tv stations putting out engineering fires created by wannabe 
>engineers. The windows xp on it lasted about 2 weeks that it took me to find 
>out windows xp had no drivers for the radio in it, but mandrake did.
>
>Amanda keeps a database, so if something gets erased you need later, it could 
>be recovered as long as in my case 60 days later before the vtape has been 
>reused.
>
>One of the things my wrapper did was append that database to the end of that 
>vtape when amanda was finished from its nightly run, thereby making it 
>possible to do a bare metal recovery to the state that existed during the run. 
>Without that, you lost the most recent run because the database you backed up 
>was yesterdays.
>
>So AFAIAC, amanda was the king. Then amanda was handed over to Zmanda, who 
>eventually went bust and sold it to betsol, who has done zip for it in several 
>years.  Community support from other users is all thats left.
>Not the end of it of course, but somebody who actually cares needs to fork it 
>and become its new leader. 95% of the work on amanda has been driven by 
>changes in tar over the last decade+.
>
>> What are the use cases where Amanda still beats the pants down of
>> competitors like Borg or Bup?
>
>I know nothing about either of those. This thread ought to have input from 
>their users so people can make more informed decisions as to which is best for 
>their situation.
>> 
>> 
>>  Stefan
>Take care & stay well, Stefan, and other readers.
>> 
>> .
>
>Cheers, Gene Heskett.
>-- 
>"There are four boxes to be used in defense of liberty:
> soap, ballot, jury, and ammo. Please use in that order."

Re: [a bit OT] Automate a (G o o g l e) search from a list of strings

2023-09-19 Thread DdB
Am 19.09.2023 um 16:41 schrieb steve:
> I guess I could code a Python script to do that but if something already
> exists I'd rather use it.
Really, your wording is very vague and thus, i donno, if i even
understand, what your trying to accomplish.

But from what my phantasies entice, i would maybe use wget to search one
site, eventually modify the output with awk, and parallelize it all for
several websites by the means of GNU parallel, expecting to create a
one-liner for it.

just my 2 cents
DdB



Re: Amanda (was: sata driver compataility Q)

2023-09-19 Thread gene heskett

On 9/19/23 08:59, Stefan Monnier wrote:

Compared to the setup required for amanda, that sounds very inviting. Amanda
has a very steep learning curve just because it is so versatile I'm still
waiting on stuff, so no more actual progress.


I used Amanda many years ago and was quite pleased with it, but I must
say I'm having a hard time imagining it in my current world where tapes
don't make much sense for backups.

Thats where vtapes come in, A vtape is nothing more than a directory on 
the backup medium, which for me was a BIG hard drive with in my case, 60 
suddirs, used as tapes. Each contained individual files identified as to 
backup level which was a way ti differentiate a full copy, or what had 
ben changed since the last full, or what had been changed since the last 
level 1, wash rinse repeat for ever deeper levels. And with or w/o 
compression. Executables generally aren't worth the time to compress. 
Ditto for a dir full if pictures or pdf's. They are not very 
compressible.  In the days of tapes, a buffer drive was used to build up 
each entry as a big file that was then copied to the tape w/o any 
shoe-shining of the tapedrive, saveibg the huge wear and tear of the 
tape if it had to stop and wait for data from the compressor. Then back 
uo a few feet, back forward to begin a fresh write at the end of the 
previous track. But since spinning rust is random access, amd so is the 
vtape, I don't think the anti-shoeshine has much if any advantage whrn 
using vtapes. With some filesystems it might reduce fragmentation but 
that was never a problem with ext4. I ran with that buffer drive for 
about 17 yeas, starting out with a 4 tape seagate dds4 tape drive but it 
was by far, the least dependable thing in that whole chain. I was then 
backing up 3 cnc machines and this ones predecessor, but the drive 
needed a months vacation in Oklahoma city about 2x a year for a new head 
drum that seagate would not sell me, a CET with extensive experience 
replacing even smaller, more precise and damn sure more expensive at 
$3500 a copy dvc-pro broadcast vcr heads.  So I tried vtapes, first on a 
220G drive but soon opted for a bigger one as they became available, and 
had just graduated to a pair of seagates first 2T's, both of which just 
disapeared off the sata buss in the middle of the night. the main drive 
for this machine and the amanda drive. They were about 2 weeks old. So I 
rebuilt this machine using a 500G Samsung SSD. I was out of the amanda 
business and lost everything with those 2 failures, whih upset me so 
much I never tried to warranty them. I was done with spinning rust.


Some of the loss was the only pix of my first wife who had a stroke and 
died in '68 at 34. Left me with 3 children to raise, but the big C and a 
bottle of scotch has since eliminated them. And my personal email 
archive that went back to '98 when I built my first linux machine using 
a 400 mhz k6 cpu. Put RedHat 5.0 on it.  And I was in hog heaven, I 
never owned a windows machine until I needed one for the road after I 
retired in 2002 and became a consultant, going around to other tv 
stations putting out engineering fires created by wannabe engineers. The 
windows xp on it lasted about 2 weeks that it took me to find out 
windows xp had no drivers for the radio in it, but mandrake did.


Amanda keeps a database, so if something gets erased you need later, it 
could be recovered as long as in my case 60 days later before the vtape 
has been reused.


One of the things my wrapper did was append that database to the end of 
that vtape when amanda was finished from its nightly run, thereby making 
it possible to do a bare metal recovery to the state that existed during 
the run. Without that, you lost the most recent run because the database 
you backed up was yesterdays.


So AFAIAC, amanda was the king. Then amanda was handed over to Zmanda, 
who eventually went bust and sold it to betsol, who has done zip for it 
in several years.  Community support from other users is all thats left.
Not the end of it of course, but somebody who actually cares needs to 
fork it and become its new leader. 95% of the work on amanda has been 
driven by changes in tar over the last decade+.



What are the use cases where Amanda still beats the pants down of
competitors like Borg or Bup?


I know nothing about either of those. This thread ought to have input 
from their users so people can make more informed decisions as to which 
is best for their situation.



 Stefan

Take care & stay well, Stefan, and other readers.


.


Cheers, Gene Heskett.
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page 



Re: [a bit OT] Automate a (G o o g l e) search from a list of strings

2023-09-19 Thread Nicolas George
steve (12023-09-19):
> I have a list of 200 keywords and would like for every one to launch a
> search on a specific website and put the result(s) in a file, something
> like:
> 
> search keyword website: example.com >> file.csv
> 
> I guess I could code a Python script to do that but if something already
> exists I'd rather use it.
> 
> Any ideas or links ?

Hi.

If you have access to Google's APIs, then the answer is probably in
their documentation.

If not, then what you intend is completely forbidden by Google's terms
and service. And they have detection: please only do this on a computer
and network access when you will be the only one inconvenienced when
they block your access. It happened on a computer I co-administrate.

Regards,

-- 
  Nicolas George



Re: [a bit OT] Automate a (G o o g l e) search from a list of strings

2023-09-19 Thread Michael Kjörling
On 19 Sep 2023 16:41 +0200, from dl...@bluewin.ch (steve):
> I have a list of 200 keywords and would like for every one to launch a
> search on a specific website and put the result(s) in a file, something
> like:
> 
> search keyword website: example.com >> file.csv
> 
> I guess I could code a Python script to do that but if something already
> exists I'd rather use it.

Look at pup.

-- 
Michael Kjörling  https://michael.kjorling.se
“Remember when, on the Internet, nobody cared that you were a dog?”



[a bit OT] Automate a (G o o g l e) search from a list of strings

2023-09-19 Thread steve

Hello,

I'm sorry if this question is a bit OT but since the answer will be
implemented from a Debian machine, it's not completely OT :)

I have a list of 200 keywords and would like for every one to launch a
search on a specific website and put the result(s) in a file, something
like:

search keyword website: example.com >> file.csv

I guess I could code a Python script to do that but if something already
exists I'd rather use it.

Any ideas or links ?

Thanks !

s.



Re: [HS] Patche de binaires ?

2023-09-19 Thread Basile Starynkevitch


On 9/19/23 14:40, ptilou wrote:

Slt,

Je me demande si il existe des lectures pour savoir comment manipuler des 
binaires et puis de les patchers ?

Je sais qu'il y a des personnes qui sont capable de lire le binnaire ( en plus 
de programmes qui font du reverse et modifie les fichiers encapsules !), et 
donc j'aimerai apprendre les fondements de la technique a optimiser le binaire, 
que dois je lire (?) , je n'ai pas vue de question a ce sujet, je l'ai vue en 
action a la St Olivetti (optimiser le binaire) ...

Je me demande si seulement vous ne savez pas le faire, et que le patche kernel 
ou autre ce fait par script et comparaison du binaires sortie de compile avec 
diff ?



Je comprends qu'il s'agit de patcher des executables binaires (au format 
ELF).


Si le binaire est propriétaire, il y a des cas où c'est illégal. A voir 
avec son employeur ou avocat et la licence logicielle du binaire.


Si modifier un binaire est légal, c'est en pratique très compliqué. Si 
on peut lancer le binaire (sous gdb) c'est mieux. Car en pratique un 
binaire a des dépendances (utiliser /usr/bin/ldd pour les découvrir, 
voir aussi les greffons chargés par 
https://man7.org/linux/man-pages/man3/dlopen.3.html ...).


Si on peut arrêter un processus exécutant ce binaire, voir aussi 
https://man7.org/linux/man-pages/man5/proc.5.html



Un binaire sous Linux peut aussi et légitimement modifier son propre 
code  https://asmjit.com/ et https://gcc.gnu.org/onlinedocs/jit/ et 
https://en.wikipedia.org/wiki/Self-modifying_code etc


(un exemple réaliste est https://sbcl.org/ ou http://refpersys.org/ )

Des outils comme 
https://sourceware.org/binutils/docs/binutils/readelf.html et 
https://binsec.github.io/ et https://www.sourceware.org/gdb/ peuvent aider.


Ma préférence est pour le logiciel libre, et dans ce cas là, il est plus 
simple de recompiler le code source après l'avoir modifié.


--
Basile Starynkevitch
(only mine opinions / les opinions sont miennes uniquement)
92340 Bourg-la-Reine, France
web page: starynkevitch.net/Basile/


Re: disque dur mort ?

2023-09-19 Thread linux.debian.user.french
Le dimanche 17 septembre 2023 à 12:30:04 UTC+2, Klaus Becker a écrit :
> Télécharger BlueMail pour Android
> Le 13 sept. 2023, à 18:16, hamster  a écrit:
> Le 13/09/2023 à 11:50, Klaus Becker a écrit :
>  Salut,
>  
>  Mon dd sata est reconnu par le bios, mais sinon inaccessible. Au 
>  démarrage, grub apparaît, mais il refuse de booster. Il dit qu'il n'y a 
>  pas de disque système.
>  Sous Knoppix, j'ai essayé avec cfdisk, gparted, smartmontools, montage 
>  manuel, rien à faire. Une clé USB avec une image ISO d'installation 
>  Debian ne reconnaît pas le dd non plus.
>  Thunar sous Knoppix affiche les partitions du dd, mais il ne peut pas 
>  les monter.
>  
>  Je crains devoir faire le deuil de ce dd, mais je suis preneur pour des 
>  conseils
> 
> Ce que tu dis pas c'est si y'a des données importantes a récupérer ou si 
> tu cherche juste a savoir si le disque est mort.
> 
> A faire sous knopix ou autre sytème live :
> 
> ### Cas ou tu te fous des données, tu veux juste juger la santé du disque :
> 
> - Verifier que le disque est vu avec la comande lsblk (a priori oui vu 
> que thunar voit les partitions).
> - Regarder les données smart, si ca dit qu'il y a plein de messages 
> d'erreur, c'est pas bon.
> - Lancer badblocks sur ce disque (avec les options -s et -w).
> 
> ### Cas ou tu cherche a récupérer les données :
> 
> - Verifier que le disque est vu avec la comande lsblk (a priori oui vu 
> que thunar voit les partitions).
> 
> - Regarder les données smart, si ca dit qu'il y a plein de messages 
> d'erreur, c'est pas bon.
> 
> - Essayer de cloner ce disque avec ddrescue. Une fois le clone fait ne 
> plus toucher au disque.
> 
> - Faire une copie du clone.
> 
> - Essayer de réparer les systèmes de fichiers qui sont dans les 
> partitions avec fsck sur la copie du clone. Si ca marche tant mieux, t'a 
> accès a tes données. Si ca marche pas, tu peux supprimer la copie du 
> clone, en faire une autre, re-essayer fsck.
> 
> - Si ca marche toujours pas, tu peux essayer de lancer photorec sur le 
> clone.
> 
> - Une fois que tu a soit récupéré tes données, soit atteint la certitude 
> qu'elles sont perdues, tu peux retourner a l'étape ### cas ou tu te fous 
> des données.
> 
> - Quand tu aura soit
> Merci de tous ces conseils, mais aucune commande ci-dessus ne reconnait le 
> dd, il doit vraiment etre mort.
> J'ai une sauvegarde. Elle date de plusieurs jours, mais la perte de donnees 
> ne sera pas enorme.
> Aussi je n'ai jamais utilise de raid sur mon pc et je n'ai pas cette option 
> dans mon Bios.
> J'ai plus qu'a acheter un nouveau dd et copier mes sauvegardes dessus.
> Bye bye
> Klaus

Si il est reconnu dans le bios ...
C'est que le chipset du disque dur communique avec la carte mere !
Donc je ne vois pas pourquoi il serait mort, par contre je sais qu'il y a des 
commandes specifique par exemple essaye de lire les inodes (man 01)

Bon courage, (ici les personnes ne sont pas competentes, mais y a des commandes 
bas niveau en HEX, et tu peux regareder il ya de la rom sur la carte du DD)

-- 
Ptilou



Amanda (was: sata driver compataility Q)

2023-09-19 Thread Stefan Monnier
> Compared to the setup required for amanda, that sounds very inviting. Amanda
> has a very steep learning curve just because it is so versatile I'm still
> waiting on stuff, so no more actual progress.

I used Amanda many years ago and was quite pleased with it, but I must
say I'm having a hard time imagining it in my current world where tapes
don't make much sense for backups.

What are the use cases where Amanda still beats the pants down of
competitors like Borg or Bup?


Stefan



Samba+Kerberos inside LXC container...

2023-09-19 Thread nimrod
Hi,

I'm running an LXC container on a Debian 12 host. The container, named
"samba", aims to share a directory in an Active Directory environment
(functional level 2016).

The container is joined to the domain using the realm command. Inside
the container I can login with any domain user without any problem. 

I can also access the share with a command like:

$ smbclient //dl560/dati -U someuser -W BNCRM

and issuing the right credentials when prompted.

What I cannot absolutely get working is access the same share with
Kerberos:

$ smbclient -k //dl560/dati

The above command is run as an authenticated user, who can perfectly
well access another share on a virtual Debian 10 server. If I issue the
above command with the -d10 option I get the long output below.

I've mapped 445 port this way:

$ lxc config device add samba port445 proxy listen=tcp:0.0.0.0:445
connect=tcp:10.65.65.147:445

Any suggestionwould be very appreciated. I can try to provide any
missing information.giuli

Best regards.

-
$ smbclient -k //dl560/dati
WARNING: The option -k|--kerberos is deprecated!
INFO: Current debug levels:
all: 10
tdb: 10
printdrivers: 10
lanman: 10
smb: 10
rpc_parse: 10
rpc_srv: 10
rpc_cli: 10
passdb: 10
sam: 10
auth: 10
winbind: 10
vfs: 10
idmap: 10
quota: 10
acls: 10
locking: 10
msdfs: 10
dmapi: 10
registry: 10
scavenger: 10
dns: 10
ldb: 10
tevent: 10
auth_audit: 10
auth_json_audit: 10
kerberos: 10
drs_repl: 10
smb2: 10
smb2_credits: 10
dsdb_audit: 10
dsdb_json_audit: 10
dsdb_password_audit: 10
dsdb_password_json_audit: 10
dsdb_transaction_audit: 10
dsdb_transaction_json_audit: 10
dsdb_group_audit: 10
dsdb_group_json_audit: 10
lp_load_ex: refreshing parameters
Initialising global parameters
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit
(16384)
INFO: Current debug levels:
all: 10
tdb: 10
printdrivers: 10
lanman: 10
smb: 10
rpc_parse: 10
rpc_srv: 10
rpc_cli: 10
passdb: 10
sam: 10
auth: 10
winbind: 10
vfs: 10
idmap: 10
quota: 10
acls: 10
locking: 10
msdfs: 10
dmapi: 10
registry: 10
scavenger: 10
dns: 10
ldb: 10
tevent: 10
auth_audit: 10
auth_json_audit: 10
kerberos: 10
drs_repl: 10
smb2: 10
smb2_credits: 10
dsdb_audit: 10
dsdb_json_audit: 10
dsdb_password_audit: 10
dsdb_password_json_audit: 10
dsdb_transaction_audit: 10
dsdb_transaction_json_audit: 10
dsdb_group_audit: 10
dsdb_group_json_audit: 10
Processing section "[global]"
doing parameter workgroup = WORKGROUP
doing parameter log file = /var/log/samba/log.%m
doing parameter max log size = 1000
doing parameter logging = file
doing parameter panic action = /usr/share/samba/panic-action %d
doing parameter server role = standalone server
doing parameter obey pam restrictions = yes
doing parameter unix password sync = yes
doing parameter passwd program = /usr/bin/passwd %u
doing parameter passwd chat = *Enter\snew\s*\spassword:* %n\n
*Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
doing parameter pam password change = yes
doing parameter map to guest = bad user
doing parameter usershare allow guests = yes
pm_process() returned Yes
lp_servicenumber: couldn't find homes
added interface lxcbr0 ip=10.0.3.1 bcast=10.0.3.255
netmask=255.255.255.0
added interface lxdbr0 ip=10.190.52.1 bcast=10.190.52.255
netmask=255.255.255.0
added interface eno1 ip=192.168.0.77 bcast=192.168.1.255
netmask=255.255.254.0
Client started (version 4.17.10-Debian).
Opening cache file at /run/samba/gencache.tdb
tdb(/run/samba/gencache.tdb): tdb_open_ex: could not open file
/run/samba/gencache.tdb: Permission denied
gencache_init: Opening user cache file
/home/someuser/.cache/samba/gencache.tdb.
sitename_fetch: No stored sitename for realm ''
internal_resolve_name: looking up dl560#20 (sitename (null))
namecache_fetch: name dl560#20 found.
remove_duplicate_addrs2: looking for duplicate address/port pairs
Connecting to 192.168.0.5 at port 445
socket options: SO_KEEPALIVE=0, SO_REUSEADDR=0, SO_BROADCAST=0,
TCP_NODELAY=1, TCP_KEEPCNT=9, TCP_KEEPIDLE=7200, TCP_KEEPINTVL=75,
IPTOS_LOWDELAY=0, IPTOS_THROUGHPUT=0, SO_REUSEPORT=0, SO_SNDBUF=87040,
SO_RCVBUF=131072, SO_SNDLOWAT=1, SO_RCVLOWAT=1, SO_SNDTIMEO=0,
SO_RCVTIMEO=0, TCP_QUICKACK=1, TCP_DEFER_ACCEPT=0, TCP_USER_TIMEOUT=0
session request ok
negotiated dialect[SMB3_11] against server[dl560]
cli_session_setup_spnego_send: Connect to dl560 as someu...@bncrm.roma
using SPNEGO
GENSEC backend 'gssapi_spnego' registered
GENSEC backend 'gssapi_krb5' registered
GENSEC backend 'gssapi_krb5_sasl' registered
GENSEC backend 'spnego' registered
GENSEC backend 'schannel' registered
GENSEC backend 'ncalrpc_as_system' registered
GENSEC backend 'sasl-EXTERNAL' registered
GENSEC backend 'ntlmssp' registered
GENSEC backend 'ntlmssp_resume_ccache' registered
GENSEC backend 'http_basic' registered
GENSEC backend 'http_ntlm' registered
GENSEC backend 'http_negotiate' registered
GENSEC backend 'krb5' registered
GENSEC backend 'fake_gssapi_krb5' registered
Starting GENSEC mechanism spnego
Starting GENSEC 

[HS] Patche de binnaires ?

2023-09-19 Thread ptilou
Slt,

Je me demande si il existe des lectures pour savoir comment manipuler des 
binaires et puis de les patchers ?

Je sais qu'il y a des personnes qui sont capable de lire le binnaire ( en plus 
de programmes qui font du reverse et modifie les fichiers encapsules !), et 
donc j'aimerai apprendre les fondements de la technique a optimiser le binaire, 
que dois je lire (?) , je n'ai pas vue de question a ce sujet, je l'ai vue en 
action a la St Olivetti (optimiser le binaire) ...

Je me demande si seulement vous ne savez pas le faire, et que le patche kernel 
ou autre ce fait par script et comparaison du binaires sortie de compile avec 
diff ?

Merci

-- 
Ptilou



Re: El meu PC amb Bookworm s'ha quedat mut ...

2023-09-19 Thread Leopold Palomo-Avellaneda

El 19/9/23 a les 7:42, Narcis Garcia ha escrit:
El què faria per a esbrinar si és cosa de la distribució o de com està la teva 
instal·lació, és arrencar en una sessió «Live» (USB) de la mateixa versió Bookworm.


Gràcies per les respostes, però sembla que hi ha hagut un esperit de la nit ha 
ha fet feina i aquest matí ha funcionat. Què ha fet? Ni punyetera idea.


No hi ha cosa que més em molesti que aquest tipus de coses.

Leopold


--
--
Linux User 152692 GPG: 05F4A7A949A2D9AA
Catalonia
-
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?