Date: Tue, 10 Nov 1998 14:51:53 -0800 (PST) From: Bryce Newall <data@dreamhaven.net> To: freebsd-doc@FreeBSD.ORG Cc: "Symmetron's FreeBSD Mailing Lists" <FreeBSD.lists@symmetron.com> Subject: RE: APS Filter/JetDirect report (fwd) Message-ID: <Pine.NEB.3.96.981110144807.15750W-100000@ds9.dreamhaven.org>
index | next in thread | raw e-mail
Greetings!
At the suggestion of a fellow subscriber to the FreeBSD Questions mailing
list, I'm sending this to you for a possible entry into the FAQ. This
message deals with setting up APS Filter to work with a remote printer
running from, in my case, an HP JetDirect EX Plus box. The particular
printer in question is an HP DeskJet 870CXi, but the method I used below
should work with any parallel printer that can connect to the JetDirect.
One thing I didn't mention in the message below, since it had already been
discussed previously, but would be required to be present in the FAQ, is
that I edited the apsfilter script in /usr/local/apsfilter/bin and
uncommented (took the pound sign off the front of) a line that read:
#REMOTE_PRINTER=true
Everything else I did is outlined in the message below the message from
"Symmetron's FreeBSD Mailing Lists". If you feel this would be a good
thing to have in the FAQ, please feel free to add it. Thank you!
---------- Forwarded message ----------
Date: Tue, 10 Nov 1998 10:08:26 -0500
From: Symmetron's FreeBSD Mailing Lists <FreeBSD.lists@symmetron.com>
To: Bryce Newall <data@dreamhaven.net>
Subject: RE: APS Filter/JetDirect report
Hey, thanks for figuring this one out!
Next time I get a few minutes free, I'm going to try to setup one of my boxes.
Maybe you should send your findings to the documentation people at freebsd-doc@FreeBSD.org
so that they can put it in the FAQ.
-john
-----Original Message-----
From: owner-freebsd-questions@FreeBSD.ORG
[mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of Bryce Newall
Sent: Tuesday, November 10, 1998 2:01 AM
To: FreeBSD Questions List
Subject: APS Filter/JetDirect report
It finally works!!!!!!!!!!
Now that the excitement is done, please allow me to describe what was
required to get it going:
1) Thanks to some people on this list, reading the APSFilter FAQ, and some
insights from (of all places) one of the Linux How-To's, I got a working
printcap. In addition to changing the "lp" entries to point to /dev/null,
I needed to add an additional printcap entry as follows:
remote|remotep|JetDirect EX Plus:\
:lp=/dev/null:\
:rm=runabout:\
:rp=raw:\
:sd=/var/spool/lpd/remote:\
:lf=/var/spool/lpd/remote/log:\
:mx#0:\
:sh:
where "runabout" is the hostname of my JetDirect.
Once that was done, I tried another printout.. a simple one, my .login
file. Instead of getting my .login, though, I got a single line printed
out on the printer that said:
-r must be followed by <res> or <xres>x<yres>
Which leads to...
2) Upon looking at the apsfilter script, I found where it was trying to
add the -r parameter in this section of the script: (this is kind of
long)
if [ -z "$GS_RESOL" ]
then
# default is _not_ to fiddle around with
# ghostscripts printer driver resolution
PRINT_PS=" gs \
-q \
-sDEVICE=${PRINTER} \
-sPAPERSIZE=${PAPERSIZE} \
-dNOPAUSE \
-dSAFER \
-sOutputFile=- \
${GS_FEATURES} \
${PS_INIT} \
- "
else
# if we urgently need another resolution
# then we use it (selectable in /etc/apsfilterrc
# or in $HOME/apsfilterrc)
PRINT_PS=" gs \
-q \
-r${GS_RESOL} \
-sDEVICE=${PRINTER} \
-sPAPERSIZE=${PAPERSIZE} \
-dNOPAUSE \
-dSAFER \
-sOutputFile=- \
${GS_FEATURES} \
${PS_INIT} \
- "
fi
I don't know how it's happening, but somehow the GS_RESOL variable is
being set, but to a blank value, so that it's trying to call apsfilter
with the -r option, but nothing after it. The solution was to simply pull
out the line with the -r, and after that, I'm now printing and having a
great time of it!
I realize this mail is probably somewhat superfluous, but at least if
anyone has trouble with this in the future, well... here's your solution!
:) And who knows, maybe this will end up in the mailing list archives.
Thanks again to everyone for their help on this!!
**********************************************************************
* Bryce Newall * Email: data@dreamhaven.net *
* WWW: http://home.dreamhaven.net/~data *
* "Insanity takes its toll. Please have exact change." *
**********************************************************************
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-doc" in the body of the message
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.NEB.3.96.981110144807.15750W-100000>
