cups-lpdSection: Easy Software Products (8)Updated: Common UNIX Printing System |
cups-lpdSection: Easy Software Products (8)Updated: Common UNIX Printing System |
printer stream tcp nowait lp /path/to/cups/daemon/cups-lpd cups-lpd -o document-format=application/octet-stream
If you are using the newer xinetd(8) daemon, add the following
lines to the xinetd.conf file:
service printer
{
socket_type = stream
protocol = tcp
wait = no
user = lp
group = sys
passenv =
server = /path/to/cups/daemon/cups-lpd
server_args = -o document-format=application/octet-stream
}
The /path/to/cups/daemon is usually /usr/lib/cups/daemon or /usr/libexec/cups/daemon, depending on the operating system. Consult the cupsd.conf file for the local setting.
printer stream tcp nowait lp /usr/lib/cups/daemon/cups-lpd cups-lpd -o document-format=application/octet-stream
server = /usr/lib/cups/daemon/cups-lpd
server_args = -o document-format=application/octet-stream
The example shown resets the document format to be application/octet-stream, which forces auto-detection of the print file type.
While xinetd has built-in access control support, you should use the TCP wrappers package with inetd to limit access to only those computers that should be able to print through your server.
cups-lpd is not enabled by the standard CUPS distribution. Please consult with your operating system vendor to determine whether it is enabled in their distributions.
The output of the status requests follows RFC 2569, Mapping between LPD and IPP Protocols. Since many LPD implementations stray from this definition, remote status reporting to LPD clients may be unreliable.