View Single Post
Old 29th January 2016
spacebar_permissions spacebar_permissions is offline
New User
 
Join Date: Nov 2013
Posts: 7
Default HP Post Script Printer Working

daemonforums,

Obtained an HP LaserJet 4100n and now up lpr ‘filename’ is functioning.

After setting up /etc/printcap:

lp|HP:\
:sh:\
:rm=192.168.17.98:\
:sd=/var/spool/output/HP
:lf=/var/log/lpd-errs:\
:rp=HP:


$ lpq
JetDirect lpd: no jobs queued on this port

$ lpc status
lp:
queuing is enabled
printing is enabled
no entries
printer is idle

$ lpr ‘filename’

lpr cannot open /var/spool/output/HP permission denied

Even though this directory had owner=root and group=daemon, as per “Absolute OpenBSD”, page 306.

In my notes from two years ago (!!) I jotted down that I needed to add group write permission, which I then did:

$ chmod g+w HP

Then printing was successful using lpr 'filename'.

Next step is to setup filtering.
Reply With Quote