From owner-freebsd-questions@FreeBSD.ORG Wed Feb 27 17:23:38 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 DAB15F20 for ; Wed, 27 Feb 2013 17:23:38 +0000 (UTC) (envelope-from trond@fagskolen.gjovik.no) Received: from smtp.fagskolen.gjovik.no (smtp.fagskolen.gjovik.no [IPv6:2001:700:1100:1:200:ff:fe00:b]) by mx1.freebsd.org (Postfix) with ESMTP id 691A089 for ; Wed, 27 Feb 2013 17:23:38 +0000 (UTC) Received: from mail.fig.ol.no (localhost [127.0.0.1]) by mail.fig.ol.no (8.14.5/8.14.5) with ESMTP id r1RHNXZQ078168 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 27 Feb 2013 18:23:33 +0100 (CET) (envelope-from trond@fagskolen.gjovik.no) Received: from localhost (trond@localhost) by mail.fig.ol.no (8.14.5/8.14.5/Submit) with ESMTP id r1RHNX2A078165; Wed, 27 Feb 2013 18:23:33 +0100 (CET) (envelope-from trond@fagskolen.gjovik.no) X-Authentication-Warning: mail.fig.ol.no: trond owned process doing -bs Date: Wed, 27 Feb 2013 18:23:33 +0100 (CET) From: =?ISO-8859-1?Q?Trond_Endrest=F8l?= Sender: Trond.Endrestol@fagskolen.gjovik.no 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) Organization: Fagskolen Innlandet OpenPGP: url=http://fig.ol.no/~trond/trond.key MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="2055831798-776023040-1361985813=:95994" X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on mail.fig.ol.no 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 17:23:38 -0000 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --2055831798-776023040-1361985813=:95994 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT On Wed, 27 Feb 2013 10:45-0600, 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. > > Thanks, > > > Antonio Does the name HP_Color_LaserJet_CP4520 resolve to its IP address? What about using a FQDN? Does the name exist in your local DNS zone or does the name exist in the local /etc/hosts file? Either make sure the name is resolvable, or specify the IP address in the /etc/printcap file. Your HP printer should be equipped with a JetDirect card, and you should be able to print a configuration page revealing the current settings. If the settings doesn't match your network, then you need to input the desired settings. I guess this would be possible through the use of the LCD display and the buttons nearby. Best of luck, Trond. -- +-------------------------------+------------------------------------+ | Vennlig hilsen, | Best regards, | | Trond Endrestøl, | Trond Endrestøl, | | IT-ansvarlig, | System administrator, | | Fagskolen Innlandet, | Gjøvik Technical College, Norway, | | tlf. mob. 952 62 567, | Cellular...: +47 952 62 567, | | sentralbord 61 14 54 00. | Switchboard: +47 61 14 54 00. | +-------------------------------+------------------------------------+ --2055831798-776023040-1361985813=:95994--