Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] Cups + Avahi (Zeroconf): A frustrating experience
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Rexilion
Veteran
Veteran


Joined: 17 Mar 2009
Posts: 1044

PostPosted: Sun Jul 07, 2013 7:11 pm    Post subject: [solved] Cups + Avahi (Zeroconf): A frustrating experience Reply with quote

Hi,

I have been trying to get this combination to work. My setup is the following:

- Ubuntu server with a HP PSC 2355p printer attached. Driver installed, local printer works fine. Cups version 1.6.2-1ubuntu5. Avahi-daemon 0.6.31.
- Gentoo client trying to connect to the Ubuntu server. Cups 1.6.2-r5, Cups-filters (cups-browsed) 1.0.34-r1 and hplip 3.12.10a installed.

I already filled a bug for a silent dependency and seem to slowly progress. But this is where I really get stuck. I compiled cups without ssl, so here is what happens now:

error_log:
CUPS-Add-Modify-Printer client-error-not-possible: Bad device-uri scheme "ipps".

Cups-browsed tries to add the printer to CUPS with the secured IPP protocol (why?). Ubuntu broadcasts three different types of services for the same printer:

+ wlp5s8 IPv4 HP PSC 2350 series @ Delta _ipps._tcp local
+ wlp5s8 IPv4 HP PSC 2350 series @ Delta _printer._tcp local
+ wlp5s8 IPv4 HP PSC 2350 series @ Delta _ipp._tcp local

If I install cups with USE=ssl, it does not work either. The program feeds CUPS a link like this:

ipps://Delta.local:631/printers/HP_PSC_2350_series

Delta.local does not resolve. Does avahi need to do that??

What is going wrong? I'm using a barebone Gentoo installation with as few USE-flags as possible. What am I missing???
_________________
fs/super.c: "Self-destruct in 5 seconds. Have a nice day...\n"


Last edited by Rexilion on Tue Jul 09, 2013 6:08 am; edited 1 time in total
Back to top
View user's profile Send private message
Rexilion
Veteran
Veteran


Joined: 17 Mar 2009
Posts: 1044

PostPosted: Sun Jul 07, 2013 8:13 pm    Post subject: Reply with quote

I managed to make cups display broadcasted printers ('Browsing On'). I attached the below screenshot, this does not look pretty (look at the location!).

Will try again later with SSL enabled:

http://postimg.org/image/t6jv2q8pp/
_________________
fs/super.c: "Self-destruct in 5 seconds. Have a nice day...\n"
Back to top
View user's profile Send private message
Rexilion
Veteran
Veteran


Joined: 17 Mar 2009
Posts: 1044

PostPosted: Mon Jul 08, 2013 7:49 am    Post subject: Reply with quote

Ok, I managed to solve it. A few observations:

    * I needed to emerge sys-auth/nss-mdns in order to resolve these 'weird' <hostname>.local hostnames. I always thought it was /etc/hosts and DNS, and that's it. More on this at number 2.
    * nss-mdns requests you to manually modify /etc/nsswitch.conf . Every piece of software which needs to resolve's hostname's is affected by this file (gethostbyname()). I did not know that. But this is pretty nice to know actually.
    * cups-browsed seems to prefer to use the ipps over ipp and 'printer' (whatever that is.. http?)


It works like a peach now. That is what matters.
_________________
fs/super.c: "Self-destruct in 5 seconds. Have a nice day...\n"
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum