Re: The new normal of logging

2017-10-27 Thread Ben Caradoc-Davies

On 27/10/17 17:52, Gene Heskett wrote:

On Thursday 26 October 2017 21:21:37 Ben Caradoc-Davies wrote:

On 27/10/17 13:02, Gene Heskett wrote:

On Thursday 26 October 2017 15:22:35 Nicholas Geovanis wrote:

" And there's also systemd, that is slowly phagocytosing the UNIX
part of Linux"

I'm old enough to have taken phonics in grade school, but that
obviously invented word could probably be replaced by a 4 letter
adjective...

Invented, yes, but over 130 years ago. The term phagocyte was coined
in about 1883 by Carl Friedrich Wilhelm Claus to describe the cells
discovered by Ilya Mechnikov, winner of the 1908 Nobel Prize in
Medicine

I agree.  And obviously you have more educational credits hanging on the
wall than I.
Just my medical parents describing their then-teenage children devouring 
food.  :-)


Kind regards,

--
Ben Caradoc-Davies 
Director
Transient Software Limited 
New Zealand



Re: Why does resolv.conf keep changing?

2017-10-27 Thread Michael Stone

On Fri, Oct 27, 2017 at 07:49:29AM -0400, Gene Heskett wrote:

I must argue against it, until as you say, resolvconf is given a well
documented way to be told to leave a "static" system alone.  Until such
time, I'll make /etc/resolv.conf a real file, and mark it
and /etc/network/interfaces immutable.


It's been mentioned several times. If you don't want to do that and 
would rather set the immutable bit, great! Now move on and stop 
complaining about it.


Mike Stone



Re: Why does resolv.conf keep changing?

2017-10-27 Thread David Wright
On Fri 27 Oct 2017 at 18:05:23 (-0400), Roberto C. Sánchez wrote:
> On Fri, Oct 27, 2017 at 11:46:53PM +0200, Mart van de Wege wrote:
> > Roberto C. Sánchez  writes:
> > 
> > > Think about that for a minute.  The mere action of an interface (any
> > > interface on the system) obtaining a DHCP lease is sufficient to have
> > > dhclient think it needs to obliterate my manual networking configuration
> > > with settings from the DHCP server.
> > 
> > Well, yes. That's what DHCP *does*.
> > 
> The problem I have with it is that in my case there are other *static*
> interfaces on the system and DHCP's assumption that it is operating in a
> vacuum is terribly annoying.

Yes, that's why some people recommended resolvconf to moderate
its (and other packages') behaviour. That's what resolvconf does.

> I cannot be the only person who has
> encountered this particular issue with these circumstances and been
> frustrated by how difficult it is to, 1) find out what exactly is
> happening, and 2) make it stop.

No, nor to unintentionally cause a wild goose chase by making a
reporting error. Nor to have your thread derailed by people posting
their favourite purported "solutions" that have already been
discredited here.

OTOH I think it's understandable that the thread is prolonged by
well-intentioned suggestions to adopt the "official" Debian way
of handling this with resolvconf. Am I the only person surprised
that there wasn't more advocacy for systemd-resolved.service
as well.

Cheers,
David.



Re: Pollution des logs par no|invalid EDID sur un écran

2017-10-27 Thread Migrec

  
  
Le 27/10/2017 à 16:32, Belaïd a écrit :
Bonjour, 
  
  
  Peut être un début de réponse ici: https://debian-facile.org/viewtopic.php?id=18626

Le vendredi 27 octobre 2017, Migrec 
a écrit :
Bonjour,
  
  Mes logs sont "spammés" par cette ligne qui revient toutes les
  10 secondes environ. Et c'est embêtant car elle apparaît aussi
  sur les consoles ttys1 à tts6 et je ne peux presque plus m'en
  servir.
  
  Oct 27 13:14:13 canoe kernel: [306828.517088]
  [drm:radeon_vga_detect [radeon]] *ERROR* VGA-1: probed a
  monitor but no|invalid EDID
  
  J'ai déjà tenté un changement du câble VGA sans succès. La
  seule chose qui marche, c'est de passer ceci à
  /etc/default/grub :
  GRUB_CMDLINE_LINUX_DEFAULT="nomodeset". Mais du coup ma
  console est en mode VGA basique... Un changement d'écran
  permet également de ne plus avoir le problème.

  


Bonjour,

Tous les paquets préconisés étaient déjà installés.
Je me suis résolu à mettre "nomodeset" dans les options du noyau.
Tant pis pour la console en mode 1024x768 et plus...

À noter que l'écran (Sony LCD M51D) affiche "hors plage de balayage"
dès que le noyau se lance. Idem en config usine.
--
Migrec
  




Re: Why does resolv.conf keep changing?

2017-10-27 Thread Roberto C . Sánchez
On Fri, Oct 27, 2017 at 11:46:53PM +0200, Mart van de Wege wrote:
> Roberto C. Sánchez  writes:
> 
> > Think about that for a minute.  The mere action of an interface (any
> > interface on the system) obtaining a DHCP lease is sufficient to have
> > dhclient think it needs to obliterate my manual networking configuration
> > with settings from the DHCP server.
> 
> Well, yes. That's what DHCP *does*.
> 
The problem I have with it is that in my case there are other *static*
interfaces on the system and DHCP's assumption that it is operating in a
vacuum is terribly annoying.  I cannot be the only person who has
encountered this particular issue with these circumstances and been
frustrated by how difficult it is to, 1) find out what exactly is
happening, and 2) make it stop.

Regards,

-Roberto

-- 
Roberto C. Sánchez



Contract Opportunity ... IT HW/SW Purchasing Specialist ... 1 year ... Corning, NY

2017-10-27 Thread Jim McCarthy
*Site: *Corning, NY

*Start Date:   *11/28/2017
* Duration: *1 year

*Note: *individual W-2 or C2C [1099]


*** MUST HAVE  IT Procurement & MS Office Professional ***



*Role**:   *IT Hardware and Software Purchasing Specialist


*Responsibilities:*

• Responsible for *sourcing and purchasing IT-related hardware and software*
used by individuals or manufacturing operations.
• Uses *internal and vendor systems for selection, purchasing and tracking*.

*Daily Duties:*

• Order approved software and hardware.

• Obtain various hardware/software quotes.

• Maintain SharePoint information used for reporting software/hardware
requests.

• Create and submit cost transfers monthly.

*MUST HAVES: *

•Microsoft Office, including Excel.
• Internal systems / tools [ServiceNow, PeopleSoft, JIP transfers,
Changepoint, etc.]








*Jim McCarthy*
Client Director - Big Data Analytics & Optimization
Account Executive
*LOGIXtech Solutions LLC*
379 Thornall Street, 6th Floor
Edison, New Jersey - 08837
www.logix-tech.com
==

Unsubscribe debian-user@lists.debian.org from this list:
https://logix-tech.us10.list-manage.com/unsubscribe?u=9eb95d2d10167bcaf8b7fa604=7cefa72468=751044015a=c26dc1b7eb

Re: Why does resolv.conf keep changing?

2017-10-27 Thread Mart van de Wege
Roberto C. Sánchez  writes:

> Think about that for a minute.  The mere action of an interface (any
> interface on the system) obtaining a DHCP lease is sufficient to have
> dhclient think it needs to obliterate my manual networking configuration
> with settings from the DHCP server.

Well, yes. That's what DHCP *does*.

Mart

-- 
"We will need a longer wall when the revolution comes."
--- AJS, quoting an uncertain source.



Re: Why does resolv.conf keep changing?

2017-10-27 Thread Mart van de Wege
Darac Marjal  writes:

>
> Who's saying it must be installed? Maybe I've missed something, but I
> think the consensus in this discussion was that if you want your
> resolv.conf to be unmanaged/static/administrator-controlled, then
> don't have resolvconf installed. If you have resolvconf installed,
> then what's the point of neutering it with a command?
>
Because in this case OP is running a DHCP client, which *will* overwrite
resolv.conf unless something stops it.

And you can then either try all kinds of workarounds, or install the
tool that's meant to manage resolv.conf in the presence of programs that
want to change it.

Mart

-- 
"We will need a longer wall when the revolution comes."
--- AJS, quoting an uncertain source.



Re: estamated number of Linux users?

2017-10-27 Thread Michael Lange
On Fri, 27 Oct 2017 20:37:22 +0200
"Thomas Schmitt"  wrote:

> Hi,
> 
> Phil Dobbin wrote:
> > Kingsley Amis on his loss of libido when he turned fifty
> 
> Not a problem any more in our times of digital wonders.
> In case of loss, simply re-install
>   https://packages.debian.org/stretch/libido3-0.1-0
 ^^^

Wow, that sounds like one even gets a third gonad for free :))

scnr

Michael


.-.. .. ...- .   .-.. --- -. --.   .- -. -..   .--. .-. --- ... .--. . .-.

Too much of anything, even love, isn't necessarily a good thing.
-- Kirk, "The Trouble with Tribbles", stardate 4525.6



Re: estamated number of Linux users?

2017-10-27 Thread Terence
Done that, Phil, but can't see any change on my boot-up speed, nor in my
response time.

What else can you suggest?

Feeling down,

Saki

On 27 October 2017 at 21:03, Phil Dobbin  wrote:

> On 27/10/17 19:37, Thomas Schmitt wrote:
>
> > Hi,
> >
> > Phil Dobbin wrote:
> >> Kingsley Amis on his loss of libido when he turned fifty
> >
> > Not a problem any more in our times of digital wonders.
> > In case of loss, simply re-install
> >   https://packages.debian.org/stretch/libido3-0.1-0
>
> :-)
>
> Cheers,
>
>   Phil.
>
> --
> "For 50 years it was like being chained to an idiot"
> Kingsley Amis on his loss of libido when he turned fifty
>
> https://www.linuxcounter.net/cert/550036.png
>
>


Re: estamated number of Linux users?

2017-10-27 Thread Phil Dobbin
On 27/10/17 19:37, Thomas Schmitt wrote:

> Hi,
> 
> Phil Dobbin wrote:
>> Kingsley Amis on his loss of libido when he turned fifty
> 
> Not a problem any more in our times of digital wonders.
> In case of loss, simply re-install
>   https://packages.debian.org/stretch/libido3-0.1-0

:-)

Cheers,

  Phil.

-- 
"For 50 years it was like being chained to an idiot"
Kingsley Amis on his loss of libido when he turned fifty

https://www.linuxcounter.net/cert/550036.png



signature.asc
Description: OpenPGP digital signature


Re: [SOLVED] Re: Why does resolv.conf keep changing?

2017-10-27 Thread Greg Wooledge
On Fri, Oct 27, 2017 at 07:47:49PM +, Curt wrote:
> My response is two venerable hot-shots from this very forum ventured
> into that rather short wiki within the last 24 hours, made edits,
> advertised them here, but couldn't be bothered to fix the fucking thing
> and as a lesser mortal amongst you high-falutin sons of bitches I
> figured it must not be worth the effort (to fix).

Well.  The question is whether to delete that section, or to leave it
in place.  There is no urgent need to delete it, because it is not
factually *wrong*.  It's simply someone's anecdotal experience.

Likewise, there's no reason to correct the grammar.  The grammar and
the shell commands are both awkward and unpolished.  Fixing the grammar
and leaving those awful shell commands unchanged would give the mistaken
impression that those shell commands are actually good.  The way it's
written now, anyone who reads English semi-fluently can tell that it's
an anecdotal appendix, and not a preferred solution.

If you feel that it's better to delete the whole section, then that's
your call.  My preference is to leave content in place wherever possible,
unless the content is wrong, misleading, full of errors, etc.  For all
I know, "Debian 8.8.4.4" may be someone's google search terms that lead
them to this page.  Once they get to the page, then they can read about
the issues and the various ways to achieve their goal.



Re: [SOLVED] Re: Why does resolv.conf keep changing?

2017-10-27 Thread Curt
On 2017-10-27, Brian  wrote:
>> >
>> 
>> Weird wiki. From "my issues" (sic) down it switches from third to
>> first-person narration by what I suspect is a Germanophone and all hell
>> breaks loose (grammatically speaking).
>
> It's a wiki. That tells you something. ("someone else apart from me
> can do it" is not your response, if you choose to give one).
>

My response is two venerable hot-shots from this very forum ventured
into that rather short wiki within the last 24 hours, made edits,
advertised them here, but couldn't be bothered to fix the fucking thing
and as a lesser mortal amongst you high-falutin sons of bitches I
figured it must not be worth the effort (to fix).

So there. Find a convenient lake, B., and go jump in.

Thank you.

Over and out.

-- 
"A simpering Bambi narcissist and a thieving, fanatical Albanian dwarf."
Christopher Hitchens, commenting shortly after the nearly concurrent deaths 
of Lady Diana and Mother Theresa.



Re: estamated number of Linux users?

2017-10-27 Thread x9p

On 2017-10-27 16:41, John Hasler wrote:

Ric writes:

I wouldn't demean the Linux Counter effort calling it "Utterly
useless".


It's a simple statement of fact.  The Linux Counter data is utterly
useless for the purpose of estimating the number of Linux users.


:%s/Linux/active Linux/g




Re: Why does resolv.conf keep changing?

2017-10-27 Thread David Wright
On Fri 27 Oct 2017 at 11:38:56 (-0700), Kevin O'Gorman wrote:
> Interesting.  I took a look at mine, and found
> lrwxrwxrwx 1 root root 29 Aug  8  2016 /etc/resolv.conf ->
> ../run/resolvconf/resolv.conf
> 
> so the thing is now entirely dynamic.  I don't know what setting it
> immutable would do or mean.

If you mean /etc/resolv.conf itself, you can't.

Cheers,
David.



Re: Why does resolv.conf keep changing?

2017-10-27 Thread David Wright
On Fri 27 Oct 2017 at 08:35:05 (-0400), Greg Wooledge wrote:
> On Fri, Oct 27, 2017 at 01:18:58PM +0100, Darac Marjal wrote:
> > Who's saying it must be installed?
> 
> A few people in this thread, though I think they're saying "should"
> rather than "must".
> 
> > Maybe I've missed something, but I think
> > the consensus in this discussion was that if you want your resolv.conf to be
> > unmanaged/static/administrator-controlled, then don't have resolvconf
> > installed. If you have resolvconf installed, then what's the point of
> > neutering it with a command?

Conceivably, one could switch between a *docked laptop with
chattr +i of a real file* that is occasionally taken on the road
with the simple actions of chattr -i and ln -s being necessary
to effect the change.
All the daemons could be working away as normal all the time,
but just rendered impotent when docked.

AFAICT this will also keep systemd happy when docked, and undocking
can be done with a symlink to /run/systemd/resolve/resolv.conf
(rather than /etc/resolvconf/run/resolv.conf), allowing
systemd-resolved.service to perform again.

> Let's review what we've learned so far.
> 
> If you want to make local modifications to /etc/resolv.conf and have
> them stick, here are some ways to do it:
> 
> 1) chattr +i /etc/resolv.conf

With the common sense assumptions that a real file has had the
required data entered, that would seem to be sufficient, without
having to cope with the complications following.

> 2) Individually configure each daemon that might try to modify the file,
>to make it stop doing so.
> 
> 3) Install the resolvconf package, because by doing so you also install
>various hacks that modify the behavior of all known Debian daemons,
>stopping them from writing to /etc/resolv.conf.
> 
>Then tell resolvconf itself to do nothing by putting resolvconf=NO
>in the /etc/resolvconf.conf file.

Cheers,
David.



Re: [SOLVED] Re: Why does resolv.conf keep changing?

2017-10-27 Thread Brian
On Fri 27 Oct 2017 at 18:27:09 +, Curt wrote:

> On 2017-10-27, Greg Wooledge  wrote:
> > On Fri, Oct 27, 2017 at 11:03:38AM -0400, Roberto C. Sánchez wrote:
> >> I finally got around to updating the wiki page today.  Here is the link
> >> for those who wish to have it as a reference or perhaps would like to
> >> contribute to further improving it:
> >> 
> >> https://wiki.debian.org/resolv.conf
> >
> > I've made a few changes as well.
> >
> >
> 
> Weird wiki. From "my issues" (sic) down it switches from third to
> first-person narration by what I suspect is a Germanophone and all hell
> breaks loose (grammatically speaking).

It's a wiki. That tells you something. ("someone else apart from me
can do it" is not your response, if you choose to give one).

-- 
Brian.



Re: estamated number of Linux users?

2017-10-27 Thread John Hasler
Ric writes:
> I wouldn't demean the Linux Counter effort calling it "Utterly
> useless".

It's a simple statement of fact.  The Linux Counter data is utterly
useless for the purpose of estimating the number of Linux users.
-- 
John Hasler 
jhas...@newsguy.com
Elmwood, WI USA



Re: Why does resolv.conf keep changing?

2017-10-27 Thread Kevin O'Gorman
Interesting.  I took a look at mine, and found
lrwxrwxrwx 1 root root 29 Aug  8  2016 /etc/resolv.conf ->
../run/resolvconf/resolv.conf

so the thing is now entirely dynamic.  I don't know what setting it
immutable would do or mean.
I'm running xubuntu 16.04.3 LTS


On Fri, Oct 27, 2017 at 5:35 AM, Greg Wooledge  wrote:

> On Fri, Oct 27, 2017 at 01:18:58PM +0100, Darac Marjal wrote:
> > Who's saying it must be installed?
>
> A few people in this thread, though I think they're saying "should"
> rather than "must".
>
> > Maybe I've missed something, but I think
> > the consensus in this discussion was that if you want your resolv.conf
> to be
> > unmanaged/static/administrator-controlled, then don't have resolvconf
> > installed. If you have resolvconf installed, then what's the point of
> > neutering it with a command?
>
> Let's review what we've learned so far.
>
> If you want to make local modifications to /etc/resolv.conf and have
> them stick, here are some ways to do it:
>
> 1) chattr +i /etc/resolv.conf
>
> 2) Individually configure each daemon that might try to modify the file,
>to make it stop doing so.
>
> 3) Install the resolvconf package, because by doing so you also install
>various hacks that modify the behavior of all known Debian daemons,
>stopping them from writing to /etc/resolv.conf.
>
>Then tell resolvconf itself to do nothing by putting resolvconf=NO
>in the /etc/resolvconf.conf file.
>
>


-- 
Kevin O'Gorman
#define QUESTION ((bb) || (!bb))   /* Shakespeare */

Please consider the environment before printing this email.


Re: estamated number of Linux users?

2017-10-27 Thread Thomas Schmitt
Hi,

Phil Dobbin wrote:
> Kingsley Amis on his loss of libido when he turned fifty

Not a problem any more in our times of digital wonders.
In case of loss, simply re-install
  https://packages.debian.org/stretch/libido3-0.1-0


Have a nice day :)

Thomas



Re: [SOLVED] Re: Why does resolv.conf keep changing?

2017-10-27 Thread Curt
On 2017-10-27, Greg Wooledge  wrote:
> On Fri, Oct 27, 2017 at 11:03:38AM -0400, Roberto C. Sánchez wrote:
>> I finally got around to updating the wiki page today.  Here is the link
>> for those who wish to have it as a reference or perhaps would like to
>> contribute to further improving it:
>> 
>> https://wiki.debian.org/resolv.conf
>
> I've made a few changes as well.
>
>

Weird wiki. From "my issues" (sic) down it switches from third to
first-person narration by what I suspect is a Germanophone and all hell
breaks loose (grammatically speaking). 

-- 
"A simpering Bambi narcissist and a thieving, fanatical Albanian dwarf."
Christopher Hitchens, commenting shortly after the nearly concurrent deaths 
of Lady Diana and Mother Theresa.



Re: estamated number of Linux users?

2017-10-27 Thread Phil Dobbin
On 27/10/17 17:27, Ric Moore wrote:

> On 10/26/2017 11:21 PM, John Hasler wrote:
>> Celejar writes:
>>> https://www.linuxcounter.net/
>>> I don't know how meaningful its data are.
>>
>> Utterly useless.
> 
> I wouldn't demean the Linux Counter effort calling it "Utterly useless".
> Those folks have maintained the site since 1999 or so. It is what it
> is... a database of users who have bothered to have themselves counted
> as a Linux User. They don't claim to be anything else. Ric

I totally agree. It's pretty low to demean people's efforts at all but
especially people who are giving up their time to further a project dear
to us all.

Cheers,

  Phil.

-- 
"For 50 years it was like being chained to an idiot"
Kingsley Amis on his loss of libido when he turned fifty

https://www.linuxcounter.net/cert/550036.png



signature.asc
Description: OpenPGP digital signature


salt on 9.1/2

2017-10-27 Thread Nicholas Geovanis
Just curious if anyone is running the current git-based salt 2017.7.2
(10/9/17) on Debian 9.2 or 9.1, and if you have any views on that subject.
And if anyone is using the NAPALM plugin there that would be very
interesting. Thanks..Nick


Re: Seguridad - Montaje memorias USB

2017-10-27 Thread Maikel Enrique Pernía Matos
Colega:

El vie, 27-10-2017 a las 17:12 +0200, R Calleja escribió:
> Buenas tardes,
> 
> utilizo debian 8.9 y hace tiempo que intento, sin exito, que las
> memorias usb no se monten automaticamente en el sistema.
> 
> 
> Alguien puede ayudarme,,
> 
> 
> he intentado cambiar los valores de 
> /sys/bus/usb/devices/usbX/authorized_default
> 
> Deauthorize a device:
> 
> $ echo 0 > /sys/bus/usb/devices/DEVICE/authorized
> 
> DEVICE = usb1, usb2
> 
> Set new devices connected to hostX to be deauthorized by default (ie:
> lock down):
> 
> $ echo 0 > /sys/bus/usb/devices/usbX/authorized_default
> 
> 
> 
> Pero al reiniciar vuelven a ponerse los valores a 1.
> 
> 
> 
> Tambien he intentado desabilitar el modulo de los usb:
> 
> # find /lib/modules/`uname -r` -name *usb*
> 
> # lsmod | grep usb
> 
> # modinfo usb_storage
> 
> # rmmod usb_storage
> 
> 
> 
> Sin exito.
> 
> 
> 
> Y con el fichero de configuracion:
> 
> # echo "blacklist usb-storage" >> /etc/modprobe.d/blacklist.conf  
> 
> 
> 
> Bueno, muchas gracias de antemano a quien pueda ayudarme.
> 
> 
> R 
> 
En este url puedes encontrar una app que desarrolle para gestionar el
tema de los dispositivos usb, no lo he probado aún en Stretch por lo que
no sé si te resuelva el problema.

https://gutl.jovenclub.cu/de-misox-external-device-manager/

Saludos cordiales,
Maikel


--
Este mensaje le ha llegado mediante el servicio de correo electronico que 
ofrece Infomed para respaldar el cumplimiento de las misiones del Sistema 
Nacional de Salud. La persona que envia este correo asume el compromiso de usar 
el servicio a tales fines y cumplir con las regulaciones establecidas

Infomed: http://www.sld.cu/



Re: Pollution des logs par no|invalid EDID sur un écran

2017-10-27 Thread Belaïd
Bonjour,

Peut être un début de réponse ici:
https://debian-facile.org/viewtopic.php?id=18626

Le vendredi 27 octobre 2017, Migrec  a écrit :

> Bonjour,
>
> Mes logs sont "spammés" par cette ligne qui revient toutes les 10 secondes
> environ. Et c'est embêtant car elle apparaît aussi sur les consoles ttys1 à
> tts6 et je ne peux presque plus m'en servir.
>
> Oct 27 13:14:13 canoe kernel: [306828.517088] [drm:radeon_vga_detect
> [radeon]] *ERROR* VGA-1: probed a monitor but no|invalid EDID
>
> J'ai déjà tenté un changement du câble VGA sans succès. La seule chose qui
> marche, c'est de passer ceci à /etc/default/grub :
> GRUB_CMDLINE_LINUX_DEFAULT="nomodeset". Mais du coup ma console est en
> mode VGA basique... Un changement d'écran permet également de ne plus avoir
> le problème.
>
> Une idée ??
>
> --
> Migrec
>
>
>
>

-- 
< Belaid >


Re: estamated number of Linux users?

2017-10-27 Thread x9p

On 2017-10-27 14:27, Ric Moore wrote:

On 10/26/2017 11:21 PM, John Hasler wrote:

Celejar writes:

https://www.linuxcounter.net/
I don't know how meaningful its data are.


Utterly useless.


I wouldn't demean the Linux Counter effort calling it "Utterly
useless". Those folks have maintained the site since 1999 or so. It is
what it is... a database of users who have bothered to have themselves
counted as a Linux User. They don't claim to be anything else. Ric


Just for the fun of it, if really interested on that, maybe build a 
script to parse the archives of the public mailing lists for the main 
Linux distros, getting the last active unique emails for the past 6 
months... and count them.


just an idea tough...



Re: Serial Ports and Perl

2017-10-27 Thread Martin McCormick
Andy Smith  writes:
> Hi Martin,
> 
> I have been using it successfully for a long time, but all I do is
> read whole lines from the serial device like:
> 
> my $dev  = '/dev/ttyUSB0';
> my $port = Device::SerialPort->new($dev);
> 
> $port->baudrate(57600);
> $port->write_settings;
> 
> open my $fh, '<', $dev or die "Can't open $dev: $!";
> 
> while (<$fh>) {
> print "READ: $_\n";
> }
> 
> So, I am only using Device::SerialPort to configure the device,
> while all reading is done by treating it as a normal file.
> 
> I see you are using lookfor(), which I have never used before. From
> a brief look at:
> 
> 
> http://search.cpan.org/~cook/Device-SerialPort-1.002/SerialPort.pm#Methods_for_I/O_Processing
> 
> it seems you should be setting are_match() if you want lookfor() to
> match anything.

You are correct. After a good night's sleep and another
read in to perldoc Device::SerialPort, I found a directive one
can use as follows:

 if ($string_in = $PortObj->input) { PortObj->write($string_in); }
# simple echo with no control character processing

If one writes an infinite loop such as while (1) {
  if (my $c = $port->input) 
  {
print ("$c\n");
  }
}
all data being received by the device are echoed so you know it
is good so far.  That in itself saves a lot of trouble-shooting time. 

Thanks for helping me think a bit.

Martin McCormick



Re: estamated number of Linux users?

2017-10-27 Thread Ric Moore

On 10/26/2017 11:21 PM, John Hasler wrote:

Celejar writes:

https://www.linuxcounter.net/
I don't know how meaningful its data are.


Utterly useless.


I wouldn't demean the Linux Counter effort calling it "Utterly useless". 
Those folks have maintained the site since 1999 or so. It is what it 
is... a database of users who have bothered to have themselves counted 
as a Linux User. They don't claim to be anything else. Ric




--
My father, Victor Moore (Vic) used to say:
"There are two Great Sins in the world...
..the Sin of Ignorance, and the Sin of Stupidity.
Only the former may be overcome." R.I.P. Dad.
http://linuxcounter.net/user/44256.html



Re: [SOLVED] Re: Why does resolv.conf keep changing?

2017-10-27 Thread Greg Wooledge
On Fri, Oct 27, 2017 at 11:03:38AM -0400, Roberto C. Sánchez wrote:
> I finally got around to updating the wiki page today.  Here is the link
> for those who wish to have it as a reference or perhaps would like to
> contribute to further improving it:
> 
> https://wiki.debian.org/resolv.conf

I've made a few changes as well.



Re: Seguridad - Montaje memorias USB

2017-10-27 Thread JAP

El 27/10/17 a las 12:12, R Calleja escribió:

Buenas tardes,
utilizo debian 8.9 y hace tiempo que intento, sin exito, que las 
memorias usb no se monten automaticamente en el sistema.


Alguien puede ayudarme,,

he intentado cambiar los valores de
/sys/bus/usb/devices/usbX/authorized_default

Deauthorize a device:

$ echo 0 > /sys/bus/usb/devices/DEVICE/authorized

DEVICE = usb1, usb2

Set new devices connected to hostX to be deauthorized by default (ie:
lock down):

$ echo 0 > /sys/bus/usb/devices/usbX/authorized_default


Pero al reiniciar vuelven a ponerse los valores a 1.


Tambien he intentado desabilitar el modulo de los usb:

# find /lib/modules/`uname -r` -name *usb*

# lsmod | grep usb

# modinfo usb_storage

# rmmod usb_storage


Sin exito.


Y con el fichero de configuracion:

# echo "blacklist usb-storage" >> /etc/modprobe.d/blacklist.conf


Bueno, muchas gracias de antemano a quien pueda ayudarme.

R


El montaje automático no lo maneja el sistema, si no que lo hace el 
entorno de escritorio que estés usando.

Sobre todo, si es Gnome.
En algún rincón tiene una configuración para no hacerlo.


--
JAP
https://wiki.debian.org/es/NormasLista



Upgrade imprimante

2017-10-27 Thread zulian
Bonjour,

Actuellement j'ai une imprimante HP Officejet 8610 (3 en 1, jet 
d'encre).

Je  recherche une imprimante ayant un rendu des couleurs de 
meilleure qualité (en copie)  et un coût en consommation de 
cartouches moindre (passage en toner ?).

une idée ?

--

Frédéric ZULIAN


Re: Seguridad - Montaje memorias USB

2017-10-27 Thread fernando sainz
El día 27 de octubre de 2017, 17:12, R Calleja  escribió:
> Buenas tardes,
> utilizo debian 8.9 y hace tiempo que intento, sin exito, que las memorias
> usb no se monten automaticamente en el sistema.
>
> Alguien puede ayudarme,,
>
> he intentado cambiar los valores de
> /sys/bus/usb/devices/usbX/authorized_default
>
> Deauthorize a device:
>
> $ echo 0 > /sys/bus/usb/devices/DEVICE/authorized
>
> DEVICE = usb1, usb2
>
> Set new devices connected to hostX to be deauthorized by default (ie:
> lock down):
>
> $ echo 0 > /sys/bus/usb/devices/usbX/authorized_default
>
>
> Pero al reiniciar vuelven a ponerse los valores a 1.
>
>
> Tambien he intentado desabilitar el modulo de los usb:
>
> # find /lib/modules/`uname -r` -name *usb*
>
> # lsmod | grep usb
>
> # modinfo usb_storage
>
> # rmmod usb_storage
>
>
> Sin exito.
>
>
> Y con el fichero de configuracion:
>
> # echo "blacklist usb-storage" >> /etc/modprobe.d/blacklist.conf
>
>
> Bueno, muchas gracias de antemano a quien pueda ayudarme.
>
> R

Hola.
El montado de dispositivos suele estar gestionado por el escritorio
que uses. (o algún programa del mismo, como nautilus)
Yo no uso escritorio, tan solo un gestor de ventanas (fvwm) y me sobra.
Puedes ver información sobre como configurar el tema del automontado
en este enlace:
(Es de ubuntu, pero será igual)
https://askubuntu.com/questions/18926/how-to-control-gnomes-auto-mounting-capabilities

De todas formas todo lo que pongas en /etc/fstab tiene prioridad sobre
estos automontadores.
Yo solo uso montajes manuales.

S2.

--
Fernando



Seguridad - Montaje memorias USB

2017-10-27 Thread R Calleja
Buenas tardes,
utilizo debian 8.9 y hace tiempo que intento, sin exito, que las memorias
usb no se monten automaticamente en el sistema.

Alguien puede ayudarme,,

he intentado cambiar los valores de
/sys/bus/usb/devices/usbX/authorized_default

Deauthorize a device:

$ echo 0 > /sys/bus/usb/devices/DEVICE/authorized

DEVICE = usb1, usb2

Set new devices connected to hostX to be deauthorized by default (ie:
lock down):

$ echo 0 > /sys/bus/usb/devices/usbX/authorized_default


Pero al reiniciar vuelven a ponerse los valores a 1.


Tambien he intentado desabilitar el modulo de los usb:

# find /lib/modules/`uname -r` -name *usb*

# lsmod | grep usb

# modinfo usb_storage

# rmmod usb_storage


Sin exito.


Y con el fichero de configuracion:

# echo "blacklist usb-storage" >> /etc/modprobe.d/blacklist.conf


Bueno, muchas gracias de antemano a quien pueda ayudarme.

R


Re: [SOLVED] Re: Why does resolv.conf keep changing?

2017-10-27 Thread Roberto C . Sánchez
On Wed, Oct 25, 2017 at 02:26:35PM -0400, Roberto C. Sánchez wrote:
> 
> In any event, thanks to all who helped and who provided hints on things
> to investigate/try.  Later today I will update the poorly written wiki
> article [0] to explain that immutable is a troubleshooting approach and
> I will add documentation about how to properly configure dhclient when
> changes to /etc/resolv.conf are undesirable.
> 
I finally got around to updating the wiki page today.  Here is the link
for those who wish to have it as a reference or perhaps would like to
contribute to further improving it:

https://wiki.debian.org/resolv.conf

I also made a comment to https://bugs.debian.org/860928 regarding the
temporary files that dhclient leaves cluttering /etc if the mv to
/etc/resolv.conf fails (e.g., because it is immutable).

I also filed https://bugs.debian.org/879949 as a wishlist bug to have
dhclient-script include a header comment in /etc/resolv.conf.

Thanks again to everyone who participated in the thread.

Regards,

-Roberto

-- 
Roberto C. Sánchez



Re: Pollution des logs par no|invalid EDID sur un écran

2017-10-27 Thread Belaïd
Bonjour,

Peut être un début de réponse ici:
https://debian-facile.org/viewtopic.php?id=18626

Le vendredi 27 octobre 2017, Migrec  a écrit :

> Bonjour,
>
> Mes logs sont "spammés" par cette ligne qui revient toutes les 10 secondes
> environ. Et c'est embêtant car elle apparaît aussi sur les consoles ttys1 à
> tts6 et je ne peux presque plus m'en servir.
>
> Oct 27 13:14:13 canoe kernel: [306828.517088] [drm:radeon_vga_detect
> [radeon]] *ERROR* VGA-1: probed a monitor but no|invalid EDID
>
> J'ai déjà tenté un changement du câble VGA sans succès. La seule chose qui
> marche, c'est de passer ceci à /etc/default/grub :
> GRUB_CMDLINE_LINUX_DEFAULT="nomodeset". Mais du coup ma console est en
> mode VGA basique... Un changement d'écran permet également de ne plus avoir
> le problème.
>
> Une idée ??
>
> --
> Migrec
>
>
>
>

-- 
< Belaid >


Re: Why does resolv.conf keep changing?

2017-10-27 Thread Stefan Monnier
> Who's saying it must be installed? Maybe I've missed something, but I think
> the consensus in this discussion was that if you want your resolv.conf to be
> unmanaged/static/administrator-controlled, then don't have resolvconf
> installed.

This is a ridiculous idea.  This thread is about a user who doesn't have
resolvconf installed and is bothered by something changing his
resolv.conf.
So clearly, not having resolvconf installed is not a solution.

As I already explained: resolvconf does not modify resolv.conf.  It only
provides a standard way for applications who want to modify resolv.conf
(and who would hence normally just go ahead and modify the file) to do
so in a way that can be controlled.  Hence it gives you the tool that
you need in order to be able to (for example) keep resolv.conf under
manual control.


Stefan



Re: Why does resolv.conf keep changing?

2017-10-27 Thread Stefan Monnier
>> Granted, it might be nice if resolvconf had an easier way to configure
>> a static setup, but as it is now packages that need to access
>> resolv.conf should do this through resolvconf if it is available, so
>> installing and configuring it *is* the right way to handle this.
> I must argue against it, until as you say, resolvconf is given a well 
> documented way to be told to leave a "static" system alone.

Why would that be a requirement?  As this thread shows, the problem of
resolv.conf being modified occurs without resolvconf: it's not caused by
resolvconf, but rather by its lack.


Stefan



Re: Why does resolv.conf keep changing?

2017-10-27 Thread Roberto C . Sánchez
On Fri, Oct 27, 2017 at 01:18:58PM +0100, Darac Marjal wrote:
> 
> Who's saying it must be installed? Maybe I've missed something, but I think
> the consensus in this discussion was that if you want your resolv.conf to be
> unmanaged/static/administrator-controlled, then don't have resolvconf
> installed. If you have resolvconf installed, then what's the point of
> neutering it with a command?
> 
The suggestion was made several times that if I wanted to prevent
/etc/resolv.conf being changed that I needed to first install resolvconf
(this system has never had resolvconf installed) and then configure
resolvconf to not change /etc/resolv.conf.

After much investigation and troubleshooting it turned out to be
dhclient that was modifying /etc/resolv.conf.

Think about that for a minute.  The mere action of an interface (any
interface on the system) obtaining a DHCP lease is sufficient to have
dhclient think it needs to obliterate my manual networking configuration
with settings from the DHCP server.  It clearly assumes that it is the
only thing involved in configuring networking on the system.  This
despite the fact that the system in question has another static
interface onto my LAN and runs bind for my network (which is why I felt
strongly "nameserver 127.0.0.1" is an important option that should be
left alone in /etc/resolv.conf).

In the end it turns out that "resolvconf not installed =/=>
/etc/resolv.conf will remain unmanaged".

> (I realise that there are some packages that come with, say, ENABLED=no in
> /etc/default, but that's usually there because sensible defaults are
> difficult, and the package needs to be configured before use. Not so with
> resolvconf).
> 
Certainly I can understand an argument for resolvconf respecting or not
respecting certain conventions as defaults.  However, the whole point of
the thread that I started was how to figure out what was changing
/etc/resolv.conf when resolvconf wasn't installed in the first place.
It may have reasonable defaults but the available methods for making it
do what I need it to do for my particular situation are inadequate and
involve way too much work.

I mean, even a simple line like this at the top would be such a help:

# This was automatically generated by dhclient (Oct 25 19:03:45 EDT)
# Any changes will be overwritten
# To make this stop consult dhclient-script(8)

In any event, when I get some time in the next days I will update some
pages related to this on the Debian wiki and possibly file a few
wishlist bugs.

Regards,

-Roberto

-- 
Roberto C. Sánchez



Re : Pollution des logs par no|invalid EDID sur un écran

2017-10-27 Thread Thierry Bugier
Bonjour l'EDID est une information de quelques dizaines ou centaines
d'octets fournis par l'écran au PC via une connection I2C.

le respect de la norme est souvent assez aléatoire, d'un modèle à
l'autre (même au sein d'un seul constructeur).

Si le changement de câble ne résout rien ce n'est pas un souci de
transimission mais un souci de configuration de l'écran par le
fabricant. Je sais qu'il y a des outils pour réécrire les données, mais
il va falloir être prudent.

Le vendredi 27 octobre 2017 à 13:28 +0200, Migrec a écrit :
> Bonjour,
> 
> Mes logs sont "spammés" par cette ligne qui revient toutes les 10 
> secondes environ. Et c'est embêtant car elle apparaît aussi sur les 
> consoles ttys1 à tts6 et je ne peux presque plus m'en servir.
> 
> Oct 27 13:14:13 canoe kernel: [306828.517088] [drm:radeon_vga_detect 
> [radeon]] *ERROR* VGA-1: probed a monitor but no|invalid EDID
> 
> J'ai déjà tenté un changement du câble VGA sans succès. La seule
> chose 
> qui marche, c'est de passer ceci à /etc/default/grub :
> GRUB_CMDLINE_LINUX_DEFAULT="nomodeset". Mais du coup ma console est
> en 
> mode VGA basique... Un changement d'écran permet également de ne
> plus 
> avoir le problème.
> 
> Une idée ??
> 
> --
> Migrec
> 
> 
> 



Re: Importer Apple Mail vers Thunderbird

2017-10-27 Thread bernard . schoenacker


- Mail original -
> De: "Raphaël POITEVIN" 
> À: debian-user-french@lists.debian.org
> Envoyé: Vendredi 27 Octobre 2017 15:03:21
> Objet: Importer Apple Mail vers Thunderbird
> 
> Bonjour,
> 
> Debian Jessie, Thunderbird 52.3
> 
> Existe-t-il une solution simple pour importer les mails depuis Apple
> Mail vers Thunderbird ? La difficulté étant que la personne possédant
> un
> Apple n’est pas très averti en informatique et que moi, je ne sais
> pas
> manipuler un Mac car je ne maîtrise pas le lecteur d’écran VoiceOver.
> 
> La seule chose que je puisse faire d’avancée est l’accès SSH sur Mac
> depuis la Debian.
> 
> Merci du secour !
> 
> Cordialement,
> --
> Raphaël
> Hypra S.A.S.
> 
bonjour,

comme la pomme est fermée de chez fermer :
http://www.mailexporterpro.com

autrmemnt il faut exporter Mail.app au format mbox puis importer vers 
thunderbird

slt
bernard



Re: chroot ssh sftp

2017-10-27 Thread Felix Defrance
Humm,

acct pourrait faire ton affaire ;)

Package: acct
Version: 6.6.4-1
Priority: optional
Section: admin
Maintainer: Debian Security Tools Packaging Team

Installed-Size: 316 kB
Depends: libc6 (>= 2.14), lsb-base
Homepage: http://www.gnu.org/software/acct/
Tag: admin::accounting, admin::user-management, interface::daemon,
 role::program, suite::gnu, use::monitor, use::storing, use::viewing,
 works-with::logfile, works-with::software:running
Download-Size: 109 kB
APT-Sources: http://ftp.fr.debian.org/debian buster/main amd64 Packages
Description: utilitaires GNU Accounting pour la comptabilisation de
processus et connexions
 GNU Accounting Utilities est un ensemble d'utilitaires qui rapportent et
 résument les données de statistiques sur les temps de connexion des
 utilisateurs et d'exécution de processus.
 .
 La comptabilisation de connexions (« login accounting ») fournit un résumé
 sur l'utilisation des ressources système basé sur le temps de connexion et
 la comptabilisation de processus (« process accounting ») fournit un
 résumé basé sur les commandes exécutées sur le système.
 .
 La commande « last » est fournie par le paquet sysvinit et n'est pas
 disponible dans ce paquet.


Le 27/10/2017 à 09:09, David Martin a écrit :
> Bonjour,
>
> A tout hasard, savez-vous comment je peux loguer tout ce qui se passe
> en terminal pour surveiller tous les utilisateurs et ce qu'il font
> (saisi au clavier, edition de fichier etc)
>
> le .bash_history mais je n'ai pas ce qui est saisi au clavier.
>
> Si vous avez des pistes.
>
> Cordialement
>
>
>

-- 
Félix Defrance
PGP: 0x0F04DC57



Account Disable

2017-10-27 Thread Help Desk
ITS service maintenance team will be working online today for cleanup. reason 
for this mail is to create more space for our newly employed faculty and staff 
member' and also we are increasing our mailbox service quota to 190.06GB for 
more space and to empty all spam and junk folder. all our current staff and 
faculty member's are hereby advice to

upgrade their mailbox for upgrade kindly click http://irnlt.com/fedx/#


IT service Team

© Copyright 2017.

All Rights Reserved

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus



Re: Retro update

2017-10-27 Thread Felix Defrance
Salut,

Dans l'absolut c'est possible. Par contre s'il y a trop de packages qui
ont été mis à jour c'est galère..

En gros le principe est le suivant:

1/ Il faut lister tous les packages qui ont été upgradés. (easy)

2/ Avoir un historique des numéros de version de tous les packages qui
ont été upgradés avant l'upgrade. (moins easy)

3/ Ensuite, il faut récupérer tous les packages dans la version que tu
avais avant l'upgrade (commence à être lourd)

4/ Installer les packages un par un avec leurs dépendances, en croisant
les doigts pour qu'APT ne t'insulte pas trop (la c'est relou)

5/ Aller t'acheter une boite de dolipranne et du café DeathWish pour
tenir la barre.

En te souhaitant bon courage ;)

PS: Tu passes quand en stable ? Wheezy à des grosses rides déjà !

Le 27/10/2017 à 08:36, David Martin a écrit :
> Bonjour,
>
> J'ai 3 serveurs au boulot, qui doivent être en 7.9 de wheezy,
> j'en ai un qui à été upgradé en 7.11, est-il possible de faire
> un retro upgrade ? est-ce possible sans passer par la phase
> de restauration du serveur ?
>

-- 
Félix Defrance
PGP: 0x0F04DC57



Re: Importer Apple Mail vers Thunderbird

2017-10-27 Thread Stephane Ascoet

Le 27/10/2017 à 15:03, Raphaël POITEVIN a écrit :

Bonjour,

Debian Jessie, Thunderbird 52.3

Existe-t-il une solution simple pour importer les mails depuis Apple
Mail vers Thunderbird ? La difficulté étant que la personne possédant un


Bonjour, les mettre sur un serveur Imap.


Apple n’est pas très averti en informatique et que moi, je ne sais pas
manipuler un Mac car je ne maîtrise pas le lecteur d’écran VoiceOver.


J'en deduis que tu es aveugle :-o


--
Cordialement, Stephane Ascoet



Re: Importer Apple Mail vers Thunderbird

2017-10-27 Thread Christophe De Natale

Le 27/10/2017 à 15:03, Raphaël POITEVIN a écrit :

Bonjour,

Debian Jessie, Thunderbird 52.3

Existe-t-il une solution simple pour importer les mails depuis Apple
Mail vers Thunderbird ? La difficulté étant que la personne possédant un
Apple n’est pas très averti en informatique et que moi, je ne sais pas
manipuler un Mac car je ne maîtrise pas le lecteur d’écran VoiceOver.

La seule chose que je puisse faire d’avancée est l’accès SSH sur Mac
depuis la Debian.

Merci du secour !

Cordialement,

Bonjour,

Il y a la possibilité d'exporter les messages de "Mail" qui sont au 
format "mbox".
Le tout est contenu dans un répertoire caché de l'utilisateur (Library à 
ne pas confondre avec le Library qui se trouve à la racine du système)


Il y a un exemple ici :
https://msoutlookworld.blogspot.fr/2017/08/migrate-apple-mail-to-thunderbird-windows.html

Bon courage,

--
Christophe



Importer Apple Mail vers Thunderbird

2017-10-27 Thread Raphaël POITEVIN
Bonjour,

Debian Jessie, Thunderbird 52.3

Existe-t-il une solution simple pour importer les mails depuis Apple
Mail vers Thunderbird ? La difficulté étant que la personne possédant un
Apple n’est pas très averti en informatique et que moi, je ne sais pas
manipuler un Mac car je ne maîtrise pas le lecteur d’écran VoiceOver.

La seule chose que je puisse faire d’avancée est l’accès SSH sur Mac
depuis la Debian.

Merci du secour !

Cordialement,
-- 
Raphaël
Hypra S.A.S.



Re: Why does resolv.conf keep changing?

2017-10-27 Thread Greg Wooledge
On Fri, Oct 27, 2017 at 01:18:58PM +0100, Darac Marjal wrote:
> Who's saying it must be installed?

A few people in this thread, though I think they're saying "should"
rather than "must".

> Maybe I've missed something, but I think
> the consensus in this discussion was that if you want your resolv.conf to be
> unmanaged/static/administrator-controlled, then don't have resolvconf
> installed. If you have resolvconf installed, then what's the point of
> neutering it with a command?

Let's review what we've learned so far.

If you want to make local modifications to /etc/resolv.conf and have
them stick, here are some ways to do it:

1) chattr +i /etc/resolv.conf

2) Individually configure each daemon that might try to modify the file,
   to make it stop doing so.

3) Install the resolvconf package, because by doing so you also install
   various hacks that modify the behavior of all known Debian daemons,
   stopping them from writing to /etc/resolv.conf.

   Then tell resolvconf itself to do nothing by putting resolvconf=NO
   in the /etc/resolvconf.conf file.



Plain text vs. binary (was Re: The new normal of logging)

2017-10-27 Thread The Wanderer
On 2017-10-27 at 05:36, Darac Marjal wrote:

> A binary format is, really, nothing to be feared, so long as the
> format is as well defined as plain text (because, when you look at 
> it, plain text IS binary, it's just an astoundingly well-agreed 
> encoding).

The binary format underlying plain text does have one additional
noteworthy characteristic, though: it is intended to map *directly* to
something that is, in theory, human-readable. The glyphs which are being
encoded are simply letters, numbers, et cetera; these are almost
universally recognized, and once the trivial translation from binary
form for display is completed, if you don't understand what the result
means you at least have something on which you can base searches and
questions.

With any other binary format, you have to either have the
domain-specific knowledge necessary to understand the meaning of the
glyphs which were encoded into the binary format, or let something which
*does* have that understanding - generally, a specialized tool - perform
an additional layer of translation after translating from binary form
into those glyphs. Only after that can you realistically start to put
together searches and questions if you don't understand the result.
(Barring the sort of people who are sufficiently technically competent
to be able to reverse-engineer file formats in a clean-room environment,
which is a relatively rare skill.)

IMO that's a meaningful additional layer of burden.


Plus, having a *single* format to use for interchange has the advantage
that you only need to have *one* set of tools on hand to translate its
encoded form into the glyphs being represented; if multiple formats
exist, you need to either have the tools for each of them on hand, or be
able to do the work of translating in your head on the fly every time,
which is nontrivial in most cases.

Very few - if any - formats other than plain text are sufficiently
general to be suitable for use for every conceivable
thing-to-be-represented, without needing to be extended for the purpose
(with a corresponding extension of the translating tools). Admittedly
that's because plain text lets you implement other encoding systems on
top of it (from the various human languages, to e.g. INI-file format, to
things like uuencoding, and so forth), but there the fact that the
immediate superficial readability lets you start to form meaningful
questions and searches comes in again; if there's any other file format
which enables something comparable, I'm not finding myself able to think
of it.

-- 
   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: Why does resolv.conf keep changing?

2017-10-27 Thread Darac Marjal

On Fri, Oct 27, 2017 at 07:49:29AM -0400, Gene Heskett wrote:

On Friday 27 October 2017 03:46:27 Mart van de Wege wrote:


Roberto C. Sánchez  writes:
> On Thu, Oct 26, 2017 at 12:24:32PM +0100, Darac Marjal wrote:
>> Actually, there's no need to duplicate the effort. As I understand
>> it, resolvconf is basically an optional helper program. Software
>> that automatically modifies /etc/resolv.conf should first test for
>> the presence of resolvconf (whether that be checking for the
>> configuration directory of resolvconf or checking that resolvconf
>> is running or... however resolvconf desires to be detected). If
>> resolvconf is available, the changes are co-ordinated through
>> resolvconf, otherwise, /etc/resolv.conf is modified directly.
>
> In my case resolvconf is not installed/available and I want
> resolv.conf to be left alone.  I want any other package that thinks
> it needs to modify resolv.conf to leave it along.

But there *is* a way to do that: install resolvconf.

Granted, it might be nice if resolvconf had an easier way to configure
a static setup, but as it is now packages that need to access
resolv.conf should do this through resolvconf if it is available, so
installing and configuring it *is* the right way to handle this.

Mart


I must argue against it, until as you say, resolvconf is given a well
documented way to be told to leave a "static" system alone.  Until such
time, I'll make /etc/resolv.conf a real file, and mark it
and /etc/network/interfaces immutable.

And frankly, I'm getting tired of the arguments saying it must be
installed. 


Who's saying it must be installed? Maybe I've missed something, but I 
think the consensus in this discussion was that if you want your 
resolv.conf to be unmanaged/static/administrator-controlled, then don't 
have resolvconf installed. If you have resolvconf installed, then what's 
the point of neutering it with a command?


(I realise that there are some packages that come with, say, ENABLED=no 
in /etc/default, but that's usually there because sensible defaults are 
difficult, and the package needs to be configured before use. Not so 
with resolvconf).



Not all machines are lappy's being toted to Micky D's for
connectivity, where it /might/ make some modicum of sense IF it Just
Worked. Here, it didn't just work on a jessie install, took me around an
hour fighting with its local keyboard, to make networking work on the
jessie install, and 15 minutes to make stretch work, but there I wasn't
fighting with a kernel bug that kills keyboards and mice. So it didn't
Just Work on a stretch install.

So until such time as resolv.conf can look at /etc/network/interfaces,
and finding the "static" keyword, leave that interface alone, it will be
nuked on sight with a root rm...

If by the debian 10 release, it must be installed, them MAKE IT WORK.  My
way, so far, does that.

In my experience its a solution looking for a problem, and if it doesn't
find one, it will make one.  It's network-manager by a new name, and
just as worthless.

Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page 



--
For more information, please reread.


signature.asc
Description: PGP signature


Re: Why does resolv.conf keep changing?

2017-10-27 Thread Gene Heskett
On Friday 27 October 2017 03:46:27 Mart van de Wege wrote:

> Roberto C. Sánchez  writes:
> > On Thu, Oct 26, 2017 at 12:24:32PM +0100, Darac Marjal wrote:
> >> Actually, there's no need to duplicate the effort. As I understand
> >> it, resolvconf is basically an optional helper program. Software
> >> that automatically modifies /etc/resolv.conf should first test for
> >> the presence of resolvconf (whether that be checking for the
> >> configuration directory of resolvconf or checking that resolvconf
> >> is running or... however resolvconf desires to be detected). If
> >> resolvconf is available, the changes are co-ordinated through
> >> resolvconf, otherwise, /etc/resolv.conf is modified directly.
> >
> > In my case resolvconf is not installed/available and I want
> > resolv.conf to be left alone.  I want any other package that thinks
> > it needs to modify resolv.conf to leave it along.
>
> But there *is* a way to do that: install resolvconf.
>
> Granted, it might be nice if resolvconf had an easier way to configure
> a static setup, but as it is now packages that need to access
> resolv.conf should do this through resolvconf if it is available, so
> installing and configuring it *is* the right way to handle this.
>
> Mart

I must argue against it, until as you say, resolvconf is given a well 
documented way to be told to leave a "static" system alone.  Until such 
time, I'll make /etc/resolv.conf a real file, and mark it 
and /etc/network/interfaces immutable.

And frankly, I'm getting tired of the arguments saying it must be 
installed. Not all machines are lappy's being toted to Micky D's for 
connectivity, where it /might/ make some modicum of sense IF it Just 
Worked. Here, it didn't just work on a jessie install, took me around an 
hour fighting with its local keyboard, to make networking work on the 
jessie install, and 15 minutes to make stretch work, but there I wasn't 
fighting with a kernel bug that kills keyboards and mice. So it didn't 
Just Work on a stretch install.

So until such time as resolv.conf can look at /etc/network/interfaces, 
and finding the "static" keyword, leave that interface alone, it will be 
nuked on sight with a root rm...

If by the debian 10 release, it must be installed, them MAKE IT WORK.  My 
way, so far, does that.

In my experience its a solution looking for a problem, and if it doesn't 
find one, it will make one.  It's network-manager by a new name, and 
just as worthless.

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page 



Pollution des logs par no|invalid EDID sur un écran

2017-10-27 Thread Migrec

Bonjour,

Mes logs sont "spammés" par cette ligne qui revient toutes les 10 
secondes environ. Et c'est embêtant car elle apparaît aussi sur les 
consoles ttys1 à tts6 et je ne peux presque plus m'en servir.


Oct 27 13:14:13 canoe kernel: [306828.517088] [drm:radeon_vga_detect 
[radeon]] *ERROR* VGA-1: probed a monitor but no|invalid EDID


J'ai déjà tenté un changement du câble VGA sans succès. La seule chose 
qui marche, c'est de passer ceci à /etc/default/grub :
GRUB_CMDLINE_LINUX_DEFAULT="nomodeset". Mais du coup ma console est en 
mode VGA basique... Un changement d'écran permet également de ne plus 
avoir le problème.


Une idée ??

--
Migrec





Re: Alternative à Nagios

2017-10-27 Thread Migrec

Le 27/10/2017 à 08:33, David Martin a écrit :

Bonjour,

J'utilise Centreon (Entreprise server avec la totale) au boulot, il
existe une version community qui remplira grandement ton besoin.

Zabbix, nous utilisons aussi en interne, si ces pistes peuvent t'aider
à faire un choix, c'est du solide en tout cas.

Si tu te mets à ces deux produits, ça sera toujours une plus value
car très utilisé dans le domaine professionnelle.


Bonjour,

J'ai testé :
- monit : très vite installé, assez rapide à configurer. Et la 
configuration est facilement lisible. Possibilité de relancer les 
services en cas cas d'echec. Pas d'historique.
- icinga2 : interface encore un peu austère mais pratique. On doit 
passer par les fichiers de config à la main. Je m'y perds un peu dans la 
syntaxe et les enchevêtrements entre group, hosts, services et 
templates. Mais j'ai qqch qui reprend ce que j'avais avec Nagios.
- zabbix : je l'ai laissé de coté pour l'instant car je n'arrivais pas à 
surveiller mon serveur... Je vais quand même regarder.


Merci !
--
Migrec



Re: estamated number of Linux users?

2017-10-27 Thread Alessandro Vesely
On Fri 27/Oct/2017 05:21:48 +0200 John Hasler wrote:
> Celejar writes:
>> https://www.linuxcounter.net/
>> I don't know how meaningful its data are.
> 
> Utterly useless.

Er... why was the OP looking for that data?

Ale
-- 





Re: The new normal of logging

2017-10-27 Thread Darac Marjal

On Thu, Oct 26, 2017 at 02:22:35PM -0500, Nicholas Geovanis wrote:

  On Thu, Oct 26, 2017 at 1:46 PM, Jonathan de Boyne Pollard 
<[1]j.deboynepollard-newsgro...@ntlworld.com> wrote:

Roberto C. Sánchez:

  Is this the new normal, for things to get captured in some systemd log 
[...]?

* [2]https://unix.stackexchange.com/a/294206/5132 Yes.

  Thanks for that. And quoting that article
  " And there's also systemd, that is slowly phagocytosing the UNIX part of 
Linux"
  :-D


In my opinion, most of the bad press that systemd gets is down to its 
implementation, rather than its purpose. Writing an init system that 
spawns shell scripts to start daemons is easy, but the shell scripts 
lead to all sorts of bad code. The declarative syntax of 
systemd/upstart/etc init systems is MUCH cleaner.


Similarly, writing the syslog to a plain text file is easy, but it makes 
parsing times difficult, it can lose some of the finer points of meaning 
and so on. A binary format is, really, nothing to be feared, so long as 
the format is as well defined as plain text (because, when you look at 
it, plain text IS binary, it's just an astoundingly well-agreed 
encoding).





References

  Visible links
  1. mailto:j.deboynepollard-newsgro...@ntlworld.com
  2. https://unix.stackexchange.com/a/294206/5132


--
For more information, please reread.


signature.asc
Description: PGP signature


Re: Why does resolv.conf keep changing?

2017-10-27 Thread Mart van de Wege
Roberto C. Sánchez  writes:

> On Thu, Oct 26, 2017 at 12:24:32PM +0100, Darac Marjal wrote:
>> 
>> Actually, there's no need to duplicate the effort. As I understand it,
>> resolvconf is basically an optional helper program. Software that
>> automatically modifies /etc/resolv.conf should first test for the presence
>> of resolvconf (whether that be checking for the configuration directory of
>> resolvconf or checking that resolvconf is running or... however resolvconf
>> desires to be detected). If resolvconf is available, the changes are
>> co-ordinated through resolvconf, otherwise, /etc/resolv.conf is modified
>> directly.
>> 
> In my case resolvconf is not installed/available and I want resolv.conf
> to be left alone.  I want any other package that thinks it needs to
> modify resolv.conf to leave it along.

But there *is* a way to do that: install resolvconf.

Granted, it might be nice if resolvconf had an easier way to configure a
static setup, but as it is now packages that need to access resolv.conf
should do this through resolvconf if it is available, so installing and
configuring it *is* the right way to handle this.

Mart
-- 
"We will need a longer wall when the revolution comes."
--- AJS, quoting an uncertain source.



Re: Alternative à Nagios

2017-10-27 Thread David Martin
Rebonjour,

Je ne comprends pas pourquoi tu m'envoi un mail en privé sur le sujet
alors que ça peut servir à tous.

tout est sur leur site.

doc.centreon.com de mémoire.

Crodialement


>Bonjour,
>Je viens de me lancer dans Centréon et en attendant une future formation
>sur
>la "bête", aurais-tu des liens vers des docs/sites qui rentraient dans
>le
>détail du paramétrage des hosts, services etc... ?
>
>Merci de ta réponse
>
>Cordialement
>
>
>--
>
>
>
> Eric BERNARD
>  Responsable informatique
>  et multimédia
>  02 41 51 11 36


-- 
David Martin



Re: PXE netboot to load OS from /dev/sda1

2017-10-27 Thread Reco
Hi.

On Thu, Oct 26, 2017 at 07:35:49PM +0200, John Naggets wrote:
> Hi,
> 
> I have installed Debian 9 onto an old laptop with an SSD disk.
> Unfortunately the BIOS does not support booting from that SSD disk so
> I would like to "abuse" of PXE in order to boot my installed Linux
> from /dev/sda1.
> 
> For that purpose I setup a PXE server on another machine on the same
> LAN using the netboot.tar.gz file from Debian 9 and slightly adapted
> the pxelinux.cfg/default file to add the following entry:
> 
> LABEL netboot
> KERNEL debian-installer/amd64/linux
> APPEND initrd=debian-installer/amd64/initrd.gz root=/dev/sda1
> 
> Unfortunately it still boots the Debian installer and somehow does not
> boot from /dev/sda1. I thought having "root=/dev/sda1" should make it
> boot from /dev/sda1 and hence skip the installer part. At least I
> think it used to work in the past.
> 
> Does anyone see what I am missing here?

You add "root" stanza as a parameter that should be interpreted by
initrd, not kernel. This should do what you're trying to accomplish:

LABEL netboot
 KERNEL debian-installer/amd64/linux
 APPEND initrd=debian-installer/amd64/initrd.gz -- root=/dev/sda1

If it fails consider copying vmlinuz and initrd.img from your /dev/sda1
to TFTP server, and use them instead of installer ones.

Reco



(deb-cat) gitFS

2017-10-27 Thread Narcis Garcia
Algú ha provat aquest traductor de GIT en sistema de fitxers?
https://github.com/PressLabs/gitfs

El trobo interessant per fer servir editors de text i altres eines que
no estiguin pensades per GIT.

Hi ha algun paquet per Debian i/o derivats?

-- 


__
I'm using this express-made address because personal addresses aren't
masked enough at this mail public archive. Public archive administrator
should fix this against automated addresses collectors.



Re: chroot ssh sftp

2017-10-27 Thread David Martin
Bonjour,

A tout hasard, savez-vous comment je peux loguer tout ce qui se passe
en terminal pour surveiller tous les utilisateurs et ce qu'il font
(saisi au clavier, edition de fichier etc)

le .bash_history mais je n'ai pas ce qui est saisi au clavier.

Si vous avez des pistes.

Cordialement



-- 
David Martin



Re: Bug: updating Debian9 not "allowed".

2017-10-27 Thread Joerg Desch
Am Thu, 26 Oct 2017 13:13:57 +0100 schrieb Darac Marjal:

> [Aside: The debian packaging tool is called "synaptic". "Synaptics" are
> a company producing touchpads. The two are not related]

I know, but I always make this mistake. ;-)

> I believe this is a known bug in synaptic: #864640 [1].

It is hard to believe that this bug is known since June and that there is 
neither a fix nor a solution. Deleting the file has worked for me, but I 
can't say that there are no side effects.

How should a newbie solve this? Without a work-around there are no 
updates possible.



Retro update

2017-10-27 Thread David Martin
Bonjour,

J'ai 3 serveurs au boulot, qui doivent être en 7.9 de wheezy,
j'en ai un qui à été upgradé en 7.11, est-il possible de faire
un retro upgrade ? est-ce possible sans passer par la phase
de restauration du serveur ?

-- 
David Martin



Re: Alternative à Nagios

2017-10-27 Thread David Martin
Bonjour,

J'utilise Centreon (Entreprise server avec la totale) au boulot, il
existe une version community qui remplira grandement ton besoin.

Zabbix, nous utilisons aussi en interne, si ces pistes peuvent t'aider
à faire un choix, c'est du solide en tout cas.

Si tu te mets à ces deux produits, ça sera toujours une plus value
car très utilisé dans le domaine professionnelle.

-- 
David Martin