From owner-freebsd-questions@freebsd.org Fri Sep 11 12:42:45 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C82FFA01852 for ; Fri, 11 Sep 2015 12:42:45 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8C28F1815 for ; Fri, 11 Sep 2015 12:42:45 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de (port-92-195-125-111.dynamic.qsc.de [92.195.125.111]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx02.qsc.de (Postfix) with ESMTPS id 46CFC2785F; Fri, 11 Sep 2015 14:42:43 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id t8BCggMS002507; Fri, 11 Sep 2015 14:42:42 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Fri, 11 Sep 2015 14:42:42 +0200 From: Polytropon To: reg@dwf.com Cc: freebsd-questions@freebsd.org Subject: Re: Problems setting up printer. Message-Id: <20150911144242.c8c25999.freebsd@edvax.de> In-Reply-To: <201509110349.t8B3nf1s025683@deneb.dwf.com> References: <201509110349.t8B3nf1s025683@deneb.dwf.com> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Sep 2015 12:42:45 -0000 On Thu, 10 Sep 2015 21:49:41 -0600, reg@dwf.com wrote: > > I've read and reread the printers section of the > Handbook, but haven't been able to put together > a printcap that will print. > > I have a Postscript HPLJ4100. > It exists with that name in the dns. I have the HP Laerjet 4000 DN, so we should speak the same language. :-) > Here is my attempt at a FreeBSD printcap: > > lp:\ > :/lp:=9100@HPLJ4100:\ > :sh:\ > :mx#0:\ > :sd=/var/spool/lpd/lp:\ > :lf=/var/log/lpd-errs:\ > :if=/usr/local/libexec/enscript: My entry in /etc/printcap looks like this (the name of the printer is "Laserjet", but I have manually added its static IP because of lazyness): Laserjet|ljet4d;r=600x600;q=high;c=full;p=a4;m=auto:\ :rm=192.168.100.100:\ :rp=raw:\ :lp=:\ :if=/opt/libexec/ps2pcl-dup.sh:\ :sd=/var/spool/lpd/Laserjet:\ :lf=/var/spool/lpd/Laserjet/log:\ :af=/var/spool/lpd/Laserjet/acct:\ :mx#0:\ :sh: > Since I will be ONLY passing it Postscript, it would > seem that the last line probably shouldn't be there, > but this was the last of a number of attempts. Correct. You don't need a printer filter if you're using PS, because that's what the printing programs do output, and at the same time what the printer will happily input. The printer also should recognize it automatically. As you can see from my example, I'm using PCL (because it's faster than PS from my experience with this printer). Make sure the mentioned spool directories do exist and belong to root:daemon. > Could someone tell me just WHAT I should be saying? You're missing rm= I think, which is essential. You should also have a look at "man 5 printcap" for a description of the fields. Also remember to use cap_mkdb. Compare and complete. :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...