Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
132
rated 0 times [  132] [ 0]  / answers: 1 / hits: 134097  / 2 Years ago, tue, january 25, 2022, 2:48:29

In Raring, everytime I connect to the network, Cups installs all the printers in the network automatically, some more than once.



Furthermore, I connect a USB printer to the laptop every now and then. Even though the printer is configured already, another printer is added to the list.



I wish to disable this feature and allow only manual installation of printers. How do I go about it?


More From » 13.04

 Answers
4

I just discovered a, possibly optimal, solution to this mess. There is as service called "cups-browsed" which apparently is responsible for going out on the network and finding all the printers it can locate and install them for you (gee - thanks --NOT). Since this is an Upstart/Systemd job, you can stop the service with:



For Ubuntu versions 15.04+ (using systemd)



sudo systemctl stop cups-browsed


Followed by:



sudo systemctl disable cups-browsed


You may still start/stop the service manually if you wish with:



sudo systemctl start cups-browsed
sudo systemctl stop cups-browsed


For Ubuntu versions prior to 15.04 (using upstart)



sudo service cups-browsed stop


Even better, you can prevent the service from ever starting again by adding a simple text file to /etc/init that contains the single word manual. The file must be named
cups-browsed.override



So, just start up gedit with



gksudo gedit /etc/init/cups-browsed.override


put manual in the first and only line and save the file.



On the next Reboot, the service will not be re-started. However, you need not reboot if you've already stopped the service. Once you've placed this file in /etc/init, the service can only be started manually (if and when you need/want it) using:



sudo service cups-browsed start
-or-
sudo service cups-browsed stop`


I have tested this over one reboot. Printing still works fine and so far I am not getting several hundred printers installed anymore after the reboot. Just the ones I installed manually show up.


[#29459] Tuesday, January 25, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
tresein

Total Points: 197
Total Questions: 113
Total Answers: 112

Location: Hungary
Member since Wed, Nov 9, 2022
2 Years ago
;