Re: Debian 10 64bit

2020-12-14 Thread john doe

On 12/15/2020 1:45 AM, Jerry Mellon wrote:

I finally got around to installing debian 10 on my 64bit system(thus
removing the i386version I had originally instaled). The install went
well and I asked for a seperate Home particion. When I booted the system
and try to do "apt-get update and apt-get upgrade" using "sudo" it would
not let me do that. Said I was not a sudo user. I then tried "su root"
which failed as well as it said I was not a sudo user. I went to the
sudouse file and changed it to make me a user. Sudo as myself worked
fine but su root still did not work.

After seeing the email concering problems with sudo and su root I
decided to reload. I did but did a use whole disk (no home part).
After booting I did have to go to the sudouser file an change it again
but the su root worked with out a problem.

Only saying all of this because of the email chatter on sudo and su
root.




The 'su' utility has nothing to do with the 'sudo' utility and they are
controled separately.

The 'su do ('sudo')' utility is controled by the file '/etc/sudoers' or
by any file placed in the directory '/etc/sudoers.d'.
So to grand full access to a specific user in the sudoers file you would
have something like:

' ALL=(ALL) ALL'


Where  is to be substituted by the desired user.


The 'substitute user ('su')' utility is used in conbination with 'pam'
and is controled by the file '/etc/pam.d/su'.
Unless you know what you are doing, it is strongly suggested to use the
'--login' option to get a logging shell like so:

'su --login'


--
John Doe



Re: Tecla rápida XF86Sleep en teclado

2020-12-14 Thread Camaleón
El 2020-12-14 a las 21:35 +0100, Josu Lazkano escribió:

> He adquirido un nuevo teclado que dispone de algunas teclas rápidas, he
> podido configurar todos excepto el de apagado.
> 
> Utilizo XFCE y desde la configuración del teclado se pueden asignar los
> lanzadores para cada botón.
> 
> El problema lo tengo con el botón de apagado, no hay forma que se ejecute,
> he probado a lanzar cualquier aplicación, pero es como si hubiera otro
> proceso capturando ese botón.
> 
> La configuración está de esta forma:
> 
> [image: image.png]
> 
> El botón se llama XF86Sleep, ¿alguien sabe como puedo hacer funcionar ese
> botón?

La orden que has definido como atajo de teclado no se corresponde con 
lo que debería ejecutar XF86Sleep, es decir, tú has configurado el 
botón para que ejecute «xfce4-session-logout», que te saca el menú de 
opciones de cierre de sesión, pero XF86Sleep debería ejecutar 
directamente el procedimiento de entrada en suspensión del equipo (ojo, 
suspender «--suspend» no es apagar «--shutdown»).

Si no te ejecuta nada podría ser por dos motivos:

1. El atajo invoca la instrucción correcta pero la orden falla
2. El atajo no invoca la orden porque ya está asignada u otro proceso 
la tiene «secuestrada»

Yo probaría lo siguiente:

Para descartar 1., asigna la orden a otra tecla o combo para ver si 
funciona correctamente y descartas un fallo en la ejecución de la 
instrucción.

Para descartar 2., prueba a detener los procesos de salvapantallas o de 
configuración de energía que puedan estar estorbando.

Recuerda que los atajos los puedes configurar desde dos sitios:

Menú → Configuración → teclado
Menú → Gestor de ventanas → teclado

Saludos,

-- 
Camaleón 



Re: Debian 10 64bit

2020-12-14 Thread Peter Ehlert

I can not begin to explain sudo, I don't use it, but many do.
It's complicated, start reading here: https://wiki.debian.org/sudo/

On 12/14/20 4:45 PM, Jerry Mellon wrote:

I finally got around to installing debian 10 on my 64bit system(thus
removing the i386version I had originally instaled). The install went
well and I asked for a seperate Home particion. When I booted the system
and try to do "apt-get update and apt-get upgrade" using "sudo" it would
not let me do that. Said I was not a sudo user. I then tried "su root"
which failed as well as it said I was not a sudo user. I went to the
sudouse file and changed it to make me a user. Sudo as myself worked
fine but su root still did not work.

After seeing the email concering problems with sudo and su root I
decided to reload. I did but did a use whole disk (no home part).
After booting I did have to go to the sudouser file an change it again
but the su root worked with out a problem.

Only saying all of this because of the email chatter on sudo and su
root.

Thanks for the attention a great info.
Jerry







Debian 10 64bit

2020-12-14 Thread Jerry Mellon
I finally got around to installing debian 10 on my 64bit system(thus
removing the i386version I had originally instaled). The install went
well and I asked for a seperate Home particion. When I booted the system
and try to do "apt-get update and apt-get upgrade" using "sudo" it would
not let me do that. Said I was not a sudo user. I then tried "su root"
which failed as well as it said I was not a sudo user. I went to the
sudouse file and changed it to make me a user. Sudo as myself worked
fine but su root still did not work.

After seeing the email concering problems with sudo and su root I
decided to reload. I did but did a use whole disk (no home part).
After booting I did have to go to the sudouser file an change it again
but the su root worked with out a problem.

Only saying all of this because of the email chatter on sudo and su
root.

Thanks for the attention a great info.
Jerry




Debian 10 64bit

2020-12-14 Thread Jerry Mellon
I finally got around to installing debian 10 on my 64bit system(thus
removing the i386version I had originally instaled). The install went
well and I asked for a seperate Home particion. When I booted the system
and try to do "apt-get update and apt-get upgrade" using "sudo" it would
not let me do that. Said I was not a sudo user. I then tried "su root"
which failed as well as it said I was not a sudo user. I went to the
sudouse file and changed it to make me a user. Sudo as myself worked
fine but su root still did not work.

After seeing the email concering problems with sudo and su root I
decided to reload. I did but did a use whole disk (no home part).
After booting I did have to go to the sudouser file an change it again
but the su root worked with out a problem.

Only saying all of this because of the email chatter on sudo and su
root.

Thanks for the attention a great info.
Jerry




Debian 10 64bit

2020-12-14 Thread Jerry Mellon
I finally got around to installing debian 10 on my 64bit system(thus
removing the i386version I had originally instaled). The install went
well and I asked for a seperate Home particion. When I booted the system
and try to do "apt-get update and apt-get upgrade" using "sudo" it would
not let me do that. Said I was not a sudo user. I then tried "su root"
which failed as well as it said I was not a sudo user. I went to the
sudouse file and changed it to make me a user. Sudo as myself worked
fine but su root still did not work.

After seeing the email concering problems with sudo and su root I
decided to reload. I did but did a use whole disk (no home part).
After booting I did have to go to the sudouser file an change it again
but the su root worked with out a problem.

Only saying all of this because of the email chatter on sudo and su
root.

Thanks for the attention a great info.
Jerry




Debian 10 64bit

2020-12-14 Thread Jerry Mellon
I finally got around to installing debian 10 on my 64bit system(thus
removing the i386version I had originally instaled). The install went
well and I asked for a seperate Home particion. When I booted the system
and try to do "apt-get update and apt-get upgrade" using "sudo" it would
not let me do that. Said I was not a sudo user. I then tried "su root"
which failed as well as it said I was not a sudo user. I went to the
sudouse file and changed it to make me a user. Sudo as myself worked
fine but su root still did not work.

After seeing the email concering problems with sudo and su root I
decided to reload. I did but did a use whole disk (no home part).
After booting I did have to go to the sudouser file an change it again
but the su root worked with out a problem.

Only saying all of this because of the email chatter on sudo and su
root.

Thanks for the attention a great info.
Jerry




Re: ps2pdf: why differences in different instances using unchanged PS source file

2020-12-14 Thread Tom Browder
On Mon, Dec 14, 2020 at 4:36 PM Tom Browder  wrote:
> On Mon, Dec 14, 2020 at 16:06 David Warring  wrote:
>> Hi Tom,
>> Yes quite right. As The Wanderer points out the CreationDate and ModDate 
>> differ, as do the uuid in the Catalog Metadatas and the trailer ID.
...
> David, thanks! I knew you could do some fancy PDF hackery. I look forward to 
> trying it soon and will report back here.

It works like a charm!

I ran the script on each pdf, your program did its magic on each in
place, and a diff showed no difference!

Thank you so much, David! Another reason for people to pick up Raku programming.

Cheers and Merry Christmas to all of you.

-Tom

>
> Cheers!
>
> -Tom



Re: ps2pdf: why differences in different instances using unchanged PS source file

2020-12-14 Thread Tom Browder
On Mon, Dec 14, 2020 at 16:06 David Warring  wrote:

> This gist
> https://gist.github.com/dwarring/1e4e056d84d6fe125262bba1da1f58fb does
> this using the Raku PDF module. Usage is:
>
> p2s2pdf-strip.raku in.pdf [out.pdf] # post-process ps2pdf output
>

I can't read the fancy chars being input. Are they significant?

-Tom


Re: ps2pdf: why differences in different instances using unchanged PS source file

2020-12-14 Thread Tom Browder
On Mon, Dec 14, 2020 at 16:06 David Warring  wrote:

> Hi Tom,
> Yes quite right. As The Wanderer points out the CreationDate and ModDate
> differ, as do the uuid in the Catalog Metadatas and the trailer ID.
>
...

>
David, thanks! I knew you could do some fancy PDF hackery. I look forward
to trying it soon and will report back here.

Cheers!

-Tom


Re: ps2pdf: why differences in different instances using unchanged PS source file

2020-12-14 Thread David Warring
Hi Tom,
Yes quite right. As The Wanderer points out the CreationDate and ModDate
differ, as do the uuid in the Catalog Metadatas and the trailer ID.

I've found that deleting the optional dates from the Info dictionary, the
Metadata entry from the Catalog and resetting the ID does seem to be enough
to make output PDFs identical. In the simple case at least.

This gist https://gist.github.com/dwarring/1e4e056d84d6fe125262bba1da1f58fb
does
this using the Raku PDF module. Usage is:

p2s2pdf-strip.raku in.pdf [out.pdf] # post-process ps2pdf output

I've used the lower level PDF::Reader interface, which doesn't often get
used directly. But in this case, we also need to bypass Raku PDF also
attempting to update the same fields. The PDF also needs to be rewritten,
rather than being incrementally updated.

Hope that works in this case.

Regards
David Warring

On Mon, Dec 14, 2020 at 10:14 AM Tom Browder  wrote:

> On Sun, Dec 13, 2020 at 11:03 The Wanderer  wrote:
> > On 2020-12-13 at 11:40, Tom Browder wrote:
> > > personalized calendar for my wife. This year I have been cleaning up
> > > my old Perl generating code (in preparation for converting it to Raku
> > > [https://raku.org]) and noticed I am getting a different pdf output
> > > for each run, even when the PS output source file is unchanged!
> ...
> > What observation leads you to notice that the files are different?
>
> When I have both files under git revision control and committed, a
> rerun shows no change in the PS but a change in the PDF.
>
> I read the rest of this post and your additional post. Thank you for
> your forensic information. As long as I know what has changed, thanks
> to you, I am content for the moment.
> I have a Raku online friend (in CC above) who is an expert on PDF and
> has built voluminous tools with his PDF modules in Raku. I think he
> will either know about the problem or possibly know how to fix it
> since he deals with the binary output and modifying it after the fact.
>
> Have a very Happy New Year!
>
> Cheers,
>
> - Tom
>
> P.S. I wasn't aware of vbindiff (or maybe I forgot).
>


Wifi sélection du site ayant la meilleure réception

2020-12-14 Thread MERLIN Philippe
Bonjour,
Mon système d'exploiation est une  Debian Sid AMD64 et j'utilise Wicd pour me 
connecter automatiquement à un site cela marche très bien, cependant quand il 
y a un répéteur Wifi il choisit souvent le répéteur Wifi qui a une puissance de 
réception plus faible étant plus éloignée de l'ordinateur que le maître. Y a 
t'il un moyen pour que la sélection se fasse en cas d'égalité sur l'ID ayant 
la puissance de réception la plus  élevée.
J'ai cherché sur le net une solution sans succès.
Merci à l'avance pour vos suggestions.
Philippe Merlin




Tecla rápida XF86Sleep en teclado

2020-12-14 Thread Josu Lazkano
Buenas,

He adquirido un nuevo teclado que dispone de algunas teclas rápidas, he
podido configurar todos excepto el de apagado.

Utilizo XFCE y desde la configuración del teclado se pueden asignar los
lanzadores para cada botón.

El problema lo tengo con el botón de apagado, no hay forma que se ejecute,
he probado a lanzar cualquier aplicación, pero es como si hubiera otro
proceso capturando ese botón.

La configuración está de esta forma:

[image: image.png]

El botón se llama XF86Sleep, ¿alguien sabe como puedo hacer funcionar ese
botón?

Gracias por todo y un saludo.

-- 
Josu Lazkano


Re: Wifi sélection du site ayant la meilleure réception

2020-12-14 Thread steve

Le 14-12-2020, à 17:54:35 +0100, MERLIN Philippe a écrit :


Bonjour,
Mon système d'exploiation est une  Debian Sid AMD64 et j'utilise Wicd pour me
connecter automatiquement à un site cela marche très bien, cependant quand il
y a un répéteur Wifi il choisit souvent le répéteur Wifi qui a une puissance de
réception plus faible étant plus éloignée de l'ordinateur que le maître. Y a
t'il un moyen pour que la sélection se fasse en cas d'égalité sur l'ID ayant
la puissance de réception la plus  élevée.


Réponse courte: non avec du wifi5 (a-c-n).

La solution passe par du wifi6 (ax) et du mesh. Cette nouvelle norme
wifi est bluffante. Cela demande du nouveau matériel mais ça en vaut
vraiment le coup.



Re: sed remplacer les "[ ]" d'une chaine

2020-12-14 Thread fabricer

ah merci bien !

j'ai plusieurs fois été attrapé mais sans jamais chercher réellement *honte*

a+

f.

Le 14/12/2020 à 17:29, Gaëtan PERRIER a écrit :

Le lundi 14 décembre 2020 à 16:40 +0100, Jean-Marc a écrit :

Et de la même man page :
special characters, including '\', lose  their  special  significance
within a bracket expression.

En clair, le caractère '\' perd sa signification spéciale entre '[]'.


Ce qui fonctionne :
$ l'exemple de Bernard,

. plusieurs substitutions dans un seul sed :
$ echo "--[chaine]-" | sed 's/\[/-/g; s/\]/-/g'

---chaine--


. un sed "étendu" :
$ echo "--[chaine]-" | sed -E 's/(\]|\[)/-/g'

---chaine--





Et bien on se couchera moins bête ce soir !!! :)

Gaëtan






Re: sed remplacer les "[ ]" d'une chaine

2020-12-14 Thread Gaëtan PERRIER
Le lundi 14 décembre 2020 à 16:40 +0100, Jean-Marc a écrit :
> Et de la même man page :
> special characters, including '\', lose  their  special  significance
> within a bracket expression.
> 
> En clair, le caractère '\' perd sa signification spéciale entre '[]'.
> 
> 
> Ce qui fonctionne :
> $ l'exemple de Bernard,
> 
> . plusieurs substitutions dans un seul sed :
> $ echo "--[chaine]-" | sed 's/\[/-/g; s/\]/-/g'
> 
> ---chaine--
> 
> 
> . un sed "étendu" :
> $ echo "--[chaine]-" | sed -E 's/(\]|\[)/-/g'
> 
> ---chaine--
> 
> 
> 

Et bien on se couchera moins bête ce soir !!! :)

Gaëtan


signature.asc
Description: This is a digitally signed message part


[Résolu] Re: sed remplacer les "[ ]" d'une chaine

2020-12-14 Thread benoit
‐‐‐ Original Message ‐‐‐
Le lundi 14 décembre 2020 16:11, Bernard Isambert  a écrit :

> man 7 regex :
> Pour insérer un « ] » littéral dans la liste, il faut le mettre en
> première position (ou après un éventuel « ^ »).
>
> echo "--[chaine]-" | sed 's/[][]/-/g'
> ---chaine--
>

Un tout grand merci !

--
Benoit



Re: sed remplacer les "[ ]" d'une chaine

2020-12-14 Thread Jean-Marc
Et de la même man page :
special characters, including '\', lose  their  special  significance
within a bracket expression.

En clair, le caractère '\' perd sa signification spéciale entre '[]'.


Ce qui fonctionne :
$ l'exemple de Bernard,

. plusieurs substitutions dans un seul sed :
$ echo "--[chaine]-" | sed 's/\[/-/g; s/\]/-/g'

---chaine--


. un sed "étendu" :
$ echo "--[chaine]-" | sed -E 's/(\]|\[)/-/g'

---chaine--



-- 

Jean-Marc

Le 14/12/20 à 16:11, Bernard Isambert a écrit :
> man 7 regex :
> Pour insérer un « ] » littéral dans la liste, il faut le mettre en
> première position (ou après un éventuel « ^ »).
> 
> echo "--[chaine]-" | sed 's/[][]/-/g'
> ---chaine--
> 
> 
> Le 14/12/2020 à 14:51, benoit a écrit :
>> Bonjour à toutes et tous,
>> Je voudrais remplacer les caractères "[" et "]" avec sed, mais ils
>> fonts partie du «regroupement» de caractère à sélectionner. Je les ai
>> précédé d'un "\" ainsi :
>> sed 's/[\[\]]/-/g'
>> Mais ça ne marche pas...
>>
>> echo "--[chaine]-" | sed 's/[\[\]]/-/g'
>>  --[chaine]-
>>
>> Par contre ceci fonctionne :
>> echo "--[chaine]--" | sed 's/\[/-/g' | sed 's/\]/-/g'
>> ---chaine--
>> Même si ça marche, j'ai envie de comprendre...
>>
>> Merci d'avance
>>
>> -- 
>> Benoit
>>
>>
>> Sent with ProtonMail  Secure Email.
>>
> 



OpenPGP_signature
Description: OpenPGP digital signature


Re: sed remplacer les "[ ]" d'une chaine

2020-12-14 Thread Bernard Isambert

man 7 regex :
Pour insérer un « ] » littéral dans la liste, il faut le mettre en 
première position (ou après un éventuel « ^ »).


echo "--[chaine]-" | sed 's/[][]/-/g'
---chaine--


Le 14/12/2020 à 14:51, benoit a écrit :

Bonjour à toutes et tous,
Je voudrais remplacer les caractères "[" et "]" avec sed, mais ils 
fonts partie du «regroupement» de caractère à sélectionner. Je les ai 
précédé d'un "\" ainsi :

sed 's/[\[\]]/-/g'
Mais ça ne marche pas...

echo "--[chaine]-" | sed 's/[\[\]]/-/g'
 --[chaine]-

Par contre ceci fonctionne :
echo "--[chaine]--" | sed 's/\[/-/g' | sed 's/\]/-/g'
---chaine--
Même si ça marche, j'ai envie de comprendre...

Merci d'avance

--
Benoit


Sent with ProtonMail  Secure Email.



--
Bernard.
25 ans d'utilisation de Debian. Comme le temps passe...




sed remplacer les "[ ]" d'une chaine

2020-12-14 Thread benoit
Bonjour à toutes et tous,
Je voudrais remplacer les caractères "[" et "]" avec sed, mais ils fonts partie 
du «regroupement» de caractère à sélectionner. Je les ai précédé d'un "\" ainsi 
:
sed 's/[\[\]]/-/g'
Mais ça ne marche pas...

echo "--[chaine]-" | sed 's/[\[\]]/-/g'
--[chaine]-

Par contre ceci fonctionne :
echo "--[chaine]--" | sed 's/\[/-/g' | sed 's/\]/-/g'
---chaine--
Même si ça marche, j'ai envie de comprendre...

Merci d'avance

--
Benoit

Sent with [ProtonMail](https://protonmail.com) Secure Email.

Re: retirar e-mail dos envios de e-mails

2020-12-14 Thread Tiago Policarpo
Caríssimo,

Relembro, requer confirmação por parte do utilizador, mais informação em 
https://www.debian.org/MailingLists/unsubscribe


On segunda-feira, 14 de dezembro de 2020 13:21:31 WET joao mauricio machado de 
arujo wrote:
> Prezados,
> 
> Bom dia.
> 
> Favor retirar o meu e-mail joaomaurici...@gmail.com de todos os e-mails que
> são enviados.
> Não gostaria de receber mais e-mails de vocês.]
> 
> Agradeço desde já a atenção dispensada.
> 
> Atenciosamente,
> 
> *João Maurício Machado de Araújo*
> *Contato: (61) 9 9315-1984 (Claro)/ 3318-7600(Trab)*



Re: Can't print: /var/spool/lpd

2020-12-14 Thread Greg Wooledge
On Sat, Dec 12, 2020 at 01:14:35AM -0300, riveravaldez wrote:
> > chmod: no se puede acceder a '/var/spool/lpd/hl3150cdn': No existe el
> > fichero o el directorio
> 
> Sorry, I should've translated the error messages:
> 
> mkdir: can't create folder «...»: Folder or file doesn't exist
> 
> And the others:
> "no se puede acceder a" = "can't access to"
> "No existe el fichero o el directorio" = "File or folder doesn't exist"

For future requests, you can get English messages by overriding the LANG
(or LC_ALL) variable.

LC_ALL=C apt-get whatever

or, if you're in a csh/tcsh shell, or if you're using sudo:

env LC_ALL=C apt-get whatever

This is better than translating yourself, because the exact wording of the
"C" locale messages is extremely well known, and will convey information
to those reading your mail.  In particular, there is a big difference
between the messages "Permission denied" (errno 13) and "Operation not
permitted" (errno 1).



Re: retirar e-mail dos envios de e-mails

2020-12-14 Thread Paulo

João,

Isto vinha no final de cada e-mail, não sei porque sumiu, mas fica em 
https://lists.debian.org/debian-user-portuguese/

Lá você pode se desincrever (Unsubscribe).

Att,

Paulo Correia

Em 14/12/2020 10:21, joao mauricio machado de arujo escreveu:

Prezados,

Bom dia.

Favor retirar o meu e-mail joaomaurici...@gmail.com 
 de todos os e-mails que são enviados.

Não gostaria de receber mais e-mails de vocês.]

Agradeço desde já a atenção dispensada.

Atenciosamente,

/João Maurício Machado de Araújo/
/Contato: (61) 9 9315-1984 (Claro)/ 3318-7600(Trab)/


retirar e-mail dos envios de e-mails

2020-12-14 Thread joao mauricio machado de arujo
Prezados,

Bom dia.

Favor retirar o meu e-mail joaomaurici...@gmail.com de todos os e-mails que
são enviados.
Não gostaria de receber mais e-mails de vocês.]

Agradeço desde já a atenção dispensada.

Atenciosamente,

*João Maurício Machado de Araújo*
*Contato: (61) 9 9315-1984 (Claro)/ 3318-7600(Trab)*


Re: Debian 10 Buster - difficulty setting up mariaDB 10.3.27 users for use with Debian mediawiki 1.31 package

2020-12-14 Thread Keith Christian
On Mon, Dec 14, 2020 at 4:22 AM Joe  wrote:
>
> On Mon, 14 Dec 2020 10:01:15 +0100
> deloptes  wrote:
> You don't even need the CREATE USER.

> You can GRANT  TO 'fred'@'localhost' IDENTIFIED BY 'yyy'
> which will create user and privileges at the same time.

> Remember that modern versions of MySQL/MariaDB will not allow logging
> in as root unless you are already logged in to the terminal as operating
> system root. This means that phpmyadmin, if you use it, cannot login to
> the database root account, and you need a differently-named account with
> all privileges, including GRANT.

Joe,

Thanks for the GRANT hint and the reminder to configure users in a
terminal as root.
No phpmyadmin in use here, I'm using the terminal for everything, same
as in my $realjob.

Appreciate the reply, I'll try this new info from you and Deloptes and
see how it goes.

Keith



Re: Debian 10 Buster - difficulty setting up mariaDB 10.3.27 users for use with Debian mediawiki 1.31 package

2020-12-14 Thread Keith Christian
On Mon, Dec 14, 2020 at 2:01 AM deloptes  wrote:
>
> Keith Christian wrote:

> When installed in Debian it does not have password (AFAIR). It is sufficient
> to execute "mysql -u root -p" and press ENTER to log in. You then change
> the password.

> Regarding --skip-grant-tables I used this just last week to reset a root
> password for a customer.
> It seems there are two different methods depending on what version you use.

> Could be that you have something on the network side? From which host do you
> log in?

> So
> mysql -u mediawiki -p -h localhost
> is not working as well?

> CREATE USER 'mediawiki'@'localhost' IDENTIFIED BY 'xxx';
> GRANT Select ,Insert ,Update ,Delete ,Create ,Drop , Index ,Alter  ON
> mediawiki.* TO 'mediawiki'@'localhost';
> flush privileges;


Deloptes,

I will try the login method and 'grant' as you suggest above.
The database is on the same host, I should have mentioned that, and I
see now that the setup for MariaDB has changed from when I last
installed a mediawiki instance under Debian.

Thanks for the info!



Re: running microsoft team on debian 10.3

2020-12-14 Thread Eric S Fraga
On Wednesday,  9 Dec 2020 at 14:10, Eric S Fraga wrote:
> Zoom has the same limitation on Linux but at least zoom allows the
> other participants to zoom (no pun intended) into the view presented
> by the application.

Update: it does seem that zoom allows sharing individual
windows.  Worked for me this morning with 100 participants.  I do have a
paid-for zoom account (via my work place).

-- 
Eric S Fraga via Emacs 28.0.50 & org 9.4 on Debian bullseye/sid



Re: Bug#977358: release-notes: document how to make the rescue mode usable if no root password is set (buster)

2020-12-14 Thread nickgeovanis
Thanks Andrei.

On Mon, Dec 14, 2020, 5:15 AM Andrei POPESCU 
wrote:

> Package: release-notes
> X-Debbugs-CC: debian-user@lists.debian.org
>
> Dear Release Notes Maintainers,
>
> Some text based on below would make sense for the Release Notes for
> buster. If agreed I'll try to come up with a wording.
>
> On Lu, 07 dec 20, 10:11:48, Greg Wooledge wrote:
> > On Sat, Dec 05, 2020 at 12:41:57PM +0200, Andrei POPESCU wrote:
> > > On Vi, 04 dec 20, 08:09:44, Greg Wooledge wrote:
> > > > I am also going to guess that Deepin, like Ubuntu, defaults to giving
> > > > you a user account with sudo access, and no root password.  You can
> > > > achieve that in Debian as well, by doing something special during the
> > > > installation.  In all cases, it's a stupid idea and you shouldn't do
> it.
> > >
> > > This is a pretty strong (and harsh!) statement. Care to expand on the
> > > reasons?
> >
> > It prevents access to single-user mode.  The fact that Debian (and
> > these others?) still puts a single-user mode entry into the GRUB menu,
> > knowing that it won't work, is just adding insult to injury.
>
> A web search found #802211[1].
>
> Short version:
>
> For systemd >= 240 (buster[2]) run as root
>
> systemctl edit rescue.service
>
> and add:
>
> [Service]
> Environment=SYSTEMD_SULOGIN_FORCE=1
>
> (see /usr/share/doc/systemd/ENVIRONMENT.md.gz)
>
>
> The 'rescue.service' is started by systemd in case it detects 'single'
> on the kernel command line (see systemd(1)).
>
> You might want to do the same for 'emergency.service' as well (or
> instead), since this service is started *automatically* in case of
> certain errors (see systemd.special(7)) or if you add 'emergency' to the
> kernel command line (e.g. if you can't fix your system via the 'rescue'
> service).
>
>
> An untested patch to the Debian Installer exists to add both snippets if
> the user chooses to leave the root password blank.
>
>
> [1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=802211
> [2] see the bug for another snippet that should work for squeeze or
> earlier.
>
> Kind regards,
> Andrei
> --
> http://wiki.debian.org/FAQsFromDebianUser
>


Re: telecharger video

2020-12-14 Thread Kohler Gerard

bonjour,

suite à vos réponses je me suis fait un petit script python basic (très 
certainement améliorable !) qui marche pas mal


il faut éditer certaine adresse pour les charger

exemple :

https://www.youtube.com/watch?v=VHDnNYTS0jI=RDCMUCFMQG2aYndcIPHGNfmkTo_w=4

devient :

https://www.youtube.com/watch?v=VHDnNYTS0jI=4

merci encore

voici le script :


/#!/usr/bin/python3
# -*- coding: UTF8 -*-


from tkinter import *
from tkinter import ttk
from tkinter.filedialog import askdirectory
import os
import subprocess


class fenetre() :
    def __init__(self) :
        self.mafenetre = Tk()
        self.mafenetre.title("Donwload video")
        self.mafenetre.resizable(False,False)
        self.destination = os.getcwd()
        self.videoNom = ""
        self.label=Label(self.mafenetre,text="URL de la video : ")
        self.label.grid(row=2,column=1)
        self.videoIn=Entry(self.mafenetre,width=70)
        self.videoIn.grid(row=2,column=2)
        self.boutonCharge = 
Button(self.mafenetre,text="Download",command=self.charger)

        self.boutonCharge.grid(row=2,column=3)
        self.labeldir=Label(self.mafenetre,text="Repertoire de 
destination : ")

        self.labeldir.grid(row=3,column=1)
        self.destinationIn=Entry(self.mafenetre,width=70)
        self.destinationIn.insert(1,self.destination)
        self.destinationIn.grid(row=3,column=2)
        self.boutonFichier = 
Button(self.mafenetre,text="Destination",command=self.chrepertoire)

        self.boutonFichier.grid(row=3,column=3)
        self.boutonQuitter = 
Button(self.mafenetre,text="Quitter",command=self.quitter)

        self.boutonQuitter.grid(row=4,column=2)

    def chrepertoire(self) :
        self.destination = askdirectory(title="chosir un repertoire 
d'enregistrement")

        self.destinationIn.delete(0,END)
        self.destinationIn.insert(1,self.destination)
    def charger(self) :
        if self.destination=="" :
            self.destination = askdirectory(title="chosir un repertoire 
d'enregistrement")

        os.chdir(self.destination)
        self.videoNom=self.videoIn.get()
        print(self.videoNom)
        print(self.destination)
        processus = 
subprocess.Popen(['youtube-dlc','--playlist-end','1',self.videoNom])

        processus.wait()
        print("fin")
    def run(self) :
        self.mafenetre.mainloop()
    def quitter(self) :
        self.mafenetre.quit()

f=fenetre()
f.run()/



Re: Debian 10 Buster - difficulty setting up mariaDB 10.3.27 users for use with Debian mediawiki 1.31 package

2020-12-14 Thread Joe
On Mon, 14 Dec 2020 10:01:15 +0100
deloptes  wrote:

> Keith Christian wrote:
> 
> > Next, I logged in with this:
> > mysql -u root -p
> > 
> > But as I remembered, (it's been awhile) one cannot create any users
> > in this mode due to --skip-grant-tables.  
> 
> When installed in Debian it does not have password (AFAIR). It is
> sufficient to execute "mysql -u root -p" and press ENTER to log in.
> You then change the password.
> 
> Regarding --skip-grant-tables I used this just last week to reset a
> root password for a customer.
> It seems there are two different methods depending on what version
> you use.
> 
> > but I can't log in with either user after restarting MariaDB with:
> > sudo systemctl start mariadb
> >   
> 
> Could be that you have something on the network side? From which host
> do you log in?
> 
> > Seems I must always log in with
> > mysql -u root -p
> >   
> 
> This is working only on localhost
> 
> > There are lots of web pages mentioning this problem but none are
> > complete enough and my attempts have failed.
> > 
> > SO.Looking for a "bulletproof" document to set up MariaDB users
> > so I can get on with configuring Mediawiki.
> >   
> 
> Just try 
> mysql -u root -p -h localhost
> 
> > I don't want to login as a 'root'@'localhost' user for routine DB
> > work and would rather use the 'mediawiki'@localhost' user for that.
> >  
> So
> mysql -u mediawiki -p -h localhost
> is not working as well?
> 
> I use following and never had issue with that
> 
> CREATE USER 'mediawiki'@'localhost' IDENTIFIED BY 'xxx';
> GRANT Select ,Insert ,Update ,Delete ,Create ,Drop , Index ,Alter  ON
> mediawiki.* TO 'mediawiki'@'localhost';
> flush privileges;
> 
> Remember the client can access only on local host.
> 
You don't even need the CREATE USER.

You can GRANT  TO 'fred'@'localhost' IDENTIFIED BY 'yyy'
which will create user and privileges at the same time.

Remember that modern versions of MySQL/MariaDB will not allow logging
in as root unless you are already logged in to the terminal as operating
system root. This means that phpmyadmin, if you use it, cannot login to
the database root account, and you need a differently-named account with
all privileges, including GRANT.

-- 
Joe



Bug#977358: release-notes: document how to make the rescue mode usable if no root password is set (buster)

2020-12-14 Thread Andrei POPESCU
Package: release-notes
X-Debbugs-CC: debian-user@lists.debian.org

Dear Release Notes Maintainers,

Some text based on below would make sense for the Release Notes for 
buster. If agreed I'll try to come up with a wording.

On Lu, 07 dec 20, 10:11:48, Greg Wooledge wrote:
> On Sat, Dec 05, 2020 at 12:41:57PM +0200, Andrei POPESCU wrote:
> > On Vi, 04 dec 20, 08:09:44, Greg Wooledge wrote:
> > > I am also going to guess that Deepin, like Ubuntu, defaults to giving
> > > you a user account with sudo access, and no root password.  You can
> > > achieve that in Debian as well, by doing something special during the
> > > installation.  In all cases, it's a stupid idea and you shouldn't do it.
> > 
> > This is a pretty strong (and harsh!) statement. Care to expand on the 
> > reasons?
> 
> It prevents access to single-user mode.  The fact that Debian (and
> these others?) still puts a single-user mode entry into the GRUB menu,
> knowing that it won't work, is just adding insult to injury.

A web search found #802211[1].

Short version:

For systemd >= 240 (buster[2]) run as root

systemctl edit rescue.service

and add:

[Service]
Environment=SYSTEMD_SULOGIN_FORCE=1

(see /usr/share/doc/systemd/ENVIRONMENT.md.gz)


The 'rescue.service' is started by systemd in case it detects 'single' 
on the kernel command line (see systemd(1)).

You might want to do the same for 'emergency.service' as well (or 
instead), since this service is started *automatically* in case of 
certain errors (see systemd.special(7)) or if you add 'emergency' to the 
kernel command line (e.g. if you can't fix your system via the 'rescue' 
service).


An untested patch to the Debian Installer exists to add both snippets if 
the user chooses to leave the root password blank.


[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=802211
[2] see the bug for another snippet that should work for squeeze or 
earlier.

Kind regards,
Andrei
-- 
http://wiki.debian.org/FAQsFromDebianUser


signature.asc
Description: PGP signature


Comment associer les identifiants 802.1X aux baux DHCP ?

2020-12-14 Thread Olivier
Bonjour,

Dans un environnement WiFi où les utilisateurs utilisent leurs propres
appareils (PC portables, smartphones avec un total de 4 appareils maximum),
comment associer l'identifiant 802.1X à un bail DHCP ?

Idéalement, j'aimerai pouvoir implémenter une règle déterministe du type:
"si un appareil s'identifie avec l'identifiant 802.1X Foo, je lui affecte
une adresse dans le pool 192.168.1.150-154,
s'il s'identifie avec l'identifiant 802.1X Bar, je lui affecte une adresse
dans le pool 192.168.1.155-159, etc ..."

À défaut, un log consignant les 2 infos (adresse IP et identifiant 802.1X)
dans un même support (fichier ou base de données) me suffirait probablement.


J'ai jeté un coup d'oeil intéressé sur la doc du serveur DHCP intégré à
Freeradius mais :
- je n'y pas retrouvé explicitement qu'une telle association était
implémentée,
- je ne l'ai pas trouvé très détaillée ou facile à aborder.

Avez-vous déjà expérimenté ce serveur DHCP ?
Qu'en pensez-vous ?

Slts


Re: Debian 10 Buster - difficulty setting up mariaDB 10.3.27 users for use with Debian mediawiki 1.31 package

2020-12-14 Thread deloptes
Keith Christian wrote:

> Next, I logged in with this:
> mysql -u root -p
> 
> But as I remembered, (it's been awhile) one cannot create any users in
> this mode due to --skip-grant-tables.

When installed in Debian it does not have password (AFAIR). It is sufficient
to execute "mysql -u root -p" and press ENTER to log in. You then change
the password.

Regarding --skip-grant-tables I used this just last week to reset a root
password for a customer.
It seems there are two different methods depending on what version you use.

> but I can't log in with either user after restarting MariaDB with:
> sudo systemctl start mariadb
> 

Could be that you have something on the network side? From which host do you
log in?

> Seems I must always log in with
> mysql -u root -p
> 

This is working only on localhost

> There are lots of web pages mentioning this problem but none are
> complete enough and my attempts have failed.
> 
> SO.Looking for a "bulletproof" document to set up MariaDB users so
> I can get on with configuring Mediawiki.
> 

Just try 
mysql -u root -p -h localhost

> I don't want to login as a 'root'@'localhost' user for routine DB work
> and would rather use the 'mediawiki'@localhost' user for that.
So
mysql -u mediawiki -p -h localhost
is not working as well?

I use following and never had issue with that

CREATE USER 'mediawiki'@'localhost' IDENTIFIED BY 'xxx';
GRANT Select ,Insert ,Update ,Delete ,Create ,Drop , Index ,Alter  ON
mediawiki.* TO 'mediawiki'@'localhost';
flush privileges;

Remember the client can access only on local host.





Re: Ipv6, but no Ipv4 after reboot

2020-12-14 Thread Dominique Dumont
On Thursday, 10 December 2020 10:34:38 CET Andrei POPESCU wrote:
> > This could be the source of your problems. My suggestion would be to
> > delete both connections, and create a new one from scratch.
> 
> More in detail, at start Network Manager is using one connection and on
> reconnect the other (compare the 'connection.uuid').

ok, here's what I did:
- deleted both wired connection
- created a new connection named "Wired LAN"

After reboot, NetworkManager shows up a new connection named "eno2" that uses  
eno2 interface and configured only for Ipv6.

Note that this eno2 connection does not show up in /etc/NetworkManager/system-
connections/. Only 'Wired LAN.nmconnection' is there.

This eno2 connection is removed from the list of available connection (in 
NetworkManager configuration widget) once I connect "Wired LAN" using 
NetworkManager widget.

All the best