Re: Re: The ultimate fate of Debian

2019-11-12 Thread Df Df
مرسل من هاتف Samsung Galaxy الذكي.


Re: dico anglais/français et françcais/anglais sans connexion internet ?

2019-11-12 Thread machinSuite
Merci pour les réponses.
Je vais regarder startdict, goldendict et kiwix.



--
Sent from: http://debian.2.n7.nabble.com/debian-user-french-f1152225.html



debootstrap et après ?

2019-11-12 Thread machinSuite
Bonjour à tous.

Aujourd'hui je cherche à savoir comment créer les fichiers périphériques
manuellement sous buster 10.1.0 après avoir fait une installation minimale à
l'aide de debootstrap.
Dans la documentation officielle d'installation de debian concernant
debootstrap j'ai tapé en adapatant :

* mes commandes
mkfs.ext4 -v /dev/sda4
mkswap /dev/sda5
sync
swapon /dev/sda5
mkdir /mnt/debinst
mount /dev/sda4 /mnt/debinst
mount firmware-10.1.0-amd64-DVD-1.iso /median/cdrom/
debootstrap --no-check-gpg buster /mnt/debinst/ file:///media/cdrom/debian/
LANG=C.UTF-8 chroot /mnt/debinst /bin/bash
* fin

C'est alors que je dois créer les fichiers périphériques !
Dans la documentation d'installation les choses suivantes sont indiquées :

* documentation d'installation
Pour l'instant, /dev/ contient seulement des fichiers élémentaires. D'autres
fichiers seront nécessaires pour les prochaines étapes de l'installation. La
manière de les créer dépend du système sur lequel l'installation se fait ;
elle dépend aussi du noyau que vous utiliserez (modulaire ou pas) et du
choix entre fichiers dynamiques (en utilisant udev) ou fichiers statiques
pour le nouveau système.

Voici quelques options disponibles :

- installer le paquet makedev et créer un ensemble standard de fichiers de
périphériques statiques avec :

# apt install makedev
# mount none /proc -t proc
# cd /dev
# MAKEDEV generic

- créer seulement quelques fichiers choisis avec la commande MAKEDEV ;

- monter (option bind) le répertoire /dev du système hôte sur le répertoire
/dev du système cible. Il faut remarquer que les scripts postinst de
certains paquets peuvent essayer de créer des fichiers de périphériques ;
cette option doit être employée avec précaution.
* fin

Pour buster 10.1.0 je suppose que l'installateur classique de debian
(graphique ou non) fait le choix d'un noyau modulaire et des fichiers
dynamiques (utilisation de udev). Aussi je souhaite maintenant faire la même
chose mais à la main et c'est là que cela coince ! Faut-il installer un
paquet qui finie de remplir le répertoire /dev des fichiers de périphériques
comme je le souhaite ?

Merci d'avance pour les infos ou docs à lire.



--
Sent from: http://debian.2.n7.nabble.com/debian-user-french-f1152225.html



Re: dico anglais/français et françcais/anglais sans connexion internet ?

2019-11-12 Thread machinSuite
Merci à tous pour les réponses.
Je vais regarder comme indiqué : stardict, golfendict et kiwix.



--
Sent from: http://debian.2.n7.nabble.com/debian-user-french-f1152225.html



Re: postgresql-12 - crash. Any hints.

2019-11-12 Thread Kamil Jońca
kjo...@poczta.onet.pl (Kamil Jońca) writes:

> It is home PC box with debian sid.
> Recently my postgres was upgraded from version 11 to 12.
> I migrate databases, and during last few days I have had 2 server
> crashes.
> Crashes were during different statements. And after crash these
> statements executed successfully.
> In log I have:
> ===
> 2019-11-04 00:07:38 CET LOG:  server process (PID 19244) was terminated by 
> signal 11: Segmentation fault
> 2019-11-04 00:07:38 CET DETAIL:  Failed process was running: update queue set 
> priority = -3 ;
> 2019-11-04 00:07:38 CET LOG:  terminating any other active server processes
> [...]
> 2019-11-04 00:07:39 CET LOG:  all server processes terminated; reinitializing
> 2019-11-04 00:07:39 CET DEBUG:  mmap(150994944) with MAP_HUGETLB failed, huge 
> pages disabled: Cannot allocate memory
> 2019-11-04 00:07:39 CET LOG:  database system was interrupted; last known up 
> at 2019-11-04 00:02:24 CET
> ===
> 2019-11-05 21:43:56 CET LOG:  server process (PID 23233) was terminated by 
> signal 11: Segmentation fault
> 2019-11-05 21:43:56 CET DETAIL:  Failed process was running: SELECT po_nr 
> FROM get_free_numbers(999);
> 2019-11-05 21:43:56 CET LOG:  terminating any other active server processes
> [...]
> 2019-11-05 21:43:57 CET LOG:  all server processes terminated; reinitializing
> 2019-11-05 21:43:57 CET DEBUG:  mmap(150994944) with MAP_HUGETLB failed, huge 
> pages disabled: Cannot allocate memory
> 2019-11-05 21:43:58 CET LOG:  database system was interrupted; last known up 
> at 2019-11-05 21:43:49 CET
> ===
>
> any hints?
>
> KJ


Today was another crash.
Another piece of a puzzle: There is (unlogged) table with 70M+
rows. After crash this table is empty (but table itself exists.)

KJ

-- 
http://wolnelektury.pl/wesprzyj/teraz/
If A equals success, then the formula is _A = _X + _Y + _Z.  _X is work.  
_Y
is play.  _Z is keep your mouth shut.
-- Albert Einstein



Re: fail2ban for apache2

2019-11-12 Thread Gene Heskett
On Tuesday 12 November 2019 20:03:12 ghe wrote:

> On 11/12/19 5:46 PM, Gene Heskett wrote:
> > Oh goody and I get to name & pick the file and its location. Now,
> > wheres a good place to put the restore in the reboot path?
>
> How about /etc? Or /etc/init.d? That's where mine is...

I've already put mine in rc.local, right under a bunch of stuff designed 
to override udev, and give heyu a port it can use.

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)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page 



Re: fail2ban for apache2

2019-11-12 Thread Gene Heskett
On Tuesday 12 November 2019 19:53:15 John Hasler wrote:

> I wrote:
> > Install Shorewall.
>
> Gene writes:
> > Did, spent half an hour reading its man page, but I don't see a
> > command that will extract and save an existing iptables setup, and a
> > later reapply of that saved data.
>
> I meant use it instead of using Iptables directly: the package takes
> care of restoring filter rules on boot and is more user-friendly than
> Iptables. Shorewall-save will save the existing rules.
>
> But why aren't you already using Iptables-save and Iptables-restore?

I am now,, so that problem is solved.

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)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page 



Re: fail2ban for apache2

2019-11-12 Thread ghe
On 11/12/19 5:46 PM, Gene Heskett wrote:

> Oh goody and I get to name & pick the file and its location. Now, wheres 
> a good place to put the restore in the reboot path? 

How about /etc? Or /etc/init.d? That's where mine is...

-- 
Glenn English



Re: fail2ban for apache2

2019-11-12 Thread John Hasler
I wrote:
> Install Shorewall.

Gene writes:
> Did, spent half an hour reading its man page, but I don't see a
> command that will extract and save an existing iptables setup, and a
> later reapply of that saved data.

I meant use it instead of using Iptables directly: the package takes
care of restoring filter rules on boot and is more user-friendly than
Iptables. Shorewall-save will save the existing rules.

But why aren't you already using Iptables-save and Iptables-restore?
-- 
John Hasler 
jhas...@newsguy.com
Elmwood, WI USA



Re: fail2ban for apache2

2019-11-12 Thread Gene Heskett
On Tuesday 12 November 2019 16:04:07 to...@tuxteam.de wrote:

> On Tue, Nov 12, 2019 at 12:40:45PM -0500, Gene Heskett wrote:
>
> [...]
>
> > So I have to find all that in the history and re-invent
> > a 33 line filter DROP. I'll be baqck when I've stuck a hot tater in
> > semrushes exit port.
>
> See iptables-save (will dump the currently active iptables to a file)
> and iptables-restore (will read that file to set up iptables).
>
Oh goody and I get to name & pick the file and its location. Now, wheres 
a good place to put the restore in the reboot path? Make rc.local 
executable and put it there?

I am amazed that as long as iptables has been around, that it has no 
reserved storage for these rules in /etc, and that I had to create a 
directory for it.

All that has been done.  And shorewall purged.

Thanks Tomas.

> Cheers
> -- tomás


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)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page 



Re: fail2ban for apache2

2019-11-12 Thread Gene Heskett
On Tuesday 12 November 2019 14:28:38 John Hasler wrote:

> Gene writes:
> > So I had been adding iptables rules but had to reboot this morning
> > to get a baseline cups start, only to find my iptables rules were
> > all gone and the bots are DDOSing me again.
>
> Install Shorewall.

Did, spent half an hour reading its man page, but I don't see a command 
that will extract and save an existing iptables setup, and a later 
reapply of that saved data. Am I blind?


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)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page 



Re: fail2ban for apache2

2019-11-12 Thread Gene Heskett
On Tuesday 12 November 2019 13:30:24 ghe wrote:

> Gene wrote
>
> > So I had been adding iptables rules but had to reboot this
> > morning to get a baseline cups start, only to find my iptables rules
> > were all gone and the bots are DDOSing me again. Grrr
>
> 0) Can you block them with an ACL in your router/firewall? And wr mem
> so the ACL will be there when it boots. (pardon the Cisco-ese)
>
> 1) There's a way (that I haven't needed to use yet) to put all your
> iptables rules in a file to be used at every reboot. And I suspect
> systemd knows how, or can be asked, to run that file on boot.
>
> You may have to ask iptables to write that file every time you add
> IPs.

My thinking runs along those lines too, but the man page is swahili in 
explaining how to do that.

Thanks ghe

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)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page 



RE: Migration Stretch vers Buster : plus de mode graphique

2019-11-12 Thread Support FoxServ
Bonjour

https://linuxconfig.org/how-to-install-nvidia-driver-on-debian-10-buster-linux

Tu as était au bout du tutoriel ?

Gmone ou KDE ?

Voici un tutoriel complet sous Debian .

https://www.kinetica.com/docs/install/nvidia_deb.html

A +

-Message d'origine-
De : ajh-valmer 
Envoyé : mardi 12 novembre 2019 23:05
À : debian-user-french@lists.debian.org
Objet : Re: Migration Stretch vers Buster : plus de mode graphique

On Tuesday 12 November 2019 19:45:49 lann wrote:
> "ajh-valmer"  a écrit :
> > On Monday 11 November 2019 ajh-valmer wrote:
> > > > > J'ai migré de Stretch vers Buster.
> > > > > Carte graphique Nvidia geforce proprio, qui marchait
> > > > > parfaitement sous Stretch.
> > > > > linux-headers-4.19... et linux-image-4.19.

> > > Pour l'installation des drivers sous stretch
> > > https://wiki.debian.org/fr/NvidiaGraphicsDrivers

> > J'ai trouvé ce site :>
>https://linuxconfig.org/how-to-install-nvidia-driver-on-debian-10-buste
>r-linux

> apt-cache policy nvidia-detect
> C'est dans les dépôts non-free

La carte est bien détectée.
Quelque soit le pilote choisi, pilote Free ou Non-Free.
pas de bureau graphique (Trinity-TDE).
Ni lightdm, ni tdm-trinity (gestionnaire de connexion) ne s'affichent.
S'agit-il de TDE qui ne s'accomode pas de Buster ?

Dernière nouvelle, en lançant X en mode console,
le bureau s'est lancé mais avec une résolution beaucoup trop faible,
et impossible de l'augmenter.

Y a bien sur la ML un inscrit qui est sous Buster et TDE ? :-)

Bonne nuit.



Re: Difference between ipp, ipps, http, https CUPS protocols?

2019-11-12 Thread Gene Heskett
On Tuesday 12 November 2019 11:01:39 Klaus Singvogel wrote:

> Gene Heskett wrote:
> > > CreateProfile failed:
> > > org.freedesktop.ColorManager.AlreadyExists:profile ... already
> > > exists
> >
> > Thats permissions.. But why can't the same software that wrote that
> > profile, rewrite that profile?
>
> Ask the software developer, which I'm not.
>
> > So what do I do to get admin writes, including overwriting the
> > edited ppd or whatever when there is no root pw, only sudo.
>
> ever did: sudo su
Thats not scripted in the permissions user/pw the admin menu presents.

> > So if its complaining it can't overwrite the file, when its the
> > exact same sw that wrote it three days back up the log.

And you are mixing instantly generated logs with old logs, what I'm 
seeing is generated and logged when the modify printer button at the 
bottom of the firefox screen is clicked.
> No, the regular rotated logfile shows the error in the logfile three
> days ago. But I think this happened more often - in older logfiles.

No argument there, with the log blossoming in no permission reports as I 
try to print a linuxcnc config file I want to modify for better machine 
performance. So I get curious a week ago and find I am now denied, no 
permission, from a machine that worked 4 weeks back. The list now 
includes the buster-10.1 install on the rpi4, and all 3 of the wheezy's 
that run my machinery, and they haven't been updated of anything but 
linuxcnc since wheezy support ended.  The key I feel is the install of 
stretch and subsequent updates on this machine. I've had screaming good 
luck building a realtime kernel for the rpi4, runs smoothly at very low 
latency's and I want that to be propagated to other users, but its a 
built kernel=2.5G, which someone is pulling right now.  But the instant 
thats done, I'll be watching the logs and playing whackamole with the 
bots until I've stopped them again.

In the meantime I need to learn how to save those rules and restart 
iptables fully armed at reboot time. But the man page might as well be 
in swahili.

So two things: 

1: How do I save what I have applied already in a reloadable format?

2: how do I restart it at boot time fully armed with those saved rules.

> Best regars,
>   Klaus.

It all worked, for a few days after the stretch install, say till 
synaptic brought it all uptodate, then its gone to hell in a handbasket 
since.

Should I reach around the FF interface with a sudo -i login shell and 
delete all references to that printer in the /etc/cups directory tree 
just before clicking on modify printer the last time? Will that get 
around the no permissions problem? This is after all software, and it 
can be fixed but probably not forever since somebodies paranoia will see 
to it that fix route is blocked eventually. I'd much druther make your 
way work. Currently that doesn't seem possible with the tooling 
provided. But I'd be delighted to be proven wrong. Its certainly holding 
up progress here.

Thank you Klaus.

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)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page 



Re: Migration Stretch vers Buster : plus de mode graphique

2019-11-12 Thread ajh-valmer
On Tuesday 12 November 2019 19:45:49 lann wrote:
> "ajh-valmer"  a écrit :
> > On Monday 11 November 2019 ajh-valmer wrote:
> > > > > J'ai migré de Stretch vers Buster.
> > > > > Carte graphique Nvidia geforce proprio,
> > > > > qui marchait parfaitement sous Stretch.
> > > > > linux-headers-4.19... et linux-image-4.19.

> > > Pour l'installation des drivers sous stretch 
> > > https://wiki.debian.org/fr/NvidiaGraphicsDrivers

> > J'ai trouvé ce site :> 
>https://linuxconfig.org/how-to-install-nvidia-driver-on-debian-10-buster-linux

> apt-cache policy nvidia-detect
> C'est dans les dépôts non-free

La carte est bien détectée.
Quelque soit le pilote choisi, pilote Free ou Non-Free.
pas de bureau graphique (Trinity-TDE).
Ni lightdm, ni tdm-trinity (gestionnaire de connexion) ne s'affichent.
S'agit-il de TDE qui ne s'accomode pas de Buster ?

Dernière nouvelle, en lançant X en mode console,
le bureau s'est lancé mais avec une résolution beaucoup trop faible,
et impossible de l'augmenter.

Y a bien sur la ML un inscrit qui est sous Buster et TDE ? :-)

Bonne nuit.



Re: fail2ban for apache2

2019-11-12 Thread tomas
On Tue, Nov 12, 2019 at 12:40:45PM -0500, Gene Heskett wrote:

[...]

> So I have to find all that in the history and re-invent
> a 33 line filter DROP. I'll be baqck when I've stuck a hot tater in 
> semrushes exit port.

See iptables-save (will dump the currently active iptables to a file)
and iptables-restore (will read that file to set up iptables).

Cheers
-- tomás


signature.asc
Description: Digital signature


Re: Difference between ipp, ipps, http, https CUPS protocols?

2019-11-12 Thread Brian
On Tue 12 Nov 2019 at 20:27:00 -, Dan Purgert wrote:

> Brian wrote:
> >> 
> >> Not really, tbh.  I haven't had to look that deeply into the state of
> >> printing in ... well, much longer than I thought it'd been this morning.
> >> 
> >> Time flies :| 
> >
> > So, when CUPS ceases to support PPDs (probably in a couple of years),
> > your and mine classic printers will cease to work. Is there a magic
> > wand someone can wave?
> 
> LPRng? :)

A clapped-out, unsupported and ancient printing system. That's
going to go down well with users in 2019.

-- 
Brian



Re: Difference between ipp, ipps, http, https CUPS protocols?

2019-11-12 Thread Dan Purgert
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Brian wrote:
>> 
>> Not really, tbh.  I haven't had to look that deeply into the state of
>> printing in ... well, much longer than I thought it'd been this morning.
>> 
>> Time flies :| 
>
> So, when CUPS ceases to support PPDs (probably in a couple of years),
> your and mine classic printers will cease to work. Is there a magic
> wand someone can wave?

LPRng? :)


-BEGIN PGP SIGNATURE-

iQEzBAEBCAAdFiEEBcqaUD8uEzVNxUrujhHd8xJ5ooEFAl3LFZQACgkQjhHd8xJ5
ooEQZwgAroAlDUT57Z8Oag6MPXuwy/CLPxwnzbOTUmQvgxBLYHqURS7YleTyJHNz
OZgIpvx5Wjh4bOjkaDjIUMfZrnNIVeVIqpEJbY6eTD2b2Vkg7x8iVp3ftDWY7MvP
n3SiTfYP62xBRU0ngVcWftZ9b5wHkMNpfBWtXgKx5u5RdI2M3HxbJu6I3RJ3fy42
+3NCQMTxVoDszx5wGSo4ggqLoyifMKpqT01LRUNgBjI5dgwASxbsbxJkzAyC9k7h
fM3Cx3D52xSlF4gOiwqHXxLkaKat2Bt+L2o1+nH2wjC4/CBXFgTX562+AwHVsGa8
wZO6ibd321Io7HdZZXk6WUUGCb0uoQ==
=vIB1
-END PGP SIGNATURE-

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



Re: Difference between ipp, ipps, http, https CUPS protocols?

2019-11-12 Thread Brian
On Tue 12 Nov 2019 at 19:51:42 -, Dan Purgert wrote:

> Brian wrote:
> > On Tue 12 Nov 2019 at 11:30:33 -, Dan Purgert wrote:
> >
> >> I believe the newest printers offer a way to print "driverless" via IPP
> >
> > "Newest" encompasses the past 5-10 years.
> 
> Yeah, meant "newer" there.  Have had my current lasers longer than that,
> so ... :/
> 
> >
> >> told it via the control channel gets you a nice document.  Though, that
> >> might just be vaporware at the moment.
> >
> > Vaporware? Are you aware of the effort put in by upstream CUPS and
> > cups-filters to support modern printers? Driverless printing is a
> > reality now and is the future.
> 
> Not really, tbh.  I haven't had to look that deeply into the state of
> printing in ... well, much longer than I thought it'd been this morning.
> 
> Time flies :| 

So, when CUPS ceases to support PPDs (probably in a couple of years),
your and mine classic printers will cease to work. Is there a magic
wand someone can wave?

-- 
Brian.



Re: Difference between ipp, ipps, http, https CUPS protocols?

2019-11-12 Thread Dan Purgert
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Brian wrote:
> On Tue 12 Nov 2019 at 11:30:33 -, Dan Purgert wrote:
>
>> I believe the newest printers offer a way to print "driverless" via IPP
>
> "Newest" encompasses the past 5-10 years.

Yeah, meant "newer" there.  Have had my current lasers longer than that,
so ... :/

>
>> told it via the control channel gets you a nice document.  Though, that
>> might just be vaporware at the moment.
>
> Vaporware? Are you aware of the effort put in by upstream CUPS and
> cups-filters to support modern printers? Driverless printing is a
> reality now and is the future.

Not really, tbh.  I haven't had to look that deeply into the state of
printing in ... well, much longer than I thought it'd been this morning.

Time flies :| 
>


-BEGIN PGP SIGNATURE-

iQEzBAEBCAAdFiEEBcqaUD8uEzVNxUrujhHd8xJ5ooEFAl3LDU4ACgkQjhHd8xJ5
ooGesQf/Xn//kBQdIiJxcMYFR+EGuQqV3OwjBD7k2jfPZAIU9zYSV5zBery6vMVr
iBuKvlr/1ibvtYF9dxVUEOScdx+/tbeYN9FdFhFGzttZaOpobd6T/wSBuK7cylzy
zAxcg3ua9mA6Y1Uk1wwqQQ99uLJyHGHnfTE6TmBoDu9BAEMz+h+BXQA+6ePI0hpE
7mqOO1UxYvTvqHH8Veq8FMNG8vTcl5sT64AjiZiC8zb0CcQSBgXbZ0Y7Tluh4PKN
eQxPTao0VsvAi+WMo9Sf4gOk/rHMvLI+sQH4cy/xKrENY9lmweDTp44q0ELWboK5
OIDKnDfVakdbGdnZW55qdlMtuBN2vA==
=ayJw
-END PGP SIGNATURE-

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



Re: fail2ban for apache2

2019-11-12 Thread John Hasler
Gene writes:
> So I had been adding iptables rules but had to reboot this morning to
> get a baseline cups start, only to find my iptables rules were all
> gone and the bots are DDOSing me again.

Install Shorewall.
-- 
John Hasler 
jhas...@newsguy.com
Elmwood, WI USA



Re: Difference between ipp, ipps, http, https CUPS protocols?

2019-11-12 Thread Brian
On Tue 12 Nov 2019 at 11:30:33 -, Dan Purgert wrote:

> I believe the newest printers offer a way to print "driverless" via IPP

"Newest" encompasses the past 5-10 years.

> as well -- that is, rather than needing a device-specific PPD, the use
> of IPP lets you just send a standardized "printing format" (PDF, PCL,
> something like that), and that "printing format" plus the options you

PDLS are PDF, Apple Raster and PWG Raster. pclm too (but that is not
PCL).

> told it via the control channel gets you a nice document.  Though, that
> might just be vaporware at the moment.

Vaporware? Are you aware of the effort put in by upstream CUPS and
cups-filters to support modern printers? Driverless printing is a
reality now and is the future.

-- 
Brian.



Re: Migration Stretch vers Buster : plus de mode graphique

2019-11-12 Thread lann
Le Tue, 12 Nov 2019 18:14:08 +0100,
"ajh-valmer"  a écrit :

> On Monday 11 November 2019 19:58:14 ajh-valmer wrote:
> > > > J'ai migré de Stretch vers Buster.
> > > > Carte graphique Nvidia geforce proprio,
> > > > qui marchait parfaitement sous Stretch.
> > > > En rebootant, j'ai ce message d'erreur au début :
> > > > "Failed to start openIPMI driver init script".
> > > > (openIPMI est bien installé),
> > > > ainsi que linux-headers-4.19... et linux-image-4.19.
> 
> > Pour l'installation des drivers sous stretch 
> > https://wiki.debian.org/fr/NvidiaGraphicsDrivers
> 
> Merci, 
> c'est pour Stretch, je suis maintenant sous Buster.
> C'est depuis la migration, que X graphic (xorg) ne fonctionne plus.
> Je n'avais rien touché à la config de Stretch.
> Le noyau 4.19 ?
> 
> J'ai trouvé ce site :
> https://linuxconfig.org/how-to-install-nvidia-driver-on-debian-10-buster-linux
> 
> Je lis : apt -y install nvidia-detect
> mais "nvidia-detect" ne semble pas ou plus exister sous Buster.

apt-cache policy nvidia-detect
nvidia-detect:
  Installé : 418.74-1
  Candidat : 418.74-1
 Table de version :
 *** 418.74-1 990
990 http://ftp.fr.debian.org/debian stable/non-free amd64
Packages 100 /var/lib/dpkg/status

C'est dans les dépôts non-free
> 
> Je suis toujours perdu... :-(
> 
> Bonne soirée.
> 
> A. Valmer
> 



Re: Backup Times on a Linux desktop

2019-11-12 Thread Charles Curley
Thanks for the feedback.

On Tue, 05 Nov 2019 23:35:05 +0100
Linux-Fan  wrote:

> Charles Curley writes:
> 

> > https://charlescurley.com/blog/posts/2019/Nov/02/backups-on-linux/index.html
> >   
> 
> [...]
> 
> Thanks for sharing! I appreciate that I am not the only one with a
> backup system composed of multiple tools with different timings and
> occasions of invocation :)

They just metastasize over the years.

> 
> One point where my opinion is slightly different (might boil down to
> taste, but that's part of the feedback?). Quoting from the blog:
> 
> > Some stuff isn't worth the disk space to back up because you can
> > regenerate it or re-install it just as easily. Caches, such as a web
> > proxy's. Executables you can re-install, like your office suite.  
> 
> I personally think it is (especially today) not so easy to keep track
> of all the programs one actually needs and where to get them.
> Additionally, one should take into consideration, whether the
> avaiability of Internet access (needed for software re-installation
> unless other measures are taken) is really part of the assumptions
> for backup restoring? I try to put some effort into
> 100%-offline-restoration.

I see your point. I certainly expect to do bare metal restoration with
local resources only, and see to it that everything I need to do that
is available.

> 
> At the same time, I try to avoid "disk image"-style backups, because
> they are hard to make (usually the system needs to be offline for
> this) and they are hard to restore: What if my server with 4x2T HDDs
> just dies. By tomorrow, I will not have another server, a humble
> laptop with 500 GB HDD might be all there is for the moment.
> Restoring images is infeasible in that situation, a normal
> "reinstallation" is less (but might be: consider borrowing a computer
> frome someone else for some time. In that case it will likely be
> impossible to change the OS and thus the software installation might
> be limited...)

Both good points. That is part of your disaster recovery planning: can
you get a replacement box quickly enough. I've had clients buy a spare
box and keep it off site. Another key part of disaster recovery is: how
quickly do you have to be back up and running?

One reason I like amanda is that you can restore without having amanda
on the machine with the files. I've never actually had to do that,
fortunately. Also amanda lets you select individual files to restore.


> 
> YMMV
> Linux-Fan
> 



-- 
Does anybody read signatures any more?

https://charlescurley.com
https://charlescurley.com/blog/



Re: fail2ban for apache2

2019-11-12 Thread ghe
Gene wrote

> So I had been adding iptables rules but had to reboot this 
> morning to get a baseline cups start, only to find my iptables rules 
> were all gone and the bots are DDOSing me again. Grrr

0) Can you block them with an ACL in your router/firewall? And wr mem so
the ACL will be there when it boots. (pardon the Cisco-ese)

1) There's a way (that I haven't needed to use yet) to put all your
iptables rules in a file to be used at every reboot. And I suspect
systemd knows how, or can be asked, to run that file on boot.

You may have to ask iptables to write that file every time you add IPs.

-- 
Glenn English



Re: Migration Stretch vers Buster : plus de mode graphique

2019-11-12 Thread Maxime G.
Bonjour.

Peut-être qu'un petit ménage s'impose avec:

apt update
apt purge nvidia*
rm /etc/X11/xorg.conf  **(ou un move ailleurs pour sauvegarde car xorg se 
débrouille sans conf aujourd'hui)
reboot
apt install nvidia-detect
nvidia-detect
apt install nvidia-driver **(ou autre paquet annoncé par nvidia-detect)

Maxime.


12 novembre 2019 09:25 "Daniel Huhardeaux"  a écrit:

> Le 11/11/2019 à 19:58, ajh-valmer a écrit :
> [...]
> 
>>> Connexion ssh possible ? Peux tu te connecter sur une console
>>> (Ctrl+Alt+F1 à F6)
>> 
>> Comme je l'avais écrit :
>>> Si je lance X, l'écran devient noir, rien,
>>> plus de clavier, bloqué, seule solution : hard reboot.
> 
> Cela n'empêche pas ssh d'être fonctionnel ...
> 
> -- Daniel



Re: fail2ban for apache2

2019-11-12 Thread Gene Heskett
On Tuesday 12 November 2019 11:01:08 Lee wrote:

> On 11/11/19, Gene Heskett  wrote:
> > On Monday 11 November 2019 08:33:13 Greg Wooledge wrote:
>
>   ... snip ...
>
> >> I *know* I told you to look at your log files, and to turn on
> >> user-agent logging if necessary.
> >>
> >> I don't remember seeing you ever *post* your log files here, not
> >> even a single line from a single instance of this bot.  Maybe I
> >> missed it.
> >
> > Only one log file seems to have useful data, the "other..." file,
> > and I have posted several single lines here, but here's a  few more:
>
>... snip ...
>
> > [11/Nov/2019:12:11:39 -0500] "GET
> > /gene/nitros9/level1/coco1_6309/bootfiles/bootfile_covga_cocosdc
> > HTTP/1.1" 200 16133 "-" "Mozilla/5.0 (compatible; Daum/4.1;
> > +http://cs.daum.net/faq/15/4118.html?faqId=28966)"
> >
> > I did ask earlier if daum was a bot but no one answered.  They are
> > becoming a mite pesky.
>
> Google translate can be your friend:
> https://translate.google.com/translate?hl==ko=en=https%3A%2F%2
>Fcs.daum.net%2Ffaq%2F15%2F4118.html
>
> Note they even tell you how to turn off collection:
> I want to automatically exclude documents from my site from web
> document search results.
> [robots.txt Exclusion using file]
> Please write the following in Notepad, and save it as robots.txt file
> to the root directory.
>
> User-agent: DAUM
> Disallow: /
>
> Using * instead of DAUM can prevent web collection robots from
> collecting documents on all search services, not just Daum.
>
> So let's take a look at what you've got:
> $ curl http://geneslinuxbox.net:6309/robots.txt
> # $Id: robots.txt 410967 2009-08-06 19:44:54Z oden $
> # $HeadURL:
> svn+ssh://svn.mandriva.com/svn/packages/cooker/apache-conf/current/SOU
>RCES/robots.txt $
> # exclude help system from robots
>
> User-agent: googlebot-Image
> Disallow: /
>
> User-agent: googlebot
> Disallow: /
>
> User-agent: *
> Disallow: /manual/
>
> User-agent: *
> Disallow: /manual-2.2/
>
> User-agent: *
> Disallow: /addon-modules/
>
> User-0agent: *
> Disallow: /doc/
>
> User-agent: *
> Disallow: /images/
>
> # the next line is a spam bot trap, for grepping the logs. you should
> _really_ change this to something else...
> #Disallow: /all_our_e-mail_addresses
> # same idea here...
>
> User-agent: *
> Disallow: /admin/
>
> # but allow htdig to index our doc-tree
> # User-agent: htdig
> # Disallow:
>
> User-agent: *
> Disallow: stress test
>
> User-agent: stress-agent
> Disallow: /
>
> User-agent *
> Disallow: /
>
> $
>
> You're missing a ':' - it should be
> User-agent: *
> Disallow: /
>
> and I don't think "User-0agent: *" is going to do what you want..
>
> Regards,
> Lee
it didn't. So I had been adding iptables rules but had to reboot this 
morning to get a baseline cups start, only to find my iptables rules 
were all gone and the bots are DDOSing me again. Grrr

So I have to find all that in the history and re-invent
a 33 line filter DROP. I'll be baqck when I've stuck a hot tater in 
semrushes exit port.

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)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page 



Re: Squid, 50% menos performático quando comparado sem proxy

2019-11-12 Thread Sinval Júnior
Squid é um servidor de Proxy e não é recomendado para tratar camada 7. Para
tanto use o SquidGuard, Dansguardian.


Ao encaminhar esta mensagem, por favor:
1 - Apague meu endereço eletrônico;
2 - Encaminhe como Cópia Oculta (Cco ou BCc) aos seus destinatários.
Dificulte assim a disseminação de vírus, spams e banners.

#=+
#!/usr/bin/env python
nome = 'Sinval Júnior'
email = 'sinvalju arroba gmail ponto com'
print nome
print email
#==+


Em qui., 7 de nov. de 2019 às 10:56, hamacker 
escreveu:

> Olá a todos.
>
> Sou o responsável por uma pequena rede que conta com cerca de 50 usuários.
>
> Por muitos anos tenho usado um servidor Linux c/ proxy squid autenticando
> em NTLM (Active Directory) juntamente com um roteador loadbalance tp-link
> tl-5120. Ele está virtualizado e segundo o monitoramento do xen os
> elementos de CPU, Memoria, Disco e Rede são de baixo uso.
> O squid funciona perfeitamente, conta com menus de automação para
> simplificiar a administração por outras pessoas, tornado este servidor
> quase um serviço embarcado.
> Estes menus gerenciam listas-brancas para o financeiro, produção, vendas,
> etc... onde estes colaboradores podem ir ou não. Além disso, a lista de
> usuarios powerusers que não tem restrição de sites, mas de downloads (avi,
> mp3, .exe,). Outros são 'admins' podem tudo e em qualquer lugar.
> Além disso, há muitas listas, por exemplo, Lista de IPs bloqueados, Lista
> de IPs ignorados que vão direto para o gateway, ... muitas outras opções de
> liberação/bloqueio de porta.
>
> Mas apesar de funcionar perfeitamente, é lento, se desligo o proxy a
> perfomance da internet dobra de velocidade. Pelos testes que fiz, a
> autenticação no AD (NTLM) é algo que poderia melhorar porque ocorre a cada
> instante na rede, não sei porque o token não tem um tempo maior de
> expiração. O DNS responde rapido, não é o gargalo. Então eu considero que o
> NTLM e as regras realmente são os causadores da perda performatica. Não há
> nada que eu possa fazer com o NTLM, ele depende do Windows e não posso
> abrir mão disso. As listas do squid por outro lado, as vezes são longas
> então acho que boa parte do gargalo estão nas regras.
>
> Então estou estudando outras formas de melhorar a performance, eu não
> acredito que desvirtualizar resolverá o problema então outras soluções são
> bem vindas.
>
> Eu conversei com o meu diretor e ele me permitiu simplificar as regras
> onde só não posso abrir mão de:
> * autenticação no Active Directory
> * Uma lista branca liberado para todos e usuarios que podem acessar o que
> desejarem
> * Uma lista de usuarios que pode acessar o que desejar
> * registro logs de acesso.
> Desejável:
> * Liberar acesso transparente vindo por programas especificos, por
> exemplo, liberar programas de governo para que eles possam ir onde eles
> desejarem ir em qualquer porta de forma transparente, geralmente para suas
> próprias atualizações e envio de documentos.
>
> Que software (pode embarcado ou não) atenderia essas necessidades?
> Na Internet, há um produto embarcado Mikrotik, ele atenderia essas
> necessidades via hardware próprio?
>
> Um cordial abraço a todos.
>


Re: Difference between ipp, ipps, http, https CUPS protocols?

2019-11-12 Thread Gene Heskett
On Tuesday 12 November 2019 10:15:33 David Wright wrote:

> On Tue 12 Nov 2019 at 09:26:03 (-0500), Gene Heskett wrote:
> > On Tuesday 12 November 2019 08:48:41 Klaus Singvogel wrote:
> > > Gene Heskett wrote:
> > > > That [v1.::1] looks like shorthand for ipv6, but the nearest
> > > > ipv6 capable connection is probably 185 miles north of here in
> > > > Pittsburgh PA. There is not AFAIK, any ipv6 provisioned anyplace
> > > > on my local ISP the local cable folks
> > >
> > > Forget this. This message is hours away from your real issue.
> > >
> > > Most proably caused by a "Listen [v1.::1]:631" entry in
> > > /etc/cups/cupsd.conf
> >
> > is
> > Listen localhost:631
>
> And a conventional installation would show:
>
> $ grep localhost /etc/hosts
> 127.0.0.1  localhost
>
> ::1localhost ip6-localhost ip6-loopback
>
> $
>
> but has that been nuked?
>
Yes, no trace of ipv6 stuff. its all been commented out:
127.0.0.1   localhost
192.168.71.1router.coyote.den   router
192.168.71.3coyote.coyote.den   coyote
192.168.71.4shop.coyote.den shop
192.168.71.5lathe.coyote.denlathe
192.168.71.6lappy.coyote.denlappy
192.168.71.7vna.coyote.den  vna
192.168.71.10   GO704.coyote.denGO704
192.168.71.2rock64.coyote.den   rock64
192.168.71.12   picnc.coyote.denpicnc
192.168.71.13   rpi4.coyote.den rpi4
192.168.71.21   scanner.coyote.den  scanner
192.168.71.30   redpitaya.coyote.denred
# The following lines are desirable for IPv6 capable hosts
#::1 localhost ip6-localhost ip6-loopback
#ff02::1 ip6-allnodes
#ff02::2 ip6-allrouters
# the following may be dns blacklisted,due to a lawsuit, so
31.184.194.81 Sci-Hub


> Cheers,
> David.

If cups is looking for ipv6 stuff, I don't intend to allow it to find it. 
Any time an ipv6 capability is found, route flat refuses to use a legal 
ipv4 address and I cannot get off the property.  This bit of having ipv6 
everwhere, when the nearest ipv6 connectivity is 100 + mile away is the 
biggest pain in the ass ever about doing a modern os install.  It took 
me  wholesale removal of avahi-* and dhcphd to get a working network 
when I install stretch on anything because with them installed, route 
insisted my gateway was the 169 shit ahahi assigned.  Avahi is, in my 
opinion, a plant from microsoft to screw up linux. Get rid of it with 
prejudice.

I have one buster 10.1 install, from raspbian, and knowing what it took 
to get networking, to just work, that stuff got removed from its sd card 
boot image before it was plugged in and booted the first time, and it 
all Just Works.

But thats not fixing my cups install. So lets do that. Its seems obvious 
I've a perms problem but where is it? To repeat, there is not a root 
password, never been set, and man vi doesn't even tell you how to exit 
visudo which I used to view the contents of sudoers. I have used vi/vim 
but that was 20 years ago and I found many far more convenient editors 
since.  So I guess another reboot to get rid of visudo is coming up.  
Except that will interrupt a download ahh no it won't, the ddos is back 
because an earlier reboot canceled all my iptabes rules. And semrush et 
all is downloading my whole site again and again. usng up all my upload 
bandwidth. I'll be back, when I have regained control of my website.


Thanks David

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)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page 



Re: Migration Stretch vers Buster : plus de mode graphique

2019-11-12 Thread ajh-valmer
On Monday 11 November 2019 19:58:14 ajh-valmer wrote:
> > > J'ai migré de Stretch vers Buster.
> > > Carte graphique Nvidia geforce proprio,
> > > qui marchait parfaitement sous Stretch.
> > > En rebootant, j'ai ce message d'erreur au début :
> > > "Failed to start openIPMI driver init script".
> > > (openIPMI est bien installé),
> > > ainsi que linux-headers-4.19... et linux-image-4.19.

> Pour l'installation des drivers sous stretch 
> https://wiki.debian.org/fr/NvidiaGraphicsDrivers

Merci, 
c'est pour Stretch, je suis maintenant sous Buster.
C'est depuis la migration, que X graphic (xorg) ne fonctionne plus.
Je n'avais rien touché à la config de Stretch.
Le noyau 4.19 ?

J'ai trouvé ce site :
https://linuxconfig.org/how-to-install-nvidia-driver-on-debian-10-buster-linux

Je lis : apt -y install nvidia-detect
mais "nvidia-detect" ne semble pas ou plus exister sous Buster.

Je suis toujours perdu... :-(

Bonne soirée.

A. Valmer



Re: Difference between ipp, ipps, http, https CUPS protocols?

2019-11-12 Thread Kent West



On 11/12/19 9:02 AM, Brian wrote:

On Mon 11 Nov 2019 at 10:18:26 -0600, Kent West wrote:

When adding a printer via the CUPS web interface (localhost:631) on my
Debian box, Administration / Add Printer / Other Network Printers,
there are
four Internet Printing Protocol options:

https

ipp

http

ipps

Which one do I want to select? What are the differences?

Essentially, use ipp unless you have a good reason not to.


^

This is the information I needed, which (IMO) should have been on the 
CUPS setup page.




Not quite. Both ipp and ipps do encryption. The difference is that ipp
does oportunistic encryption (using an http upgrade) whereas, with ipps,
encryption is always on (the encryption is immediate, using https). The
rationale for having a ipps URI is in RFC7472.

http is the transport protocol for ipp and ipps, and ipp and ipps URIs
are mapped to http and https URLs. Every modern printer would support
ipp; in addition, some could support ipps too. I believe the http and
https backends exist to facilitate connections with Windows machines,
which historically have lagged far behind in implementing ipp.



And this information helps, too.

Thanks!


--

Kent




Re: Difference between ipp, ipps, http, https CUPS protocols?

2019-11-12 Thread Klaus Singvogel
Gene Heskett wrote:
> > CreateProfile failed:
> > org.freedesktop.ColorManager.AlreadyExists:profile ... already exists
> >
> Thats permissions.. But why can't the same software that wrote that 
> profile, rewrite that profile?

Ask the software developer, which I'm not.

> So what do I do to get admin writes, including overwriting the 
> edited ppd or whatever when there is no root pw, only sudo.

ever did: sudo su

> So if its complaining it can't overwrite the file, when its the exact 
> same sw that wrote it three days back up the log.

No, the regular rotated logfile shows the error in the logfile three days
ago. But I think this happened more often - in older logfiles.

Best regars,
Klaus.
-- 
Klaus Singvogel
GnuPG-Key-ID: 1024R/5068792D  1994-06-27



Re: fail2ban for apache2

2019-11-12 Thread Lee
On 11/11/19, Gene Heskett  wrote:
> On Monday 11 November 2019 08:33:13 Greg Wooledge wrote:
  ... snip ...
>> I *know* I told you to look at your log files, and to turn on
>> user-agent logging if necessary.
>>
>> I don't remember seeing you ever *post* your log files here, not even
>> a single line from a single instance of this bot.  Maybe I missed it.
>
> Only one log file seems to have useful data, the "other..." file, and I
> have posted several single lines here, but here's a  few more:
   ... snip ...
> [11/Nov/2019:12:11:39 -0500] "GET
> /gene/nitros9/level1/coco1_6309/bootfiles/bootfile_covga_cocosdc
> HTTP/1.1" 200 16133 "-" "Mozilla/5.0 (compatible; Daum/4.1;
> +http://cs.daum.net/faq/15/4118.html?faqId=28966)"
>
> I did ask earlier if daum was a bot but no one answered.  They are
> becoming a mite pesky.

Google translate can be your friend:
https://translate.google.com/translate?hl==ko=en=https%3A%2F%2Fcs.daum.net%2Ffaq%2F15%2F4118.html

Note they even tell you how to turn off collection:
I want to automatically exclude documents from my site from web
document search results.
[robots.txt Exclusion using file]
Please write the following in Notepad, and save it as robots.txt file
to the root directory.

User-agent: DAUM
Disallow: /

Using * instead of DAUM can prevent web collection robots from
collecting documents on all search services, not just Daum.

So let's take a look at what you've got:
$ curl http://geneslinuxbox.net:6309/robots.txt
# $Id: robots.txt 410967 2009-08-06 19:44:54Z oden $
# $HeadURL: 
svn+ssh://svn.mandriva.com/svn/packages/cooker/apache-conf/current/SOURCES/robots.txt
$
# exclude help system from robots

User-agent: googlebot-Image
Disallow: /

User-agent: googlebot
Disallow: /

User-agent: *
Disallow: /manual/

User-agent: *
Disallow: /manual-2.2/

User-agent: *
Disallow: /addon-modules/

User-0agent: *
Disallow: /doc/

User-agent: *
Disallow: /images/

# the next line is a spam bot trap, for grepping the logs. you should
_really_ change this to something else...
#Disallow: /all_our_e-mail_addresses
# same idea here...

User-agent: *
Disallow: /admin/

# but allow htdig to index our doc-tree
# User-agent: htdig
# Disallow:

User-agent: *
Disallow: stress test

User-agent: stress-agent
Disallow: /

User-agent *
Disallow: /

$

You're missing a ':' - it should be
User-agent: *
Disallow: /

and I don't think "User-0agent: *" is going to do what you want..

Regards,
Lee



Re: Squid, 50% menos performático quando comparado sem proxy

2019-11-12 Thread Leandro Guimarães Faria Corcete DUTRA
Le mardi 12 novembre 2019 à 12:11 -0300, hamacker a écrit :
> As regras são muitas, muitas mesmos

Então precisas do SquidGuard, pelo menos.


> Estou estudando uma forma de melhorar a velocidade, e talvez tenha
> que abrir mão do squid. 

Mais uma vez, o Squid é para economia de banda.  Pode até ser que numa
configuração bem simples ele acabe acelerando acesso numa situação de
banda restrita, mas o objetivo dele é economizar banda, não prover
melhor desempenho.

Mais precisamente, o mecanismo de regras do Squid puro não é
de alto desempenho.  Assim, havendo regras além da trivial, precisas
do SquidGuard ou algum outro mecanismo.

Podes até abrir mão do Squid, se tiveres banda de sobra.  Se
não, trocarás um problema pelo outro; eu recomendaria migrar as regras
para o SquidGuard e testar essa configuração antes de abrir mão dele.
Talvez só descubras quanta banda economizas quando o desligares.


-- 
+55 (61) 3546 7191  gTalk: xmpp:leand...@jabber.org
+55 (61) 99302 2691   http://en.dutras.org/
BRAZIL GMT−3
https://useplaintext.email/#why-plaintext



Re: Semi-OT: IPP doesn't auto-configure CUPS?

2019-11-12 Thread Brian
On Mon 11 Nov 2019 at 14:02:50 -0600, Kent West wrote:

> I've been trying to wrap my head around printing today, and I have come to
> understand that IPP is the up-and-coming standard for printing (replacing
> the older LPD / AppSocket / HP Jet Direct / etc), and more specifically,
> that IPPEverywhere is the new and up-and-coming standard (of which Apple's
> AirPrint is a variant/extension, more broadly-supported simply by being
> older, although not fully documented as is the newer IPPEverywhere).

More or less. But bear in mind that CUPS has always been based on
IPP. What has changed in the past ten years is that almost all modern
printers now come with decent IPP implementations and offer an AirPrint
service.

> It is further my understanding that IPP is supposed to query the printer for
> its capabilities (double-sided printing? stapling? A4 paper size in the
> tray, etc).

Ok.

> It is further my understanding that IPP can (does?) query the printer for
> this info just prior to each print job.

Not quite. The applications (Firefox, LibreOffice etc) get the printer
attributes when their dialogs are opened.

> But I also thought that IPP would query the printer for this info when the
> printer is added to the client PC. I find that to not be the case, however,
> on my Debian Bullseye/sid box, and on a Mac Catalina MacBook. Am I incorrect
> about this setup-time polling?

No. You are correct.

> What I mean more specifically is, when I go into the CUPS web interface to
> set up a new printer, and go through the Add Printer stuff, and select
> "Other Network Printers" / "Internet Printing Protocol (ipps)" (because the
> printer is on a different subnet/virtual LAN and therefore doesn't get
> autodetected via Bonjour/mDNS/DNS-SD), and then on the next screen enter the
> IP address of the printer, I would have expected the IPP protocol to then
> handle the rest of the printer setup, but instead I'm still asked for the
> printer name and printer model (although I just now noticed that what is
> currently selected (I'm not sure it was when I started this email) is
> "{current_make_and_model} - IPP Everywhere" - perhaps this option is doing
> what I was expecting?).

How does IPP know that you intend calling the printer destination
"charles"?

> (If I select that IPP Everywhere option, the next screen errors out saying
> "Unable to open PPD file: Missing asterisk in column 1", so I suspect that
> option is not doing what I was expecting.)

This is CUPS' way of telling you that an ipps service is not offered by
the printer. With lpadmin you would get "An unexpected TLS packet was
received".

-- 
Brian.



Re: Difference between ipp, ipps, http, https CUPS protocols?

2019-11-12 Thread David Wright
On Tue 12 Nov 2019 at 09:26:03 (-0500), Gene Heskett wrote:
> On Tuesday 12 November 2019 08:48:41 Klaus Singvogel wrote:
> > Gene Heskett wrote:
> > > That [v1.::1] looks like shorthand for ipv6, but the nearest ipv6
> > > capable connection is probably 185 miles north of here in Pittsburgh
> > > PA. There is not AFAIK, any ipv6 provisioned anyplace on my local
> > > ISP the local cable folks
> >
> > Forget this. This message is hours away from your real issue.
> >
> > Most proably caused by a "Listen [v1.::1]:631" entry in
> > /etc/cups/cupsd.conf
> is
> Listen localhost:631

And a conventional installation would show:

$ grep localhost /etc/hosts
127.0.0.1  localhost
::1localhost ip6-localhost ip6-loopback
$ 

but has that been nuked?

Cheers,
David.



Re: Squid, 50% menos performático quando comparado sem proxy

2019-11-12 Thread hamacker
As regras são muitas, muitas mesmos, tem vez que até me perco.
Os arquivos de configuração do squid estão modularizados, isto é, o arquivo
principal tá com "include " pra cada seção que considero
importante, por exemplo, autenticação, memoria, DNS, bloqueios, daí um menu
em bash edita esses arquivos que pertencem a essas seções, configurando
como será a autenticação (ldap, NTLM, sem autenticação) dai faço o link
simbólico para o arquivo para qual o squid.conf está apontando. Daí quando
o negocio ficou bem modular, foram pedindo bloqueios disso e daquilo outro
e fui criando agora tem acessos de destino por dominio, destino por URLs,
IP, lista de usuarios, horarios para almoço, bloqueios, eita... são muitas.

Estou estudando uma forma de melhorar a velocidade, e talvez tenha que
abrir mão do squid.

Em qui., 7 de nov. de 2019 às 23:05, henrique 
escreveu:

>
> Olá!
>
> Pode ser uma coisa (autenticação no ad) ou outra (muitas regras com
> "regex" no nome. Ou a complexidade do seu ambiente (muitas listas). Ou uma
> conjunção de todas.
>
> Muito tempo atrás li que ambientes com autenticação no AD geravam bem mais
> trafego na rede interna.
>
> E que um ad sobrecarregado também pode deixar as coisas mais lentas, o
> ideal seria um ad RO ou um secundário dedicado só para fazer isso.
>
> Mas primeiro o ideal é isolar o problema, rever os TIPOS de acl usados nas
> regras, diminuir ao maximo o uso de url_regex ou dst_regex ou qualquer
> coisa com regex no nome, inclusive modificar a politica de cache do squid,
> e também desligar a autenticação e observar o impacto.
>
> Squidguard ou urlfilterdb para aplicar as regras também são uma excelente
> opção ao controle nativo do squid: ambos gerenciam milhares de urls em
> centenas de cenários de usuários diferentes em milésimos de segundos usando
> bem poucos recursos.
>
> Por ultimo, desvirtualizar e ver o que acontece. Certas coisas não fazem
> muito sentido...
>
>
>
> Abraços
>
>
> Em quinta-feira, 7 de novembro de 2019 10:56:34 GMT-3, hamacker <
> sirhamac...@gmail.com> escreveu:
>
>
> Olá a todos.
>
> Sou o responsável por uma pequena rede que conta com cerca de 50 usuários.
>
> Por muitos anos tenho usado um servidor Linux c/ proxy squid autenticando
> em NTLM (Active Directory) juntamente com um roteador loadbalance tp-link
> tl-5120. Ele está virtualizado e segundo o monitoramento do xen os
> elementos de CPU, Memoria, Disco e Rede são de baixo uso.
> O squid funciona perfeitamente, conta com menus de automação para
> simplificiar a administração por outras pessoas, tornado este servidor
> quase um serviço embarcado.
> Estes menus gerenciam listas-brancas para o financeiro, produção, vendas,
> etc... onde estes colaboradores podem ir ou não. Além disso, a lista de
> usuarios powerusers que não tem restrição de sites, mas de downloads (avi,
> mp3, .exe,). Outros são 'admins' podem tudo e em qualquer lugar.
> Além disso, há muitas listas, por exemplo, Lista de IPs bloqueados, Lista
> de IPs ignorados que vão direto para o gateway, ... muitas outras opções de
> liberação/bloqueio de porta.
>
> Mas apesar de funcionar perfeitamente, é lento, se desligo o proxy a
> perfomance da internet dobra de velocidade. Pelos testes que fiz, a
> autenticação no AD (NTLM) é algo que poderia melhorar porque ocorre a cada
> instante na rede, não sei porque o token não tem um tempo maior de
> expiração. O DNS responde rapido, não é o gargalo. Então eu considero que o
> NTLM e as regras realmente são os causadores da perda performatica. Não há
> nada que eu possa fazer com o NTLM, ele depende do Windows e não posso
> abrir mão disso. As listas do squid por outro lado, as vezes são longas
> então acho que boa parte do gargalo estão nas regras.
>
> Então estou estudando outras formas de melhorar a performance, eu não
> acredito que desvirtualizar resolverá o problema então outras soluções são
> bem vindas.
>
> Eu conversei com o meu diretor e ele me permitiu simplificar as regras
> onde só não posso abrir mão de:
> * autenticação no Active Directory
> * Uma lista branca liberado para todos e usuarios que podem acessar o que
> desejarem
> * Uma lista de usuarios que pode acessar o que desejar
> * registro logs de acesso.
> Desejável:
> * Liberar acesso transparente vindo por programas especificos, por
> exemplo, liberar programas de governo para que eles possam ir onde eles
> desejarem ir em qualquer porta de forma transparente, geralmente para suas
> próprias atualizações e envio de documentos.
>
> Que software (pode embarcado ou não) atenderia essas necessidades?
> Na Internet, há um produto embarcado Mikrotik, ele atenderia essas
> necessidades via hardware próprio?
>
> Um cordial abraço a todos.
>


Re: auxiliary mail client for HTML

2019-11-12 Thread David Wright
On Tue 12 Nov 2019 at 09:23:54 (-), Curt wrote:
> On 2019-11-08, Nate Bargmann  wrote:
> >
> >> I thought everybody just used a mailcap file and was fine.
> >
> > I do and have it setup to use w3m to deal with most HTML mail.  Some
> > does look better in a GUI program and that's why I do this.
> >
> 
> Well, then
> 
>  text/html;  /usr/bin/firefox %s >/dev/null 2>&1; needsterminal
>  text/html;  elinks -dump %s; nametemplate=%s.html; copiousoutput
> 
> Or something like it. Needing or preferring a gui client doesn't seem
> preclude using a mailcap file (or vice versa). 
> 
> I'm not a mutt user, though, so maybe I got it wrong. I also forgot what
> the "this" was in the "that's why I do this" above.

The following is what I use in my mailcap-mutt file. My priorities
in handling HTML emails at all (which I believe should only be
exchanged between consenting adults) are to disentangle running
text into paragraphs and then colour them so that the parties to
the conversation can be distinguished:

## The first occurrence takes priority
# the next line is used immediately the email is opened, so you don't see the 
text alternative
#text/html; /usr/bin/html2text; copiousoutput
# the next line is used immediately the email is opened, so you don't see the 
text alternative
#text/html; /usr/bin/w3m -dump -T text/html; copiousoutput
# the next line is used only when an html attachment is selected in the 
attachments menu
text/html; /usr/bin/lynx -force-html -localhost -stdin
# the next line is used only when an html attachment is selected in the 
attachments menu
#text/html; cat | /usr/bin/elinks -dump -dump-color-mode 4 -force-html 
-localhost 1 | less -r
# the next line is used immediately the email is opened, so you don't see the 
text alternative
#text/html; /usr/bin/elinks -dump -force-html -localhost 1; copiousoutput

The mailcap file is triggered by the lines:

auto_view   text/html # immediate display (without v command), assumes 
mailcap support
set mailcap_path=$HOME/.mutt/mailcap-mutt # needed for auto_view

in my ~/.mutt/muttrc file. As you can see, I prefer to have to choose
to read the HTML whenever the text version is indecipherable, rather
than having it pop up straight away (in favour of the text version).

I might consider using a GUI to display the HTML, but not unless I can
find a browser that has the equivalent of -localhost, which none does¹.
With lynx I can see the links and list them, but not follow them. For
that I use cut and paste.

(On which topic, it took me a while to stumble on this xterm resource:
XTerm*cutNewline:   false
which prevents triple-clicking from including the newline.)

¹ Suggestions welcome.

Cheers,
David.



Re: Difference between ipp, ipps, http, https CUPS protocols?

2019-11-12 Thread Brian
On Tue 12 Nov 2019 at 08:46:50 +1300, Richard Hector wrote:

> On 12/11/19 8:38 AM, Kent West wrote:
> > 
> > On 11/11/19 10:40 AM, Brian wrote:
> >> On Mon 11 Nov 2019 at 10:18:26 -0600, Kent West wrote:
> >>
> >>> Probably answered somewhere, but I've been DuckDuckGo-ing for the
> >>> past two
> >>> hours and can't find the answer.
> >>>
> >>> When adding a printer via the CUPS web interface (localhost:631) on my
> >>> Debian box, Administration / Add Printer / Other Network Printers,
> >>> there are
> >>> four Internet Printing Protocol options:
> >>>
> >>> https
> >>>
> >>> ipp
> >>>
> >>> http
> >>>
> >>> ipps
> >>>
> >>> Which one do I want to select? What are the differences?
> >> 'ls -l /usr/lib/cups/backend' tells you that it doesn't matter what
> >> choice you make.
> >>
> > 
> > lrwxrwxrwx 1 root root  3 Oct 31 02:44 http -> ipp
> > lrwxrwxrwx 1 root root  3 Oct 31 02:44 https -> ipp
> > -rwxr-xr-x 1 root root  80120 Oct 31 02:44 ipp
> > lrwxrwxrwx 1 root root  3 Oct 31 02:44 ipps -> ipp
> > 
> > Thank you. That does tell me they are all the same.
> 
> It doesn't tell me that.

I've come round to your way of thinking.

> It tells me that they're all the same file, but an executable can find
> out what name it was called with, and change its behaviour accordingly.
> Busybox is an extreme example.

That went through my mind at the time, but I went for the easy (and not
quite correct) response to keep things simple. Essentially, use ipp
unless you have a good reason not to.

> > It does not tell me
> > why CUPS on Debian makes the other three options available (thereby
> > confusing the person adding the printer). There must be some reason why
> > a person would expect to choose X over Y; that's the difference I'm
> > looking for.
> > 
> > But your answer certainly helps. I now know it doesn't matter which of
> > these I select.
> 
> I would guess that the *s versions use TLS, but beyond that I don't
> know. I'd agree with deloptes that it probably depends on what the
> remote end can support.

Not quite. Both ipp and ipps do encryption. The difference is that ipp
does oportunistic encryption (using an http upgrade) whereas, with ipps,
encryption is always on (the encryption is immediate, using https). The
rationale for having a ipps URI is in RFC7472.

http is the transport protocol for ipp and ipps, and ipp and ipps URIs
are mapped to http and https URLs. Every modern printer would support
ipp; in addition, some could support ipps too. I believe the http and
https backends exist to facilitate connections with Windows machines,
which historically have lagged far behind in implementing ipp.

-- 
Brian.



Re: Difference between ipp, ipps, http, https CUPS protocols?

2019-11-12 Thread Gene Heskett
On Tuesday 12 November 2019 09:11:04 Curt wrote:

> On 2019-11-12, Klaus Singvogel  wrote:
> > CreateProfile failed:
> > org.freedesktop.ColorManager.AlreadyExists:profile ... already
> > exists
>
> Maybe as simple as "Resume Printer" (wouldn't that be wonderful?).
>
Except there is no place advising printer is paused,
> > Best regars,
> > Klaus.


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)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page 



Re: auxiliary mail client for HTML

2019-11-12 Thread Dejan Jocic
On 12-11-19, Curt wrote:
> On 2019-11-08, Nate Bargmann  wrote:
> >
> >> I thought everybody just used a mailcap file and was fine.
> >
> > I do and have it setup to use w3m to deal with most HTML mail.  Some
> > does look better in a GUI program and that's why I do this.
> >
> 
> Well, then
> 
>  text/html;  /usr/bin/firefox %s >/dev/null 2>&1; needsterminal
>  text/html;  elinks -dump %s; nametemplate=%s.html; copiousoutput
> 
> Or something like it. Needing or preferring a gui client doesn't seem
> preclude using a mailcap file (or vice versa). 
> 
> I'm not a mutt user, though, so maybe I got it wrong. I also forgot what
> the "this" was in the "that's why I do this" above.
> 
> ;-)

text/html;  firefox -new-tab %s & sleep 5; test=test -n "$DISPLAY";
nametemplate=%s.html
text/html;  lynx -dump %s; nametemplate=%s.html; copiousoutput

Or at least that works here. I'm sure that it can be done better though,
but did not have need to dig in more into it.

All best,
Dejan



Re: Difference between ipp, ipps, http, https CUPS protocols?

2019-11-12 Thread Gene Heskett
On Tuesday 12 November 2019 08:48:41 Klaus Singvogel wrote:

> Gene Heskett wrote:
> > This is my logs:
> > root@coyote:cups$ cat /var/log/cups/access_log
> > localhost - - [12/Nov/2019:00:11:00 -0500] "POST / HTTP/1.1" 200 349
> > Create-Printer-Subscriptions successful-ok localhost - -
> > [12/Nov/2019:00:11:00 -0500] "POST / HTTP/1.1" 200 176
> > Create-Printer-Subscriptions successful-ok root@coyote:cups$ cat
> > /var/log/cups/error_log.1
> > E [11/Nov/2019:00:10:25 -0500] Unable to open listen socket for
> > address [v1.::1]:631 - Cannot assign requested address. E
> > [11/Nov/2019:16:16:00 -0500] [cups-deviced] PID 22513
> > (gutenprint52+usb) stopped with status 1! E [11/Nov/2019:16:16:00
> > -0500] [cups-deviced] PID 22511 (begonia) stopped with status 1! W
> > [11/Nov/2019:16:18:17 -0500] CreateProfile failed:
> > org.freedesktop.ColorManager.AlreadyExists:profile id
> > \'Brother_HL-2140_series-Gray..\' already exists
> > E [11/Nov/2019:16:18:45 -0500] [cups-deviced] PID 22693 (begonia)
> > stopped with status 1! E [11/Nov/2019:16:18:45 -0500] [cups-deviced]
> > PID 22695 (gutenprint52+usb) stopped with status 1! W
> > [11/Nov/2019:16:20:12 -0500] CreateProfile failed:
> > org.freedesktop.ColorManager.AlreadyExists:profile id
> > \'Brother_HL-2140_series-Gray..\' already exists
> >
> > That [v1.::1] looks like shorthand for ipv6, but the nearest ipv6
> > capable connection is probably 185 miles north of here in Pittsburgh
> > PA. There is not AFAIK, any ipv6 provisioned anyplace on my local
> > ISP the local cable folks
>
> Forget this. This message is hours away from your real issue.
>
> Most proably caused by a "Listen [v1.::1]:631" entry in
> /etc/cups/cupsd.conf
is
Listen localhost:631

> > So thats probably the first thing to fix, but where is it?
>
> No, forget this. Put your focus on that error message:
>
> CreateProfile failed:
> org.freedesktop.ColorManager.AlreadyExists:profile ... already exists
>
Thats permissions.. But why can't the same software that wrote that 
profile, rewrite that profile?  I'm in sudoers. Looking for perms to 
admin this presents a requester with root filled and a password about a 
week long, which I change me me and my password so sudo will work, there 
is no root pw on any of my machines, and does not complain until the 
log.  So what do I do to get admin writes, including overwriting the 
edited ppd or whatever when there is no root pw, only sudo.
So if its complaining it can't overwrite the file, when its the exact 
same sw that wrote it three days back up the log.

> Best regars,
>   Klaus.


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)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page 



Re: Difference between ipp, ipps, http, https CUPS protocols?

2019-11-12 Thread Curt
On 2019-11-12, Klaus Singvogel  wrote:
>
> CreateProfile failed: org.freedesktop.ColorManager.AlreadyExists:profile ... 
> already exists

Maybe as simple as "Resume Printer" (wouldn't that be wonderful?).

> Best regars,
>   Klaus.


-- 
“The cradle rocks above an abyss, and common sense tells us that our existence
is but a brief crack of light between two eternities of darkness.” 
"Speak, Memory," Vladimir Nabokov



Re: Difference between ipp, ipps, http, https CUPS protocols?

2019-11-12 Thread Klaus Singvogel
Gene Heskett wrote:
> 
> This is my logs:
> root@coyote:cups$ cat /var/log/cups/access_log
> localhost - - [12/Nov/2019:00:11:00 -0500] "POST / HTTP/1.1" 200 349 
> Create-Printer-Subscriptions successful-ok
> localhost - - [12/Nov/2019:00:11:00 -0500] "POST / HTTP/1.1" 200 176 
> Create-Printer-Subscriptions successful-ok
> root@coyote:cups$ cat /var/log/cups/error_log.1
> E [11/Nov/2019:00:10:25 -0500] Unable to open listen socket for address 
> [v1.::1]:631 - Cannot assign requested address.
> E [11/Nov/2019:16:16:00 -0500] [cups-deviced] PID 22513 (gutenprint52+usb) 
> stopped with status 1!
> E [11/Nov/2019:16:16:00 -0500] [cups-deviced] PID 22511 (begonia) stopped 
> with status 1!
> W [11/Nov/2019:16:18:17 -0500] CreateProfile failed: 
> org.freedesktop.ColorManager.AlreadyExists:profile id 
> \'Brother_HL-2140_series-Gray..\' already exists
> E [11/Nov/2019:16:18:45 -0500] [cups-deviced] PID 22693 (begonia) stopped 
> with status 1!
> E [11/Nov/2019:16:18:45 -0500] [cups-deviced] PID 22695 (gutenprint52+usb) 
> stopped with status 1!
> W [11/Nov/2019:16:20:12 -0500] CreateProfile failed: 
> org.freedesktop.ColorManager.AlreadyExists:profile id 
> \'Brother_HL-2140_series-Gray..\' already exists
> 
> That [v1.::1] looks like shorthand for ipv6, but the nearest ipv6 capable 
> connection is probably 185 miles north of here in Pittsburgh PA.
> There is not AFAIK, any ipv6 provisioned anyplace on my local ISP the 
> local cable folks

Forget this. This message is hours away from your real issue.

Most proably caused by a "Listen [v1.::1]:631" entry in /etc/cups/cupsd.conf

> So thats probably the first thing to fix, but where is it?

No, forget this. Put your focus on that error message:

CreateProfile failed: org.freedesktop.ColorManager.AlreadyExists:profile ... 
already exists

Best regars,
Klaus.
-- 
Klaus Singvogel
GnuPG-Key-ID: 1024R/5068792D  1994-06-27



Re: Difference between ipp, ipps, http, https CUPS protocols?

2019-11-12 Thread Gene Heskett
Since I installed stretch on this machine, my printer server since the 
early 2000's, suddenly nothing works. No printers are shared despite 
my checking the box to share it during a reconfiguration of that profile.

What do I do to restore what was an "everything just worked" when this 
machine was running wheezy?  All I get in the logs here when another 
machine attempts to print to one of 4 printer profiles seems to 
indicate no permission.

I only have 1 printer defined because I want to fix whatever is wrong 
before I re-add the others. I have ripped out and, killed the etc/cups
directory in hopes a fresh cops install might fix it.  Didn't happen.

This is my logs:
root@coyote:cups$ cat /var/log/cups/access_log
localhost - - [12/Nov/2019:00:11:00 -0500] "POST / HTTP/1.1" 200 349 
Create-Printer-Subscriptions successful-ok
localhost - - [12/Nov/2019:00:11:00 -0500] "POST / HTTP/1.1" 200 176 
Create-Printer-Subscriptions successful-ok
root@coyote:cups$ cat /var/log/cups/error_log.1
E [11/Nov/2019:00:10:25 -0500] Unable to open listen socket for address 
[v1.::1]:631 - Cannot assign requested address.
E [11/Nov/2019:16:16:00 -0500] [cups-deviced] PID 22513 (gutenprint52+usb) 
stopped with status 1!
E [11/Nov/2019:16:16:00 -0500] [cups-deviced] PID 22511 (begonia) stopped with 
status 1!
W [11/Nov/2019:16:18:17 -0500] CreateProfile failed: 
org.freedesktop.ColorManager.AlreadyExists:profile id 
\'Brother_HL-2140_series-Gray..\' already exists
E [11/Nov/2019:16:18:45 -0500] [cups-deviced] PID 22693 (begonia) stopped with 
status 1!
E [11/Nov/2019:16:18:45 -0500] [cups-deviced] PID 22695 (gutenprint52+usb) 
stopped with status 1!
W [11/Nov/2019:16:20:12 -0500] CreateProfile failed: 
org.freedesktop.ColorManager.AlreadyExists:profile id 
\'Brother_HL-2140_series-Gray..\' already exists

That [v1.::1] looks like shorthand for ipv6, but the nearest ipv6 capable 
connection is probably 185 miles north of here in Pittsburgh PA.
There is not AFAIK, any ipv6 provisioned anyplace on my local ISP the 
local cable folks

So thats probably the first thing to fix, but where is it?

An ip a shows
1: lo:  mtu 65536 qdisc noqueue state UNKNOWN group 
default qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
   valid_lft forever preferred_lft forever
2: eth0:  mtu 1500 qdisc pfifo_fast state UP 
group default qlen 1000
link/ether 00:1f:c6:62:fc:bb brd ff:ff:ff:ff:ff:ff
inet 192.168.71.3/24 brd 192.168.71.255 scope global eth0
   valid_lft forever preferred_lft forever
3: eth1:  mtu 1500 qdisc noop state DOWN group default 
qlen 1000
link/ether 00:1f:c6:63:07:97 brd ff:ff:ff:ff:ff:ff

Nothing is connected at eth1, this mobo has 2 rj45's on it.

And all of that looks like ipv6 crap, yet I have an ipv6 disable in the 
/proc system someplace I've forgotten as this install is now several 
months old. Or is that volatile and needs to be done at every reboot?.

Thanks for any help.

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)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page 



Re: Difference between ipp, ipps, http, https CUPS protocols?

2019-11-12 Thread Klaus Singvogel
Dan Purgert wrote:
> Kent West wrote:
> >
> > Unable to open PPD file:
> >
> > Missing asterisk in column 1
[...]

It's your PPD file for the printer, which seams not to be readable,
most likely not existend.

The PPD (PostScript Printer Defintion) file is locate under /etc/cups/ppds
(or similiar pathname) and named as your "printer name" with suffix ".ppd"

Example: printer name is "oki6EX", than it is /etc/cups/ppds/oki6EX.ppd

Check, if file is existend and readable for cups.

Best regards,
Klaus.
-- 
Klaus Singvogel
GnuPG-Key-ID: 1024R/5068792D  1994-06-27



Re: Difference between ipp, ipps, http, https CUPS protocols?

2019-11-12 Thread Dan Purgert
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Kent West wrote:
> After some testing, I find that selecting "http" creates a working 
> printer; selecting "ipps" does not. The latter generates an error page 
> that says:
>
> Unable to open PPD file:
>
> Missing asterisk in column 1
>
>
> So apparently there is some difference between these protocols, and I'm 
> left wondering what the differences are, and which one I should select.
>

Most likely, the spooler chokes because you don't have a valid SSL
certificate on the printer (or the print-server). Therefore, neither
"IPPS" nor "HTTPS" would work.

Again, the "choice" of protocol comes down to "what does your printer
support" (most everything newish should support IPP). 

Without getting into way too much detail (and needing to google to
refresh my memory), IPP is basically an "enhanced" LPR/LPD, that instead
of you needing to write all the control software "client side" (i.e. the
machine sending the print job having the options in an rc file, on top
of one or more page filters), an extra communications / settings channel
is opened between the printer and machine trying to print, so they can
communicate about capabilities, and change them on the fly (e.g. want
this job to one-off print single-sided? Just tell the printer), rather
than having to edit a config file (and possibly restart services on the
machine printing).

I believe the newest printers offer a way to print "driverless" via IPP
as well -- that is, rather than needing a device-specific PPD, the use
of IPP lets you just send a standardized "printing format" (PDF, PCL,
something like that), and that "printing format" plus the options you
told it via the control channel gets you a nice document.  Though, that
might just be vaporware at the moment.

-BEGIN PGP SIGNATURE-

iQEzBAEBCAAdFiEEBcqaUD8uEzVNxUrujhHd8xJ5ooEFAl3Kl9gACgkQjhHd8xJ5
ooE/tQgAmpK/CEFO7lLaqlQrfkyUXHZURJ5+FKJNYH93FWMMvHwhbgZJtuN9ZiCK
r/MueXhAmmsXXEujvwdUygvIjSfZvflJgqgjxJQSi4YlM5alcsJqFr5IeB70cBe0
faslRcqhuXKrwMVq5DIbaOoF9nN7yqvpa5mHZilRSolMNgw7P56pbgGzTgDYB6va
CgNCGrLmp8DI8m/uxzg+JlV+F37T45ysu5vCaIFi50g1rWTN4T76foUsvYy93ZgE
qP2FridiBqHHdIjk1A5Id5rllcm/sxP22NyIU+8L7FO6h7mAarhFR8vcUwW9MTBC
bRdpIkabdINr/gBtfdKZP+ATy9I3UQ==
=W8xH
-END PGP SIGNATURE-

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



Re: Requisitos del sistema

2019-11-12 Thread JAP Debian

El 11/11/19 a las 17:02, mauro botella rabanal escribió:

Queria saber los requisitos del sistema necesarios para instalar debian


En este enlace está todo en detalle:

https://lmgtfy.com/?q=requisitos+para+instalar+debian=g=1


STFW

JAP



Twój FanPage na Facebook'u

2019-11-12 Thread Twój Zleceniobiorca . FanPage na Facebook'u .

Dzień dobry,

zdobycieklientów to najważniejsza kwestia przy prowadzeniu firmy.

Dobrze prosperującyFanpage na Facebookuto wizytówka Państwa 
działalności.

Wiemy jak skuteczniegoadministrować i jak docierać do klientów z 
Państwa branży.

Wiadomość o treściTak,umożliwi nam kontakt w tej sprawie.

/
Z poważaniem,
Specjaliści do spraw Social Mediów./


Re: auxiliary mail client for HTML

2019-11-12 Thread Curt
On 2019-11-08, Nate Bargmann  wrote:
>
>> I thought everybody just used a mailcap file and was fine.
>
> I do and have it setup to use w3m to deal with most HTML mail.  Some
> does look better in a GUI program and that's why I do this.
>

Well, then

 text/html;  /usr/bin/firefox %s >/dev/null 2>&1; needsterminal
 text/html;  elinks -dump %s; nametemplate=%s.html; copiousoutput

Or something like it. Needing or preferring a gui client doesn't seem
preclude using a mailcap file (or vice versa). 

I'm not a mutt user, though, so maybe I got it wrong. I also forgot what
the "this" was in the "that's why I do this" above.

;-)


-- 
“The cradle rocks above an abyss, and common sense tells us that our existence
is but a brief crack of light between two eternities of darkness.” 
"Speak, Memory," Vladimir Nabokov



Re: Semi-OT: IPP doesn't auto-configure CUPS?

2019-11-12 Thread Curt
On 2019-11-11, Gene Heskett  wrote:
>>
>> Internet Printing Protocol (http)
>>
>> Internet Printing Protocol (https)
>>
>> Internet Printing Protocol (ipp)
>>
>> Internet Printing Protocol (ipps)
>>
>> even though "ls -l /usr/lib/cups/backend" all show them to all be or
>> symlink to the same file. So I'm left with my original question from
>> my earlier-today post/question: What's the difference between these
>> four protocols, and why would I select one over the others?
>>
> excellent questions. But I be far more interested is setting a printer as 
> shared, and actually being able share it.  When configured as shared, 
> when the page clears back to the printer, its marked not shared and is 
> refusing to allow other computers on my local net to use it.

AFAIK, there's only one protocol in the list above (IPP). http(s) is a
transport binding. ipps is a "URI scheme, which is used to designate the
access to the network location of a secure IPP print service or a
network resource managed by such a service."

https://tools.ietf.org/html/rfc7472

 cupsctl --share-printers
(same subnet)

 lpadmin -p  -o printer-is-shared=true

https://www.cups.org/doc/sharing.html

I didn't do it that way that, though. I turned on sharing via the web
interface and without further ado the printer shared itself on the LAN.
Can't imagine what your difficulty might be (unless your not in
administrative mode or something).

> Thanks for any help that fixes this.
>
>> Thanks!
>
>
> Cheers, Gene Heskett


-- 
“The cradle rocks above an abyss, and common sense tells us that our existence
is but a brief crack of light between two eternities of darkness.” 
"Speak, Memory," Vladimir Nabokov



Re: Migration Stretch vers Buster : plus de mode graphique

2019-11-12 Thread Daniel Huhardeaux

Le 11/11/2019 à 19:58, ajh-valmer a écrit :
[...]

Connexion ssh possible ? Peux tu te connecter sur une console
(Ctrl+Alt+F1 à F6)


Comme je l'avais écrit :

Si je lance X, l'écran devient noir, rien,
plus de clavier, bloqué, seule solution : hard reboot.


Cela n'empêche pas ssh d'être fonctionnel ...

--
Daniel