I don’t know when Kubuntu started automatically discovering printers on networks and then adding them to my list of printers, but it is a problematic feature in certain environments – like universities (where I work).
I set up my home printer on my laptop easy enough. But, whenever I open my laptop and connect to my work network, this feature searches for printers on the network and then adds them to my list of printers. I now have hundreds of printers that show up in my printers dialogue:
I didn’t manually add any of those printers. They were added automatically and are causing problems. First, it’s a pain in the ass to find the printer I want. Second, when I shutdown my computer, the OS has to run through all of those printers and make sure they are disconnected, which makes the OS hang for a couple of minutes every time I want to close down.
This is obviously a great idea in principle, but problematic in this environment.
So, how to turn this off. I found a solution. In a terminal, edit the following file:
sudo nano /etc/cups/cups-browsed.conf
In that file, you should just have to uncomment the following line (remove the hashtag ‘#’):
So, from this:
Afterward, try running the commands:
service cups-browsed restart
service cups restart
After making this change, my computer no longer automatically adds shared printers on my network. Hooray!
Unfortunately, making this edit did not remove all the shared printers it had already installed. I still had to remove them all manually, which was annoying. But at least they won’t be reinstalled automatically.
9,448 total views, 5 views today
4 thoughts on “Linux/Kubuntu – Disable Network Printer Auto Discovery”
simple onliner for removing all printers:
for p in `lpstat -a | cut -d’ ‘ -f1` ; do lpadmin -x $p ; done
Thanks for the info, I’m experiencing the same problem on my home pc: my printer (mark the missing plural there!) keeps being discovered over and over again. This sucks! 🙁
I followed your solution, but that didn’t work. I uninstalled cups-browsed completely, but that did not work either. Needless to say that there’s no option in system settings to shut this thing down. What have they done to the system, that keeps annoying the user that much?
Do you have any further idea how to get rid of this pain? After all, nearly 15 months have passed since you posted your solution.
Not sure why my solution didn’t work. I’m now using Kubuntu 20.04 on all my devices and I haven’t had the same problem. What OS are you using?
Sorry! No need for #!/bin/bash. The corrected two-liners below:
if [ ! -f $F.org ]; then mv $F $F.org; echo -e “$(sed -e’/^#/d;/^$/d;’ $F.org)\nBrowseProtocols none” >$F; fi