"Robert W. Fowler" wrote:
>
> lastly i will be using this printer
> under Linux so im wondering if i can use lpr {with some tweaking of
> /etc/printcap} and get jobs to print correctly. anyone have this situation
> beat ? Thanks Greatly Rob F.
>
I have an Apple LaserWriter II NT that I've been using
without a hitch under Slackware for years.
I've also seen the behavior you mention about cat'ing a ps
file to the device seeing the green light blink, and then
getting no print out. Sometimes this happens for me when the
ps file contains Postscript later than level 1.0 (I don't
have the revision f board that you have).
As I remember it, getting the serial communications to work
was the hard part, but it sounds like you've already done that.
For me, "stty -a < /dev/laserwriter" emits:
speed 9600 baud; rows 0; columns 0; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>;
eol2 = <undef>; start = ^Q;
stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W; lnext = ^V; flush = ^O;
min = 1; time = 0;
-parenb -parodd cs8 hupcl -cstopb cread clocal -crtscts
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon
-ixoff -iuclc -ixany
-imaxbel
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0
vt0 ff0
isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop
-echoprt echoctl echoke
Then you need to look at the Printing-HOWTO, section 15.1, in order
to figure out the /etc/printcap entry. Here's mine:
# LaserWriter:
# This is an Apple LaserWriter on the second serial port.
# It only prints PostScript, and we use a magicfilter to this effect.
# NB: /dev/laserwriter is a symlink to /dev/ttyS1 (0x02f8 irq 3).
lw|lp|PostScript|laserwriter|Apple LaserWriter II NT:\
:mx=0:\
:lp=/dev/laserwriter:\
:lf=/usr/adm/lpd-errs:\
:sd=/usr/spool/lw:\
:fc#0177777:\
:fs#02275:\
:xc#0157777:\
:xs#0:\
:if=/usr/local/sbin/printers/ps300-filter:\
:sh:
Don't forget to create /usr/spool/lw and /usr/adm/lpd-errs.
The if filter is from H. Peter Anvin's magicfilter package.
I don't know where magicfilter calls home, but Google finds
alot of hits for it. The version I have is 1.2.1.
I believe I experimented with lwIINT-filter and psonly300-filter
before settling on ps300-filter, but I don't recall why.
The only other thing that comes to mind is that I remember
having trouble printing postscript that contains trailing spaces.
I think groff produces this sort of thing sometimes. The fix
is to pass the ps through the following awk script:
#!/usr/bin/awk -f
#
# removes \ \n sequences, which confuse our printer.
/.*\\$/ {
printf("%s", substr($0, 0, length($0) - 1));
next;
}
{ print $0 }
Happy laser writing.
-dll
**********************************************************
To unsubscribe from this list, send mail to
[EMAIL PROTECTED] with the following text in the
*body* (*not* the subject line) of the letter:
unsubscribe gnhlug
**********************************************************