9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Russ Cox <rsc@swtch.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] HP: Printing with the Illiterate
Date: Fri, 14 Aug 2009 10:15:59 -0700	[thread overview]
Message-ID: <dd6fe68a0908141015u7e005526he5824d2959cb4202@mail.gmail.com> (raw)
In-Reply-To: <4e6ca2050908140429t4fbba7deieec0ad9dbeb52ae5@mail.gmail.com>

If there is a Ghostscript output device for a printer,
then you just need to edit /sys/lib/lp/devices to add
an appropriate line giving the output device name and
the file where the output goes.

; grep 'gs!' devices
hpdeskjet	- - /dev/lpt1data - gs!cdj670+nohead generic nospool - - - -
canonbjc240l	- - /dev/lpt1data - gs!bjc600+nohead generic nospool - - - -
;

Those two are writing to /dev/lpt1data using the cdj670
and bjc600 drivers.  However, I think you need the ijs
driver, which is not built by default (it probably should be).
To enable it, edit /sys/src/cmd/gs/mkfile to add ijs to the
device list and then rebuild using the instructions in the
mkfile.

Then you'll have to compile hpijs and add a line to your
/sys/lib/lp/devices that says gsijs!model+number instead
of gs!dev.  See /sys/lib/lp/process/gspipeijs for the
exact syntax and how it interacts with the hpijs program.
Also http://pages.cs.wisc.edu/~ghost/doc/cvs/Devices.htm#IJS

I don't know how/where you get the hpijs program.
Perhaps someone else who is using it could speak up.
It was originally ported in 2004 by Kenji Okamoto but
I expect you'll need a newer one than that.

Russ


  reply	other threads:[~2009-08-14 17:15 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-14 10:04 Akshat Kumar
2009-08-14 11:29 ` Akshat Kumar
2009-08-14 17:15   ` Russ Cox [this message]
2009-08-15  0:37     ` J.R. Mauro
2009-08-15  1:06       ` Russ Cox
2009-08-15  1:48         ` J.R. Mauro
2009-08-15  1:56           ` erik quanstrom
2009-08-15  2:12             ` Akshat Kumar
2009-08-15  2:28               ` erik quanstrom
2009-08-15 15:12               ` J.R. Mauro
2009-08-17  7:50               ` Daniel Lyons
2009-08-17  8:09                 ` matt
2009-08-17  9:32                 ` Mechiel Lukkien
2009-08-15 10:58     ` Akshat Kumar
2009-08-15 17:50       ` Akshat Kumar
2009-08-17  2:55         ` Akshat Kumar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=dd6fe68a0908141015u7e005526he5824d2959cb4202@mail.gmail.com \
    --to=rsc@swtch.com \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).