Re: Most maintainable way to install perl modules on Debian sysetms

2020-11-15 Thread Joel Roth
Hi Michael,

On Sun, Nov 15, 2020 at 08:50:57PM +, Michael Grant wrote:
> I try to keep my systems as up to date as possible.  I use apt update 
> regularly.  When I can install a perl module from apt, I usually do so 
> because then apt update picks up new versions of it.  When I install 
> something which has a dependency on a perl module in apt, that module gets 
> installed.  Things just work and I am unstressed and happy.
> 
> However, what should I do if I need a perl module that someone hasn’t kindly 
> created a package for?  I know I can install it from cpan.  But once I do 
> that, then I have to keep that module up to date via cpan.  Perhaps I’m not 
> alone and someone has a way to cross maintain these things that I’m unaware 
> of?
> 
> So I yesterday, I decided to install a perl module from cpan.  I ran cpan for 
> the first time in a long time, it asked me some question which I took the 
> default (maybe I shouldn’t have!), then I installed Mail::DMARC.  It 
> downloaded the source, grinded away for several minutes and when it was 
> finished, it successfully installed the module.  Miraculous!
> 
> But it installed it in /usr/share/perl/5.30/Mail/DMARC.
> 
> I thought that’s odd, why would it install it in a folder that has a perl 
> version?  Why not somewhere a bit more general like /usr/share/perl5?

The directory location may not suit you, but for the short
term you should be able to get the modules you want
installed using root and the cpan client. 

Another way is to use a module called local::lib, 
that let's you have a tree of perl modules in 
an unprivileged directory (by default 
$HOME/perl5). 

It requires setting some environment variables.
Then you need a cpan client that will work with
local::lib. That is cpanm.

So apt-get install liblocal-lib-perl libapp-cpanminus-perl

Setup environment according to `man local::lib`

Then install any module you need with

cpanm Some::Module 

cpanm will respect the environment variable and install
it with all dependencies. You will need to have a
compiler present for building modules with C extensions. 
 
> What happens when Perl gets updated and /usr/share/perl/5.30/ is no longer in 
> perl’s search path for its modules?  I’m worried that using this DMARC perl 
> module, updating perl could just break mail someday!  Shouldn’t the default 
> for cpan be something other than this version based directory on Debian?  
> Should I worry about this?  (this may be more a CPAN question than a Debian 
> question to be honest).

This approach, using an unprivileged directory tree that is
merged with debian perl libraries, will work 
with an upgraded system perl if the modules
are pure perl. Modules with compiled C code
(using perl's XS interface language) will *not* be
compatible with an upgraded binary. 

> So my question is, is there a recommended, maintainable way to install perl 
> modules on Debian that are not installed by apt-get such that things get 
> updated properly?
 
If the locally installed modules are pure perl, they should
be compatible with a newer perl. You will have to determine
if and when you upgrade these modules.

It's possible the same module could be installed in your
local::lib as in the system libraries.  In that case,
libraries will be searched in order specfied by the
$PERL5LIB environment variable. 

FWIW I used to use local::lib, long since prefer to compile my 
own perl interpreters and libraries. Perlbrew and plenv
are tools for managing multiple perl versions. 

have fun,

> I suppose this could even be a general question when you consider other 
> things like python, php, nodejs  and others, all of which have their own 
> module systems.  Feels like there’s a need for a sort of meta-module system 
> that works with apt, but I’m not sure which is why I am asking here.
> 
> Suggestions and advice welcome!
> 
> Michael Grant

-- 
Joel Roth



https://www.solonoticias.com/

2020-11-15 Thread Jesus Gabriel Perez Menocal
Gmail: enviado de Jesús Gabriel Pérez Menocal.☆

Re: Most maintainable way to install perl modules on Debian sysetms

2020-11-15 Thread Andy Smith
Hello,

On Sun, Nov 15, 2020 at 08:14:05PM -0500, Michael Grant wrote:
> > Well, that would do the job thoughtlessly. It might backfire
> > spectacularly.

[…]

> apt has an excellent reputation, I'm not sure I see why mechanizing
> such a process as apt does should be necessarily be bad.  I'm not
> talking about blind nightly updates.

The issue is that somewhere behind the scenes is a human being, the
Debian package maintainer, who is backporting security fixes (but
not new features!) from newer releases of the module into a Debian
package for a given Debian release.

That's not a mechanical process.

So when proposing to adopt a mechanical process, it's not comparable
to what an actually maintained Debian package is like; it's just a
CPAN module in a convenient format.

Most of the time the upstream author is mindful of backward
compatibility issues and isn't going to release something onto CPAN
that breaks things, but sometimes it's unavoidable and sometimes the
author isn't mindful of this. There is a big variance in quality of
CPAN modules.

So probably the best thing you can do is cpan2deb and stick with
those versions that you have tested, unless an update comes along
with security fixes or features you need.

You can install the package "cpanoutdated" which will tell you about
newer versions on CPAN compared to on your system, though it will
report quite a lot of packaged stuff as being outdated, which is
only to be expected.

Cheers,
Andy

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



Re: vnc is making my cry

2020-11-15 Thread Umarzuki Mochlis
On Mon, 16 Nov 2020 at 00:32, Thomas Anderson
 wrote:
>
...
>
> I have read through the log file
>
> xrdb: No such file or directory
>
> xrdb: can't open file '/home/username/.Xresources'

check if this file still exists/permissions

>
> /usr/bin/startxfce4: X server already running on display :1
>
>
> I am running Gnome on both desktops. Ah! That's why the other one worked
> in the past -- I was not running Gnome on it. But, that doesn't bring me
> closer to a solution other than not running Gnome on the two machines,
> which I would rather not do, they are robust enough to run Gnome.
>
>
> Any advice help or encouragement would be appreciated.
>
> Neo
>
>



Re: Most maintainable way to install perl modules on Debian sysetms

2020-11-15 Thread Michael Grant
> Well, that would do the job thoughtlessly. It might backfire
> spectacularly.
> 
> If one set up a service in that way, it would eventually get a
> terrible reputation.
> 
> If, on the other hand, one spent the time to maintain those
> packages properly... you could be a Debian Maintainer, and get
> them into the primary repos.
> 
> The third course, that doesn't commit you to doing that work and 
> doesn't expose you to that risk, is more or less as I've already
> outlined. 

apt has an excellent reputation, I'm not sure I see why mechanizing
such a process as apt does should be necessarily be bad.  I'm not
talking about blind nightly updates.

If this is truely the best way at the moment to keep perl modules
maintainable, I will try it.

Thanks.


signature.asc
Description: PGP signature


Re: Most maintainable way to install perl modules on Debian sysetms

2020-11-15 Thread Dan Ritter
Michael Grant wrote: 
> > cpan2deb takes a CPAN module and builds it as a Debian package.
> > Use a common suffix like -mgrant and you can spot these in
> > package listings.
> > 
> > When you upgrade, build new versions of all the -mgrant
> > packages.
> 
> Thanks.  So in one way this makes it easier to remove the module which
> cpan doesn't do, but I'd still have to track the module manually and
> run this again and again, remembering or scripting something to do all
> of this automatically.
> 
> Has anyone built something which when you ran apt upgrade, it would
> look at each of these packages that were made by cpan2deb, then look
> in cpan to see if the module was updated, then create a new deb and
> upgrade the package?
> 
> That would really automate the whole process like apt upgrade.

Well, that would do the job thoughtlessly. It might backfire
spectacularly.

If one set up a service in that way, it would eventually get a
terrible reputation.

If, on the other hand, one spent the time to maintain those
packages properly... you could be a Debian Maintainer, and get
them into the primary repos.

The third course, that doesn't commit you to doing that work and 
doesn't expose you to that risk, is more or less as I've already
outlined. 

-dsr-



Re: Most maintainable way to install perl modules on Debian sysetms

2020-11-15 Thread Michael Grant
> cpan2deb takes a CPAN module and builds it as a Debian package.
> Use a common suffix like -mgrant and you can spot these in
> package listings.
> 
> When you upgrade, build new versions of all the -mgrant
> packages.

Thanks.  So in one way this makes it easier to remove the module which
cpan doesn't do, but I'd still have to track the module manually and
run this again and again, remembering or scripting something to do all
of this automatically.

Has anyone built something which when you ran apt upgrade, it would
look at each of these packages that were made by cpan2deb, then look
in cpan to see if the module was updated, then create a new deb and
upgrade the package?

That would really automate the whole process like apt upgrade.


signature.asc
Description: PGP signature


Re: Fwd: Je n'arrive toujours pas à envoyer mes courriel à "debian-user-french@lists.debian.org"

2020-11-15 Thread l0f4r0
16 nov. 2020 à 00:01 de martin_vez...@videotron.ca:

>
> Le message qui m'est retourné est le suivant:
>
> Final-recipient: rfc822; > debian-user-french@lists.debian.org>  
> Diagnostic-Code: smtp; 550 5.1.7 >  
> > : Sender address rejected: undeliverable 
> address: host mx.videotron.ca[24.201.245.37] said: 550 5.1.0 Internal error. 
> (in reply to MAIL FROM command)
>
A ce stade, je ne vois pas mieux que le whitelisting que j'évoquais + contacter 
listmas...@lists.debian.org vu que Videotron n'a visiblement rien à dire de son 
côté...

16 nov. 2020 à 00:03 de martin_vez...@videotron.ca:

> et j'ai envoyer le message à "> debian-user-french@lists.debian.org> "
>
En effet, je ne vois pas cette réponse sur la ML.

Bon courage
l0f4r0



Re: Most maintainable way to install perl modules on Debian sysetms

2020-11-15 Thread Dan Ritter
Michael Grant wrote: 
> I try to keep my systems as up to date as possible.  I use apt update 
> regularly.  When I can install a perl module from apt, I usually do so 
> because then apt update picks up new versions of it.  When I install 
> something which has a dependency on a perl module in apt, that module gets 
> installed.  Things just work and I am unstressed and happy.
> 
> However, what should I do if I need a perl module that someone hasn???t 
> kindly created a package for?  I know I can install it from cpan.  But once I 
> do that, then I have to keep that module up to date via cpan.  Perhaps I???m 
> not alone and someone has a way to cross maintain these things that I???m 
> unaware of?

cpan2deb takes a CPAN module and builds it as a Debian package.
Use a common suffix like -mgrant and you can spot these in
package listings.

When you upgrade, build new versions of all the -mgrant
packages.

-dsr-



Re: Fwd: Je n'arrive toujours pas à envoyer mes courriel à "debian-user-french@lists.debian.org"

2020-11-15 Thread l0f4r0
Bonjour,

> Je n'arrive toujours pas à envoyer mes courriels à > 
> "debian-user-french@lists.debian.org" 
> >  avec mon adresse courriel > 
> "martin_vez...@videotron.ca" > ? Au Québec 
> les gran fournisseurssont Bell et Videotron... Je l'ais contactés et 
> il mon dit quele problème vient de  lists.debian.org. Je n'aime pas 
> utiliséeHotmail de Mircorsoft!
>
Quel est le message d'erreur ?

L'inscription sur https://lists.debian.org/whitelist/ aide-t-elle ?

Bien cordialement,
l0f4r0



Re: Instructions for command line usage of WiFi.

2020-11-15 Thread Stefan Monnier
> Incidentally, I'd prefer to say that authentication is conducted by 
> "authenticator" and "authenticatee".  Meaning is fairly obvious.

There's also client/server, but I think the 11x people felt this would
too easy to grasp.


Stefan



Re: Instructions for command line usage of WiFi.

2020-11-15 Thread peter
From: Reco 
Date: Fri, 6 Nov 2020 08:25:39 +0300
> [1] also states that:
>
> The wpasupplicant package ...
> 
> In simplier terms: no wpasupplicant = no WPA2.

Your simplified statement is invaluable.  "Less is more".

The rather inscrutable section entitled "wpa_supplicant" follows the 
section entitled "WPS" which follows the section entitled "Command 
Line".  The structure of the document certainly doesn't explain the 
relationship of components well. Unhelpful to a novice.  Obvously no 
problem for an expert.  But who should be helped by documentation?

I guess most connections now require authentication.  The explanation 
should be consistent with reality.

My effort to make WiFi work, using network access by a mobile tablet, 
was tough going.  Installation of packages was painful.  I abandoned 
the effort, took the HDD back to a system with wired Ethernet, 
installed LXDE, wicd and dependencies and got WiFI to work.  =8~)

I wonder why the netinstall process in the ISO image doen't include at 
least the base support for WiFi?  Too much data?  Negligence in 
planning the ISO build?

Incidentally, I'd prefer to say that authentication is conducted by 
"authenticator" and "authenticatee".  Meaning is fairly obvious.  
Symmetry is as valuable in technical terminology as in vehicle design.
Yah, I've read https://en.wikipedia.org/wiki/Supplicant_(computer).
Can't help but think that the authors of 802.1X were being a little 
too clever with "authenticator" and "supplicant".  Make it simple as 
possible!

Thanks for the help,  ... P.





-- 
Tel: +1 604 670 0140Bcc: peter at easthope. ca



Fwd: Je n'arrive toujours pas à envoyer mes courriel à "debian-user-french@lists.debian.org"

2020-11-15 Thread bubu




 Message transféré 
Sujet : 	Je n'arrive toujours pas à envoyer mes courriel à 
"debian-user-french@lists.debian.org"

Date de renvoi :Sun, 15 Nov 2020 20:51:10 + (UTC)
De (renvoi) :   debian-l10n-fre...@lists.debian.org
Date :  Sun, 15 Nov 2020 20:18:58 +
De :Martin Vézina 
Pour : 	debian-l10n-fre...@lists.debian.org 
, Martin Vézina 





Je n'arrive toujours pas à envoyer mes courriels à 
"debian-user-french@lists.debian.org" avec mon adresse courriel 
"martin_vez...@videotron.ca"? Au Québec les gran fournisseurs sont Bell 
et Videotron... Je l'ais contactés et il mon dit que le problème vient 
de  lists.debian.org. Je n'aime pas utilisée Hotmail de Mircorsoft!


Most maintainable way to install perl modules on Debian sysetms

2020-11-15 Thread Michael Grant
I try to keep my systems as up to date as possible.  I use apt update 
regularly.  When I can install a perl module from apt, I usually do so because 
then apt update picks up new versions of it.  When I install something which 
has a dependency on a perl module in apt, that module gets installed.  Things 
just work and I am unstressed and happy.

However, what should I do if I need a perl module that someone hasn’t kindly 
created a package for?  I know I can install it from cpan.  But once I do that, 
then I have to keep that module up to date via cpan.  Perhaps I’m not alone and 
someone has a way to cross maintain these things that I’m unaware of?

So I yesterday, I decided to install a perl module from cpan.  I ran cpan for 
the first time in a long time, it asked me some question which I took the 
default (maybe I shouldn’t have!), then I installed Mail::DMARC.  It downloaded 
the source, grinded away for several minutes and when it was finished, it 
successfully installed the module.  Miraculous!

But it installed it in /usr/share/perl/5.30/Mail/DMARC.

I thought that’s odd, why would it install it in a folder that has a perl 
version?  Why not somewhere a bit more general like /usr/share/perl5?

What happens when Perl gets updated and /usr/share/perl/5.30/ is no longer in 
perl’s search path for its modules?  I’m worried that using this DMARC perl 
module, updating perl could just break mail someday!  Shouldn’t the default for 
cpan be something other than this version based directory on Debian?  Should I 
worry about this?  (this may be more a CPAN question than a Debian question to 
be honest).

So my question is, is there a recommended, maintainable way to install perl 
modules on Debian that are not installed by apt-get such that things get 
updated properly?

I suppose this could even be a general question when you consider other things 
like python, php, nodejs  and others, all of which have their own module 
systems.  Feels like there’s a need for a sort of meta-module system that works 
with apt, but I’m not sure which is why I am asking here.

Suggestions and advice welcome!

Michael Grant


Re: How to manage audio volume unattended.

2020-11-15 Thread Juan R. de Silva


> Normalize the volume of the mp3 files beforehand rather than adjusting
> the volume of the player in real time for each individual file (e.g.
> with an app like python-rgain)?
> 
> Or does this not speak to the reason for the volume changes?

Unfortunately, it does not in this particular case. However, I might find 
suggested useful in other cases anyway. 

Thanks.



Re: How to manage audio volume unattended.

2020-11-15 Thread Juan R. de Silva
On Sun, 15 Nov 2020 14:46:01 +, Brian wrote:

> On Sun 15 Nov 2020 at 02:35:39 -, Juan R. de Silva wrote:
> 
>> I use cron job to run VLC several times a day at predefined times. Each
>> time a different mp3 file is played and I need to set different audio
>> volume for each file. I also need to make it working unattended.
> 
> Set the volume level before running vlc:
> 
>   amixer sset 'Master' 10%

Setting the volume before running vlc is not an option (see my OP) thus 
it would help using amixer instead of pactl. I'd hit the same wall. 

But thank you anyway.



Re: How to manage audio volume unattended.

2020-11-15 Thread Juan R. de Silva
On Sun, 15 Nov 2020 02:35:39 +, Juan R. de Silva wrote:

Thanks to all replied and a lot of helpful suggestion. I'm working on 
it. :-)




M.2 2230 key e wifi 6 card

2020-11-15 Thread basti
Hello,
I want to use my old intel nuc as router/AP and plan to replace the wifi
card (Intel 3165). As I can see
(https://www.intel.com/content/www/us/en/support/articles/30429/network-and-i-o/wireless.html)
Intel does not support AP mode anymore.

So I search for a non Intel M.2 2230 key e wifi 6 card mimo 2x2.



Re: M'aconselleu? client git gràfic i senzill

2020-11-15 Thread julio
Deu n'hi do quanta teca hi ha per aqui. Tinc feina.
No sé si per veure diferències heu comentat aquesta eina
https://meldmerge.org
I posats a escollir un repositori de git, gitlab és més lliure que github, no? 
;)

Le 15 novembre 2020 09:05:47 GMT+01:00, Alex Muntada  a écrit 
:
>Hola Joan
>
>> Com ho fas, això, admb git diff?
>
>/usr/share/doc/git/contrib/diff-highlight/README
>
>> Pd.: he vist que el gitk t'aixeca una interfície gràfica,
>> així que si el poso en un servidor remot al que accedeixo
>> via terminal, no em xuta...
>
>Has d'establir un túnel d'X11 quan connectis. Prova a fer:
>
>ssh -X ...
>
>Salut,
>Alex
>
>--
>  ⢀⣴⠾⠻⢶⣦⠀
>  ⣾⠁⢠⠒⠀⣿⡁   Alex Muntada 
>  ⢿⡄⠘⠷⠚⠋   Debian Developer  log.alexm.org
>  ⠈⠳⣄

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.

Re: Jessie sources list

2020-11-15 Thread Fred

On 11/15/20 9:26 AM, The Wanderer wrote:

On 2020-11-15 at 11:23, Fred wrote:


Hello,

What is the proper sources.list for Jessie?

I have tried:

http://archive.debian.org/debian/dists/

but apt-get is not happy with update.


Per https://www.debian.org/distrib/archive :


If you are using APT the relevant sources.list entries are like:

   deb http://archive.debian.org/debian/ hamm contrib main non-free

or

   deb http://archive.debian.org/debian/ bo bo-unstable contrib main non-free


Just sub in 'jessie' for 'hamm' and/or 'bo', and I'd expect the result
to work.



Hi,
This worked ok.  I didn't need the /dists/ in my original URL.

Thanks for the help.
Best regards,
Fred



Re: Jessie sources list

2020-11-15 Thread Andrew M.A. Cater
On Sun, Nov 15, 2020 at 09:23:57AM -0700, Fred wrote:
> Hello,
> 
> What is the proper sources.list for Jessie?
> 
> I have tried:
> 
> http://archive.debian.org/debian/dists/
> 
> but apt-get is not happy with update.
> 
> I am in the process up upgrading but I need to install a Debian package
> first.
> 
> Best regards,
> Fred Boatwright

https://wiki.debian.org/LTS/Using - gives a stanza for use:

deb http://deb.debian.org/debian/ stretch main contrib non-free
deb-src http://deb.debian.org/debian/ stretch main contrib non-free

deb http://security.debian.org/ stretch/updates main contrib non-free
deb-src http://security.debian.org/ stretch/updates main contrib non-free

If you only need one package, you could try downloading it from 
archive.debian.org and using dpkg -i to install it

Hope this helps,

Andy C

> 



vnc is making my cry

2020-11-15 Thread Thomas Anderson
I have had vnc working in the past, then as of the past week or so, it
has stopped working.

I have spent many hours going in circles i feel. No matter what I try
the result is the same.

Basically, a black-white pixelated screen with a X curser (that I can
move), and that is about it.

I won't hypothesis with what I have been able to discern - as obviously,
it has not worked.

i have two different Debian 10 boxes, what I would like to access via
VNC so i don't need to attach KVM.

They have absolutely WORKED in the past, and I haven't meddled with them
in a way that would cause them

to break. I don't recall doing any updates (which normally I am slow to
do). So that adds to my perplexity.

They both have TightVNC installed, and the identical xstartup vnc file:

#!/bin/bash

xrdb $HOME/.Xresources

startxfce4 &

They both have rw+x access to them. I can start the vncserver from the
command prompt just fine (normal users, without sudo), and even connect,
tried with sudo and with the actual root!

to both machines, but then just the aforementioned screens. I have tried
tunneling in via SSH, same result.

I have tried connecting from two different clients (running vnc
connect), one Mac OS and one Windows 10. All same result.


I have tried various xstartup files I have searched around online that
seemed like they might help, but nothing.

I have read through the log file

xrdb: No such file or directory

xrdb: can't open file '/home/username/.Xresources'

/usr/bin/startxfce4: X server already running on display :1


I am running Gnome on both desktops. Ah! That's why the other one worked
in the past -- I was not running Gnome on it. But, that doesn't bring me
closer to a solution other than not running Gnome on the two machines,
which I would rather not do, they are robust enough to run Gnome.


Any advice help or encouragement would be appreciated.

Neo




Re: Arrière fond noir dans KDE Plasma

2020-11-15 Thread steve

Le 15-11-2020, à 09:25:07 +0100, steve a écrit :


Le 14-11-2020, à 20:15:28 +0100, Francois Mescam a écrit :

Ce jour j'ai fait une mise à jour en testing. Il y avait pas mal de 
paquets KDE et après cette mise à jour kde se comporte à nouveau 
correctement.


Oui j'ai vu passer, mais comme je suis en remote, je ne peux pas encore
voir le résultat.


Et bien, ça n'a rien changé du tout. J'ai créé un nouvel utilisateur
pour voir et toujours cet arrière-fond noir.

J'ai pas mal de core-dump lié à kde dans mes logs, genre pour
plasma-globalaccel, et aussi pas mal de lignes concernant sddm.
Manifestement c'est tout cassé. Je vais devoir virer tout kde plasma et
recommencer.



Re: Jessie sources list

2020-11-15 Thread The Wanderer
On 2020-11-15 at 11:23, Fred wrote:

> Hello,
> 
> What is the proper sources.list for Jessie?
> 
> I have tried:
> 
> http://archive.debian.org/debian/dists/
> 
> but apt-get is not happy with update.

Per https://www.debian.org/distrib/archive :

>> If you are using APT the relevant sources.list entries are like:
>> 
>>   deb http://archive.debian.org/debian/ hamm contrib main non-free
>> 
>> or
>> 
>>   deb http://archive.debian.org/debian/ bo bo-unstable contrib main non-free

Just sub in 'jessie' for 'hamm' and/or 'bo', and I'd expect the result
to work.

-- 
   The Wanderer

The reasonable man adapts himself to the world; the unreasonable one
persists in trying to adapt the world to himself. Therefore all
progress depends on the unreasonable man. -- George Bernard Shaw



signature.asc
Description: OpenPGP digital signature


Re: M'aconselleu? client git gràfic i senzill

2020-11-15 Thread Àlex
Moltes gràcies per totes les vostres respostes i consells,

Gitg finalment no m'ha convençut. L'estètica de les aplicacions Gnome3
pot resultar bonica però per mi és poc pràctica.

Estic provant atom i crec que és el que necessito.

No estic acostumat a emacs, i vscode i eclipse són entorns de
desenvolupament potents que en el meu cas queden una mica grans per
només editar markdown i penjar els documents a un git.

Salutacions




Jessie sources list

2020-11-15 Thread Fred

Hello,

What is the proper sources.list for Jessie?

I have tried:

http://archive.debian.org/debian/dists/

but apt-get is not happy with update.

I am in the process up upgrading but I need to install a Debian package 
first.


Best regards,
Fred Boatwright



Re: Connecting a base system via WiFi.

2020-11-15 Thread peter
On Mi, 04 nov 20, 21:45:16, pe...@easthope.ca wrote:
> According to packages.debian.org/buster/all/net, iw is not 
> available in the suite.

From: Andrei POPESCU 
Date: Thu, 5 Nov 2020 12:31:25 +0200
> Where did you find that path?
> 
> Or did you mean https://packages.debian.org/buster/net/
> (the trailing '/' matters)?

In Debian 10, open Firefox and open http://www.google.ca/. If you are 
not in CA (Canada; not California), there's a good chance the browser 
will be redirected to the google address for another country; 
google.us for example.  If that prevents you from reproducing the 
search you might resort to some proxy method.  That's beyond my 
knowledge.

Search for this string.

site:packages.debian.org buster iw

In the returned list, click on the first link.  WIth a little luck, 
this URL will appear.

https://packages.debian.org/buster/net

TTFN, ... P.







-- 
Tel: +1 604 670 0140Bcc: peter at easthope. ca



Re: How to manage audio volume unattended.

2020-11-15 Thread Brian
On Sun 15 Nov 2020 at 02:35:39 -, Juan R. de Silva wrote:

> I use cron job to run VLC several times a day at predefined times. Each 
> time a different mp3 file is played and I need to set different audio 
> volume for each file. I also need to make it working unattended.

Set the volume level before running vlc:

  amixer sset 'Master' 10%

-- 
Brian.



Re: How to manage audio volume unattended.

2020-11-15 Thread Dan Ritter
Juan R. de Silva wrote: 
> I use cron job to run VLC several times a day at predefined times. Each 
> time a different mp3 file is played and I need to set different audio 
> volume for each file. I also need to make it working unattended.
> 
> I can set the volume by executing 'pactl set-sink-input-volume X Y%' but 
> to do it I need to know in advance X number, which is Sink Input number 
> used by VLC on every run. The problem is that VLC changes Sink Input on 
> each consequitive run.

VLC has a remote control feature -- several, actually. Control
can be handled by a command line, Lua, telnet, or http, among others.

https://wiki.videolan.org/Documentation:Modules/rc/

The command you are probably looking for is
volume [X] . . . . . . . . . . . . . . . . . .  set/get audio volume


-dsr-



Re: How to manage audio volume unattended.

2020-11-15 Thread didier gaumet
Le dimanche 15 novembre 2020 à 14:20:06 UTC+1, didier gaumet a écrit :
[...]
> cf https://wiki.videolan.org/Documentation:Command_line/

there are the 
 --volume-step
and
 --gain
options as well, more directly suitable



Re: How to manage audio volume unattended.

2020-11-15 Thread didier gaumet
Le dimanche 15 novembre 2020 à 03:40:06 UTC+1, Juan R. de Silva a écrit :
> I use cron job to run VLC several times a day at predefined times. Each 
> time a different mp3 file is played and I need to set different audio 
> volume for each file. I also need to make it working unattended. 
[...]

Perhaps you could luach vlc with the following option:
 --audio-filter normalizer

cf https://wiki.videolan.org/Documentation:Command_line/



Re: color border in image, drop everything outside of it

2020-11-15 Thread Emanuel Berg
Michael uplawski wrote:

>> Hello, is there a tool/command/script anywhere that can
>> overwrite with a single color (or make transparent) every pixel
>> to the left, above, right, and below a certain other color?
>
> -) ImageMagick and their convert-tool

OK, but how?

-- 
underground experts united
http://user.it.uu.se/~embe8573
https://dataswamp.org/~incal



Re: Sintaxi completa de iptables

2020-11-15 Thread Narcis Garcia
Ah gràcies per aquest aclariment dels mòduls; el què més m'interessa és
la funcionalitat essencial o integrada («core») d'iptables, per a saber
que me la puc trobar a qualsevol distribució (incloent routers
minimalistes).

D'altra banda, a Debian veig que hi ha diversos paquets:
iptables
iptables-converter
iptables-converter-doc
iptables-netflow-dkms
iptables-optimizer
iptables-optimizer-doc
iptables-persistent
(que no sé si això constitueixen mòduls)

I tota una sèrie de fitxers a /usr/lib/*/xtables/ amb extensió .so que
tampoc no sé si és això el què constitueix els mòduls.
Com es llisten els mòduls disponibles?
N'hi ha que es carreguen sense sol·licitar-ho?
Apart de la documentació d'iptables cada mòdul està documentat?

Gràcies.


Narcis Garcia

__
I'm using this dedicated address because personal addresses aren't
masked enough at this mail public archive. Public archive administrator
should fix this against automated addresses collectors.
El 15/11/20 a les 7:59, Sergi Baila ha escrit:
> Jo tinc la segona edició de Linux Firewalls de Robert Ziegler
> (https://www.oreilly.com/library/view/linux-firewalls-third/0672327716/)
> i em va anar molt bé en el seu moment.
> 
> Si em permets també un altre comentari tingues en compte que iptables és
> modular. Tu pots carregar un mòdul i de cop tens noves funcionalitats i
> opciones de linia de comandes de iptables. Així que realmente una llista
> amb tot no es pot fer, l'endemà tú o algú pot crear un nou modul.
> 
> --
> Sergi Baila
> https://sargue.net/cv
> 
> 
> Missatge de Alex Muntada mailto:al...@debian.org>>
> del dia dg., 15 de nov. 2020 a les 1:09:
> 
> Hola Narcis
> 
> > Algú té bones referències de iptables?
> 
> Fa temps vaig comprar aquest llibret (91 pàgines) que trobo molt
> pràctic tot i ser del 2004:
> 
> https://www.oreilly.com/library/view/linux-iptables-pocket/9780596801861/
> 
> Salut,
> Alex
> 
> --
>   ⢀⣴⠾⠻⢶⣦⠀
>   ⣾⠁⢠⠒⠀⣿⡁   Alex Muntada mailto:al...@debian.org>>
>   ⢿⡄⠘⠷⠚⠋   Debian Developer  log.alexm.org 
>   ⠈⠳⣄
> 



Re: How to manage audio volume unattended.

2020-11-15 Thread Curt
On 2020-11-15, Juan R. de Silva  wrote:
> I use cron job to run VLC several times a day at predefined times. Each 
> time a different mp3 file is played and I need to set different audio 
> volume for each file. I also need to make it working unattended.
>
> I can set the volume by executing 'pactl set-sink-input-volume X Y%' but 
> to do it I need to know in advance X number, which is Sink Input number 
> used by VLC on every run. The problem is that VLC changes Sink Input on 
> each consequitive run.
>
> The correct number can be obtained by executing 'pactl list sink-inputs' 
> while VLC is run but this requieres my involvement.
>
> Is there any way either to get the VLC Input Sink # programmatically, or 
> to make VLC using the same Input Sink it used at each previous run, or 
> let say some default Input Sink?
>
> If somebody can suggest another way to achieve the desired, please 
> suggest. For example, can anyone suggest a media player, which can accept 
> a desired volume level as a command line argument? Any other ideas?

Normalize the volume of the mp3 files beforehand rather than adjusting
the volume of the player in real time for each individual file (e.g.
with an app like python-rgain)? 

Or does this not speak to the reason for the volume changes?


> Thanks.



Re: color border in image, drop everything outside of it

2020-11-15 Thread tomas
On Sun, Nov 15, 2020 at 06:45:19AM -0500, The Wanderer wrote:

[...]

> Ah, right, I'd missed the "color that matches" part of the phrase. That
> does significantly change the meaning of the definition at that given
> link, to something which matches much better with what I'd have expected
> the term to mean in the first place.
> 
> In that case this seems like an even less suitable match for the request
> as I parse it.
> 
> >> What I understand the request to be is for a way to replace
> >> everything *outside of* a specified region with a specified color,
> >> where the region is *not* necessarily radius-based but may
> >> potentially be freeform.
> > 
> > Yes, but then, one person's "inside" is the other person's
> > "outside". You just have to choose judiciously your start point (aka
> > "seed"). And, of course, make sure the region thusly defined is
> > connected.
> 
> I either am badly confused, or don't understand how this relates to the
> request at all.
> 
> If I'm reading the original request correctly (which I'll admit is by no
> means guaranteed), the "single color" used to draw the "loop" - i.e.,
> in the example, black - is incidental to the goal; it just defines the
> boundary of the region which is to be left unchanged. It may or not even
> be important to retain the colored perimeter line in the result; I'd
> intuitively expect not, but there could be reasons to do so.

OK, now I get your objection: the colours "outside the loop" are
many and different. Perhaps the loop's colour is "different enough"
from every other, as determined by the fuzz metrics, then you are
lucky. Perhaps not. Then a more elaborate pipeline is necessary.

> What's outside (or, if you prefer, "on the other side of") the boundary
> may well be thousands of different colors, not necessarily in any
> pattern which the program can be expected to recognize with relation to
> another. The important part of the request is wanting to overwrite all
> of that region outside the boundary - regardless of its initial color -
> with a single, specified color (for values of "color" that include full
> transparency).
> 
> I don't see how "flood fill" can fulfill that at all. My best guess
> would involve the mention at your given reference link of a "-fuzz"
> option which lets the color matching be inexact; that could potentially
> make it possible to have a "define the boundary" color which is
> sufficiently distinct from every color in the external region that the
> fill will be able to match and replace all of the latter but will reject
> and neither replace nor propagate past the former, but it seems
> improbable that it would be practical to have this distinctness hold
> true for every image you might want to process this way.
> 
> (Then again it'd also seem impractical to guarantee that whatever color
> is chosen for defining the boundary will not occur outside of the
> boundary; I think that's why I've been mostly assuming that the literal
> drawing of the boundary with a color is just part of an attempt at a
> solution to the problem, not an essential part of the problem definition
> itself.)

Yep. That's one dificculty. Got it now. OTOH, if your loop isn't
"different enough" in colour from the rest of the image, how do
you differentiate it?

ImageMagick has many other more "intelligent" operations, but to
be able to pick one, the original problem has to be more specified,
I think.

[...]

> It comes in if the relative location of the specified region compared
> against the edges of the canvas is important.
> 
> If you stay with just one image (canvas), and replace everything outside
> the specified region with a specified color, then the relative position
> of the region remains unchanged.

[...]

> Similarly for the size of the original canvas vs. that of the new,
> previously-empty image.

I must have missed the cropping part in the OP's request. But then,
once the main problem is solved, ImageMagick has tools for that.

Another, more precise possibility is to use the "connected component
labeling" [1]: you have to then "know", by image coordinates, for
example, which is the one you want to keep. Basically, a multi-level
flood fill :-)

Cheers

[1] https://imagemagick.org/script/connected-components.php

 - t



signature.asc
Description: Digital signature


Re: color border in image, drop everything outside of it

2020-11-15 Thread Michael uplawski
I could choose to supersede my previous message but am not sure about
the versatility of your Mail2News vv. procedures.

Michael uplawski:

> Convert is great for automating the procedure, but I venture that the
> constraints are too difficult to meet to make it work on a big number of
> pictures.
>
> At least I would be interested to be proven wrong.

looks like I am proven wrong, as the -trim option to crop exists. Never
mind.

> Michael

-- 
GnuPG rsa4096 2020-09-08 [SC] [expire : 2022-09-08]
  B31591374C4824DE872841D27D857E5045D038F8
sub   rsa4096 2020-09-08 [E] [expire : 2022-09-08]



Re: color border in image, drop everything outside of it

2020-11-15 Thread The Wanderer
On 2020-11-15 at 06:06, to...@tuxteam.de wrote:

> On Sun, Nov 15, 2020 at 05:27:49AM -0500, The Wanderer wrote:
> 
>> On 2020-11-15 at 04:38, to...@tuxteam.de wrote:
>> 
>>> On Sun, Nov 15, 2020 at 12:31:22AM +0100, Emanuel Berg wrote:
>>> 
 Hello, is there a tool/command/script anywhere that can
 overwrite with a single color (or make transparent) every pixel
 to the left, above, right, and below a certain other color?
 
 e.g., if one draws a loop of black, tell the program black is
 the border, the result would be only what is within the loop?
> 
> [...]
> 
>> I think you may have misunderstood the request - either that, or I
>> did.
>> 
>> From the description of "flood fill", what it does is replace
>> everything within a certain distance of a specified point with a
>> specified color. That maps to "fill a specified region with a
>> specified color", if the region is radius-based.
> 
> No, no. Unless you mean "distance in colour space". Look again at the
> given ref, [0].
> 
> Flood starts at a pixel, considers every neighbour [1] having the 
> same colour [2] and repeats that process for those selected
> neighbours, until all possibilities are exhausted. Optimising that is
> left as an exercise to the reader, as they say :-)
> 
> It's a "classic" in bitmap and pixmap graphics.

Ah, right, I'd missed the "color that matches" part of the phrase. That
does significantly change the meaning of the definition at that given
link, to something which matches much better with what I'd have expected
the term to mean in the first place.

In that case this seems like an even less suitable match for the request
as I parse it.

>> What I understand the request to be is for a way to replace
>> everything *outside of* a specified region with a specified color,
>> where the region is *not* necessarily radius-based but may
>> potentially be freeform.
> 
> Yes, but then, one person's "inside" is the other person's
> "outside". You just have to choose judiciously your start point (aka
> "seed"). And, of course, make sure the region thusly defined is
> connected.

I either am badly confused, or don't understand how this relates to the
request at all.

If I'm reading the original request correctly (which I'll admit is by no
means guaranteed), the "single color" used to draw the "loop" - i.e.,
in the example, black - is incidental to the goal; it just defines the
boundary of the region which is to be left unchanged. It may or not even
be important to retain the colored perimeter line in the result; I'd
intuitively expect not, but there could be reasons to do so.

What's outside (or, if you prefer, "on the other side of") the boundary
may well be thousands of different colors, not necessarily in any
pattern which the program can be expected to recognize with relation to
another. The important part of the request is wanting to overwrite all
of that region outside the boundary - regardless of its initial color -
with a single, specified color (for values of "color" that include full
transparency).

I don't see how "flood fill" can fulfill that at all. My best guess
would involve the mention at your given reference link of a "-fuzz"
option which lets the color matching be inexact; that could potentially
make it possible to have a "define the boundary" color which is
sufficiently distinct from every color in the external region that the
fill will be able to match and replace all of the latter but will reject
and neither replace nor propagate past the former, but it seems
improbable that it would be practical to have this distinctness hold
true for every image you might want to process this way.

(Then again it'd also seem impractical to guarantee that whatever color
is chosen for defining the boundary will not occur outside of the
boundary; I think that's why I've been mostly assuming that the literal
drawing of the boundary with a color is just part of an attempt at a
solution to the problem, not an essential part of the problem definition
itself.)

>> If I needed to do that, what I'd probably wind up doing is to
>> select the desired region, copy it, paste it into an empty image,
>> and adjust its position and the size of the image to suit. I don't
>> know of any tool to automate the process to any meaningful degree.
> 
> Hm. I can't follow that last one. Perhaps I haven't understood
> anything, after all (not unheard of, mind you :). Where does the
> (re-) positioning come in?

It comes in if the relative location of the specified region compared
against the edges of the canvas is important.

If you stay with just one image (canvas), and replace everything outside
the specified region with a specified color, then the relative position
of the region remains unchanged.

If you copy the region into a new image (canvas), it will be placed
wherever the program decides to put it relative to the edges of that new
canvas, which may or may not wind up having any similarity to its
location on the original 

Re: color border in image, drop everything outside of it

2020-11-15 Thread tomas
On Sun, Nov 15, 2020 at 05:27:49AM -0500, The Wanderer wrote:
> On 2020-11-15 at 04:38, to...@tuxteam.de wrote:
> 
> > On Sun, Nov 15, 2020 at 12:31:22AM +0100, Emanuel Berg wrote:
> > 
> >> Hello, is there a tool/command/script anywhere that can overwrite 
> >> with a single color (or make transparent) every pixel to the left, 
> >> above, right, and below a certain other color?
> >> 
> >> e.g., if one draws a loop of black, tell the program black is the 
> >> border, the result would be only what is within the loop?

[...]

> I think you may have misunderstood the request - either that, or I did.
> 
> From the description of "flood fill", what it does is replace everything
> within a certain distance of a specified point with a specified color.
> That maps to "fill a specified region with a specified color", if the
> region is radius-based.

No, no. Unless you mean "distance in colour space". Look again at
the given ref, [0].

Flood starts at a pixel, considers every neighbour [1] having the
same colour [2] and repeats that process for those selected neighbours,
until all possibilities are exhausted. Optimising that is left as
an exercise to the reader, as they say :-)

It's a "classic" in bitmap and pixmap graphics.

> What I understand the request to be is for a way to replace everything
> *outside of* a specified region with a specified color, where the region
> is *not* necessarily radius-based but may potentially be freeform.

Yes, but then, one person's "inside" is the other person's "outside".
You just have to choose judiciously your start point (aka "seed").
And, of course, make sure the region thusly defined is connected.

If you think your "border" (Emanuel's "black loop") extends so far as
to multiply touch your image frame (so as to yield several disconnected
regions), you better extend the image a bit in every direction somehow.

But wait! that's what ImageMagick already does... magically, with its
VirtualPixels [3], the default being 'edge', so just what we need.

The (flat) world is a sphere, after all (at least in the context of
flood fill, that is).

> If I needed to do that, what I'd probably wind up doing is to select the
> desired region, copy it, paste it into an empty image, and adjust its
> position and the size of the image to suit. I don't know of any tool to
> automate the process to any meaningful degree.

Hm. I can't follow that last one. Perhaps I haven't understood anything,
after all (not unheard of, mind you :). Where does the (re-) positioning
come in?

Cheers

[0] https://imagemagick.org/script/command-line-options.php#floodfill
[1] For some definition of neighbour
[2] "Same colour" is often too restrictive, so this is usually relaxed
   to "similar enough": that's the -fuzz parameter in [0]
[3] https://imagemagick.org/script/architecture.php#virtual-pixels

 - t


signature.asc
Description: Digital signature


Re: color border in image, drop everything outside of it

2020-11-15 Thread Michael uplawski
The Wanderer:
> If I needed to do that, what I'd probably wind up doing is to select the
> desired region, copy it, paste it into an empty image, and adjust its
> position and the size of the image to suit.

For the occasional cropping task this is a fine solution.

> I don't know of any tool to
> automate the process to any meaningful degree.

Gimp does a great job offering a tool to select the region which must be
retained. A simple click later, you are done.

Convert is great for automating the procedure, but I venture that the
constraints are too difficult to meet to make it work on a big number of
pictures.

At least I would be interested to be proven wrong.

Michael

-- 
GnuPG rsa4096 2020-09-08 [SC] [expire : 2022-09-08]
  B31591374C4824DE872841D27D857E5045D038F8
sub   rsa4096 2020-09-08 [E] [expire : 2022-09-08]



Re: color border in image, drop everything outside of it

2020-11-15 Thread Jeremy Ardley


On 15/11/20 6:27 pm, The Wanderer wrote:

On 2020-11-15 at 04:38, to...@tuxteam.de wrote:


On Sun, Nov 15, 2020 at 12:31:22AM +0100, Emanuel Berg wrote:


Hello, is there a tool/command/script anywhere that can overwrite
with a single color (or make transparent) every pixel to the left,
above, right, and below a certain other color?

e.g., if one draws a loop of black, tell the program black is the
border, the result would be only what is within the loop?

Your request is a bit... unspecific.

Are you (a) after a tool which you use interactively, where you
actually see the image you described above, and where you can click
into that loop to start the operation?

Or is it (b) rather some kind or "batch mode", where you give the
program the image file *plus* the coordinates of that point inside
the loop where to start?

For ease of search, the operation you're describing is usually called
"flood fill". If you are after (a), your friend is The Gimp; I guess
Krita will fill that bill as well. If it's (b), the usual standard is
"mogrify", from the ImageMagick suite. Look at [1] for the details on
flood fill.

I think you may have misunderstood the request - either that, or I did.

 From the description of "flood fill", what it does is replace everything
within a certain distance of a specified point with a specified color.
That maps to "fill a specified region with a specified color", if the
region is radius-based.

What I understand the request to be is for a way to replace everything
*outside of* a specified region with a specified color, where the region
is *not* necessarily radius-based but may potentially be freeform.

If I needed to do that, what I'd probably wind up doing is to select the
desired region, copy it, paste it into an empty image, and adjust its
position and the size of the image to suit. I don't know of any tool to
automate the process to any meaningful degree.



The requirement seems to be to infill an image inside a bounding line.

This is what happens in postscript rendering when a raster algorithm 
scans a page containing a path defined by some geometry e.g. Bezler 
curve, and every time it crosses the curve on a scan line it changes 
from writing nothing to writing the infill color and back again at the 
next curve intersection


This happens on every character on every page you print on a postscript 
printer. It's a really basic image algorithm.


If it's possible from a script I'm not sure? but it's so simple it's 
very likely





OpenPGP_0xFABD47B0F98E88C9.asc
Description: application/pgp-keys


OpenPGP_signature
Description: OpenPGP digital signature


Re: color border in image, drop everything outside of it

2020-11-15 Thread mick crane

On 2020-11-15 09:38, to...@tuxteam.de wrote:

On Sun, Nov 15, 2020 at 12:31:22AM +0100, Emanuel Berg wrote:

Hello, is there a tool/command/script anywhere that can overwrite
with a single color (or make transparent) every pixel to the left,
above, right, and below a certain other color?

e.g., if one draws a loop of black, tell the program black is the
border, the result would be only what is within the loop?


Your request is a bit... unspecific.

Are you (a) after a tool which you use interactively, where you
actually see the image you described above, and where you can
click into that loop to start the operation?

Or is it (b) rather some kind or "batch mode", where you give the
program the image file *plus* the coordinates of that point inside
the loop where to start?

For ease of search, the operation you're describing is usually
called "flood fill". If you are after (a), your friend is The Gimp;
I guess Krita will fill that bill as well. If it's (b), the usual
standard is "mogrify", from the ImageMagick suite. Look at [1] for
the details on flood fill.

Getting warm with the ImageMagick programs takes a bit of practice,
but it's worth it. Come back if you get stuck.

Cheers
[1] https://imagemagick.org/script/command-line-options.php#floodfill
 - t


I needs to be scripted tho' if want the (x-1, x+1, y-1, y+1)s to be 
wants to be a particular value ?

mick


--
Key ID4BFEBB31



Re: pb de locales : dmenu (i3) segfault et urxvt se comporte pas bien

2020-11-15 Thread Jean-Michel OLTRA


Bonjour,


Le dimanche 15 novembre 2020, ORL - AMMD a écrit...


> Avant que je n'oublie @ Jean-Michel : j'utilise rxvt-unicode (urxvt).
> La suite dans le corps du mail.

As tu un fichier .Xresources ou .Xdefaults qui comporteraient des options
"exotiques" ?
Tu peux également lancer `xrdb -query` pour voir ce que ça donne, concernant
rxvt et urxvt.
Tu peux également lancer rxvt sous strace pour voir ce que ça lit. Une
commande du genre : strace -f -o strace.log -e open,file rxvt`
et ensuite tu lis le fichier strace.log

> Héhé, oui sans doute. J'avoue que j'aime bien l'idée de jamais avoir eu à
> réinstaller, c'était un des gros intérêts quand je suis passé à Debian : on
> ne réinstalle pas, on répare.
> Bon, faudra peut-être que je m'y résolve, un jour, alors...

Mettre à jour la machine (changer de version) n'est pas réinstaller, à mon
sens.

-- 
jm



Re: color border in image, drop everything outside of it

2020-11-15 Thread The Wanderer
On 2020-11-15 at 04:38, to...@tuxteam.de wrote:

> On Sun, Nov 15, 2020 at 12:31:22AM +0100, Emanuel Berg wrote:
> 
>> Hello, is there a tool/command/script anywhere that can overwrite 
>> with a single color (or make transparent) every pixel to the left, 
>> above, right, and below a certain other color?
>> 
>> e.g., if one draws a loop of black, tell the program black is the 
>> border, the result would be only what is within the loop?
> 
> Your request is a bit... unspecific.
> 
> Are you (a) after a tool which you use interactively, where you 
> actually see the image you described above, and where you can click
> into that loop to start the operation?
> 
> Or is it (b) rather some kind or "batch mode", where you give the 
> program the image file *plus* the coordinates of that point inside 
> the loop where to start?
> 
> For ease of search, the operation you're describing is usually called
> "flood fill". If you are after (a), your friend is The Gimp; I guess
> Krita will fill that bill as well. If it's (b), the usual standard is
> "mogrify", from the ImageMagick suite. Look at [1] for the details on
> flood fill.

I think you may have misunderstood the request - either that, or I did.

From the description of "flood fill", what it does is replace everything
within a certain distance of a specified point with a specified color.
That maps to "fill a specified region with a specified color", if the
region is radius-based.

What I understand the request to be is for a way to replace everything
*outside of* a specified region with a specified color, where the region
is *not* necessarily radius-based but may potentially be freeform.

If I needed to do that, what I'd probably wind up doing is to select the
desired region, copy it, paste it into an empty image, and adjust its
position and the size of the image to suit. I don't know of any tool to
automate the process to any meaningful degree.

-- 
   The Wanderer

The reasonable man adapts himself to the world; the unreasonable one
persists in trying to adapt the world to himself. Therefore all
progress depends on the unreasonable man. -- George Bernard Shaw



signature.asc
Description: OpenPGP digital signature


Re: color border in image, drop everything outside of it

2020-11-15 Thread tomas
On Sun, Nov 15, 2020 at 10:49:34AM +0100, Michael uplawski wrote:

[...]

> Let us just give up and go home, now.

I hope you enjoyed your own sarcasm.

Cheers
 - t


signature.asc
Description: Digital signature


Re: color border in image, drop everything outside of it

2020-11-15 Thread Michael uplawski
Emanuel Berg:
>> -) ImageMagick and their convert-tool
>
> OK, but how?

That is a mystery which noone ever could resolve. There is pratically no
experience with this tool and no hints have ever been published. I think
the whole thing is utterly useless and that it has never made any sense
to publish this stuff anyway.

Let us just give up and go home, now.

-- 
GnuPG rsa4096 2020-09-08 [SC] [expire : 2022-09-08]
  B31591374C4824DE872841D27D857E5045D038F8
sub   rsa4096 2020-09-08 [E] [expire : 2022-09-08]



Re: Linux i disc NAS

2020-11-15 Thread Jordi
Ja solucionat el problema, crec que en el meu cas no m'he de complicar
més i continuar utilitzant rsync i minidlna. El problema va ser no
netejar el disc nou i vaig arribar a pensar que un disc de NAS no es
podia ficar al PC. Finalment, i amb ajuda, el Linux ho pot tot.
Gracies



El dg. 15 de 11 de 2020 a les 00:07 +0100, en/na Alex Muntada va
escriure:
> Hola Jordi
> 
> > He trobat alguna informació per convertir un ordinador amb discs
> > normals, en un servidor NAS com FreeNAS i similars, però voldria
> > saber si debian te alguna utilitat per fer aquesta feina amb un
> > disc dissenyat per ser utilitzat en un NAS
> 
> Tot i que ja has pogut resoldre el problema amb el disc dur, crec
> que val la pena respondre aquesta pregunta que feies sobre com
> muntar un NAS amb Debian.
> 
> Debian disposa de totes les eines necessàries per muntar un NAS
> com FreeNAS (RAID, NFS, SMB/CIFS, SFTP, etc.) però en general és
> més pràctic utilitzar alguna distribució derivada per fer-ho,
> com ara l'openmediavault que comentava l'Adrià.
> 
> En qualsevol cas, FreeNAS també és una bona solució encara que no
> corri Debian per sota.
> 
> Salut,
> Alex
> 
> --
>   ⢀⣴⠾⠻⢶⣦⠀
>   ⣾⠁⢠⠒⠀⣿⡁   Alex Muntada 
>   ⢿⡄⠘⠷⠚⠋   Debian Developer  log.alexm.org
>   ⠈⠳⣄
> 



Re: color border in image, drop everything outside of it

2020-11-15 Thread tomas
On Sun, Nov 15, 2020 at 12:31:22AM +0100, Emanuel Berg wrote:
> Hello, is there a tool/command/script anywhere that can overwrite
> with a single color (or make transparent) every pixel to the left,
> above, right, and below a certain other color?
> 
> e.g., if one draws a loop of black, tell the program black is the
> border, the result would be only what is within the loop?

Your request is a bit... unspecific.

Are you (a) after a tool which you use interactively, where you
actually see the image you described above, and where you can
click into that loop to start the operation?

Or is it (b) rather some kind or "batch mode", where you give the
program the image file *plus* the coordinates of that point inside
the loop where to start?

For ease of search, the operation you're describing is usually
called "flood fill". If you are after (a), your friend is The Gimp;
I guess Krita will fill that bill as well. If it's (b), the usual
standard is "mogrify", from the ImageMagick suite. Look at [1] for
the details on flood fill.

Getting warm with the ImageMagick programs takes a bit of practice,
but it's worth it. Come back if you get stuck.

Cheers
[1] https://imagemagick.org/script/command-line-options.php#floodfill
 - t


signature.asc
Description: Digital signature


Re: pb de locales : dmenu (i3) segfault et urxvt se comporte pas bien

2020-11-15 Thread Étienne Mollier
Bonjour ORL,

ORL - AMMD, on 2020-11-15 07:21:53 +0100:
> Le 14/11/2020 à 17:53:30, Étienne Mollier a écrit :
> > ORL - AMMD, on 2020-11-14 12:59:07 +0100:
> > > https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=973515
> > > https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=973919

Okay pour une fusion de #973515 et #973919 ?  Apparemment, les
deux rapports traitent du même problème, en première lecture.
Je sais, c'est une redite du message de Tobias, mais dans le
doute...

> > > https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=974571
[...]
> OK, j'ai voulu tenter, mais je n'ai pas C.UTF-8 dans les locales proposées
> par dpkg --reconfigure locales. Il y a un autre moyen pour les générer ?

Ah, oui, la locale est un peu cachée.  Chez moi, en lançant
`dpkg-reconfigure locales`, j'active C, en_US.UTF-8, et
fr_FR.UTF-8 occasionnellement ; il me semble qu'il faut au moins
une locale UTF-8 pour activer le C.UTF-8.  Ensuite le panneau
suivant me permet de choisir la locale par défaut entre C,
C.UTF-8, en_US.UTF-8 et fr_FR.UTF-8, et c'est là que je peux
sélectionner C.UTF-8.

[...]
> Par contre, j'ai localepurge d'installé sur cette machine, contrairement aux
> deux autres sur lesquelles je n'ai pas de souci. Peut-être que ça peut avoir
> un lien ? (moi je ne vois pas lequel, mais bon).

Je ne connaissais pas localepurge.  Au vu de la description, je
pense que ça vaudrait le coup de le sortir de l'équation, pour
s'assurer que ce n'est pas un bug dans ce paquet qui provoque
les problèmes que vous rencontrez.

[...]
> Héhé, oui sans doute. J'avoue que j'aime bien l'idée de jamais avoir eu à
> réinstaller, c'était un des gros intérêts quand je suis passé à Debian : on
> ne réinstalle pas, on répare.

Si vous arrivez à réparer ce problème là, ce sera d'autant plus
satisfaisant...  :)

> Bon, faudra peut-être que je m'y résolve, un jour, alors...

... mais effectivement, si on perd trop de temps sur ce problème
non reproductible, c'est probablement mieux de repartir d'une
feuille blanche de temps en temps.

> Merci de votre aide.

Je vous en prie,
Bonne journée,  :)
-- 
Étienne Mollier 
Fingerprint:  8f91 b227 c7d6 f2b1 948c  8236 793c f67e 8f0d 11da
Sent from /dev/pts/1, please excuse my verbosity.


signature.asc
Description: PGP signature


Re: How to manage audio volume unattended.

2020-11-15 Thread Andrei POPESCU
On Du, 15 nov 20, 02:35:39, Juan R. de Silva wrote:
> 
> If somebody can suggest another way to achieve the desired, please 
> suggest. For example, can anyone suggest a media player, which can accept 
> a desired volume level as a command line argument? Any other ideas?

Apparently mpv supports setting the volume from command line, as does 
(of course) mpd via mpc.

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


signature.asc
Description: PGP signature


Re: color border in image, drop everything outside of it

2020-11-15 Thread Michael uplawski
Emanuel Berg:
> Hello, is there a tool/command/script anywhere that can overwrite
> with a single color (or make transparent) every pixel to the left,
> above, right, and below a certain other color?

-) ImageMagick and their convert-tool
-) The Gimp
-) the list of programs that the next guy will suggest.

-- 
GnuPG rsa4096 2020-09-08 [SC] [expire : 2022-09-08]
  B31591374C4824DE872841D27D857E5045D038F8
sub   rsa4096 2020-09-08 [E] [expire : 2022-09-08]



Le ransomware RansomEXX s'attaque maintenant aux systèmes Linux

2020-11-15 Thread Bureau LxVx
SaluX !

*Le ransomware RansomEXX s'attaque maintenant aux systèmes Linux :
*https://www.lemondeinformatique.fr/actualites/lire-le-ransomware-ransomexx-s-attaque-maintenant-aux-systemes-linux-80969.html?utm_source=ActiveCampaign_medium=email_campaign=NL+LMI+Selection+15112020_ee=93a54153fccd51d8123d50ee9c178ae270c63fcc_ee=Qk9kvX42OTXT0ijFpE0OJ%2BhteTmyolKtig6scymBiX8%3D
*
*
Bon dimanche,

sylvie*
*


Re: An old box running Debian 8

2020-11-15 Thread Andrei POPESCU
On Sb, 14 nov 20, 16:36:03, Miroslav Skoric wrote:
> On 11/13/20 9:29 PM, David Wright wrote:
> 
> > 
> > I would have thought that Debian has made kernel testing just about as
> > easy as they can since:
> > jessie  installs with 3.16 but 4.9  is also available,
> > stretch installs with 4.9  but 4.19 is also available,
> > buster  installs with 4.19
> > so there's full overlap. (I've not looked at backports.)
> > 
> 
> That's actually what I also thought about.
> 
> Btw, when you say 'installs', do you mean a fresh installation only, or it
> includes a 'forced' kernel update during a distribution upgrade? My old box
> was installed for the first time in squeeze, then upgraded to wheezy, then
> to jessie.

It depends on whether you have the corresponding linux-image- 
package installed or not.

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


signature.asc
Description: PGP signature


Re: Arrière fond noir dans KDE Plasma

2020-11-15 Thread steve

Le 14-11-2020, à 20:15:28 +0100, Francois Mescam a écrit :

Ce jour j'ai fait une mise à jour en testing. Il y avait pas mal de 
paquets KDE et après cette mise à jour kde se comporte à nouveau 
correctement.


Oui j'ai vu passer, mais comme je suis en remote, je ne peux pas encore
voir le résultat.

Merci !



Re: /etc/securetty

2020-11-15 Thread steve

Le 14-11-2020, à 20:51:42 +0100, l0f...@tuta.io a écrit :


Bonsoir,

14 nov. 2020 à 17:24 de dl...@bluewin.ch:


13 nov. 2020 à 17:18 de s-liste-debian-user-fre...@pipoprods.org:


Le fichier existe sur mon système (Buster assez fraîchement installé).
Il appartient au paquet "login".


Pas chez moi:

apt-file search /etc/securetty
rear: /usr/share/rear/skel/Linux-ia64/etc/securetty


Ok, je parie que tu ne fais pas tourner Buster mais plutôt Testing ou
Unstable. Vrai ?


En plein dans le mille ! Je suis sous Testing


En effet login ne fournit plus /etc/securetty après Buster [1][2] d'où
ta sortie de commande différente de la mienne+Sébastien.


Ok, je ne savais pas.


J'ai l'impression que ta remontée est du même acabit que le bug #931899 [3].


En effet, c'est très probablement la même chose chez moi,


Auquel cas, vu que le fichier n'est plus fourni, pam devrait arrêter de
proposer des options qui y font appel au-delà de Buster.


Ce qui semble logique en effet.


Il semble que la ligne fautive soit dans /etc/pam.d/common-auth, plus
précisément l'argument "nullok_secure" envoyé au module pam_unix.so.



Je te laisse regarder si t'as bien cette ligne. Sous Buster chez moi
c'est la suivante : auth    [success=1 default=ignore]  pam_unix.so
nullok_secure


Oui j'ai bien ça.


Visiblement, supprimer "nullok_secure" résout le pb d'accès.  Pas
certain que ce soit une perte de sécurité dans la mesure où cet
argument autorise lui-même une certaine largesse...


Bon, je me lance, on verra bien si le monde arrête de tourner après ça.


nullok_secure: The default action of this module is to not permit the
user access to a service if their official password is blank. The
nullok_secure argument overrides this default and allows any user with
a blank password to access the service as long as the value of PAM_TTY
is set to one of the values found in /etc/securetty.


Tous mes utilisateurs ont un mot de passe.

Merci à toi et très bon dimanche !

Steve



Re: M'aconselleu? client git gràfic i senzill

2020-11-15 Thread Alex Muntada
Hola Lluís

> es la opció --word-diff

A mi no m'agrada la sortida del --word-diff ni del --color-words,
prefereixo el diff-highlight. En qualsevol cas, sempre està bé
tenir opcions diferents i que cadascú triï la que més li agradi.

Salut,
Alex

--
  ⢀⣴⠾⠻⢶⣦⠀
  ⣾⠁⢠⠒⠀⣿⡁   Alex Muntada 
  ⢿⡄⠘⠷⠚⠋   Debian Developer  log.alexm.org
  ⠈⠳⣄



signature.asc
Description: PGP signature


Re: M'aconselleu? client git gràfic i senzill

2020-11-15 Thread Alex Muntada
Hola Joan

> Com ho fas, això, admb git diff?

/usr/share/doc/git/contrib/diff-highlight/README

> Pd.: he vist que el gitk t'aixeca una interfície gràfica,
> així que si el poso en un servidor remot al que accedeixo
> via terminal, no em xuta...

Has d'establir un túnel d'X11 quan connectis. Prova a fer:

ssh -X ...

Salut,
Alex

--
  ⢀⣴⠾⠻⢶⣦⠀
  ⣾⠁⢠⠒⠀⣿⡁   Alex Muntada 
  ⢿⡄⠘⠷⠚⠋   Debian Developer  log.alexm.org
  ⠈⠳⣄



signature.asc
Description: PGP signature


Re: Linux i disc NAS

2020-11-15 Thread Alex Muntada
Hola Iker

> Recordo haver fet alguna prova (BIOS detecta) però em corria
> pressa i vaig agafar un altre disc dur per seguir amb la feina.

D'acord, gràcies per aclarir-ho.

> Més tard vaig buscar informació de l'error. 
> Vaig trobar s'apuntava pel fet d' haver estat part d'un RAID
> (al meu cas mdadm) quedava memòria a baix nivell(primers sectors)
> i calia fer una operació.

Això passa perquè mdadm analitza els discs per trobar si hi ha
cap RAID definit i tornar-lo a muntar. És una característica molt
útil si vols moure els discs d'un RAID a un nou servidor físic,
però si vols reutilitzar el disc pot donar problemes tret que el
netegis primer (n'hi ha prou netejant el principi, tal com s'ha
explicat en un altre fil).

Salut,
Alex

--
  ⢀⣴⠾⠻⢶⣦⠀
  ⣾⠁⢠⠒⠀⣿⡁   Alex Muntada 
  ⢿⡄⠘⠷⠚⠋   Debian Developer  log.alexm.org
  ⠈⠳⣄



signature.asc
Description: PGP signature