From owner-freebsd-questions@FreeBSD.ORG Wed Feb 27 17:44:52 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 7508D44A for ; Wed, 27 Feb 2013 17:44:52 +0000 (UTC) (envelope-from olivares14031@gmail.com) Received: from mail-oa0-f51.google.com (mail-oa0-f51.google.com [209.85.219.51]) by mx1.freebsd.org (Postfix) with ESMTP id 32579196 for ; Wed, 27 Feb 2013 17:44:52 +0000 (UTC) Received: by mail-oa0-f51.google.com with SMTP id h2so1752434oag.10 for ; Wed, 27 Feb 2013 09:44:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type:content-transfer-encoding; bh=Al2sTzz1QfnH+3SLwHF89kbfdN4JN65t+SX6Yx3Vix4=; b=l/SveTRQognrW1Kz/mkqbT08FtWBG3e4Hoz99h+TYuTxfAwApzIIOF59rWeYQ5CpBi joryxu/a4zmAOrdXQfvSi2tGbwpJQ7L6tCU2VqGAJv/QTWpSTYihxplnBlJbplXr8+1w enYjFtbH0hYNCRpmu2tlS8KrS0icQb6896Edkvty4eFXQ6XcpyKH7XSwKZKrkW6a3Djr Bb2i0oOkt8OWJSsyQG1+fS1yeL6UXUuPx81iSmW2LDFyNcmg4cpfnbHJpxtmmr7H1OQh s31zxjYmngABQgQS7CvbhTEPWCPkiQ8Wkyb51yRxXoSBeiPmpW2VZTqX2sho7Wqf3ASl XOhg== MIME-Version: 1.0 X-Received: by 10.182.73.67 with SMTP id j3mr2907303obv.102.1361987091407; Wed, 27 Feb 2013 09:44:51 -0800 (PST) Received: by 10.76.174.67 with HTTP; Wed, 27 Feb 2013 09:44:51 -0800 (PST) In-Reply-To: References: Date: Wed, 27 Feb 2013 11:44:51 -0600 Message-ID: Subject: Re: connect to a network printer to be able to print From: Antonio Olivares To: =?ISO-8859-1?Q?Trond_Endrest=F8l?= Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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:44:52 -0000 On Wed, Feb 27, 2013 at 11:23 AM, Trond Endrest=F8l wrote: > 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=3D:\ >> :sh:\ >> :mx#0:\ >> :rm=3DHP_Color_LaserJet_CP4520:\ >> :rp=3Draw:\ >> :sd=3D/var/spool/lpd/lp:\ >> :lf=3D/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? it seems it does not :( grullahighschool# lpq Warning: unable to get address list for remote machine HP_Color_LaserJet_CP4520: hostname nor servname provided, or not known Warning: no daemon present Rank Owner Job Files Total Size 1st olivares 0 (standard input) 239208 bytes You have new mail. grullahighschool# > > 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. how do I do this? any examples out there? > > 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=F8l, | Trond Endrest=F8l, = | > | IT-ansvarlig, | System administrator, | > | Fagskolen Innlandet, | Gj=F8vik Technical College, Norway, | > | tlf. mob. 952 62 567, | Cellular...: +47 952 62 567, | > | sentralbord 61 14 54 00. | Switchboard: +47 61 14 54 00. | > +-------------------------------+------------------------------------+ Dear Trond, I have run a test using an example by W. Block on another site: http://www.howtofixcomputers.com/forums/printers/printer-without-driver-266= 629-4.html and I have sent data to the printer and it prints: # printf "This is a test\r\n\f" | nc 10.155.135.3 9100 How do I set this up in /etc/printcap, so that this printer can be the one? Thanks for your help. I am close to get it to work. Best Regards, Antonio