From: Joe P. <joe...@sn...> - 2000-09-26 18:12:07
|
On Tue, 26 Sep 2000, Erik Hendrix wrote: > My understanding was that I needed apsfilter and a2ps to be able to make > this work. This is the only reason why I installed it. > > I'm running Red Hat 6.2 and currently nothing is modified of that version. > My printer deamon is up and running. > Erik: I've only done some testing on the driver and haven't used it regularly. I'm working on a potential GUI for the project, but that is different from the inner workings of the driver. Chances are, a much better coder will need to take over the GUI development later anyway. Today I tested the driver some more on my RedHat 6.1 desktop system. It seems to work the way I have it set up, but since I've done minimal testing, I could be wrong. From what the developers have said, it seems that the purpose of the driver is only to add increased functionality and controllability to the officejet, while simply throughputting the ghostscript-generated print data. The driver is undergoing active development, and is improving steadily, but it isn't yet finished. Here is how my RH 6.1 system is set up, if you want to try copying it: Basically, I'm not using apsfilter or a2ps, just a regular ghostscript driver with "wrapfilter" in its spool directory. I had an earlier driver setup that did not involve using the hpoj driver. I still have that, plus a new, similar driver setup for use with the hpoj driver. In printtool, I set up a regular ghostscript color print driver, with gamma correction added via "gamma.ps" because the printing was too dark using only the gs driver. This should be tested to see if it works as expected. The hpoj driver is not involved in this first "driver" setup. The printcap entry is below, as added by printtool. Note: restart lpd after changes to printtool or printcap entries. ##PRINTTOOL3## LOCAL cdj550 300x300 letter {} DeskJet550 32 1 HPofficejet|officejet|ojet|oj:\ :sd=/var/spool/lpd/HPofficejet:\ :mx#0:\ :lp=/dev/lp0:\ :if=/var/spool/lpd/HPofficejet/filter:\ :sh: I then made a copy of the same "driver" with printtool, but with different printer name(s), and a different spool directory. It's necessary to have a separate spool dir for each printtool driver entry. The default spool dir is usually "lp0" but that should be changed to be more descriptive of the driver being used. In printtool, I called that "HPOJ_DRVR". This should also be tested to see if it works the same as the other driver. I later (carefully) hand edited /etc/printcap to change the :if= line to change 'filter' to 'wrapfilter'. ##PRINTTOOL3## LOCAL HPOJ_DRVR:\ :sd=/var/spool/lpd/HPOJ_DRVR:\ :mx#0:\ :lp=/dev/lp0:\ :if=/var/spool/lpd/HPOJ_DRVR/wrapfilter:\ :sh: In the /var/spool/lpd directory there is now a subdir named HPOJ_DRVR where the necessary files for the ghostscript print driver are kept. This is where I added the wrapfilter. I had to change the QUEDIR line in wrapfilter to correspond to the new spool directory. #!/bin/sh # filename: /var/spool/lpd/HPOJ_DRVR/wrapfilter # QUEUEDIR=/var/spool/lpd/HPOJ_DRVR IEEE12844DIR=/usr/local/bin # ${QUEUEDIR}/filter "$@" | ${IEEE12844DIR}/ieee12844_print # I'm able to print color and text web pages with this in Netscape. All of the necessary kernel modules have to be insmodded for this to work. ----- Joe |