9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] An Important Node
@ 2010-05-03 12:00 Akshat Kumar
  2010-05-03 14:05 ` erik quanstrom
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Akshat Kumar @ 2010-05-03 12:00 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

With one network- and PS- incapable printer* in
the household, and several computers with at least
a few users, there was a need to have some sort of
network capable printing device.

The printer is hooked up via (just for added complexity)
USB to the Plan 9 CPU server. Printing amongst Plan 9
computers is easy enough - run usb/print, export /dev,
etc. (maybe a cleaner way? the problem is with /dev/lp7,
which only shows up once usb/print is run), ending with
an lp(1) command. However, other computers are running
Windows or Linux.

So, in order to have Windows see the CPU server as a
network printer, I simply "[Added] a New Printer" on TCP,
port PORT, and IP that of the CPU server, with the device
being Adobe's Generic PostScript Printer, which produces
basic PS pages (something lp(1) on Plan 9 can deal with).

On the Plan 9 side, then, the CPU server listens:

aux/listen1 -tv tcp!*!PORT $home/bin/rc/print &

where the script `print' contains:

#!/bin/rc

lp -H -d officejet5610 >>[2] /sys/lib/lp/log/officejet5610

... and that's all she wrote.


Best,
ak

* OfficeJet 5610 - I highly discourage this product.
  (welcome, HP)



^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2010-05-06  4:14 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-03 12:00 [9fans] An Important Node Akshat Kumar
2010-05-03 14:05 ` erik quanstrom
2010-05-03 19:01   ` Akshat Kumar
2010-05-03 19:07     ` erik quanstrom
2010-05-03 19:24       ` Akshat Kumar
2010-05-05  6:48 ` lucio
2010-05-05  7:47   ` Akshat Kumar
2010-05-05  8:20     ` lucio
2010-05-05 12:08 ` lucio
2010-05-05 13:44   ` [9fans] plan9 lpt1 Steve Simon
2010-05-05 22:22   ` [9fans] An Important Node Akshat Kumar
2010-05-06  4:14     ` lucio

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).