Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Mar 2000 08:42:58 +1200
From:      Jonathan Chen <jonc@logisticsoftware.co.nz>
To:        Joe Park <joepark@uclink4.berkeley.edu>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: printer ... almost there
Message-ID:  <20000321084257.A48754@jonc.logisticsoftware.co.nz>
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
References:  <4.2.0.58.20000320003711.00cbe100@uclink4.berkeley.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000321084257.A48754>