From owner-freebsd-questions@FreeBSD.ORG Sun Dec 4 17:39:57 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7867B16A41F for ; Sun, 4 Dec 2005 17:39:57 +0000 (GMT) (envelope-from chowse@charter.net) Received: from mxsf39.cluster1.charter.net (mxsf39.cluster1.charter.net [209.225.28.166]) by mx1.FreeBSD.org (Postfix) with ESMTP id CAD7843D88 for ; Sun, 4 Dec 2005 17:39:41 +0000 (GMT) (envelope-from chowse@charter.net) Received: from mxip09a.cluster1.charter.net (mxip09a.cluster1.charter.net [209.225.28.139]) by mxsf39.cluster1.charter.net (8.12.11/8.12.11) with ESMTP id jB4HdeG1024248 for ; Sun, 4 Dec 2005 12:39:40 -0500 Received: from 24-176-115-13.dhcp.jcsn.tn.charter.com (HELO [192.168.254.3]) ([24.176.115.13]) by mxip09a.cluster1.charter.net with ESMTP; 04 Dec 2005 12:39:39 -0500 X-IronPort-AV: i="3.99,212,1131339600"; d="scan'208"; a="1677587414:sNHT16993766" User-Agent: Microsoft-Entourage/11.2.1.051004 Date: Sun, 04 Dec 2005 11:39:39 -0600 From: Charles Howse To: questions Message-ID: Thread-Topic: Setting up a print-server Thread-Index: AcX4+bNh8d/5NGTsEdquxgARJH5tYg== In-Reply-To: <20051204081551.S87924@wonkity.com> Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit Subject: Re: Setting up a print-server X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Dec 2005 17:39:57 -0000 > On Sat, 3 Dec 2005, Charles Howse wrote: > >>> On Sat, 3 Dec 2005, Charles Howse wrote: >>> >>>> I now have the both printers set up and can print to them from FreeBSD. >>>> Problem is, I can't print to them from the Mac. >>>> >>>> The error is always, "Printer HP1100 is busy, trying again in 30 seconds." >>>> I take that to mean the server isn't responding. >>>> >>>> Is there a command I can run from the Mac that will tell me if the FreeBSD >>>> box is accepting connections to the printers? > > lpc status all > > ...if the Mac has the lpc command. That returns no output. >>>> Might there be something I haven't enabled on FreeBSD to allow me to print >>>> across the network? >>> >>> Do you have the Mac's hostname or IP address in /etc/hosts.lpd? >> >> Warren, >> I do now, no joy. > > Okay, how about an entry for the Mac in /etc/hosts? lpd wants a > resovable hostname. Yep, that's been there since install. >> I've told lpd on the FreeBSD box to use "-W" (accept connections on any >> port), cause the Mac is trying to connect on port 631. > > Which implies that cups is still trying to use IPP, not lpd. The printer(s) are listening on port 515: FreeBSD$ netstat -an Active Internet connections (including servers) Proto Recv-Q Send-Q Local Address Foreign Address (state) tcp4 0 48 192.168.254.4.22 192.168.254.3.50213 ESTABLISHED tcp4 0 0 *.22 *.* LISTEN tcp46 0 0 *.22 *.* LISTEN tcp4 0 0 *.515 *.* LISTEN tcp6 0 0 *.515 *.* LISTEN ... FreeBSD$ netstat -a Active Internet connections (including servers) Proto Recv-Q Send-Q Local Address Foreign Address (state) tcp4 0 48 moe.ssh larry.50213 ESTABLISHED tcp4 0 0 *.ssh *.* LISTEN tcp46 0 0 *.ssh *.* LISTEN tcp4 0 0 *.printer *.* LISTEN tcp6 0 0 *.printer *.* LISTEN ... Here's the printcap from FreeBSD: # APS1_BEGIN:printer1 # - don't delete start label for apsfilter printer1 # - no other printer defines between BEGIN and END LABEL HP1100|ljet4;r=300x300;q=medium;c=full;p=letter;m=auto:\ :lp=/dev/lpt0:\ :if=/usr/local/etc/apsfilter/basedir/bin/apsfilter:\ :sd=/var/spool/lpd/HP1100:\ :lf=/var/spool/lpd/HP1100/log:\ :af=/var/spool/lpd/HP1100/acct:\ :mx#0:\ :sh: # APS1_END - don't delete this Note that the only entry in /var/spool/lpd/HP1100/log is: apsfilter warning: unknown option 'moe.local' moe.local is my FreeBSD machine's name.