Difference between revisions of "LPRng"

From ArchWiki
Jump to: navigation, search
Line 22: Line 22:
 
*Create a printcap file and spool directories
 
*Create a printcap file and spool directories
 
*Enable and start the lpd daemon using systemctl
 
*Enable and start the lpd daemon using systemctl
 +
 +
===Control files===
 +
 +
Two control files must be configured, ''lpd.conf'' and ''lpd.perms''.  The default configurations in ''/usr/share/doc/lprng'' are adequate for a client computer printing to a remote printer.  Copy these to ''/etc/lprng/lpd/''.  For a server receiving requests across the Internet, uncomment the last line in ''lpd.conf'' and configure permissions as documented in the comments in ''lpd.perms''.  The files ''lpd.conf.sample'' and ''lpd.perms.sample'', located in ''/usr/share/doc/lprng'', document more complex situations.

Revision as of 21:36, 2 January 2015


LPRng is an alternative print spooler to CUPS. It was designed as a drop-in replacement for the old Berkeley Unix LPR system. It is mature and robust and it handles print filtering in a transparent and flexible manner.

Complete documentation exists on the LPRng website: [1] The man pages are also a useful source of information.

Installation

  • Install the lprng package from the AUR.
  • Install optional filter packages:
    • poppler
    • enscript
    • ghostscript
    • hplip
    • foomatic-filters-lprng (AUR)

Configuration

Configuration consists of the following steps:

  • Set up control files
  • Configure filters
  • Create a printcap file and spool directories
  • Enable and start the lpd daemon using systemctl

Control files

Two control files must be configured, lpd.conf and lpd.perms. The default configurations in /usr/share/doc/lprng are adequate for a client computer printing to a remote printer. Copy these to /etc/lprng/lpd/. For a server receiving requests across the Internet, uncomment the last line in lpd.conf and configure permissions as documented in the comments in lpd.perms. The files lpd.conf.sample and lpd.perms.sample, located in /usr/share/doc/lprng, document more complex situations.