Thursday, January 27, 2011

Avahi & cups on FreeBSD

I set up cups and avahi on FreeBSD 8.0. However cups printer does not shows in avahi-browse -a on client (other things like ssh server are shown). Additionally if I try to run avahi-browse -a on server it does not succeed:

# avahi-browse -a
Failed to create client object: Daemon not running

CUPS is built with avahi support. Dbus is running. Cups have sharing enabled in web interface.

  • For second problem, add avahi daemon to autostart and run it:

    PH34R# echo "avahi_daemon_enable=YES" >> /etc/rc.conf
    PH34R# /usr/local/etc/rc.d/avahi-daemon start
    Starting avahi-daemon.
    PH34R# avahi-browse -a
    +   bge0 IPv4 PH34R                      _workstation._tcp    local
    ....snip....
    
    Maciej Piechotka : The avahi daemon is enabled & is running (verified by `pgrep` & appearance on Linux)
    SaveTheRbtz : Is there a firewall on server?
    Maciej Piechotka : Ups. Sorry - I haven't got message. Yes but it was tested without.
    Maciej Piechotka : Hmm. `avahi-browse -a` started working after upgrade to 8.1

0 comments:

Post a Comment