Results 1 to 5 of 5

Thread: Remove printer from the list permenantly

  1. #1
    Join Date
    Jan 2014
    Beans
    6

    Remove printer from the list permenantly

    I want to remove some printers which I see in system settings->printers section. I edited the file /etc/cups/printer.conf and it removes it temporarily, but when I reboot the machine it seems that it adds the printers automatically from the network. How can I avoid this/ remove them permanently?
    I tried with sudo lpadmin -x as well.
    Last edited by Rgc183; May 1st, 2014 at 07:23 PM.

  2. #2
    Join Date
    Dec 2009
    Beans
    5,339

    Re: Remove printer from the list permenantly

    The ability of cups to detect and create a local print queues of remote printers is made possible by a utility called cups-browsed.

    If you disable the service you should see all the remote printers detected this way disappear - after a while:
    Code:
    sudo service cups-browsed stop
    To make it permanent one way is to rename the service config file so it won't run:
    Code:
    sudo mv /etc/init/cups-browsed.conf /etc/init/cups-browsed.conf.stop

  3. #3
    Join Date
    Jan 2014
    Beans
    6

    Re: Remove printer from the list permenantly

    But when I disable the browsing off, it wont search for any of the printer and it wont detect the other printers as well. I have 5-6 printers on the network of which I need only specific printers which I can select. I dont want others in my list.

  4. #4
    Join Date
    Dec 2009
    Beans
    5,339

    Re: Remove printer from the list permenantly

    You are correct. It's an all or nothing affair.

    But cups-browsed was designed to do the searching and configuration of these remote printers automatically by itself.

    If you disable the service you can still search for printers using dnssd, ipp, smb, etc .. but you will have to do it through the "Printers" utility.

  5. #5
    Join Date
    Dec 2009
    Beans
    5,339

    Re: Remove printer from the list permenantly

    I'm shutting down for the day so if you are still having an issue with this I have a suggestion.

    Start the service up again:
    Code:
    sudo service cups-browsed start
    This is assuming you haven't renamed it yet.

    Then confirm that all these printers ar back in the Printers utility.

    Now run the following command:
    Code:
    sudo cat /etc/cups/printers.conf | grep DeviceURI
    You should get a list of how cups-browsed originally found your printers and with what protocol.

    Now you can stop the service and have a guide to how to set up only the one's you want using the printer utility.
    Last edited by Morbius1; May 1st, 2014 at 09:34 PM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •