Go to TogaWare.com Home Page. GNU/Linux Desktop Survival Guide
by Graham Williams
Duck Duck Go



CLICK HERE TO VISIT THE UPDATED SURVIVAL GUIDE

Using rlpr to Print on Remote Hosts

A collection of Debian machines can be serviced by a remote printer server running a printer daemon lpd. A simple approach to printing is then to install rlpr. This provides the commands rlpr, rlpq, and rlprm. They can be used as replacements for the usual lpr, lpq, and lprm commands. You can make these “aliases” permanent by linking them into /usr/local/bin as in:

  # cd /usr/local/bin
  # ln -s /usr/bin/rlpr  lpr
  # ln -s /usr/bin/rlpq  lpq
  # ln -s /usr/bin/rlprm lprm

To specify the pinter on which to print you need to include in the printer name the print server host, as in -Plp1@artz.togaware.com. This can be improved on by creating a /etc/rlprrc file with something like:

  artz.togaware.com: lp1 lp1nd lp5 lp5t lp7 lp9

Make sure the protections on the file allow everyone to read the file. Then when specifying a printer, simply mention its name, as in -Plp1 or set the PRINTER environment variable to "lp1".


Support further development by purchasing the PDF version of the book.
Other online resources include the Data Science Desktop Survival Guide.
Books available on Amazon include Data Mining with Rattle and Essentials of Data Science.
Popular open source software includes rattle and wajig.
Hosted by Togaware, a pioneer of free and open source software since 1984.
Copyright © 1995-2020 Togaware Pty Ltd. Creative Commons ShareAlike V4.