Chapter 16. Print server (LPD)

This is not actually necessary, as the printer I've got is a network printer with it's own printer queue. However, I want to be able to add printers to the network that does NOT have this capability, and for that we need a print-server somewhere.

16.1. Installing lpd

I have chosen to go with the lpr-ppd, since I'm most comfortable with the BSD type print spool. Other choices could be cups or lprng.

As with everything Debian, and as said so many times before in this document, we need to install some packages...

apt-get install libcupsys2
apt-get install cupsys
apt-get install cupsys-client
apt-get install cupsys-bsd
apt-get install cupsys-driver-gimpprint
apt-get install cupsys-pstoraster
apt-get install cupsomatic-ppd
apt-get install foomatic-bin
apt-get install gs
apt-get install a2ps
apt-get install mpage
apt-get install enscript

That's a lot of packages, and some more will be added as dependencies are resolved. Most of the packages are helper packages, so that different types of printjobs can be executed (images, text, postscript...). It is i bit sad to install a printer, only to discover that You are unable to print a webpage.

16.2. Configuring lpd

The CUPS (Common Unix Printing System) has it's own configuration interface, which is per default only available on the localhost interface. This is changed in the file /etc/cups/cupsd.conf.

I usually add the local net to the permissions for "/" and "/admin", which makes those sections read as follows:

<Location />
Order Deny,Allow
Deny From All
Allow From
Allow From 192.168.228.

<Location /admin>
AuthType Basic
AuthClass System
Order Deny,Allow
Deny From All
Allow From
Allow From 192.168.228.

Restart the cupsys system (/etc/init.d/cupsys restart), and point a browser at port 631 on the machine.

You should now be able to see the printer administration interface of CUPS. This is where You add/modify/delete Your printers.