Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Mar 2013 22:22:57 -0700
From:      Martin Alejandro Paredes Sanchez <mapsware@prodigy.net.mx>
To:        freebsd-questions@freebsd.org
Subject:   Re: connect to a network printer to be able to print
Message-ID:  <201303012222.58083.mapsware@prodigy.net.mx>
In-Reply-To: <CAJ5UdcP-7_7i8kN_S2i4dG-k6--jFdxPizZG07AuE5aRxwJmsA@mail.gmail.com>
References:  <CAJ5UdcP-7_7i8kN_S2i4dG-k6--jFdxPizZG07AuE5aRxwJmsA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wednesday 27 February 2013 09:45:15 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
>

1st you need to define a host name for the printer in /etc/hosts, add the next 
line to /etc/hosts

10.155.135.3	hplj-cp4520

Then verify network conectivity with ping

ping -c 4 hplj-cp4520

Now, create the spool directory and errors-log file

mkdir -p /var/spool/lpd/LaserJetCP4520
chmod 770 /var/spool/lpd/LaserJetCP4520
touch /var/spool/lpd/LaserJetCP4520/errors-log
chmod 660 /var/spool/lpd/LaserJetCP4520/errors-log
chown -R daemon:daemon /var/spool/lpd/LaserJetCP4520

Next, add the printer definition to /etc/printcap

LaserJetCP4520|lp|HP LaserJet CP4520:\
        :banner.disable:max.blocks#0:tty.device=:\
        :remote.host=hplj-cp4520:remote.queue=raw:\
        :spool.dir=/var/spool/lpd/LaserJetCP4520:\
        :spool.log=/var/spool/lpd/LaserJetCP4520/errors-log:

Since the HP Color Laserjet Enterprise CP4520 accept the languages

HP PCL 6
HP PCL 5c
HP postscript level 3 emulation
Direct PDF printing version 1.4

You should test with one file of that languages, I do not know if plain text 
can be printed without a text filter (input-filter)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201303012222.58083.mapsware>