Re: Falta de idiomas en debian 9.x (ISO image) y funcionamiento incorrecto de speakup

2018-08-12 Thread divagante

El 11/08/18 a las 01:49, Fran Torres escribió:

BUenas,

Me llamo Fran, soy usuario (más bien futuro usuario) ciego de debian.
   Al descargar la versión 9.x de debian (9.0.0, 9.4.0 y 9.5.0), me he
dado cuenta que, al arrancar utilizando accesibilidad por voz (speakup
pulsando la s y enter durante el arranque) solo hay 29 idiomas para
elegir durante la instalación, frente a los más de 40 que hay en las
versiones anteriores; entre los cuales, no se encuentra el español,
estando sólo: euskera (num 4), catalán (num 8) y english (num 13) en
la consola de instalación.

   También me he dado cuenta que, cuando el instalador lleva más de 3
minutos sin actividad (todo esto ha sido probado bajo una vm de
vmware) speakup aparentemente crashea o se cuelga, dejando de hablar
durante el resto de la instalación. También ocurre el mismo
comportamiento a partir de que solicita la contraseña de root
(evidentemente durante la instalación). Sobre todo, si se cambia el
idioma por defecto (english) a cualquier otro. También alerta de que
las traducciones podrían estar incompletas.

   Es posible cambiar/corregir esto en alguna de las versiones 9.x de
debian, ya que esto es vastante importante a tener en cuenta para
usuarios invidentes?

Fran.



Hola fran, te respondo sin darte una solución, pero para al menos que 
recibas una respuesta.
 Tu problema no solo nos supera a la mayoría de los usuarios de debian 
si no que tambien a la vez parece ser, no un problema si no un BUG! un 
error.
 Ojala alguien aquí con mas conocimiento y experiencia te pueda 
orientar. Yo la verdad no se como reportar un bug o problema de 
instalación! ya que el reportbug funciona cuando ya hemos instalado la .ISO.
 Por otro lado quizas alguien de nosotros pueda reportar este error 
desde nuestro sistema ya instalado. Yo omito hacerlo porque hay que 
hacerlo en el idioma ingles, el cual apenas comprendo y no domino.


 A ver si alguien de los que leen la lista se anima a reportar esto en 
ingles, o brindar alguna información para resolverlo.
 Quizás una posible solución -momentáneo- sea que instales la anterior 
versión que si comentas tiene soporte. Con repositorios backports al 
menos tendrás algunos programas actualizados.


 También debo disculparme, pues temo que enviarte este mail entorpezca 
tu tiempo y acciones, pero prefiero hacerlo al ver que no has recibido 
ninguna respuesta.


 Saludos fran,



Re: USB2 or 3 WiFi dual band adapters

2018-08-12 Thread Ben Caradoc-Davies

On 12/08/18 20:55, Curt wrote:

I looked at the TP-LINK TL-WN722N on Amazon.fr suggested by another
poster (whom I think was Ben if memory serves, which is increasingly not
exactly the case), but had trouble understanding which of the multiple
versions of the device contained the desired chipset (some commenters
claimed the device they bought did not work out of the box with their
Linux distribution). I guess my question would be (if I was in the
business of asking questions): how can you be assured when purchasing a
wireless usb dongle what chipset is lodged within the device?


You must check the full version as the v2 has a different chipset (see 
complaints in the Amazon comments). The original is Atheros, the v2 is 
Realtek:


Atheros: https://wikidevi.com/wiki/TP-LINK_TL-WN722N
Realtek: https://wikidevi.com/wiki/TP-LINK_TL-WN722N_v2

I suggest contacting the vendor for confirmation.

Kind regards,

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



Re: non-blocking stdin from bash

2018-08-12 Thread Jim Popovitch
On Mon, 2018-08-13 at 10:13 +1200, Richard Hector wrote:
> On 13/08/18 05:57, Jim Popovitch wrote:
> > Interesting.  I'm using it via a cron script like so:
> > 
> > * * * * *  grep "unusual" /opt/logs/* | /opt/notify.sh `hostname`;
> 
> I don't know what's in notify.sh, but it looks to me like you're
> going to get notified every minute for all the unusual log entries,
> whether you've already seen them or not?

That was just an example of what I'm doing.  In reality logtail's in
there, but it made the example line too long.

> Have you looked at logcheck or other similar existing solutions?

Yes, i use logcheck religiously, despite the absolute lack of logcheck
rules maintenance that exists in most packages not installed on a
default system (looking at you nginx, postfix, bind9, cron, clamav*,
openvpn, dovecot, opendmarc, monit, and openntpd).   I'd submit the
improvements to the appropriate maintainers, but I dislike rejection. 
;-)

-Jim P.



Re: Kernel 4.9.0-7-686 Installed RAM vs. uabale RAM

2018-08-12 Thread mick crane

On 2018-08-12 19:17, Pascal Hambourg wrote:

Le 12/08/2018 à 19:53, deloptes a écrit :

Dale Forsyth wrote:

Hello, I have a system with Kernel 4.9.0-7-686, installed RAM are 3x 
1GB

but free -m only show 2GB.


Please pay attention when reading, replying and quoting. "Dale
Forsyth" did not write this part. He/she/it just replied to random
threads to send spam.


I was going to say something but I was going through the process count 
to a hundred, walk around the room tapping your head and rubbing your 
belly and so on.


mick
--
Key ID4BFEBB31



Re: non-blocking stdin from bash

2018-08-12 Thread Richard Hector
On 13/08/18 05:57, Jim Popovitch wrote:
> Interesting.  I'm using it via a cron script like so:
> 
> * * * * *  grep "unusual" /opt/logs/* | /opt/notify.sh `hostname`;

I don't know what's in notify.sh, but it looks to me like you're going
to get notified every minute for all the unusual log entries, whether
you've already seen them or not?

Have you looked at logcheck or other similar existing solutions?

Richard



signature.asc
Description: OpenPGP digital signature


Re: non-blocking stdin from bash

2018-08-12 Thread tomas
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Sun, Aug 12, 2018 at 01:57:09PM -0400, Jim Popovitch wrote:
> On Sun, 2018-08-12 at 19:47 +0200, to...@tuxteam.de wrote:

[...]

> > This will block in the read as long as the line isn't yet terminated.
> > But of course fine, if it rocks your boat :-)
> 
> Interesting.  I'm using it via a cron script like so:
> 
> * * * * *  grep "unusual" /opt/logs/* | /opt/notify.sh `hostname`;
> 
> so it should always be terminated.

Then it'll rock your boat :)

Cheers
- -- t
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAltwkQMACgkQBcgs9XrR2kYn9wCcDFQMnC4UlWESSZIRXk5Mf1pZ
djEAnjCWc7A3MJXUuznsTV/o4gRF9tJO
=PmYn
-END PGP SIGNATURE-



Re: iptables et fwbuilder

2018-08-12 Thread Migrec

  
  
Bonjour,

Le 11/08/2018 à 12:58, Migrec a écrit :

Le
  11/08/2018 à 09:12, didier gaumet a écrit :
  
  Le 10/08/2018 à 08:47, Migrec a écrit :

[...]

Je cherche à bloquer un site internet
  grâce à fwbuilder
  

[...]

J'ai bien créé la règle, elle semble se
  compiler mais elle n'apparaît
  
  pas dans la sortie de iptables -L
  

[...]


D'après ce que je comprends Fwbuilder attend de ta part deux
étapes

distinctes pour la mise en place effective d'une règle:

- compilation (à priori, c'est fait)

- installation (ça resterait à faire?)


cf:

http://fwbuilder.sourceforge.net/4.0/docs/users_guide5/install-detail.shtml

  
  
  Oui j'ai effectué les 2 étapes. Mes autres règles fonctionnent
  (NAT, accès extérieurs, etc.) mais pas celle qui utilise l'objet
  "DNS Names". C'est la seule règle avec cet objet.
  


Je crois que j'ai le début d'une piste... Certaines de mes règles
possédaient une option de log qui était traduite par fwbuilder en
ULOG au niveau iptables.
Je n'ai pas creusé mais il semblerait que ULOG soit déprécié au
profit de NFLOG.

Du coup, j'avais quelques règles qui se compilaient mais qui étaient
rejetées à l'exécution !
iptables: No chain/target/match by that name


Cordialement,

--
Mic Grentz
  




Re: Hrdware question

2018-08-12 Thread Michael Wagner
On Aug 12, 2018 at 20:01:08, Pascal Hambourg wrote:
> Le 11/08/2018 à 22:50, David Christensen a écrit :
> > 
> > 3.  Do a fresh install of Debian onto the SSD.  Partition manually,
> > creating three primary partitions: /boot (1 GB), swap (1 GB), and root (10
> > GB).
> 
> Mind to explain why should /boot be on a separate partition ?
> 

Hello Pascal,

when you have /boot on a seperate partition, you can mount it read-only 
and only when kernel updates arrives, you mount it read-write.

Michael

-- 
If you have to ask what jazz is, you'll never know.


signature.asc
Description: PGP signature


Re: Hrdware question

2018-08-12 Thread Dan Ritter
On Sun, Aug 12, 2018 at 08:01:08PM +0200, Pascal Hambourg wrote:
> Le 11/08/2018 à 22:50, David Christensen a écrit :
> > 
> > 3.  Do a fresh install of Debian onto the SSD.  Partition manually,
> > creating three primary partitions: /boot (1 GB), swap (1 GB), and root
> > (10 GB).
> 
> Mind to explain why should /boot be on a separate partition ?

It used to be the case that various bootloaders would not be
able to boot from a partition larger than a certain size.

If your root partition is encrypted, or uses an exotic
filesystem, a separate /boot may be needed.

A separate /boot may be used as part of a rescue booting system,
so that you can fix a broken /.

If none of those reasons apply, you can safely have a unified /
and /boot.

-dsr-



Re: New `no sound' problems

2018-08-12 Thread Anders Andersson
On Sun, Aug 12, 2018 at 7:25 PM, deloptes  wrote:
> Dale Forsyth wrote:
>
>> It seems to be damned recursive, the problem...  After yesterday's
>> full-upgrade in Sid, my old Acer One without sound once again...
>> Everything seems all right: alsamixer, aumix, pulseaudio installed...
>> Last time this happened, it was solved installing pulseaudio and
>> alsaplayer-alsa...  Now it won't... Please help.
>
> STOP USING SID

I won't stoop low enough to use all caps, but...

1. Stop replying to spam
2. Stop misquoting others. What you quoted as Dale Forsyth was written
by Rodolfo.



Re: Kernel 4.9.0-7-686 Installed RAM vs. uabale RAM

2018-08-12 Thread Pascal Hambourg

Le 12/08/2018 à 19:53, deloptes a écrit :

Dale Forsyth wrote:


Hello, I have a system with Kernel 4.9.0-7-686, installed RAM are 3x 1GB
but free -m only show 2GB.


Please pay attention when reading, replying and quoting. "Dale Forsyth" 
did not write this part. He/she/it just replied to random threads to 
send spam.




Re: mailing list vs "the futur"

2018-08-12 Thread Miles Fidelman

On 8/12/18 8:10 AM, Zenaan Harkness wrote:


On Thu, Aug 09, 2018 at 07:03:29PM -0400, Rich Kulawiec wrote:

... mighty fine list you've got there - mailing lists are even better
than I thought they were.


19. Mailing lists interoperate.  I can easily forward a message from this
list to another one.  Or to a person.  I can send a message to multiple
lists.  I can forward a message from a person to this list.  And so on.
Try doing this with web forum software A on host B with destinations
web forum software X and Y on hosts X1 and Y1.  Good luck with that.

Oh come on - this one's a no-brainer on the web - you click the Like
button on the website, which takes you to a "Share with friend", and
if it doesn't then see if there's a "Tweet" button and click that.


And then there's LinkedIn - which makes it nearly impossible to share 
things with anything other than another LinkedIn user (except by using 
one's browser to mail the item or a link).


Nope.  Forwarding by email is about the only universal way to share 
stuff, or to move it from some service or another to one's personal 
storage (I can't tell you how often I email stuff to myself).


Miles Fidelman

--
In theory, there is no difference between theory and practice.
In practice, there is.   Yogi Berra



Re: Hrdware question

2018-08-12 Thread Pascal Hambourg

Le 11/08/2018 à 22:50, David Christensen a écrit :


3.  Do a fresh install of Debian onto the SSD.  Partition manually, 
creating three primary partitions: /boot (1 GB), swap (1 GB), and root 
(10 GB).


Mind to explain why should /boot be on a separate partition ?



Re: non-blocking stdin from bash

2018-08-12 Thread Jim Popovitch
On Sun, 2018-08-12 at 19:47 +0200, to...@tuxteam.de wrote:
> On Sun, Aug 12, 2018 at 12:34:08PM -0400, Jim Popovitch wrote:
> 
> [...]
> 
> > Turns out I had mis-read your first reply as "-t 1", chiefly
> > because
> 
> Ah, I see.
> 
> > that was all that I had found before posting here.  What now works
> > for
> > me avoids the -t param:
> > 
> > 
> > while read stdin_line
> > do
> >    MSG=$MSG"\n"$stdin_line
> > done < /dev/stdin
> 
> This will block in the read as long as the line isn't yet terminated.
> But of course fine, if it rocks your boat :-)

Interesting.  I'm using it via a cron script like so:

* * * * *  grep "unusual" /opt/logs/* | /opt/notify.sh `hostname`;

so it should always be terminated.

-Jim P.





Re: Kernel 4.9.0-7-686 Installed RAM vs. uabale RAM

2018-08-12 Thread deloptes
Dale Forsyth wrote:

> Hello, I have a system with Kernel 4.9.0-7-686, installed RAM are 3x 1GB
> but free -m only show 2GB.

hyperactively posting is bad ting - the question was answered coupe of days
ago.
The answer was install PAE kernel.

regards



Re: non-blocking stdin from bash

2018-08-12 Thread tomas
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Sun, Aug 12, 2018 at 12:34:08PM -0400, Jim Popovitch wrote:

[...]

> Turns out I had mis-read your first reply as "-t 1", chiefly because

Ah, I see.

> that was all that I had found before posting here.  What now works for
> me avoids the -t param:
> 
> 
> while read stdin_line
> do
>    MSG=$MSG"\n"$stdin_line
> done < /dev/stdin

This will block in the read as long as the line isn't yet terminated.
But of course fine, if it rocks your boat :-)

> Thanks again,

Hey. You're welcome

Cheers
- -- tomás
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAltwcrYACgkQBcgs9XrR2kYqgwCdH9J+3t6DYuGAcS/23OaZNE1i
seYAn0i65VKWm16CNrmChrmpci01kchP
=ckC2
-END PGP SIGNATURE-



Re: problem with modern desktops on Buster

2018-08-12 Thread deloptes
Dale Forsyth wrote:

> I've been using Gnome Flashback (Metacity) for about 5 hours now,
> including a couple periods when the screen saver / lock kicked in, and
> it seems OK.

I stayed ad KDE3 (now trinity desktop) it never fails as it is 15+y proven
technology

regards



Re: New `no sound' problems

2018-08-12 Thread deloptes
Dale Forsyth wrote:

> It seems to be damned recursive, the problem...  After yesterday's
> full-upgrade in Sid, my old Acer One without sound once again... 
> Everything seems all right: alsamixer, aumix, pulseaudio installed... 
> Last time this happened, it was solved installing pulseaudio and
> alsaplayer-alsa...  Now it won't... Please help.

STOP USING SID

regards



Re: Hrdware question

2018-08-12 Thread deloptes
Stephen P. Molnar wrote:

> This answers my question.

Today grub is using uuid to find out which drive it needs to boot from.
On my hobby server I have 8 drives in raid1 and when the storage (LSI) comes
up some times some drives are initialized before others, but using UUID
instead sda, sdb etc makes it work like a charm.

regards



Re: non-blocking stdin from bash

2018-08-12 Thread Jim Popovitch
On Sun, 2018-08-12 at 10:36 +0200, to...@tuxteam.de wrote:
> On Sun, Aug 12, 2018 at 01:26:40AM -0400, Jim Popovitch wrote:
> > On Sun, 2018-08-12 at 00:48 +0200, to...@tuxteam.de wrote:
> > > On Sat, Aug 11, 2018 at 06:08:34PM -0400, Jim Popovitch wrote:
> > > > Hello!
> > > > 
> > > > What's the best way to grab anything that's in stdin into a
> > > > variable
> > > > inside a bash script, but won't block if stdin is null?
> > > 
> > > I think read is your friend (at least in bash). It has an option
> > > -t , which you can set to zero, for it to just grab
> > > what's
> > > available at the moment without waiting (cf "help read" while in
> > > the bash for more details, like setting a delimiter, etc.)
> > > 
> > > HTH
> > > -- tomás
> > 
> > Thanks for the reply tomás.  I'm trying to avoid using read because
> > of
> > the 1 sec minimum timeout.
> 
> Not on bash, at least. According to the docs, "-t 0" is a timeout of
> zero. Experiments confirm that:
> 
>   tomas@trotzki:~$ time read -t 0
> 
>   real0m0.000s
>   user0m0.000s
>   sys 0m0.000s
> 
> (Of course, 0 is too optimistic here, but it's sub-millisecond).
> Fractional times work too:
> 
>   tomas@trotzki:~$ time read -t 0.05
> 
>   real0m0.050s
>   user0m0.000s
>   sys 0m0.000s
> 
> Finally, you can use timeout to read incomplete (i.e. non-terminated)
> input, like so:
> 
>   tomas@trotzki:~$ time echo -n mumble | bash -c 'read -t 0.01 foo ;
> echo $foo'
>   mumble
> 
>   real0m0.004s
>   user0m0.000s
>   sys 0m0.000s
> 
> Note that "-t 0" won't work here: the "read" at the right is there
> before
> the "echo" at the left, so read turns out empty...
> 
> > This may seem odd, but 1 sec is 100+
> > times
> > longer than grep'ing/awk'ing/sed'ing the contents of a variable, so
> > I'm
> > trying to find a faster way to read stdin.  
> 
> No, it doesn't seem odd. Sometimes 1 sec is too much (sometimes 1msec
> is
> too much, too :-)
> 
> But I think (used wisely) read is still your friend!
> 
> Note that I didn't check how much of this is bashism. Document your
> requirements :-)

:-)

Turns out I had mis-read your first reply as "-t 1", chiefly because
that was all that I had found before posting here.  What now works for
me avoids the -t param:


while read stdin_line
do
   MSG=$MSG"\n"$stdin_line
done < /dev/stdin


Thanks again,

-Jim P.



Bind bug

2018-08-12 Thread Rob van der Putten

Hi there


See;
https://kb.isc.org/article/AA-01639/0
I don't think not using deny-answer-aliases is really an option.


Regards,
Rob



Re: mailing list vs "the futur"

2018-08-12 Thread Zenaan Harkness
On Thu, Aug 09, 2018 at 07:03:29PM -0400, Rich Kulawiec wrote:

... mighty fine list you've got there - mailing lists are even better
than I thought they were.

> 19. Mailing lists interoperate.  I can easily forward a message from this
> list to another one.  Or to a person.  I can send a message to multiple
> lists.  I can forward a message from a person to this list.  And so on.
> Try doing this with web forum software A on host B with destinations
> web forum software X and Y on hosts X1 and Y1.  Good luck with that.

Oh come on - this one's a no-brainer on the web - you click the Like
button on the website, which takes you to a "Share with friend", and
if it doesn't then see if there's a "Tweet" button and click that.

Then all you have to do is log into your Facebook account and upload
a photo of the latte coffee art you just purchased - to make sure the
target of your message takes interest in this post on your wall.

If your forwardee friend fails to notice your fine coffee art photo,
simply create a new Facebook group for them to join called
"MyDebianPrinterProblemForJohn" or something, and then log into that
group and send an invite to your friend, tweet that you've created
the group, hope the tweet helps massage your tech cred daily profile,
tumblr the coffee art and send a reply to the mailing list with links
to the above if all else fails.

It's like, not exactly, like hard or anything. Like.


> 20. Mailing lists can be uni- or bidirectionally gatewayed to Usenet.
> (The main Python language mailing list is an example of this.)  This can
> be highly useful.
> 
> There's more, but I think this easily suffices to make a slamdunk case.

Except for the clear superiority of the web uptions above.





Re: Tea4CUPS: TEABILLING reports error

2018-08-12 Thread Rainer Dorsch
Hi Daniel,

no unfortunately I have not yet resolved the problem. I still issue the 
prehook manually. But I did not yet dig too deep into this issue... 

If you find the root cause, please let me knowand good to know that this 
is a cross distri issue, even Arch is affected.

Rainer

On Samstag, 11. August 2018 17:29:35 CEST daniel-mailingli...@dadosch.de 
wrote:
> Hey there,
> I'm having this error too, on my KDE Neon System as well as on my (now)
> Arch System. It works most of the times, but not all.
> 
> Did you finally manage to find a solution, Rainer?
> 
> 
> --
> Daniel


-- 
Rainer Dorsch
http://bokomoko.de/




Re: bash: initialiser environnement particulier

2018-08-12 Thread Étienne Mollier
Bonjour,


Jérémy Prego, par un beau matin d'été :
> j'aimerai parfois lancer un bash avec d'autres variables que
> celle défini par défaut par exemple au lancement d'un bash,
> exporter la variable http_proxy ou encore la variable TZ. par
> contre, faut que se soit juste sur le bash que j'ai choisi.
> j'ai bien essayé de mettre des arguments au lancement de bash
> par exemple, /bin/bash && export
> http_proxy=xx.xx.xx.x.xx:3128/ mais ça ne semble pas
> fonctionné comme ça.
>
> faut-il que je crée un fichier d'initialisation bash
> alternatif et appelé ce fichier au lancement de mon bash
> particulier ?

Il y a tout plein de façons de faire.  Typiquement, vous pouvez
stocker les variables dans un fichier "~/.proxy.env" avec le
contenu suivant :

# Mon proxy
export http_proxy="http://www.example.org:3128;
export https_proxy="${http_proxy}"
echo "Proxy ${http_proxy} actif"

Fichier que vous pouvez ensuite charger dans votre session Bash
courante avec la commande "source" :

$ source ~/.proxy.env
Proxy http://www.example.org:3128 actif
$ echo $http_proxy
http://www.example.org:3128

Mais je ferais probablement différemment, abuser de "source"
peut entraîner des complications le jour où on voudrait changer
de shell.

> comment feriez vous ? :)

J'appellerais un shell dans une session particulière via un
script dont la première partie est de régler l'environnement, et
la seconde est d'appeler le shell, qui héritera de ces variables
avec leurs valeurs.  En admettant que le script en question soit
"~/bin/bashweb" et que "~/bin" soit dans votre path, le contenu
serait :

#! /bin/bash
set -e
# mon proxy
export http_proxy="http://www.example.org:3128;
export https_proxy="${http_proxy}"
# affichage du témoin d'activité
PS1="[proxy actif] ${PS1}"
# passer les arguments et laisser la main à la session
# de shell Bash interactive
exec bash "$@"

Je lancerais "bashweb" et j'aurais une session dédiée aux
activités nécessitant un accès au web, que je pourrais quitter
pour revenir en mode normal simplement en tapant "exit" :

$ env | grep http
$ bashweb
[proxy actif] $ env | grep http
https_proxy=http://www.example.org:3128
http_proxy=http://www.example.org:3128
[proxy actif] $ exit
$ env | grep http
$ _

Notez, le bricolage avec le prompt fonctionne tant que la
variable PS1 n'est pas écrasée dans "~/.bashrc".

Ce qui est bien, c'est que vous pouvez lancer n'importe quoi
dans votre script et pas seulement Bash ; par exemple il est
possible de lancer une session Octave, un navigateur, une « Wine
bottle », n'importe quel programme qui tire une partie de sa
configuration depuis les variables d'environnement.

Attention a ce que le script ne s'appelle pas accidentellement
lui-même, sinon Bash va boucler, en redémarrant le dit script
indéfiniment.


Sinon, ces genres de petits raccourcis restent envisageable :

alias set-proxy='
export http_proxy="http://www.example.org:3128;
export https_proxy="http://www.example.org:3128;
'
alias unset-proxy='
unset http_proxy https_proxy
'

> debian testing.

Debian Sid...  ;)


Amicalement,
-- 
Étienne Mollier 




Re: mailing list vs "the futur"

2018-08-12 Thread Zenaan Harkness
On Sat, Aug 11, 2018 at 12:07:53PM +0300, Michelle Konzack wrote:
> Am DATE hackte Ben Finney in die Tasten:
> > It's 2018. Shouldn't we move away from an old “keyboard” to
> > something
> > mroe modern like a data-glove?
> 
> I would prefer the Star Trek version:
> 
> "Computer, show me Ben Finneys last 10 postings on debian user"

I think this is quicker, more elegant and MUCH more intuitive:

 L~f finneyG

Oh.

Dear me!

You mean you're NOT using mutt?

;D



Re: mailing list vs "the futur"

2018-08-12 Thread Zenaan Harkness
On Thu, Aug 09, 2018 at 03:03:49PM -0400, Ric Moore wrote:
> On 08/09/2018 01:39 PM, tech wrote:
> 
> > Should'nt be time to move away from an old mail-listing to something more
> > modern like a bugzilla or else ???
> 
> Why?? There already are plenty of such sites, you need only pick and choose. I
> like it here as I don't have to read a "me too!" message with a meg of
> attachments, html ads and rainbow snorting unicorns. If you really are a
> "tech", you would know better than ask.

“Rainbow snorting unicornds” DAMN! I tried to come up with some witty
response, anything, and for the first time in the last minute, my
brain utterly failed me.

That's good. Very good wordsmithing. ;)



Re: messages from GNU screen always in English

2018-08-12 Thread Zenaan Harkness
On Thu, Aug 09, 2018 at 02:27:07PM +0100, Darac Marjal wrote:
> On Thu, Aug 09, 2018 at 01:17:29PM +, davidson wrote:
> > It seems that regardless of my locale (LANG=fr_FR.UTF-8,
> > LANG=de_DE.UTF-8, LANG=ru_RU.UTF-8, etc), messages from GNU screen are
> > always in English.
> > 
> > Has anyone else noticed this, or am I doing something wrong?
> > 
> > For the record, the following briefly illustrates what I do (for
> > example):
> > 
> > $ export LANG=fr_FR.UTF-8 ; screen # set locale for tty and start screen
> > $ exit # quit screen session
> > [screen is terminating]
> > 
> > The termination message above illustrates the unexpected behavior I am
> > talking about.


> "screen is terminating" is only found in one place in the screen source code,
> namely at [screen.c:1824][1]. It's wrapped by the function AddStr() which is
> defined at [display.c:2946][2] and which appears to merely be concerned with
> encoding, rather than translating the string provided.
> 
> So, in summary, "screen is terminating" is hard-coded in english, and you
> should probably raise a wishlist bug requesting it be translated/translatable.


I upgraded to tmux a couple years ago - took a bit of customization
to make it work like screen, but never looked back. I did not a gnu
screen update a year or so ago, but the jazz band is playing at the
tmux corral.



Re: mailing list vs "the futur"

2018-08-12 Thread Zenaan Harkness
On Fri, Aug 10, 2018 at 07:06:11AM -0400, Rich Kulawiec wrote:
> On Fri, Aug 10, 2018 at 06:24:55AM -0400, Dan Ritter wrote:
> > I get more mail than that before breakfast. If you've got the
> > right tools, it's easy to deal with.
> 
> This is an excellent point.  Many of the people who lodge complaints
> like the one that started this discussion thread have chosen very poor
> tools and thus have conflated the failings of those tools with some
> non-existent inherent problems with mailing lists.
> 
> Serious email users should be using mutt, which is fast, compact,
> resistant to attack, and has an astonishing number of features.
> Those who receive large volumes of mail should be using procmail
> to pre-sort it,

pre-sorting is essential but dang, procmail drove me crazy for a few
years (so slow, clunky rules, ugh!) and I finally tore into sieve
like a carnivore! Damn that felt good.

Oh, and batching the downloads with getmail (and the every friendly
Osamu pipes up on this list) or mpop - both a blindingly fast
compared to anything and everything else including TBird! for a
decade I've NEVER looked back.

And batching the sieve sorting too - not only are sieve rules a
breath of fresh air compared to procmail, it's essentially instant to
sort your "temp email download mail box" into their destination
folders (since the rules are only "compiled" once), and for the big
FTW win, give yourself a little summary output too (see attached and
very hackish script).

Last step is I need to migrate off of Gnu sieve and onto the other
one (Dovecot perhaps?) since Gnu sieve is a pompous prig which spits
the occasional "Malformed email address" - hey, perhaps it's more
secure, IDK, but the attached script even color highlights the
leftover emails from your temp download folder. Did I mention FTW?


> and they should be aware of RFC 2919 (and thus
> the existence of List-Id) as an excellent means for doing so.
> These two tools in combination make dealing with large amounts
> of traffic to large numbers of mailing lists quite easy.
> 
> Furthermore, everyone using mailing lists should be maintaining
> their own archive, simply because there's no reason not to.  The

Ack!

Once I'm subbed to a list, I simply never delete the emails (except
the occasional spam which squeaks through e.g. Debian's lists - but
it really is occasional - and for very lazy personal email spam
protection - just use the big G's email).


> storage required is small by contemporary standards and doing so
> allows the use of local search tools (e.g., grepmail) which can
> invaluable in locating relevant messages.  (Those who haven't
> been doing this can usually backfill by downloading the archives
> maintained by the site running the mailing list.  in turn, everyone
> running a mailing list should take care to see that those archives
> are fully accessible, unredacted, and downloadable on demand.)

I've used forums when no ML was available, and damn it's frustrating
- email is inherently a batch process, which is most efficient of my
time especially in the face of boondocks-class (slow) internet
connections, offline thread viewing, greppability, threads read
trackability (I can trivially see what I have and have not read yet,
and keep not reading those things I want to read later, etc) etc.

Literally nothing else compares to a comfortable offline email
setup... good luck all,



Re: mailing list vs "the futur"

2018-08-12 Thread Dan Purgert
Michelle Konzack wrote:
> Am DATE hackte Dan Purgert in die Tasten:
>> Thanks for the explanation.  At some point I may have to look into it
>> in
>> more detail -- although since I run my MTA (well, at least for the
>> mail
>> that matters) that does sorting serverside, might not do me any good.
>
> I would say, your MTA has nothing to do with it.
>
> If you run your own Server and your MTA receive a new message,
> let it point to procmail and sort it. I assum, you access the
> server trough IMAP so the next time you connect with your
> prefered MUA or Squirrelmail you will see the mesages nicely
> sorted.

Yeah, and as part of that, the MTA hands off to sieve (or perhaps
that's the Dovecot process that invokes sieve).  So *also* handing off
to procmail makes no real improvement.


-- 
|_|O|_| Registered Linux user #585947
|_|_|O| Github: https://github.com/dpurgert
|O|O|O| PGP: 05CA 9A50 3F2E 1335 4DC5  4AEE 8E11 DDF3 1279 A281



Re: bash: initialiser environnement particulier

2018-08-12 Thread Ph. Gras
Salut !

> j'aimerai parfois lancer un bash avec d'autres variables que celle défini par 
> défaut par exemple au lancement d'un bash, exporter la variable http_proxy ou 
> encore la variable TZ. par contre, faut que se soit juste sur le bash que 
> j'ai choisi. j'ai bien essayé de mettre des arguments au lancement de bash 
> par exemple, /bin/bash && export http_proxy=xx.xx.xx.x.xx:3128/ mais ça ne 
> semble pas fonctionné comme ça.

Ça ne fonctionne effectivement pas comme ça, la commande saisie après && 
s'exécute après le script :

# cat test.sh
#!/bin/bash
ls -l
# ./test.sh && ls
total 32
-rwxr-xr-x 1 root root 577 janv. 28  2018 backup_recup.sh
-rwxr-xr-x 1 root root 247 juil. 26 13:38 ban.sh
-rwxr-xr-x 1 root root 780 avril 13 23:45 cipher_test.sh
-rwxr-xr-x 1 root root 510 janv.  9  2018 dns_modifs.sh
-rwxr-xr-x 1 root root  55 avril  9 19:43 exploit.sh
-rwxr-xr-x 1 root root 175 mars  10 00:16 mta.sh
-rwxr-xr-x 1 root root  18 août  12 12:36 test.sh
-rwxr-xr-x 1 root root 124 juil. 30 13:15 top.sh
backup_recup.sh  ban.sh  cipher_test.sh  dns_modifs.sh  exploit.sh  mta.sh  
test.sh  top.sh

Par contre, tu peux générer la valeur d'une variable avec la commande read :
https://openclassrooms.com/fr/courses/43538-reprenez-le-controle-a-laide-de-linux/43126-afficher-et-manipuler-des-variables#r-42997

Bonne continuation,

Ph. Gras


Re: USB2 or 3 WiFi dual band adapters

2018-08-12 Thread Curt
On 2018-08-12, Joel Wirāmu Pauling  wrote:
>
> Basically find one that uses the ath9k Chipset. They are easily the best
> supported Wifi Interface.
>
> If you need Wireless AC then ath10k based products are useable too.
>
> The Intel ranges are OK as clients, but are not really very Opensource.
> Ath9k has the best Fully Opensource impementation out of any of the
> Wireless cards.
>
> https://wikidevi.com/wiki/Ath9k
>

I didn't see any usb dongles listed on that page.

Maybe here below (but maybe out of date):

https://wikidevi.com/wiki/Atheros_AR9271#Linux_support

I looked at the TP-LINK TL-WN722N on Amazon.fr suggested by another
poster (whom I think was Ben if memory serves, which is increasingly not
exactly the case), but had trouble understanding which of the multiple
versions of the device contained the desired chipset (some commenters
claimed the device they bought did not work out of the box with their
Linux distribution). I guess my question would be (if I was in the
business of asking questions): how can you be assured when purchasing a
wireless usb dongle what chipset is lodged within the device?

-- 
"She was a blank wall, fresh painted." 
Louise Erdrich, Love Medicine



bash: initialiser environnement particulier

2018-08-12 Thread Jérémy Prego

bonjour,

je vais essayer d'expliquer ma demande particulière, mais je suis 
convaincu que c'est possible :)


j'aimerai parfois lancer un bash avec d'autres variables que celle 
défini par défaut par exemple au lancement d'un bash, exporter la 
variable http_proxy ou encore la variable TZ. par contre, faut que se 
soit juste sur le bash que j'ai choisi. j'ai bien essayé de mettre des 
arguments au lancement de bash par exemple, /bin/bash && export 
http_proxy=xx.xx.xx.x.xx:3128/ mais ça ne semble pas fonctionné comme ça.


faut-il que je crée un fichier d'initialisation bash alternatif et 
appelé ce fichier au lancement de mon bash particulier ?


comment feriez vous ? :)

debian testing.

Merci,

Jerem



Re: non-blocking stdin from bash

2018-08-12 Thread tomas
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Sun, Aug 12, 2018 at 01:26:40AM -0400, Jim Popovitch wrote:
> On Sun, 2018-08-12 at 00:48 +0200, to...@tuxteam.de wrote:
> > On Sat, Aug 11, 2018 at 06:08:34PM -0400, Jim Popovitch wrote:
> > > Hello!
> > > 
> > > What's the best way to grab anything that's in stdin into a
> > > variable
> > > inside a bash script, but won't block if stdin is null?
> > 
> > I think read is your friend (at least in bash). It has an option
> > -t , which you can set to zero, for it to just grab what's
> > available at the moment without waiting (cf "help read" while in
> > the bash for more details, like setting a delimiter, etc.)
> > 
> > HTH
> > -- tomás
> 
> Thanks for the reply tomás.  I'm trying to avoid using read because of
> the 1 sec minimum timeout.

Not on bash, at least. According to the docs, "-t 0" is a timeout of
zero. Experiments confirm that:

  tomas@trotzki:~$ time read -t 0

  real0m0.000s
  user0m0.000s
  sys 0m0.000s

(Of course, 0 is too optimistic here, but it's sub-millisecond).
Fractional times work too:

  tomas@trotzki:~$ time read -t 0.05

  real0m0.050s
  user0m0.000s
  sys 0m0.000s

Finally, you can use timeout to read incomplete (i.e. non-terminated)
input, like so:

  tomas@trotzki:~$ time echo -n mumble | bash -c 'read -t 0.01 foo ; echo $foo'
  mumble

  real0m0.004s
  user0m0.000s
  sys 0m0.000s

Note that "-t 0" won't work here: the "read" at the right is there before
the "echo" at the left, so read turns out empty...

> This may seem odd, but 1 sec is 100+ times
> longer than grep'ing/awk'ing/sed'ing the contents of a variable, so I'm
> trying to find a faster way to read stdin.  

No, it doesn't seem odd. Sometimes 1 sec is too much (sometimes 1msec is
too much, too :-)

But I think (used wisely) read is still your friend!

Note that I didn't check how much of this is bashism. Document your
requirements :-)

Cheers
- -- t
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAltv8XkACgkQBcgs9XrR2kZNaQCcCaWfnVktQY8CENggRODJ3/nl
+1UAnRbm/rs66wz+BplEsBX3Mmp3Ed7X
=NFpA
-END PGP SIGNATURE-



Re: comment créer une entrée pour surfraw

2018-08-12 Thread Haricophile
Le dimanche 12 août 2018 à 09:25 +0200, Bernard Schoenacker a écrit :
> bonjour,
> 
> j'ai découvert surfraw et je souhaiterai créer
> des entrées supplémentaires, mais comment faire ?
> 
> merci
> slt
> bernard

De mémoire il y a un fichier de conf contenant les "elvis'.




Re: Problems with kernel 4.17.0-1-amd64

2018-08-12 Thread Pascal Hambourg

Le 11/08/2018 à 16:43, Nicolas George a écrit :


This one was fixed by adding this on the kernel command-line:

dm_mod.use_blk_mq=0 scsi_mod.use_blk_mq=0

It is possible that "ahci.mobile_lpm_policy=0" helps too, it was
suggested to me as a fix too and I have not yet tested without it, nor
with use_blk_mq in modprobe.d instead of the kernel command-line.


It would probably work too, but my advice is to stick with the kernel 
command line for the following reasons :


- it is more visible (/proc/cmdline, dmesg...) than an obscure file in 
/etc/modprobe.d/ and possibly the initramfs


- is can be easily edited at runtime in the boot loader

- it works even if the driver is built in the kernel image, while 
/etc/modprobe.d/ works only with modules


- if the module is included in and loaded by the initramfs, you must 
rebuild the initramfs after any change in /etc/modprobe.d/




Re: iptables config resets after restarting system

2018-08-12 Thread Pascal Hambourg

Le 10/08/2018 à 22:29, Hubert Hauser a écrit :


echo " * allowing ping responses"
${IPTABLES} -A INPUT -p ICMP -j ACCEPT

${IP6TABLES} -A INPUT -p ICMPv6 -j ACCEPT


Replies to unicast echo requests have the ESTABLISHED state. So you 
don't need an extra rule to accept them, unless you are sending echo 
requests to broadcast or anycast addresses.


Besides, theses rules accept not accept echo-reply but also ANY ICMP or 
ICMPv6 type, including echo-request.



echo -e " * SAVING RULES\n"

iptables-save > /etc/iptables/rules.v4
iptables-apply /etc/iptables/rules.v4

ip6tables-save > /etc/iptables/rules.v6
ip6tables-apply /etc/iptables/rules.v6

echo -e "\n * DONE!\n"

Here's my iptables config before restarting system:


(...)


And after restarting system:


(a few differences)


Running command fwall-rules after restarting system works. What am I
doing wrong?


How do yo restore the ruleset at startup ?
Are you using the same file ?



comment créer une entrée pour surfraw

2018-08-12 Thread Bernard Schoenacker
bonjour,

j'ai découvert surfraw et je souhaiterai créer
des entrées supplémentaires, mais comment faire ?

merci
slt
bernard



Re: Problems with kernel 4.17.0-1-amd64

2018-08-12 Thread deloptes
Nicolas George wrote:

> I am running testing on a fairly normal i3-based PC. Since yesterday, it
> is using the 4.17.0-1-amd64 kernel instead of 4.16.0-2-amd64, and I am
> experiencing the following two issues:
> 
> The device for the audio controller takes about 0.3 seconds to open. I
> have just rebooted on 4.16, and with it the delay is imperceptible. (And
> yes, 0.3 seconds for that is a problem for me.) The audio device is
> listed as "ALC892 Analog".

Hi,
I am using debian stable with self compiled kernel. With 4.16.4 I had a
terrible experience with audio devices. I went back to 4.15.8 and just
recently installed 4.17.13. With 4.17.13 everything is fine.
I usually download the source and do 
cp  .config
make oldconfig
make deb-pkg 
to produce the binaries.

You can check the kernel change log. IMO there must have been some work on
audio stack, but I did not look into the detail.

regards




Re: SystemD problem with launching a server

2018-08-12 Thread Dale Forsyth
https://www.mycause.com.au/page/183259/a-smile-will-change-a-day-love-that-changed-my-world

From: Bill 
Sent: Thursday, 9 August 2018 9:02 AM
To: Debian User ML
Cc: bi...@uniserve.com
Subject: SystemD problem with launching a server

Hi,

So I'd like to run rinetd at boot time on Stretch along with sshd.

I've no problem running rinetd manually using /usr/sbin/rinetd
or in a script using the same command. ps aux |grep rinetd shows it's
running and it works as expected.

So I've written a service file for systemd,
/etc/systemd/system/rinetd.service and enabled it with systemctl enable
/etc/systemd/system/rinetd.service. At boot time the file gets run but
nothing shows up with ps aux, although sshd is running correctly. I
think the problem is with the systemd file. Here's the rinetd.service file:

# /etc/systemd/system/rinetd.service
# A systemd.service file to start
# /usr/sbin/rinetd at boot time.

[Unit]
Description=Start rinetd server
After=multi-user.target network.target sshd.service

[Service]
Type=oneshot
ExecStart=/usr/sbin/rinetd
Restart=no

[Install]
WantedBy=multi-user.target

Any clues? Is this file too sparse? Or am I pining for the fjords?

Bill



--
Sent using Icedove on Debian GNU/Linux.