Given here are files necessary for printing with Plan 9, to a
sufficiently large class of HP printers. See the web[1] for the class
of supported printers, as well as proper model names for lp(1)
configuration. All code (binaries and otherwise) here is due to the
efforts of Professor Kenji Okamoto[2], and all initiative for this
directory due to the support and help of Russ Cox.
ijs.tar contains the directory gs/ that, if copied into the root of
gs(1) sources, creates ijs/ and replaces mkfile and src/plan9.mak,
each with the appropriate changes for compiling with IJS support.
hpijs is a binary of the driver used by gs(1) to produce a file
readable by the printer (for more information, see LIDIL). This
should be made accessible through /bin.
gspipeijs is a slightly modified version of the existing script in
/sys/lib/lp/process/gspipeijs, with the change that GSOPT is now set
regardless of the model number. I suspect this was originally fitted
for Prof. Okamoto's personal HP PSC printer configuration. The
script should receive more work for general usage. With minimal
tests, it works fine for me so far.
(NOTE: if lp(1) returns with the error:
ape/sh: hpijs: not found AFPL Ghostscript 8.53: Can't start
ijs server "hpijs"
then replace hpijs in the script with the full path to the binary.)
lp(1) configuration which resides in /sys/lib/lp/devices should look
something like the following for printers using IJS:
name - - /dev/lpt1data - gsijs!model+number generic nospool - - - -
See [1] for attaining possible 'model+number' values.
Note that the hpijs version is 1.5; the driver itself is long outdated
and deprecated by the newer HPLIP project. It would be highly
beneficial to port that for larger printing support and more features.
As for now, I'm satisfied.
☺
[1] http://uw714doc.sco.com/en/hpijs/hpijs_readme.html
See the "Driver Support" section: 'model+number' values are
possibly any of the tabbed values under "DeviceModel" –
case-sensitive. Personal example being:
officejet5610 - - /dev/lp - gsijs!officejet+5500 generic nospool - - - -
[2] http://basalt.cias.osakafu-u.ac.jp/plan9/s54.html
The ghostscript version there is quite old, hence the
hand-picked parts given here, necessary for IJS support.
|