From owner-freebsd-questions@FreeBSD.ORG Fri Jul 18 09:34:05 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 33DB596B for ; Fri, 18 Jul 2014 09:34:05 +0000 (UTC) Received: from sam.nabble.com (sam.nabble.com [216.139.236.26]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 17E622E4D for ; Fri, 18 Jul 2014 09:34:04 +0000 (UTC) Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1X84YG-0007lH-6y for freebsd-questions@freebsd.org; Fri, 18 Jul 2014 02:34:04 -0700 Date: Fri, 18 Jul 2014 02:34:04 -0700 (PDT) From: Beeblebrox To: freebsd-questions@freebsd.org Message-ID: <1405676044178-5929730.post@n5.nabble.com> Subject: printcap configuration problem 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.18 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Jul 2014 09:34:05 -0000 Hi. Cups has been borked for some time, so I must use lpd. Several problems when configuring /etc/printcap however. So far what I have: 1 HP2100tn:rm=192.168.1.9:rp=RAW1:\ 2 :sd=/var/spool/lpd/hp2100:lf=/var/log/lpd-errs:\ 3 :if=/usr/local/libexec/lf2crlf:\ 4 :mx#0:sh: The Problems: * Line 1 fails completely with "lpr: lp: unknown printer" when using any name other than "lp". Tried: NO: HP2100tn:lp=9100@192.168.1.9:rm=HP2100tn:\ NO: HP2100tn:lp=9100@192.168.1.9:\ WORKS: lp:lp=9100@192.168.1.9:rm=HP2100tn:\ WORKS: lp:rm=192.168.1.9:rp=RAW1:\ * I need to specify below options. Placing in /etc/printcap (line 1) as lp;r=300x300;q=draft;c=gray;p=a4;m=auto:\ :rm=192.168.1.9:rp=RAW1:\ results in the same "unknown printer" error. I need to either find the correct syntax for printcap or I could modify /usr/local/libexec/lf2crlf, which has: #!/bin/sh CR=$'\r' /usr/bin/sed -e "s/$/${CR}/g" ## will A4 size info here work? #page_width= #page_height= #border= Printer: HP LaserJat 2100, PS-level-2 ----- FreeBSD-11-current_amd64_root-on-zfs_RadeonKMS -- View this message in context: http://freebsd.1045724.n5.nabble.com/printcap-configuration-problem-tp5929730.html Sent from the freebsd-questions mailing list archive at Nabble.com.