From: <pa...@rc...> - 2000-11-27 06:36:24
|
Sammy Redshaw wrote: > Right I am little stuck getting my Office jet pro 1150c to work i've got drivers > installed and it talking fine to the computer now problem no .1 > i done as per suggested in getting the office jet to work using print cap the > only thing it dosen't work can you have a look at the wrapfilter file that > resides in > "$ /var/spool/lpd/lp0". > and the etc/printcap file and edit them so that they do work. Hi, Sammy. /etc/printcap looks OK, wrapfilter doesn't. See below for my corrections. If you still have problems with these changes, please give me more information about what's wrong, such as any error messages you see. Another thing -- make sure wrapfilter is executable (issue the command "chmod +x /var/spool/lpd/lp0wrapfilter" if you haven't already). > I've tried this > with and with out the printer attached to port via the zip 250 drive make no > difference. The OfficeJet needs to be connected directly to your PC, not through the Zip drive. > Problem no. two patched sane-1.0.3 complies and installs fine only problem is to > run it i have to go to"$ usr/local/bin then do "$ . /xscanimage" when i do this > the scanner locks any idea why this is. I should see no problem with this > installation even if i am running linux mandrake 7 on 2.2.14 kernal which is the > same as red hat . This is a known problem while will be fixed in the next version. For now, there is a patch available at "http://hpoj.sourceforge.net/todo.shtml". In your case, you can download the "patch against 0.6" (http://hpoj.sourceforge.net/download/patches/hpoj-0.6-smp-patch-20001120.txt) into the "hpoj-0.6" directory. cd into the "hpoj-0.6" directory, and issue the command "patch -p 1 <hpoj-0.6-smp-patch-20001120.txt". wrapfilter: > > #! /bin/sh ^ 0 > > QUEUEDIR=/var/spool/lpd/lp ^ 1 > IEEE128444DIR=usr/local/bin ^ ^ 2 3 > > ${QUEUEDIR} /filter "$@" | ${IEEE12844DIR} /ieee12488_print ^ ^ ^^^ 4 4 5 0. I don't normally put a space here, but it's probably OK with a space. 1. You said this was in "/var/spool/lpd/lp0", so this needs to be consistent. 2. Remove the extra "4" (it should be "IEEE12844DIR"). 3. Put a slash in front of "usr" (it should be "/usr/local/bin"). 4. Remove the spaces between the "}" and the "/" (twice on this line). 5. "12844" instead of "12488" (should be "ieee12844_print"). So here's how wrapfilter should look in its entirety. Remove the "> " at the beginning of each line, of course: > #!/bin/sh > > QUEUEDIR=/var/spool/lpd/lp0 > IEEE12844DIR=/usr/local/bin > > ${QUEUEDIR}/filter "$@" | ${IEEE12844DIR}/ieee12844_print I hope this helps. David |