How to remove autodiscovery of printers in KDE 23.1?

Message
Author
User avatar
swarfendor437
Posts: 30
Joined: Fri Sep 16, 2022 5:23 pm

How to remove autodiscovery of printers in KDE 23.1?

#1 Post by swarfendor437 »

Hi,

I made a fatal mistake of screwing up my MX-Linux 23.1 KDE install by attempting to install systemctl and forgot that this is a systemd command!
Why was I trying to do this? I was attempting to stop autodiscovery of printer(s) as what happens with most if not all GNU/Linux distributions these days is that the Linux kernel recognises what printer is attached and in the driver description, names it as a 'driverless printer' - this means it is not going to print without the Linux driver for any given brand of printer, from the manufacturer's support pages. I found an old thread about how to disable autodiscovery, starting off by editing avahi.conf but then it goes on to state about systemctrl which is a systemd element. So how do I stop this in MX-Linux 23.1 KDE which uses SysVinit?

User avatar
fehlix
Developer
Posts: 12674
Joined: Wed Apr 11, 2018 5:09 pm

Re: How to remove autodiscovery of printers in KDE 23.1?

#2 Post by fehlix »

swarfendor437 wrote: Mon Dec 18, 2023 4:21 pm Hi,

I made a fatal mistake of screwing up my MX-Linux 23.1 KDE install by attempting to install systemctl and forgot that this is a systemd command!
Why was I trying to do this? I was attempting to stop autodiscovery of printer(s) as what happens with most if not all GNU/Linux distributions these days is that the Linux kernel recognises what printer is attached and in the driver description, names it as a 'driverless printer' - this means it is not going to print without the Linux driver for any given brand of printer, from the manufacturer's support pages. I found an old thread about how to disable autodiscovery, starting off by editing avahi.conf but then it goes on to state about systemctrl which is a systemd element. So how do I stop this in MX-Linux 23.1 KDE which uses SysVinit?
On sysvinit one would stop the auto-discovery service like this:

Code: Select all

sudo service avahi-daemon stop
and disable like this:

Code: Select all

sudo update-rc.d  avahi-daemon remove
It may help to discourage cups to query the avaihi-disovered printer about their potential capabilities and not create a cups-printer entry for those discovered printer in cups.

User avatar
m_pav
Developer
Posts: 1770
Joined: Sun Aug 06, 2006 3:02 pm

Re: How to remove autodiscovery of printers in KDE 23.1?

#3 Post by m_pav »

Use the new MX service manager to first stop the ahavi daemon then to disable it.

I usually set up my network connected printers using the IPP (first choice) or DNSSD protocol.
As a FYI, digging deeper into the Windows stack, their default method for connecting to networked connected printers is IPP.
Mike P

Regd Linux User #472293
(Daily) Lenovo T560, i7-6600U, 16GB, 2.0TB SSD, MX_ahs
(ManCave) AMD Ryzen 5 5600G, 32G, 8TB mixed, MX_ahs
(Spare)2017 Macbook Air 7,2, 8GB, 256GB SSD, MX_ahs

User avatar
l0dr3
Posts: 463
Joined: Wed Jun 28, 2023 11:06 am

Re: How to remove autodiscovery of printers in KDE 23.1?

#4 Post by l0dr3 »

In cat /etc/cups/cups-browsed.conf
# All configuration options described here can also be supplied on the
# command line of cups-browsed via the "-o" option. In case of
# contradicting settings the setting defined in the configuration file
# will get used.

# Unknown directives are ignored, also unknown values.
:
# Which protocols will we use to discover printers on the network?
# Can use DNSSD and/or CUPS and/or LDAP, or 'none' for neither.

# BrowseRemoteProtocols dnssd cups
BrowseRemoteProtocols none
:
or: pkill / disable 'cups-browsed' service overall ?

HTH l0dr3

Post Reply

Return to “Hardware /Configuration”