Re: stop mate weather app spamming syslog?

2023-02-25 Thread Reco
Hi.

On Sun, Feb 26, 2023 at 07:00:34AM +0800, jeremy ardley wrote:
> Any way to stop it? Or get syslog to send it to /dev/null ?

Of course there is.

cat > /etc/rsyslog.d/mateweather.conf << EOF
if (\$syslogtag containts 'org.mate.panel.applet.MateWeatherAppletFactory') 
then stop
EOF

service rsyslog restart

Reco



Re: dmesg ... XFS (sdb1): log I/O error ...

2023-02-25 Thread Stefan Monnier
> [22565.451321] usb-storage 1-1:1.0: USB Mass Storage device detected
> [22565.451467] scsi host3: usb-storage 1-1:1.0
> [22566.457236] scsi 3:0:0:0: Direct-Access ST16000N M001G-2KK103
>PQ: 0 ANSI: 5
> [22566.457527] sd 3:0:0:0: Attached scsi generic sg2 type 0

IIUC you plug your disk via USB and it uses the standard "USB Mass
Storage" (UMS) protocol.

> [22566.457823] sd 3:0:0:0: [sdb] Very big device. Trying to use READ
> CAPACITY(16).
> [22566.457997] sd 3:0:0:0: [sdb] 31251759104 512-byte logical blocks:
> (16.0 TB/14.6 TiB)
> [22566.458365] sd 3:0:0:0: [sdb] Write Protect is off
> [22566.458369] sd 3:0:0:0: [sdb] Mode Sense: 28 00 00 00
> [22566.458640] sd 3:0:0:0: [sdb] No Caching mode page found
> [22566.458644] sd 3:0:0:0: [sdb] Assuming drive cache: write through
> [22566.538074]  sdb: sdb1 sdb2
> [22566.583373] sd 3:0:0:0: [sdb] Attached SCSI disk
> [22575.515358] XFS (sdb1): Mounting V5 Filesystem
> [22575.742880] XFS (sdb1): Starting recovery (logdev: internal)
> [22575.919197] XFS (sdb1): Ending recovery (logdev: internal)
> [22575.932002] xfs filesystem being mounted at
> /media/user/77d8da74-a690-481a-86d5-9beab5a8e842 supports timestamps
> until 2038 (0x7fff)

OK, now it read the disk just fine and mounted it.

> [22582.368977] usb 1-1: USB disconnect, device number 21

After just 7s it disconnected?  Sounds like you have a connection
problem.  Poor cabling?  Or maybe the disk consumes more power than its
power adapter can provide? (seems unlikely since it's a 16TB drive, so
presumably spinning and those usually reach their top consumption when
spinning up, so it would have failed before mounting the filesystem, but
it's still a possibility).

>  the drive has its own power cable and those kinds of failures have
> actually happened in research rooms in libraries, which are rented by
> VIPs for their own conferences ...; so, I doubt those electrical
> outlets are also failing

Te problem is probably not coming from the electrical outlet, but it
could come from the disk's power cable or power adapter.

> The laptop + external disk combination I am using right now has a
> very pore transfer rate. I need at least three times that around
> 100MB/sec:

100MB/s means more than 1Gb/s so you definitely can't reach that much
with USB2.  Make sure your USB<->SATA adapter is USB3 and that you plug
the disk into a USB3 port as well.  But even then you may find it
difficult to reach that speed because of the overhead introduced by USB.

36.87MB/s is quite reasonable for a USB2 connection (I'd even venture
to say it's pretty good).


Stefan



Re: CUPS - how to match autodetected printers to physical ones

2023-02-25 Thread Brian
On Sat 25 Feb 2023 at 22:22:55 +0300, Reco wrote:

> On Sat, Feb 25, 2023 at 06:30:28PM +, Brian wrote:
> > On Sat 25 Feb 2023 at 17:44:15 +0300, Reco wrote:
> > 
> > >   Hi.
> > > 
> > > On Fri, Feb 24, 2023 at 12:58:15PM -0500, Greg Wooledge wrote:
> > > > On Fri, Feb 17, 2023 at 05:35:11PM +0300, Reco wrote:
> > > > > Try this next time you're on site:
> > > > > 
> > > > > lpadmin -p D14841 -E -v ipp://10.76.172.100/ipp/print -m everywhere
> > > > 
> > > > This worked.  I printed two copies of the single-page PDF from Chrome
> > > > without any further problems.
> > > 
> > > Just as planned. CUPS autodiscovery is only good for something if you
> > > don't know printer's real IP. This little episode shows us that nothing
> > > beats IP-on-sheet-of-paper discovery.
> >  
> > 99% of users with tablets, smart phones, laptops etc would find
> > DNS-SD more to their liking, especially if DHCP assignment is
> > in place.
> 
> It's interesting how you bring up DHCP, yet do not mention DHCP option 9
> (aka "option lpr-servers" in ISC lingo).
> A proper implementation of DHCP options would make DNS-SD (and other
> assorted kludges) completely redundant.
> But that would be in an ideal world, and in the real world DNS-SD
> serves its function (within its inherent limits of course).
> If it works, that is.

If the IP address changes, ipp://10.76.172.100/ipp/print as a
URI becomes useless. DNS-SD ensures a reachable URI. Got it?

It's as simple as that. Why complicate it with what DHCP can
do or not do?
 
> > It would also be hoped that port numbers and resource
> > paths are on the sheet of paper, otherwise a user will have a
> > lot of guessing to do.
> 
> Nope. RTFM would suffice, as always.

I do not think you understand my argument. A port for an IPP
printer need not be on 631 and the resource path need not be
ipp/print. RTFM hardly helps when there is an immediate need
to print.

RTFM? Which ones would you recommend?

> > In this thread we see how a very experienced user reacted to
> > being denied mdns multicasting.
> 
> Allow me to quote that original e-mail for the sake of completeness:
> 
> > So the printer WORKS.  It is ON THE NETWORK.  I can print TEXT to it
> > using port 9100.
> > 
> > What I CANNOT do is find it in CUPS.  Or avahi-browse, or driverless, or
> > any of these other commands that are so allegedly wonderful.
> > 
> > Is there any way I can tell CUPS "Please set up a queue for a printer
> > whose IP address is 10.76.172.100 even though you can't discover it with
> > your fancy tools"?
> 
> The way I see it, Greg wrote about a CUPS configuration problem.
> The solution of said problem was (and still is btw) at lpadmin(8).
> Of course, to know that the solution just lies there, waiting to be
> implemented, that requires one to have a knowledge of CUPS administration.
> Luckily we have debian-user for last one.

Your interpretation of the OP's situation is misguided. He was
confused and, as such users do sometimes, lashed out at anything
in sight. There was not any CUPS missconfiguration.

Actually, CUPS performed splendidly. The OP was on a badly set
up, unco-operative network. That was (and probably still is) the
root of the issue.

> > How would an ordinary user go on? "Give them a piece of paper" sounds
> > awfully like "Let them eat cake".
> 
> Easy, a user should RTFM. Failing that, a user can use a different
> device or OS, or *gasp* - just use ipptool. Given the environment, a
> creative use of samba suite would probably solve the problem too, but
> let's not get into *that*.
> And there's that last step - just ask somebody.

You welcome Big Boss into your office for a $100M deal.

  Big Boss: Contract's on my phone. Let's print it and I'll sign.
What's the printer name?

  You: GimmeMoney

  Big Boss: Can't see it.

  You: Just let me read the manual and do a bit of network probing.

  Big Boss: (10 minutes later). Any joy?

  You: No. I'll go ask someone. Give me half an hour.

  Big Boss: I'm a busy woman with other options. Goodbye.

-- 
Brian.



Re: Debian bullseye et sortie audio

2023-02-25 Thread Bernard Schoenacker
Bonjour Gérard,

Puisque tu es dans les choux, je te conselle de remplacer
le serveur de son en service par pipewire

merci

@+

Bernard


bonjour,


je suis sous Debian bullseye à jour, et depuis ma dernière mise à jour 
j'ai un problème de sortie son assez énervant que je n'arrive pas à 
résoudre.

voici ma config :

KDE plasma 5.20.5

KDE Frameworks 5.78.0

Qt 5.15.2

kernel 5.10.0-18-amd64

carte graphique NVIDIA GeForce GTX 660

ma sortie audio se fait par la carte vidéo à l'aide du contrôleur GK106 
HDMI Controller


le problème :

lors du démarrage du système ou après une mise en veille le contrôleur 
s'éteint ou ne démarre pas, et je suis obligé de lancer le programme 
pavucontrol pour relancer le contrôleur. Je n'ai pas trouvé d'autre 
solution. avant cette mise à jour je n'avais pas ce problème.

merci de voter aide


Gérard

-- 
==
https://www.leregardduchat.fr/
==



stop mate weather app spamming syslog?

2023-02-25 Thread jeremy ardley

My syslog gets a couple of dozen line like below every 10 mins or so.

Any way to stop it? Or get syslog to send it to /dev/null ?

Feb 26 06:50:22 client 
org.mate.panel.applet.MateWeatherAppletFactory[3517]: Forecast for 
Monday 27 February
Feb 26 06:50:22 client 
org.mate.panel.applet.MateWeatherAppletFactory[3517]: Mostly sunny. 
Winds easterly 20 to 30 km/h tending south to southwesterly 15 to
Feb 26 06:50:22 client 
org.mate.panel.applet.MateWeatherAppletFactory[3517]: 25 km/h in the 
late afternoon then becoming southeasterly 15 to 20 km/h in the
Feb 26 06:50:22 client 
org.mate.panel.applet.MateWeatherAppletFactory[3517]: late evening.
Feb 26 06:50:22 client 
org.mate.panel.applet.MateWeatherAppletFactory[3517]: City 
Centre Mostly sunny. Min 22    Max 36
Feb 26 06:50:22 client 
org.mate.panel.applet.MateWeatherAppletFactory[3517]: Chance of any rain: 0%
Feb 26 06:50:22 client 
org.mate.panel.applet.MateWeatherAppletFactory[3517]: Forecast for 
Tuesday 28 February
Feb 26 06:50:22 client 
org.mate.panel.applet.MateWeatherAppletFactory[3517]: Sunny. Winds 
easterly 25 to 35 km/h.
Feb 26 06:50:22 client 
org.mate.panel.applet.MateWeatherAppletFactory[3517]: City 
Centre Sunny.    Min 22    Max 37
Feb 26 06:50:22 client 
org.mate.panel.applet.MateWeatherAppletFactory[3517]: Chance of any rain: 0%
Feb 26 06:50:22 client 
org.mate.panel.applet.MateWeatherAppletFactory[3517]: Forecast for 
Wednesday 1 March
Feb 26 06:50:22 client 
org.mate.panel.applet.MateWeatherAppletFactory[3517]: Sunny. Winds 
easterly 25 to 35 km/h tending south to southwesterly 15 to 20
Feb 26 06:50:22 client 
org.mate.panel.applet.MateWeatherAppletFactory[3517]: km/h during the 
afternoon then tending east to southeasterly during the evening.
Feb 26 06:50:22 client 
org.mate.panel.applet.MateWeatherAppletFactory[3517]: City 
Centre Sunny.    Min 21    Max 37
Feb 26 06:50:22 client 
org.mate.panel.applet.MateWeatherAppletFactory[3517]: Chance of any rain: 0%
Feb 26 06:50:22 client 
org.mate.panel.applet.MateWeatherAppletFactory[3517]: Forecast for 
Thursday 2 March
Feb 26 06:50:22 client 
org.mate.panel.applet.MateWeatherAppletFactory[3517]: Partly cloudy. 
Winds easterly 15 to 25 km/h tending northeasterly during the
Feb 26 06:50:22 client 
org.mate.panel.applet.MateWeatherAppletFactory[3517]: morning.
Feb 26 06:50:22 client 
org.mate.panel.applet.MateWeatherAppletFactory[3517]: City 
Centre Partly cloudy.    Min 25    Max 37
Feb 26 06:50:22 client 
org.mate.panel.applet.MateWeatherAppletFactory[3517]: Chance of any 
rain: 10%
Feb 26 06:50:22 client 
org.mate.panel.applet.MateWeatherAppletFactory[3517]: Forecast for 
Friday 3 March
Feb 26 06:50:22 client 
org.mate.panel.applet.MateWeatherAppletFactory[3517]: Mostly sunny. 
Winds east to southeasterly 15 to 25 km/h tending south to
Feb 26 06:50:22 client 
org.mate.panel.applet.MateWeatherAppletFactory[3517]: southeasterly 
during the day.
Feb 26 06:50:22 client 
org.mate.panel.applet.MateWeatherAppletFactory[3517]: City 
Centre Mostly sunny. Min 22    Max 36
Feb 26 06:50:22 client 
org.mate.panel.applet.MateWeatherAppletFactory[3517]: Chance of any 
rain: 10%
Feb 26 06:50:22 client 
org.mate.panel.applet.MateWeatherAppletFactory[3517]: Forecast for 
Saturday 4 March
Feb 26 06:50:22 client 
org.mate.panel.applet.MateWeatherAppletFactory[3517]: Sunny. Winds east 
to southeasterly 15 to 25 km/h tending south to southeasterly
Feb 26 06:50:22 client 
org.mate.panel.applet.MateWeatherAppletFactory[3517]: 15 to 20 km/h 
during the day.
Feb 26 06:50:22 client 
org.mate.panel.applet.MateWeatherAppletFactory[3517]: City 
Centre Sunny.    Min 21    Max 34
Feb 26 06:50:22 client 
org.mate.panel.applet.MateWeatherAppletFactory[3517]: Chance of any rain: 5%




--


Jeremy



Re: dmesg ... XFS (sdb1): log I/O error ...

2023-02-25 Thread David Christensen

On 2/25/23 04:31, Albretch Mueller wrote:

On 2/25/23, to...@tuxteam.de  wrote:

I can't make too much heads or tails of it, but I'd focus
my suspicions on the USB part. USB ports (both sides),
cable and especially the power source for the disk: 


+1



does
it have a separate source, or does it feed on the computer's
USB?


  the drive has its own power cable and those kinds of failures have
actually happened in research rooms in libraries, which are rented by
VIPs for their own conferences ...; so, I doubt those electrical
outlets are also failing



My house was built with cheap NEMA 5-15R duplex receptacles in 1994.  A 
few lost their grip, so I replaced them with better quality devices.




On 2/25/23, David Christensen  wrote:

It looks like your USB connection is unreliable.  I suggest removing the
drive from its USB enclosure ...


  I am not using a USB enclosure per se, but a regular internal disk
externally attached using a USB/power interface. I will test the USB
cabling using a better looking, newer USB cable.



What is the make and model of your USB/power interface?


I bought a StarTech S351BMU33ET a few years ago:

https://www.startech.com/en-us/hdd/s351bmu33et

I liked everything except the fact that it lacked a fan and my HDD's 
were getting too hot.  So, I opened it up and discovered that StarTech 
had done most of the engineering -- the rear panel has injection molded 
features for a fan, and the printed circuit board has a clearance 
cut-out for a fan and nearby plated through holes for a 2 x 0.1" pin 
header.  I completed the rear panel cutout, soldered in a pin header, 
connected a fan, and powered it up.  The PCB layout is wrong -- one fan 
pin was connected to DC negative and but the other was floating (?). 
The on/off switch does not do old-school power switching -- it connects 
to a chip.  I probed the board looking for a switched DC positive.  I 
settled for the most convenient trace/ pad that I could find near the 
incoming power connector and soldered in a jumper.  Now the fan spins 
whenever a drive is inserted, regardless of the on/off switch.  Oh, 
well.  USB and eSATA performance is excellent, and I have had no 
problems with it.  StarTech should do a revision of the PCB and start 
shipping units with fans -- I would buy more and recommend them.




Unless you have suitable test equipment


  If what you meant by "test equipment" is the kind they use in clean
rooms 



And electronics labs, geek home workshops, etc..



I cannot use those, but I would like to buy some hdd failure
detection rig



I have several tower and rack computers, and install hard drive mobile 
racks in all of them:


https://www.startech.com/en-us/hdd/drw150satbk

https://www.startech.com/en-us/hdd/hsb220sat25b

https://www.startech.com/en-us/hdd/s25slotr


I typically use 2.5" SATA SSD's for OS drives, one OS per SSD, and have 
an assortment of Windows, Linux, and FreeBSD instances with various 
utility apps to choose from.  Do not be afraid to spend good money on 
good parts and good tools; it will save your sanity and your data.




... making sure the BIOS hasn’t been corrupted).



That is tough, given that you must assume backdoored firmware will take 
measures to hide and protect itself.



If your firmware EEPROM is socketed, then an EEPROM programmer and 
suitable PC/ driver/ app would do.



If your firmware EEPROM is soldered and the motherboard has JTAG, then a 
cable, JTAG adapter, and PC/ driver/ app comes to mind.  But, this may 
require technical information from the motherboard manufacturer.




There is a lot of (at times partial and in ads) information out there
about the science and art of the use and care of computer memory (RAM,
SSD and hdd) and filesystems based on the profile of your applications
but a "Bible" kind of book about such matters is nowhere to be found.



"Confidential".  I once wrote a BSD device driver for an Intel Fast 
Ethernet PCI adapter.  Intel required my employer to sign an NDA so we 
could get the technical/ programmers manual.




The laptop + external disk combination I am using right now has a
very pore transfer rate.



Does the laptop have an ExpressCard slot?  If so, an ExpressCard to USB, 
Firewire, or eSATA adapter is an option:


https://www.startech.com/en-us/search?search_term=expresscard


That said, the prices of recent model, used computers have dropped 
significantly post-COVID.



For DIY, I prefer used Intel S1200V3RPL motherboards/ CPU/ ECC bundles, 
used LSI HBA SAS 9207-8i IT Mode, new StarTech mobile racks as above, 
and new Fractal Design chassis/ PSU/ third fan:


https://www.fractal-design.com/products/cases/define/define-r5/black/

https://www.fractal-design.com/products/power-supplies/ion/ion-2-platinum-660w/Black/

https://www.fractal-design.com/products/fans/dynamic/dynamic-x2-gp-14/white/


If building a gaming/ compute box, I would substitute the 860 W PSU.


David



Re: CUPS - how to match autodetected printers to physical ones

2023-02-25 Thread Reco
On Sat, Feb 25, 2023 at 06:30:28PM +, Brian wrote:
> On Sat 25 Feb 2023 at 17:44:15 +0300, Reco wrote:
> 
> > Hi.
> > 
> > On Fri, Feb 24, 2023 at 12:58:15PM -0500, Greg Wooledge wrote:
> > > On Fri, Feb 17, 2023 at 05:35:11PM +0300, Reco wrote:
> > > > Try this next time you're on site:
> > > > 
> > > > lpadmin -p D14841 -E -v ipp://10.76.172.100/ipp/print -m everywhere
> > > 
> > > This worked.  I printed two copies of the single-page PDF from Chrome
> > > without any further problems.
> > 
> > Just as planned. CUPS autodiscovery is only good for something if you
> > don't know printer's real IP. This little episode shows us that nothing
> > beats IP-on-sheet-of-paper discovery.
>  
> 99% of users with tablets, smart phones, laptops etc would find
> DNS-SD more to their liking, especially if DHCP assignment is
> in place.

It's interesting how you bring up DHCP, yet do not mention DHCP option 9
(aka "option lpr-servers" in ISC lingo).
A proper implementation of DHCP options would make DNS-SD (and other
assorted kludges) completely redundant.
But that would be in an ideal world, and in the real world DNS-SD
serves its function (within its inherent limits of course).
If it works, that is.


> It would also be hoped that port numbers and resource
> paths are on the sheet of paper, otherwise a user will have a
> lot of guessing to do.

Nope. RTFM would suffice, as always.


> In this thread we see how a very experienced user reacted to
> being denied mdns multicasting.

Allow me to quote that original e-mail for the sake of completeness:

> So the printer WORKS.  It is ON THE NETWORK.  I can print TEXT to it
> using port 9100.
> 
> What I CANNOT do is find it in CUPS.  Or avahi-browse, or driverless, or
> any of these other commands that are so allegedly wonderful.
> 
> Is there any way I can tell CUPS "Please set up a queue for a printer
> whose IP address is 10.76.172.100 even though you can't discover it with
> your fancy tools"?

The way I see it, Greg wrote about a CUPS configuration problem.
The solution of said problem was (and still is btw) at lpadmin(8).
Of course, to know that the solution just lies there, waiting to be
implemented, that requires one to have a knowledge of CUPS administration.
Luckily we have debian-user for last one.


> How would an ordinary user go on? "Give them a piece of paper" sounds
> awfully like "Let them eat cake".

Easy, a user should RTFM. Failing that, a user can use a different
device or OS, or *gasp* - just use ipptool. Given the environment, a
creative use of samba suite would probably solve the problem too, but
let's not get into *that*.
And there's that last step - just ask somebody.


> > > I've gotta say, though, this option is a disaster:
> > > 
> > >   -E  When specified before the -d, -p, or -x options, forces the use of
> > >   TLS encryption on the connection to the scheduler. Otherwise, 
> > > enables
> > >   the destination and accepts jobs; this is the same as running the
> > >   cupsaccept(8) and cupsenable(8) programs on the destination.
> > > 
> > > Whoever decided to overload that option in that way... yikes.
> > 
> > Back in the day Apple's slogan was "think different". The whole CUPS
> > suite is a living proof of that.
> 
> Wrong target! -E was there in its present form well before Apple
> acquired CUPS.

I stand corrected here.

Reco



Re: Virtual machine affects client screen resolution

2023-02-25 Thread Roy J. Tellason, Sr.
On Friday 24 February 2023 10:03:31 pm Max Nikulin wrote:
> On 25/02/2023 00:55, Roy J. Tellason, Sr. wrote:
> > On Wednesday 22 February 2023 09:24:17 pm Max Nikulin wrote:
> >> On 19/02/2023 01:01, Roy J. Tellason, Sr. wrote:
> >>> So this got me curious,  and I tried it out.  In the terminal that's
> >>> running inside of the virtualbox instance where I'm doing emails,  it
> >>> comes back with:
> >>>
> >>> :0
> >>
> >> Have you tried to emulate multiple monitors in virtualbox?
> > 
> > I'm not sure what I need to do with the computer to make this happen.
> 
> VirtualBox can emulate multiple monitors, they may be represented as 
> several windows on the same physical device. It is convenient to test 
> behavior of applications in the configuration with multiple monitors. 
> There is an option in VM configuration UI.

I don't recall seeing that,  I'll have another look...
 
> >>> But in a terminal which is running on the host Debian system,  it comes 
> >>> back with:
> >>>
> >>> :0.0
> >>>
> >>> I wonder why the difference?
> >>
> >> My guess is that it may depend on graphics adapter and its driver.
> > 
> > It's an older machine with a VGA output being used.  I assume that I'll
> > need to get some kind of a card with an HDMI output and a cable to make
> > that happen.  No idea what the driver is,  probably nothing special.
> 
> It does not matter if it is special or not. My guess (that may be wrong) 
> that even noveau vs. nvidia may behave differently. I have never gone 
> deeper, since I do not remember any problem with setting DISPLAY=:0 when 
> it was necessary. Driver in use should appear in Xorg.0.log, e.g.
> 
> (II) modeset(0): [DRI2]   DRI driver: i965

Only thing I'm finding that resembles that is these lines:

[ 13041.620] (II) modeset(0): [DRI2]   DRI driver: i965
[ 13041.620] (II) modeset(0): [DRI2]   VDPAU driver: i965
 
> >> I have heard that a display may have several screens (it is not the same 
> >> as multiple monitors that show
> >> different regions of the same display and screen). I have never tried such 
> >> configuration.
> > 
> > Are you referring to multiple desktops?  I have that going,  for sure.
> 
> My impression is that multiple screens of a display is not the same as 
> virtual desktops (and not the same as multiple monitors). I am not 
> familiar with X11 protocol so closely. Frankly speaking, I has a hope 
> that somebody will post a proper link. My curiosity is not strong enough 
> yet to filter search engine results myself.


-- 
Member of the toughest, meanest, deadliest, most unrelenting -- and
ablest -- form of life in this section of space,  a critter that can
be killed but can't be tamed.  --Robert A. Heinlein, "The Puppet Masters"
-
Information is more dangerous than cannon to a society ruled by lies. --James 
M Dakin



Re: CUPS - how to match autodetected printers to physical ones

2023-02-25 Thread Brian
On Sat 25 Feb 2023 at 17:44:15 +0300, Reco wrote:

>   Hi.
> 
> On Fri, Feb 24, 2023 at 12:58:15PM -0500, Greg Wooledge wrote:
> > On Fri, Feb 17, 2023 at 05:35:11PM +0300, Reco wrote:
> > > Try this next time you're on site:
> > > 
> > > lpadmin -p D14841 -E -v ipp://10.76.172.100/ipp/print -m everywhere
> > 
> > This worked.  I printed two copies of the single-page PDF from Chrome
> > without any further problems.
> 
> Just as planned. CUPS autodiscovery is only good for something if you
> don't know printer's real IP. This little episode shows us that nothing
> beats IP-on-sheet-of-paper discovery.
 
99% of users with tablets, smart phones, laptops etc would find
DNS-SD more to their liking, especially if DHCP assignment is
in place. It would also be hoped that port numbers and resource
paths are on the sheet of paper, otherwise a user will have a
lot of guessing to do.

In this thread we see how a very experienced user reacted to
being denied mdns multicasting. How would an ordinary user go
on? "Give them a piece of paper" sounds awfully like "Let them
eat cake".
 
> > I've gotta say, though, this option is a disaster:
> > 
> >   -E  When specified before the -d, -p, or -x options, forces the use of
> >   TLS encryption on the connection to the scheduler. Otherwise, enables
> >   the destination and accepts jobs; this is the same as running the
> >   cupsaccept(8) and cupsenable(8) programs on the destination.
> > 
> > Whoever decided to overload that option in that way... yikes.
> 
> Back in the day Apple's slogan was "think different". The whole CUPS
> suite is a living proof of that.

Wrong target! -E was there in its present form well before Apple
acquired CUPS.

-- 
Brian.



Debian bullseye et sortie audio

2023-02-25 Thread Kohler Gerard

bonjour,


je suis sous Debian bullseye à jour, et depuis ma dernière mise à jour 
j'ai un problème de sortie son assez énervant que je n'arrive pas à 
résoudre.


voici ma config :

KDE plasma 5.20.5

KDE Frameworks 5.78.0

Qt 5.15.2

kernel 5.10.0-18-amd64

carte graphique NVIDIA GeForce GTX 660

ma sortie audio se fait par la carte vidéo à l'aide du contrôleur GK106 
HDMI Controller



le problème :

lors du démarrage du système ou après une mise en veille le contrôleur 
s'éteint ou ne démarre pas, et je suis obligé de lancer le programme 
pavucontrol pour relancer le contrôleur. Je n'ai pas trouvé d'autre 
solution. avant cette mise à jour je n'avais pas ce problème.


merci de voter aide


Gérard

--
==
https://www.leregardduchat.fr/
==



Re: CUPS - how to match autodetected printers to physical ones

2023-02-25 Thread Reco
Hi.

On Fri, Feb 24, 2023 at 12:58:15PM -0500, Greg Wooledge wrote:
> On Fri, Feb 17, 2023 at 05:35:11PM +0300, Reco wrote:
> > Try this next time you're on site:
> > 
> > lpadmin -p D14841 -E -v ipp://10.76.172.100/ipp/print -m everywhere
> 
> This worked.  I printed two copies of the single-page PDF from Chrome
> without any further problems.

Just as planned. CUPS autodiscovery is only good for something if you
don't know printer's real IP. This little episode shows us that nothing
beats IP-on-sheet-of-paper discovery.


> I've gotta say, though, this option is a disaster:
> 
>   -E  When specified before the -d, -p, or -x options, forces the use of
>   TLS encryption on the connection to the scheduler. Otherwise, enables
>   the destination and accepts jobs; this is the same as running the
>   cupsaccept(8) and cupsenable(8) programs on the destination.
> 
> Whoever decided to overload that option in that way... yikes.

Back in the day Apple's slogan was "think different". The whole CUPS
suite is a living proof of that.

Reco



Re: dmesg ... XFS (sdb1): log I/O error ...

2023-02-25 Thread Dan Ritter
Albretch Mueller wrote: 
> On 2/25/23, to...@tuxteam.de  wrote:
>  I am not using a USB enclosure per se, but a regular internal disk
> externally attached using a USB/power interface. I will test the USB
> cabling using a better looking, newer USB cable.

If you can swap the USB/SATA interface too, that's a pretty
likely failure point.

>  The laptop + external disk combination I am using right now has a
> very pore transfer rate. I need at least three times that around
> 100MB/sec:
> 
> $ date; time sudo hdparm -tT /dev/sdc
> Sat 25 Feb 2023 12:03:43 PM UTC
> 
> /dev/sdc:
>  Timing cached reads:   29458 MB in  2.00 seconds = 14754.70 MB/sec
>  Timing buffered disk reads: 112 MB in  3.04 seconds =  36.87 MB/sec

The top number is, of course, bogus. The bottom number is typical of a
USB2-connected disk -- the often cited "480Mb/s" connection speed has
a lot of protocol overhead and inefficiency. About 42MB/s is the best
you can hope for.

A USB3 port, if you have one available, and a USB3-SATA3 interface that
supports UASP (basically, SCSI over USB), can manage 100-120MB/s
on a spinning disk.

-dsr-



Re: Remove route '169.254.0.0/16 dev ovs-system'

2023-02-25 Thread Christoph Brinkhaus
Am Fri, Feb 24, 2023 at 07:41:26PM +0100 schrieb Christoph Brinkhaus:

I reply to myself thanking Max.

> Am Fri, Feb 24, 2023 at 10:09:34PM +0700 schrieb Max Nikulin:
> > On 22/02/2023 23:45, Christoph Brinkhaus wrote:
> > > Am Wed, Feb 22, 2023 at 10:24:59PM +0700 schrieb Max Nikulin:
> > > > On 22/02/2023 01:26, Christoph Brinkhaus wrote:

[snip]

> > I have no experience with unbound and I am not sure at which moment it
> > notifies systemd that the service is ready. However I have found a recent
> > bug
> > https://github.com/NLnetLabs/unbound/issues/773
> > "When used with systemd-networkd, unbound does not start until
> > systemd-networkd-wait-online.service times out"
> > 
> > Perhaps the package in Debian has an older version of the unbound.service
> > file and so is not affected.
> > 
> Hi Max,
> 
> I have observed lines below in journald:
> 
> Feb 22 15:41:44 lenovo systemd[1]: Reached target Network is Online.
> Feb 22 15:41:44 lenovo systemd[1]: Failed to start Wait for Network to be 
> Configured.
> Feb 22 15:41:44 lenovo systemd[1]: systemd-networkd-wait-online.service: 
> Failed with result 'exit-code'.
> Feb 22 15:41:44 lenovo systemd[1]: systemd-networkd-wait-online.service: Main 
> process exited, code=exited, status=1/FAILURE
> Feb 22 15:41:44 lenovo systemd-networkd-wait-online[362]: Event loop failed: 
> Connection timed out
> Feb 22 15:41:25 lenovo systemd[1]: anacron.service: Succeeded.
> Feb 22 15:41:25 lenovo anacron[3261]: Normal exit (0 jobs run)
> Feb 22 15:41:25 lenovo anacron[3261]: Anacron 2.3 started on 2023-02-22
> Feb 22 15:41:25 lenovo systemd[1]: Started Run anacron jobs.
> 
> This looks related, thank you very much!
> I will have a look at the link.

Dear Max, the method descriped in the link above helped to fix the
issue. Now there are no messages reported by journald as above.

Thank you very much for the kind help!

[snip]

Kind regards,
Christoph
-- 
Ist die Katze gesund
schmeckt sie dem Hund.



[SOLVED] Re: Currently on x11vnc, looking for reliable VNC solution?

2023-02-25 Thread piorunz

On 07/09/2022 09:41, piorunz wrote:


and the there's anydesk, with conditions just as nomachine.

anydesk.com




[1] https://www.nomachine.com/


Thanks for your replies guys. These solutions are overkill to my needs,
I just need reliable LAN access from one machine to another, as for WAN
access I already have ssh tunnel which tunnels all traffic I want if
need be. So, I don't think I need external, commercial, not open source
solution for my simple remote access. I'd rather fix VNC server I have
right now, or switch to different VNC server. Anyone has experience with
VNC, or similar LAN protocols, which work? Thanks in advance.


Hi all,

Just to let you know, I finally settled for commercial software - 
RealVNC Connect account. Registered to anonymous details, this account 
allows for up to three VNC servers within one account to be available 
for free, with optional cloud access as well, protected by password and 
2FA. I don't need to resort to SSH tunnel any more, but I still can if I 
disable cloud access and tunnel a port through SSH instead.
And what a difference has it been! It's so much more efficient than 
x11vnc I was using for last three years, I am very patient, I know haha. 
Before, I had anywhere from 1 fps to 10 fps on a good day, recently 
x11vnc was bugging even more and manipulating any window would slow it 
down from typical 10 fps to 0.5 fps. Restarting, tweaking options, even 
using all default options would not help, its just not mature enough and 
has many bugs. This is all on gigabit LAN connection.


RealVNC server, for a change, is full 30 or 60 fps, I can't even tell, 
but watching a video (just for experiment purposes) is possible where 
previously it was a slideshow mess.
I only ever used remote access to my home server, I never knew that 
nouveau-powered old Nvidia card, Xfce desktop, and the rest of the 
system, is actually so responsive! Everything is so smooth and well 
again, like I would sit in the front of it. Aside from cpu microcode, 
RealVNC Server is the only proprietary package on this machine. 
Compromise which I decided I had to do to regain control of my Debian 
server.

Thanks for for participating in this thread!

--
With kindest regards, Piotr.

⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org/
⠈⠳⣄



Re: dmesg ... XFS (sdb1): log I/O error ...

2023-02-25 Thread Albretch Mueller
On 2/25/23, to...@tuxteam.de  wrote:
> I can't make too much heads or tails of it, but I'd focus
> my suspicions on the USB part. USB ports (both sides),
> cable and especially the power source for the disk: does
> it have a separate source, or does it feed on the computer's
> USB?

 the drive has its own power cable and those kinds of failures have
actually happened in research rooms in libraries, which are rented by
VIPs for their own conferences ...; so, I doubt those electrical
outlets are also failing

On 2/25/23, David Christensen  wrote:
> It looks like your USB connection is unreliable.  I suggest removing the
> drive from its USB enclosure ...

 I am not using a USB enclosure per se, but a regular internal disk
externally attached using a USB/power interface. I will test the USB
cabling using a better looking, newer USB cable.

> Unless you have suitable test equipment

 If what you meant by "test equipment" is the kind they use in clean
rooms I cannot use those, but I would like to buy some hdd failure
detection rig to be sure the kinds of failures I encounter are not
physical and when physical I would like to be able to differentiate
between an actual failing drive and a failure somehow externally
induced (which you would test using a Debian live start and making
sure the BIOS hasn’t been corrupted).

 There is a lot of (at times partial and in ads) information out there
about the science and art of the use and care of computer memory (RAM,
SSD and hdd) and filesystems based on the profile of your applications
but a "Bible" kind of book about such matters is nowhere to be found.

 The laptop + external disk combination I am using right now has a
very pore transfer rate. I need at least three times that around
100MB/sec:

$ date; time sudo hdparm -tT /dev/sdc
Sat 25 Feb 2023 12:03:43 PM UTC

/dev/sdc:
 Timing cached reads:   29458 MB in  2.00 seconds = 14754.70 MB/sec
 Timing buffered disk reads: 112 MB in  3.04 seconds =  36.87 MB/sec

real0m14.048s
user0m0.274s
sys 0m1.862s
$

 I wonder about how much better transfer rates can you get in a DIY
way on Linux.

 Thank you,
 lbrtchx



Re: dmesg ... XFS (sdb1): log I/O error ...

2023-02-25 Thread David Christensen

On 2/24/23 22:24, Albretch Mueller wrote:

I have been "heavily" downloading data from archive.org which I
actually need for my own corpora research from two different places.
One offering me 1.5MiB/s and the other 0.5MiB/s download speed.

Is my hard drive actually failing? (smartctl tells me it doesn't seem
to be the case) or are they or my ISP somehow hacking into my computer
to "motivate" such apparent errors?

How could I check either case? I have read about XFS needing special
care, but I would like to have a better idea of the source of such
errors first.

this is what I see on the screen when the drive is disconnected
somehow, but I always reconnected by clicking on its sign using the
GUI just fine. It doesn't sound like a failing drive either.

What could possibly going on?

$ kf.solid.backends.udisks2: Error getting props:
"org.freedesktop.DBus.Error.UnknownMethod" "No such interface
“org.freedesktop.DBus.Properties” on object at path
/org/freedesktop/UDisks2/drives/..."
...
$ sudo systemctl --user --failed
Failed to connect to bus: $DBUS_SESSION_BUS_ADDRESS and
$XDG_RUNTIME_DIR not defined (consider using --machine=@.host
--user to connect to bus of other user)

$ sudo dmesg
...
[22565.451321] usb-storage 1-1:1.0: USB Mass Storage device detected
[22565.451467] scsi host3: usb-storage 1-1:1.0
[22566.457236] scsi 3:0:0:0: Direct-Access ST16000N M001G-2KK103
PQ: 0 ANSI: 5
[22566.457527] sd 3:0:0:0: Attached scsi generic sg2 type 0
[22566.457823] sd 3:0:0:0: [sdb] Very big device. Trying to use READ
CAPACITY(16).
[22566.457997] sd 3:0:0:0: [sdb] 31251759104 512-byte logical blocks:
(16.0 TB/14.6 TiB)
[22566.458365] sd 3:0:0:0: [sdb] Write Protect is off
[22566.458369] sd 3:0:0:0: [sdb] Mode Sense: 28 00 00 00
[22566.458640] sd 3:0:0:0: [sdb] No Caching mode page found
[22566.458644] sd 3:0:0:0: [sdb] Assuming drive cache: write through
[22566.538074]  sdb: sdb1 sdb2
[22566.583373] sd 3:0:0:0: [sdb] Attached SCSI disk
[22575.515358] XFS (sdb1): Mounting V5 Filesystem
[22575.742880] XFS (sdb1): Starting recovery (logdev: internal)
[22575.919197] XFS (sdb1): Ending recovery (logdev: internal)
[22575.932002] xfs filesystem being mounted at
/media/user/77d8da74-a690-481a-86d5-9beab5a8e842 supports timestamps
until 2038 (0x7fff)
[22582.368977] usb 1-1: USB disconnect, device number 21
[22582.380548] XFS (sdb1): Unmounting Filesystem
[22582.380594] XFS (sdb1): log I/O error -5
[22582.380603] XFS (sdb1): xfs_do_force_shutdown(0x2) called from line
1211 of file fs/xfs/xfs_log.c. Return address = 9651f22d
[22582.380604] XFS (sdb1): Log I/O Error Detected. Shutting down filesystem
[22582.380605] XFS (sdb1): Please unmount the filesystem and rectify
the problem(s)
[22582.380608] XFS (sdb1): Unable to update superblock counters.
Freespace may not be correct on next mount.
...

$ sudo blkid
...
/dev/sdb1: UUID="77d8da74-a690-481a-86d5-9beab5a8e842"
BLOCK_SIZE="512" TYPE="xfs" PARTLABEL="primary"
PARTUUID="f646c65f-bc46-4185-ba1e-583f157d6cb3"
...

$ sudo smartctl -l selftest /dev/sdb
smartctl 7.2 2020-12-30 r5155 [x86_64-linux-5.10.0-18-amd64] (local build)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF READ SMART DATA SECTION ===
SMART Self-test log structure revision number 1
Num  Test_DescriptionStatus  Remaining
LifeTime(hours)  LBA_of_first_error
# 1  Extended offlineInterrupted (host reset)  00%   601 -
# 2  Extended offlineCompleted without error   00%96 -
# 3  Conveyance offline  Completed without error   00%74 -
# 4  Short offline   Completed without error   00%74 -
# 5  Extended offlineAborted by host   90%73 -
# 6  Short offline   Completed without error   00% 0 -

$



It looks like your USB connection is unreliable.  I suggest removing the 
drive from its USB enclosure, installing the drive internally, 
connecting the drive to the system power supply, and connecting the 
drive to a or HBA SATA 6 Gbps port using a 6 Gbps cable.  Unless you 
have suitable test equipment, you may need to try multiple computers, 
SATA ports, HBA's, and/or SATA cables as you search for the right 
combination.



Once the drive has a reliable hardware connection, I would run a SMART 
long test 'smartctl -t long ...', generate a complete SMART report 
'smartctl --xall ...', check the filesystem fsck.xfs(8), and validate 
the integrity of the data.



David