From owner-freebsd-questions@FreeBSD.ORG Wed Feb 27 18:47:55 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id CAD3123C for ; Wed, 27 Feb 2013 18:47:55 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id 8E8417A5 for ; Wed, 27 Feb 2013 18:47:55 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.6/8.14.6) with ESMTP id r1RIlmas055948; Wed, 27 Feb 2013 11:47:48 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.6/8.14.6/Submit) with ESMTP id r1RIlmM5055945; Wed, 27 Feb 2013 11:47:48 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Wed, 27 Feb 2013 11:47:48 -0700 (MST) From: Warren Block To: Antonio Olivares Subject: Re: connect to a network printer to be able to print In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (wonkity.com [127.0.0.1]); Wed, 27 Feb 2013 11:47:48 -0700 (MST) Cc: FreeBSD Questions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Feb 2013 18:47:55 -0000 On Wed, 27 Feb 2013, Antonio Olivares wrote: > Dear folks, > > I am trying to connect a network printer to be able to print to it. I > know the make/model of the printer: > HP Color LaserJet CP4520 > and the ip address it is on > 10.155.135.3 > > I want to use lpd/lpr to be able to print as is specified in > http://www.wonkity.com/~wblock/docs/html/lpdprinting.html > > I read the instructions on the handbook, but it does not specify how > to use the ip address or specify it to print to it. How can I set > this printer up? > I have setup /etc/printcap with the following: > > lp:\ > :lp=:\ > :sh:\ > :mx#0:\ > :rm=HP_Color_LaserJet_CP4520:\ > :rp=raw:\ > :sd=/var/spool/lpd/lp:\ > :lf=/var/log/lpd-errs: > > but there is no ip adress where the communication can exist. How can > I do this? Do I setup the printer with CUPS? or can it be done with > lpr which is what I use with a local HP 1200 printer, but this one is > a network printer. If your local DNS does not have a name for the printer, define it in /etc/hosts: 10.155.135.3 HP_Color_LaserJet_CP4520