Subject: Re: Printing not working with lpd, but fine to device
To: None <netbsd-help@netbsd.org>
From: None <dchapman@canwest.victoria.bc.ca>
List: netbsd-help
Date: 01/05/2001 18:20:29
* Philipp Huber <philipp@bugat.at> [010105 02:49]:
> no, you just have to download the print-someversion.tar.gz and follow
> README.bsd. in the Ghost/ directory. the file is written for freebsd,
> but should be appliable to netbsd.
>
HHEEELLLPPP.
What have I done?
ok.
The entry in /etc/printcap looks like:
# Ghostscript
ps|Ghostscript driver:\
:lp=/dev/lpt0:\
:sd=/var/spool/output/lpd:\
:lf=/var/log/lpd-errs:\
:mx#0:sh:if=/usr/local/libexec/lpfilter-ps:
The lp-filter-ps looks like:
#!/bin/sh
#Treat LF as CR+LF
printf "\033&k2G" || exit 2
# Print the postscript file
/usr/pkg/bin/gs -dSAFER -dBATCH -dQUIET -dNOPAUSE -q -sDEVICE=stp \
-sMode=escp2-800 -sOutputFile=- -sPAPERSIZE=a4 - && exit 0
exit 2
However, it won't print. The lpd-errs log file says:
Aladdin Ghostscript 6.01: ./src/iinit.c(100): initial_enter failed (-7), entering /registeredencodings in -dict:956/983-
Jan 5 18:11:48 CS670402-A lpd[16816]: ps: job could not be printed (cfA022CS670402-A.gvcl1.bc.wave.home.com)
Any ideas?
Thanks again,
Dave Chapman
--
Dave Chapman | "tar is not a plaything"
dchapman@canwest.victoria.bc.ca | bsimpson@dt.springfield.edu