From owner-freebsd-questions@FreeBSD.ORG Thu Jan 5 03:25:47 2006 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 B07D516A41F for ; Thu, 5 Jan 2006 03:25:47 +0000 (GMT) (envelope-from malcolm.kay@internode.on.net) Received: from smtp1.adl2.internode.on.net (smtp1.adl2.internode.on.net [203.16.214.181]) by mx1.FreeBSD.org (Postfix) with ESMTP id 09F0843D62 for ; Thu, 5 Jan 2006 03:25:46 +0000 (GMT) (envelope-from malcolm.kay@internode.on.net) Received: from alpha.home (ppp224-76.lns2.adl4.internode.on.net [203.122.224.76]) by smtp1.adl2.internode.on.net (8.13.5/8.12.6) with ESMTP id k053Pi5G092945; Thu, 5 Jan 2006 13:55:45 +1030 (CST) (envelope-from malcolm.kay@internode.on.net) From: Malcolm Kay Organization: at home To: freebsd-questions@freebsd.org Date: Thu, 5 Jan 2006 13:55:39 +1030 User-Agent: KMail/1.8 References: <1136403342.1062.37.camel@localhost> In-Reply-To: <1136403342.1062.37.camel@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200601051355.39468.malcolm.kay@internode.on.net> Cc: Tim Greening-Jackson Subject: Re: Printing from FreeBSD 6.0 client to Fedora Core 4 server via CUPS/LPD 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: Thu, 05 Jan 2006 03:25:47 -0000 On Thu, 5 Jan 2006 06:05 am, Tim Greening-Jackson wrote: > Hello there. I hope someone can help me with what I am sure is > an elementary problem. I am currently investigating FreeBSD > with a view to using it on my server in place of Fedora Core > 4. Before I move the server from Fedora to FreeBSD, I want to > "play" with FreeBSD to make sure it can do everything I want > and there will be no surprises when I move my server (and > hence my business) across. > > I seem to be beating my head against a brick wall attempting > to get network-based printing operating. The setup I have is > as follows. I have a internet gateway/firewall and > smb/nfs/print/DHCP server called "bifrost". It is connected > via Ethernet to a workstation called "tordella". > > Details of the two nodes are: > > Linux bifrost.shellike.com 2.6.11-1.1369_FC4 #1 > Thu Jun 2 22:55:56 EDT 2005 i686 athlon i386 GNU/Linux > > FreeBSD tordella 6.0-RELEASE FreeBSD 6.0-RELEASE #0: > Wed Dec 14 13:04:41 GMT 2005 > root@tordella:/usr/src/sys/i386/compile/TORSNDKRNL i386 > > (Note that the TORSNDKRNL kernel is the 6.0 generic one with > support for my sound-card compiled in). > > Connected to bifrost is an HPLJ1200 printer (lp0). If tordella > runs Windows 2000 it can use the printer via SMB, as can other > Microsoft systems (e.g. my laptop) > > So: > > +-------------+ +-------------+ +-------------+ > > | tordella | | bifrost | | HPLP 1200 | > | FreeBSD 6.0 | | Fedora 4 +====+ (lp0) | > | 10.0.0.10 | | 10.0.0.1 | | | > > +------+------+ +------+------+ +-------------+ > > > +======+=================+==============================+ > 100BaseT > > Bifrost runs CUPS as its Unix printing service. Both the > FreeBSd handbook and 'The Complete FreeBSD' suggest that LPD > will be used on tordella. As far as I can tell the two should > be compatible. But... when I attempt to print I get this on > tordella: > > tordella# ls -l | lpr > tordella# lpq > tordella: Warning: lp is down: waiting for bifrost to come > up tordella: Warning: no daemon present > Rank Owner Job Files > Total Size > 1st root 7 (standard input) > 1279 bytes > > and on bifrost I get: > > [tim@bifrost ~]$ lpq > HPLJ1200 is ready > no entries > > bifrost's /etc/printcap is: > > HPLJ1200|HPLJ1200:rm=bifrost:rp=HPLJ1200: > > (with comments removed) and tordella's is: > > lp|HPLJ1200|LaserJet 1200 on bifrost:\ > > :sh:\ > :rm=bifrost:\ Possibly need :rp=HPLJ1200: \ in here > :sd=/var/spool/output/bifrost:\ > :lf=/var/log/lpd-errs:\ > :if=/usr/local/libexec/cups/filter/texttops: > and of course you have the lpd daemon started? > On bifrost, the relevant lines of /etc/cups/cupsd.conf are: > > > Order Allow,Deny > Allow From All > Allow from tordella > Allow From 127.0.0.1 > AuthType None > Allow from All > Allow from tordella > > # Lines below are automatically generated - DO NOT EDIT > Browsing On > BrowseProtocols all > BrowseOrder Allow,Deny > BrowseAllow from tordella > BrowseAllow from @LOCAL > Listen 127.0.0.1:631 > Listen tordella > > Having done a man cups-lpd, I have also added the following > to /etc/xinet.d on bifrost xinetd.conf on BSD but might be xinet.d on FC4 > > service printer > { > socket_type = stream > protocol = tcp > wait = no > user = lp > group = sys > passenv = > server = /usr/lib/cups/daemon/cups-lpd > server_args = -o > document-format=application/octet-stream } > Of course you have the xinetd daemon started? Malcolm