On Tue, Sep 8, 2026 at 12:42 AM luchiz via 9fans <[email protected]> wrote:
> 
> Hello list,
> 
> I'm trying to set up printing on 9front.  I have a Canon printer
> located at 192.168.0.34, and I don't know how to set up lp to print to
> that address.  There is little documentation found on the official
> Plan 9 website.  Can you show me how to set up printing for LPD and
> port 9100?  I want to try out both to see which one works best.
> 
> Thank you.  -luchiz
> 

The most important detail is to make sure your printer speaks postscript.

I have an HP Color LaserJet CP1518ni that I print to on 9front. I
happen to use 9front for networking so its also my DNS and DHCP
server.

NDB entry:
sys=HPcolor ether=001e0b0543b3 ip=192.168.1.63 dom=HPcolor.bla.org

I then have the following line in /sys/lib/lp/devices (yes the
trailing dash is intentional)
HPcolor officeroom HPcolor tcp!HPcolor!9100 - post2+600dpi+color
generic lpdspool+fonts lpd generic hp -

I forget how I arrived at the above line though my suggestion is to
read up on lp(1) and lp(8).

I can print a PDF like so (no space between the '-d' and printer name for lp):
pdf2ps doc.pdf | lp -dHPcolor

- taw

------------------------------------------
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T018e03ecbf2b5fbb-M96f29956feaa0001f4068264
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

Reply via email to