Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Feb 2013 13:54:14 -0600
From:      Antonio Olivares <olivares14031@gmail.com>
To:        Warren Block <wblock@wonkity.com>
Cc:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: connect to a network printer to be able to print
Message-ID:  <CAJ5UdcOVQoy1UvntGB-04U%2BHKp9Fx8M1an2N9d9Un=wu9nxMLg@mail.gmail.com>
In-Reply-To: <alpine.BSF.2.00.1302271145190.55914@wonkity.com>
References:  <CAJ5UdcP-7_7i8kN_S2i4dG-k6--jFdxPizZG07AuE5aRxwJmsA@mail.gmail.com> <alpine.BSF.2.00.1302271145190.55914@wonkity.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Feb 27, 2013 at 12:47 PM, Warren Block <wblock@wonkity.com> wrote:
> 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

Dear Warren & all,

I have succeeded !  I got it to work by using the last example in your
page, copied it over to /etc/printcap:

lp:\
        :lp=9100@netlaser:\
        :sh:\
        :mx#0:\
        :sd=/var/spool/lpd/lp:\
        :lf=/var/log/lpd-errs:

then ran
# sed -i "" 's|9100@netlaser|9100@10.155.135.3|g'

and it has printed successfully :)  Now I will do this with two other
machines to be able to print to this network printer.  Thanks to all
who helped figure this out.  I had not even tried to connect, but
reading on another site that it was not hard to do, I tried it and it
has succeeded!

Best Regards,


Antonio



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ5UdcOVQoy1UvntGB-04U%2BHKp9Fx8M1an2N9d9Un=wu9nxMLg>