DaemonForums  

Go Back   DaemonForums > Miscellaneous > Guides

Guides All Guides and HOWTO's.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   (View Single Post)  
Old 2nd November 2014
Oko's Avatar
Oko Oko is offline
Rc.conf Instructor
 
Join Date: May 2008
Location: Kosovo, Serbia
Posts: 1,102
Default LPD printing

I know that many people were very frustrated when upstream broke foomatic-rip for LPD users. Thanks to Antoine Jacoutot of OpenBSD many of us will be CUPS free for years to come. I am leaving internet trace for people who would be looking for the info but Antoine documentation which comes with OpenBSD

/usr/local/share/doc/pkg-readmes/cups-filters*

is golden standard.

In the nut shell what I did:

0. Install foomatic-rip, drivers (in my case hpijs), a2ps, ImageMagick

1. Edit /etc/printcap as
Code:
lp|HP|HP-PhotoSmart_C5200:\
        :lp=/dev/ulpt0:\
        :if=/etc/foomatic-rip/script.sh:\
        :sh:sd=/var/spool/output:\
        :lf=/var/log/lpd-errs:
2. Create /etc/foomatic-rip.script.sh and make it executable

Code:
#!/bin/sh

/usr/local/bin/a2ps -BRq --columns=1 -o - | \
        /usr/local/bin/foomatic-rip -P HP-PhotoSmart_C5200 --ppd \
        /etc/foomatic-rip/direct/hp-photosmart_c5200_series-hpijs.ppd
3. Add hp-photosmart_c5200_series-hpijs.ppd to /etc/foomatic-rip/direct. You can either find it in the database or use foomatic-ppdfile to create it.

4. Adjust permission on ulpt0 and ugen devices.

5. Start lpd daemon and be happy camper.
Reply With Quote
 

Tags
cups, foomatic-rip, lpd, printcap, printing

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
lpd printing in Current shep OpenBSD Installation and Upgrading 4 20th December 2012 07:30 PM
unwanted printing - cracking? lumiwa FreeBSD Security 9 10th July 2012 01:28 PM
Printing. The final frontier. girarde OpenBSD General 11 5th January 2011 01:03 PM
Poster printing program map7 FreeBSD Ports and Packages 3 7th November 2010 07:41 PM
Problem with printing unicyclist OpenBSD General 8 1st May 2009 07:06 PM


All times are GMT. The time now is 08:07 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick