LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 02-22-2019, 05:58 PM   #1
Poprocks
Member
 
Registered: Sep 2003
Location: Toronto, Canada
Distribution: Slackware
Posts: 522

Rep: Reputation: 279Reputation: 279Reputation: 279
CUPS printer discovery without avahi or samba


I seem to remember years ago (though I may be misremembering), before avahi even existed, CUPS may have had a feature whereby printers connected to machines on the LAN that were also driven by a CUPS server would be discoverable on the LAN.

Printers which themselves are able to connect to the LAN seem to be discoverable without avahi or samba. But I tried several times today to get CUPS on one machine on the LAN (running Slackware Current) to discover a printer connected to another machine on the network (also running Slackware Current) without installing avahi and rebuilding CUPS with avahi support.

I turned on printer sharing using system-config-printer which modified /etc/cups/cupsd.conf accordingly.

I tried running rc.cups-browsed on the client (and the server), and tried modifying /etc/cups/cups-browsed.conf to add a BrowsePoll line with an IP range that would cover the LAN. I even tried specifying the actual IP address of the CUPS server I was trying for the client to discover, and nothing worked.

If I go ahead and just manually punch in the IP address of the server into my printer configurator, it does connect and print to it successfully. But that is not ideal and I would prefer for printers on the network which are also driven by CUPS to be discoverable.

My cups logs complain a lot about not being able to locate the 'ippfind' utility. I do not know if that is a real problem or just a red herring. Most of my googling has led me to believe that this error is largely superfluous.

I suppose I could try to rebuild cups and modify the slackbuild to include the ippfind utility.

But other than that, am I missing something obvious here?
 
Old 02-22-2019, 06:49 PM   #2
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 5,767

Rep: Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765
CUPS has never required SAMBA. SAMBA was only required for CUPS to support Windows printers and Windows clients.

I do not recall using auto-discovery for printers often. I always hard-coded the address of servers and printers, and manually locked in the CUPS settings for those. Workstations can float, but any kind of server should not float ((in any of MY networks anyway)).

Have you checked the CUPS documentation for clues about the support there for what you want to accomplish?
 
Old 02-24-2019, 05:46 PM   #3
bamunds
Member
 
Registered: Sep 2013
Location: Mounds View MN
Distribution: Slackware64-14.2-Multilib XDM/FVWM3
Posts: 780

Rep: Reputation: 260Reputation: 260Reputation: 260
I don't mean to be silly or disrespectful, but I'm assuming you restarted CUPS? You just didn't mention that after changing the conf files that you actually restarted CUPS? Sorry to nit-pic. Cheers.
 
Old 02-25-2019, 11:28 AM   #4
Poprocks
Member
 
Registered: Sep 2003
Location: Toronto, Canada
Distribution: Slackware
Posts: 522

Original Poster
Rep: Reputation: 279Reputation: 279Reputation: 279
Not a problem. Yes I did restart cups on the client and server side.

I have read through the docs and it seems Avahi is required at this juncture for native discovery. It may well be that in the past it was not, or that I'm just misremembering.

Anyway, for now I'll just decide whether to run SAMBA on the server side since I'm quite familiar with that, or ensure the server on the LAN gets a persistent IP by the router's DNS server.
 
Old 02-25-2019, 03:01 PM   #5
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,842

Rep: Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148
Quote:
I seem to remember years ago (though I may be misremembering), before avahi even existed, CUPS may have had a feature whereby printers connected to machines on the LAN that were also driven by a CUPS server would be discoverable on the LAN.
Yes, starting with CUPS 1.6 there was a significant move to drop the UDP-based CUPS Browsing feature (although cups-browsed can still be used to provide this legacy browsing if desired). Instead, DNS-SD is used as the primary mechanism method for "automatic" network printer and CUPS server discovery. CUPS still includes the legacy snmp backend (using SNMPv1) for network printer discovery as well. For those using HPLIP, the hp-setup utility uses one of two methods to find printers on the network - Service Location Protocol (SLP) and Bonjour for HP printer discovery.
 
1 members found this post helpful.
  


Reply



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] Canon MG3600 with CUPS 2.1.4 and Avahi dracolich Slackware 5 12-02-2018 07:31 AM
[SOLVED] Fedora 20 cups/avahi/firewall problem boazk Fedora 3 11-07-2014 06:52 PM
CUPS/AVAHI - what did I miss? Pedulla Linux - Server 1 02-22-2013 01:29 AM
Can't get avahi to install (trying to get Netatalk and Avahi running) MarcusWebb1966 Gentoo 4 07-28-2011 03:55 AM
Help printer from a samba shared printer from linux (using cups) epod69 Linux - Networking 3 12-04-2005 10:44 PM

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

All times are GMT -5. The time now is 10:23 PM.

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
Open Source Consulting | Domain Registration