From owner-freebsd-questions Mon Mar 20 21:37:51 2000 Delivered-To: freebsd-questions@freebsd.org Received: from hotmail.com (law2-f87.hotmail.com [216.32.181.87]) by hub.freebsd.org (Postfix) with SMTP id 1D3BA37B993 for ; Mon, 20 Mar 2000 21:37:48 -0800 (PST) (envelope-from hjjp76@hotmail.com) Received: (qmail 42422 invoked by uid 0); 21 Mar 2000 05:37:47 -0000 Message-ID: <20000321053747.42421.qmail@hotmail.com> Received: from 209.133.105.189 by www.hotmail.com with HTTP; Mon, 20 Mar 2000 21:37:47 PST X-Originating-IP: [209.133.105.189] From: "Joe Park" To: jonc@logisticsoftware.co.nz Cc: freebsd-questions@FreeBSD.ORG Subject: Re: printer ... almost there Date: Mon, 20 Mar 2000 21:37:47 PST Mime-Version: 1.0 Content-Type: text/plain; format=flowed Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG The problem is solved : -) For some reason, /etc/printcap was not being read so I just created new one without any comments (just the settings) and it works wonderfully. I still get one blank page added to every print job when I print from Samba but I can live with that. (and eventually, I'll fix it) Thank you for help. Joe >From: Jonathan Chen >To: Joe Park >CC: freebsd-questions@FreeBSD.ORG >Subject: Re: printer ... almost there >Date: Tue, 21 Mar 2000 08:42:58 +1200 > >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 > ______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message