You are not logged in.

#1 2015-08-14 21:52:18

marko2010
Member
Registered: 2010-04-17
Posts: 70

Can't figure out how to hide network printers in CUPS

I have just installed CUPS on a friend's Arch box who connects to the internet using the free wifi provided by his apartment complex. Even though I installed his printer as a USB connected printer and did not even tell CUPS to look for network printers -- many of his neighbours printers show up in the print dialog box anyway (they apparently are all on the same LAN). By "print dialog box" I am referring to the box that pops up when you press Ctl + p or go to File > Print

The extra printers showing creates a lot  of visual clutter every time he does a print job, and also raises the risk that he could possibly send a print job to a neighbours printer.

Here are the fixes I have already tried so far. All have failed:

  • setting browsing Off in /etc/cups/cupsd.conf and restarting cups

  • setting BrowseLocalProtocols none in /etc/cups/cupsd.conf and restarting cups

  • stopping the avalhi-daemon

He is using an HP printer so I have installed hplip too, but have not needed to run their configuration script to install the printer [ # hp-setup -i ]

Offline

#2 2015-08-14 22:28:10

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,721

Re: Can't figure out how to hide network printers in CUPS

marko2010 wrote:

The extra printers showing creates a lot  of visual clutter every time he does a print job, and also raises the risk that he could possibly send a print job to a neighbours printer.

This could be fun...  Late at night, your friend being kept awake by rancorous amore, send them a little note....   }:-)

More importantly, is your friend's printer visible?  You don't want the neighbors returning the favor.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Online

#3 2015-08-15 16:06:00

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,557

Re: Can't figure out how to hide network printers in CUPS

Not a solution, but did you designate his usb printer as Server Default ?

That would atleast reduce the change he chooses another printer.
-------------------------------

Something you could try :

login as root
Stop cups service
edit /etc/cups/printers.conf (copy to a safe location first) and remove all printers EXCEPT his usb printer.
start cups
check as user , you should only see the usb printer now.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

Board footer

Powered by FluxBB