LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Canon MG3600 with CUPS 2.1.4 and Avahi (https://www.linuxquestions.org/questions/slackware-14/canon-mg3600-with-cups-2-1-4-and-avahi-4175643441/)

dracolich 11-30-2018 07:49 PM

Canon MG3600 with CUPS 2.1.4 and Avahi
 
Greetings, LQ, I hope someone can help. I've spent much of today setting up a new Canon Pixma MG3620. I've connected it to my Netgear DGN2200 router using WPS and it is listed in the attached devices, and I set it to have a reserved IP address. WPS is the only way this printer can connect wirelessly as it has no control panel or web interface.

In Win7 I've installed it successfully using the install CD and printed a test page. In Raspbian Stretch I've installed it successfully in CUPS 2.2.1 and printed a test page. In cups it showed up in discovered network printers and configured with a dnssd:// uri

In Slackware 14.2 I am not getting it installed so easily. First, it was not being discovered and I found that the stock cups was built with avahi and dnssd disabled. So I downloaded the source files from a Slackware 14.2 mirror and recompiled cups with those two options enabled. Then I got libdaemon, avahi and mdns from SlackBuilds and installed those, including the instructions for creating the avahi group and user.

Now the printer is discovered by cups and is installed with the same dnssd:// uri, but when I send a test page there is an error that it is unable to locate the printer. In /var/log/cups/error_log there is only a line that the print job was started - no error information.

The discovered printer uri is this:
dnssd://Canon%20MG3600%20series._ipp._tcp.local/?uuid=00000000-0000-1000-8000-9C32CE919B80

and the error message in the cups web interface is this:
"Unable to locate printer "919B80000000.local"."

Any ideas will be appreciated

frankbell 11-30-2018 08:07 PM

I could not find that particular printer at openprinting.org, but I did find a listing for the MG3650. Maybe it will help you in the right direction. http://www.openprinting.org/printer/...n-PIXMA_MG3650

I have no personal experience with Canon printers.

dracolich 11-30-2018 08:33 PM

Thanks for the quick reply. That page tells me that I am using the recommended gutenprint driver. The driver was already in the list in cups.

This is my first Canon printer. My previous have always been HP.

frankbell 11-30-2018 08:49 PM

You're welcome. I just wish I had something more specific.

Good luck with the Canon. Judging from what I've read here, Canon's Linux support can be kind of hit-or-miss.

When you get it working, report back. You may help someone else.

bassmadrigal 12-01-2018 05:10 PM

Quote:

Originally Posted by dracolich (Post 5932092)
In Slackware 14.2 I am not getting it installed so easily. First, it was not being discovered and I found that the stock cups was built with avahi and dnssd disabled. So I downloaded the source files from a Slackware 14.2 mirror and recompiled cups with those two options enabled. Then I got libdaemon, avahi and mdns from SlackBuilds and installed those, including the instructions for creating the avahi group and user.

If you did it in the order you listed, cups may still not be configured properly. Typically for programs to be compiled against dependencies, those dependencies need to be installed first. You said you rebuilt cups first, then installed libdaemon, avahi, and mdns. If that's the case, cups may still be missing those dependencies, since they typically need to be installed before you can add support.

As for avahi, have you started the avahi daemon? This is covered in the README.SBo file for avahi.

Code:

ow start the Avahi daemon:

        # /etc/rc.d/rc.avahidaemon start

Optionally start the unicast DNS configuration daemon:

        # /etc/rc.d/rc.avahidnsconfd start


You will need to start avahi at boot by adding the following
to your /etc/rc.d/rc.local and make them executable:

        # Start avahidaemon
        if [ -x /etc/rc.d/rc.avahidaemon ]; then
          /etc/rc.d/rc.avahidaemon start
        fi
        # Start avahidnsconfd
        if [ -x /etc/rc.d/rc.avahidnsconfd ]; then
          /etc/rc.d/rc.avahidnsconfd start
        fi


dracolich 12-02-2018 07:31 AM

Thank you for the replies. I just finished getting it working. bassmadrigal, you make a good point about dependencies. Fortunately, in this case, it did not stop cups from enabling the features. The thing that was missing was avahi's hostname resolution, which I found at https://wiki.archlinux.org/index.php...ame_resolution

So the steps to get it working on Slackware 14.2 go like this:
1. install libdaemon, then, avahi, then nss-mdns; all can be found on SlackBuilds.org
2. download the CUPS 2.1.4 source files from any 14.2 mirror
3. edit cups.SlackBuild to change --disable-avahi and --disable-dnssd to --enable-avahi and --enable-dnssd
4. compile the new cups package and install it with upgradepkg --reinstall
5. edit the file /etc/nsswitch.conf and change the hosts line to include mdns_minimal [NOTFOUND=return] before resolve and dns
6. At this point the CUPS web interface should discover your printer and a test page should be successful

Perhaps this procedure will work for other printers that use Avahi/Bonjour for wireless connectivity. This seems like something that should be included in the next Slackware release if it isn't already in -current.

Cheers, LQ


All times are GMT -5. The time now is 08:41 PM.