[1666714 views]

[]

Odi's astoundingly incomplete notes

New entries | Code

cups-1.6 printer sharing

Gentoo has updated CUPS to version 1.6. If you run a print server you must configure zeroconf correctly, or your clients won't see any remote printers:

/etc/portage/package.use:
net-print/cups dbus zeroconf
net-dns/avahi dbus mdnsresponder-compat
And allow DNS-SD through iptables:
[0:0] -A INPUT -p udp -m udp --dport 5353 -j ACCEPT
Also configure the CUPS browsing protocol:
/etc/cups/cups-browsed.conf:
BrowseRemoteProtocols none
BrowseLocalProtocols DNSSD,CUPS
I think CUPS tells avahi about registered printers through D-Bus. Then clients discover registered printers via DNS-SD queries.

The clients need working MDNS too:
emerge -av nss-mdns
and change /etc/nsswitch.conf:
hosts:       files mdns4_minimal [NOTFOUND=return] dns mdns4

and should run cups-browsed with this config:
/etc/cups/cups-browsed.conf:
BrowseRemoteProtocols DNSSD,CUPS
BrowseLocalProtocols none



posted on 2013-07-01 18:27 UTC in Code | 0 comments | permalink