From: John Floren <slawmaster@gmail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] Laserjet Jetdirect problem
Date: Thu, 2 Sep 2010 12:09:10 -0400 [thread overview]
Message-ID: <AANLkTi=DTCOPGO-Ch7S3cX9UqpRZcRcZK+g5d9=j1+q8@mail.gmail.com> (raw)
In-Reply-To: <AANLkTikoMaupE-7Qkf9hiogr0nmN6Q=rGdvD4e-Av1i3@mail.gmail.com>
On Thu, Sep 2, 2010 at 10:28 AM, Russ Cox <rsc@swtch.com> wrote:
>> prec7 - p9 tcp!prec7!9100 81920 post+600dpi generic generic generic generic tcppost
>
> Your spooler is generic but I think you want lpdsend.
> Look at the entry for "vogon" in the standard /sys/lib/lp/devices.
>
> Russ
>
>
Having cloned the entry for vogon:
prec7 - p9 prec7 - post+600dpi generic lpdspool lpd - -
If I try to print, eventually lp just returns. Nothing prints, no
error messages, nothing.
Aha, I say, maybe I'll try moving /rc/bin/service/!tcp515 to tcp515
and try again.
At that point, my cpu and network get very busy, I can see lpd and
lpdaemon and lpspool, etc. all running, but yet again nothing ever
prints. If I change the entry to start like this:
prec7 - p9 tcp!prec7!9100
since I'm not sure how it's supposed to know to connect to port 9100
by itself, lp -dprec7 -q gives:
connecting to tcp!p9!printer
trying from port 721...connected
device prec7.ce.rit.edu is not in /sys/lib/lp/devices
If I try to print, again, no error is given, but /sys/lib/lp/log/lpdaemonl gets:
Sep 2 12:04:44 [17619] -dprec7.<mydomain> -Mp9.<mydomain> -ujohn
Sep 2 12:04:44 [17619] read error; lost connection
I might be confused here, but it seems to me like the entry for vogon
is saying "There's an lp daemon on alice, connect to that and tell it
to print on its printer called vogon". That doesn't really make sense
for me, because I'm already printing *from* p9. p9 has a printer named
prec7, sure, but that just points right back at p9 again... it seems
like a recipe for an infinite loop at the least.
Somewhere, at some point, don't I need to say "Send some data to
tcp!prec7!9100"? Printers have never been my strong point; I'm usually
just good enough to get it set up in CUPS :)
John
--
"With MPI, familiarity breeds contempt. Contempt and nausea. Contempt,
nausea, and fear. Contempt, nausea, fear, and .." -- Ron Minnich
next prev parent reply other threads:[~2010-09-02 16:09 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-01 18:11 John Floren
2010-09-02 14:28 ` Russ Cox
2010-09-02 16:09 ` John Floren [this message]
2010-09-02 16:20 ` John Floren
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='AANLkTi=DTCOPGO-Ch7S3cX9UqpRZcRcZK+g5d9=j1+q8@mail.gmail.com' \
--to=slawmaster@gmail.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).