This is what I get so far :-
Code:
# grep ulpt /var/run/dmesg.boot
ulpt0: <HP Business Inkjet 1200, class 0/0, rev 1.10/1.00, addr 2> on usbus0
ulpt0: using bi-directional mode
I then tried ;
Code:
# echo 'Test' >> /dev/ulpt0
This produces the word Test on its own on the top left of a blank page after which the page is ejected.
Next I tried ;
This produces one line on a page then spews out loads of blank pages resulting in me switching off printer.
I then added thee following to /etc/printcap
Code:
HP1200|HP|HP Business inkjet 1200:\
:lp=/dev/ulpt0:\
:af=/etc/ppd/HP_Business_Inkjet_1200.ppd:\
:if=/usr/local/libexec/if-simple:\
:sh:sd=/var/spool/lpd:\
:lf=/var/log/lpd-errs:
I put my printer .ppd in /etc/ppd
and copied if-simple from /usr/share/examples/printing into /usr/local/libexec/if-simple and made executable. I then started lpd with just ;
I then tried the following test ;
Code:
# echo 'Test' | lpr -PHP1200
which produced the word Test on its own on the top left of a blank page after which the page is ejected.
Next I tried the staircase test as follows
Code:
# lptest 20 5 | lpr -PHP1200
which produced 5 short sections, one line below each other and spaced across the page.
I repeated this but using the hpif example and this produced the required results shown in the basic printer setup page in the handbook.
I then installed foomatic-filters and ghoscript8 [fm need libgs] and referenced foomatic-rip in my printcap file.
At the bottom of the output of /var/log/lpd-errs showed ;
Code:
hpijs: not found
GPL Ghostscript 8.70: Can't start ijs server "hpijs"
The way I interpret this is that to use foomatic-rip filter you have to have a working hpijs server installation. And hpijs is broken, end of. I did notice however that there is an 'ijs-server-example' in the working folder for gs?
Next I created the 'ifhp' example from the advanced printing page of the handbook [ammended the DEVICE section to chp2200 which is the closest gs model to my model] and made executable.
I then ammended /etc/printcap to use 'ifhp'
I can now print from my editor and get colour prints from Opera.
TODO:
Read the Ghostscript Doco
Try and understand what the hell I'm doing ??!!!