From owner-freebsd-questions@FreeBSD.ORG Sat Mar 2 05:28:09 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 101A5E71 for ; Sat, 2 Mar 2013 05:28:09 +0000 (UTC) (envelope-from mapsware@prodigy.net.mx) Received: from nlpiport16.prodigy.net.mx (nlpiport16.prodigy.net.mx [148.235.52.21]) by mx1.freebsd.org (Postfix) with ESMTP id B534FA8A for ; Sat, 2 Mar 2013 05:28:08 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av8EAPWKMVG9qmMK/2dsb2JhbABEv2SCYIEAFoMSAQEFgQkLGBwSV4gsAsBnjyQWgyoDiDU2nkODKA X-IronPort-AV: E=Sophos;i="4.84,766,1355119200"; d="scan'208";a="211216290" Received: from nlpiport22.prodigy.net.mx ([148.235.52.109]) by nlpiport16.prodigy.net.mx with ESMTP; 01 Mar 2013 23:22:55 -0600 Received: from dsl-189-170-99-10-dyn.prod-infinitum.com.mx (HELO morena.lan) ([189.170.99.10]) by nlpiport22.prodigy.net.mx with ESMTP; 01 Mar 2013 23:22:55 -0600 From: Martin Alejandro Paredes Sanchez To: freebsd-questions@freebsd.org Subject: Re: connect to a network printer to be able to print Date: Fri, 1 Mar 2013 22:22:57 -0700 User-Agent: KMail/1.9.10 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <201303012222.58083.mapsware@prodigy.net.mx> 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: Sat, 02 Mar 2013 05:28:09 -0000 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)