View Single Post
  #5   (View Single Post)  
Old 12th March 2014
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,503
Default

The forums helped me transition from cups to lpd. I have also found this lpd printing guide by a FreeBSD forums moderator to work well in OpenBSD. His observation that port 9100 worked better than lpd, http, https held true for my Trendnet print server. The other comment is the syntax of the port:
Code:
192.168.1.2:9100
worked as a cups entry but not with lpd
Code:
9100@192.168.1.2
works for JetDirect in lpd but I am not sure if the same syntax works for http or lpd.

I set up my first printcap using print/apsfilter which will setup your spool directory, with proper ownership and permissions and generates the printcap with filter. Subsequently, I have been following Wblock's FreeBSD printing guide to generate my own print filter and am presently using
Code:
lp|hp5l|ljet4;r=300x300;q=medium;c=gray;p=letter;m=auto:\
    :lp=9100@192.168.1.2:\
    :rp=raw:\
    :if=/usr/local/libexec/ps2pcl:\
    :sd=/var/spool/lpd/hp5l:\
    :lf=/var/spool/lpd/hp5l/log:\
    :af=/var/spool/lpd/hp5l/acct:\
    :mx#0:\
    :sh:
By using the numeric IP address, I avoided having to make an /etc/hosts or DNS entry.
I can also name my spool directory after an lp aliasis:
Code:
:sd=/var/spool/lpd/hp5l:\
When I setup 5.5, I am going to try jggimi's entry for foomatic filters

Last edited by shep; 12th March 2014 at 04:37 PM. Reason: Corrected print/apsfilter link
Reply With Quote