From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: Date: Thu, 2 Sep 2010 12:20:49 -0400 Message-ID: From: John Floren To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [9fans] Laserjet Jetdirect problem Topicbox-Message-UUID: 4de86eb8-ead6-11e9-9d60-3106f5b1d025 Well, it looks like the solution was to do this: prec7 - p9. tcp!prec7.!9100 81920 post+600dpi+nohead generic generic generic= generic tcppost FIFO With tcp515 disabled. I guess the full domain names are important, rather than /lib/ndb names? Anyway, now I can print. John On Thu, Sep 2, 2010 at 12:09 PM, John Floren wrote: > On Thu, Sep 2, 2010 at 10:28 AM, Russ Cox wrote: >>> prec7 =C2=A0 - =C2=A0 =C2=A0 =C2=A0 p9 =C2=A0 =C2=A0 =C2=A0tcp!prec7!91= 00 =C2=A081920 =C2=A0 post+600dpi =C2=A0 =C2=A0 generic generic generic gen= eric 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 =C2=A0 - =C2=A0 =C2=A0 =C2=A0 p9 =C2=A0 =C2=A0 =C2=A0prec7 =C2=A0 -= =C2=A0 =C2=A0 =C2=A0 post+600dpi =C2=A0 =C2=A0 generic lpdspool =C2=A0 =C2= =A0 =C2=A0 =C2=A0lpd =C2=A0 =C2=A0 - =C2=A0 =C2=A0 =C2=A0 - > > 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 =C2=A0- =C2=A0p9 =C2=A0tcp!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 > =C2=A0trying 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/lpdaemon= l gets: > Sep =C2=A02 12:04:44 [17619] -dprec7. -Mp9. -ujohn > Sep =C2=A02 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 > --=20 "With MPI, familiarity breeds contempt. Contempt and nausea. Contempt, nausea, and fear. Contempt, nausea, fear, and .." -- Ron Minnich