From owner-freebsd-questions Mon Mar 20 12:47:59 2000 Delivered-To: freebsd-questions@freebsd.org Received: from logisticsoftware.co.nz (logisticsoftware.co.nz [202.37.163.1]) by hub.freebsd.org (Postfix) with ESMTP id 6BBFD37BCD6 for ; Mon, 20 Mar 2000 12:43:08 -0800 (PST) (envelope-from jonc@logisticsoftware.co.nz) Received: from jonc.logisticsoftware.co.nz (jonc.logisticsoftware.co.nz [10.3.1.1]) by logisticsoftware.co.nz (8.9.3/8.9.3) with ESMTP id IAA25669; Tue, 21 Mar 2000 08:42:58 +1200 (NZST) Received: (from jonc@localhost) by jonc.logisticsoftware.co.nz (8.9.3/8.9.3) id IAA48841; Tue, 21 Mar 2000 08:42:58 +1200 (NZST) (envelope-from jonc) Date: Tue, 21 Mar 2000 08:42:58 +1200 From: Jonathan Chen To: Joe Park Cc: freebsd-questions@FreeBSD.ORG Subject: Re: printer ... almost there Message-ID: <20000321084257.A48754@jonc.logisticsoftware.co.nz> References: <4.2.0.58.20000320003711.00cbe100@uclink4.berkeley.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <4.2.0.58.20000320003711.00cbe100@uclink4.berkeley.edu>; from joepark@uclink4.berkeley.edu on Mon, Mar 20, 2000 at 12:50:09AM -0800 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, Mar 20, 2000 at 12:50:09AM -0800, Joe Park wrote: > Hello, > > My printer now sort of works, but not completely. First, I looked at the > log fie and I noticed that there were bunch of messages saying that there > is no "/dev/lp" file. I thought in /etc/printcap file, ":lp=/dev/lpt0" > line takes care of that, but I guess I was wrong. So I made a link by "# > ln -s /dev/lpt0 /dev/lp". This is strange. You may want to send the list the contents of /etc/printcap. The most common config mistake here is forgetting about the trailing '\'. > Now, I can print from Win98 with samba but it keep add two pages-- one in > the beginning and one at the end. I though the first page was header page, > but adding or subtracting ":sh:" in printercap has no effect. And when I > tried to print from the FreeBSD printer server machine, it only prints 3 > blank pages -- e.g. "lptest 20 5 | lpr" prints 3 blank page. Dunno about the problem with Win98+samba, but the second problem relates to staircasing effect described in the handbook. A script file with the following, along with the appropriate if= entry in /etc/printcap should take care of the the staircasing effect. #!/bin/sh awk '{ printf {"%s\r\n", $0}; }' printf "\f" Jonathan Chen ---------------------------------------------------------------------- When the character of a man is not clear to you, look at his friends. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message