LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-30-2018, 08:49 PM   #1
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,201

Rep: Reputation: 50
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
 
Old 11-30-2018, 09:07 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 14,272
Blog Entries: 24

Rep: Reputation: 3895Reputation: 3895Reputation: 3895Reputation: 3895Reputation: 3895Reputation: 3895Reputation: 3895Reputation: 3895Reputation: 3895Reputation: 3895Reputation: 3895
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.
 
Old 11-30-2018, 09:33 PM   #3
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,201

Original Poster
Rep: Reputation: 50
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.
 
Old 11-30-2018, 09:49 PM   #4
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 14,272
Blog Entries: 24

Rep: Reputation: 3895Reputation: 3895Reputation: 3895Reputation: 3895Reputation: 3895Reputation: 3895Reputation: 3895Reputation: 3895Reputation: 3895Reputation: 3895Reputation: 3895
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.
 
Old 12-01-2018, 06:10 PM   #5
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 5,522

Rep: Reputation: 3267Reputation: 3267Reputation: 3267Reputation: 3267Reputation: 3267Reputation: 3267Reputation: 3267Reputation: 3267Reputation: 3267Reputation: 3267Reputation: 3267
Quote:
Originally Posted by dracolich View Post
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
 
Old 12-02-2018, 08:31 AM   #6
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,201

Original Poster
Rep: Reputation: 50
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Fedora 20 cups/avahi/firewall problem boazk Fedora 3 11-07-2014 07:52 PM
CUPS/AVAHI - what did I miss? Pedulla Linux - Server 1 02-22-2013 02:29 AM
Can't get avahi to install (trying to get Netatalk and Avahi running) MarcusWebb1966 Gentoo 4 07-28-2011 04:55 AM
Canon S300 and GPL drivers from canon.jp flashf1re Linux - Hardware 1 02-27-2005 08:57 AM
Canon Drivers available from Canon JayCnrs Linux - Hardware 2 08-23-2003 04:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration