Problem
By default OpenServer 6.0.0 uses the SYSV print system.
This includes the SYSV lpd not the cups-lpd.
If you have enabled CUPS by altering /etc/default/lpd (PRINT_SYSTEM=CUPS) you will find that you can print from the local machine but not from remote machines.
You may also be able to print from a Samba client giving the impression that remote printing is working from Windows machines but not other remote UNIX systems.
This is not the case, after receiving a print job from a Windows machine Samba issues the print job to the print system as if it was a local print job.
If you have a valid entry in /etc/printcap (SYSV) for a printer you may even be able to print to this printer from a remote machine even though CUPS has been configured which can lead to the impression that CUPS is allowing remote printing to some printers but not others.
Solution
To complete the transition from SYSV printing to CUPS, you will need to disable the SYSV lpd and enable cups-lpd.
To do this follow the steps below:-1) To disable /usr/lib/lpd from starting at boot time simply rename /etc/printcap to something else.
2) Add the following to /etc/inetd.conf so that cups-lpd starts on demand when an lpr/lpd request is received.
printer stream tcp nowait lp
/usr/lib/cups/daemon/cups-lpd cups-lpd -o
document-format=application/octet-stream3) Send a kill -1 to the inetd process to force a read of the modified inetd.conf
4) Uncomment for following line at the bottom of: /etc/cups/mime.convs
application/octet-stream application/vnd.cups-raw
0 -5) Restart cups# /etc/init.d/cups stop
# /etc/init.d/cups startAfter a few minutes you should start to see cups-lpd entries in /var/adm/syslog as it answers and processes LPR/LPD requests.
You will also start to see print jobs appearing in the 'jobs' section of the CUPS web admin interface (http://your_server:631).
# tail -f /var/adm/syslogJun 22 10:30:01 osr6 Jun 22 10:30:01 cups-lpd[2305]: Connection from osr507 (IPv4 192.168.1.35)
Jun 22 10:30:01 osr6 Jun 22 10:30:01 cups-lpd[2305]: Receive print job for dx6000
Jun 22 10:30:02 osr6 Jun 22 10:30:01 cups-lpd[2305]: Print file - job ID = 16
Jun 22 10:30:02 osr6 Jun 22 10:30:02 cups-lpd[2305]: Closing connection
NOTE: In order to disable banners, as lpd does not use an interface script:For individual prints:- Print using lpd with the option "-onobanner" or "-o nobanner"
To turn off banners globally:- Set BANNER=0 in /etc/default/lpdIf this fails to work depending on the release and maintenance installed then here is a suggested workaround:
Stop the lp service
# /etc/init.d/lp stopor use "lpshut"If you have MP3 or earlier make these changes:
Move the original lp to lp.orig
# mv /usr/bin/lp /usr/bin/lp.origCreate a file called lp
# vi /usr/bin/lp#!/bin/sh
lp.orig -o nobanner $*Save the fileChange the permissions of the new lp
# chmod 755 /usr/bin/lpIf you have MP4 or later, then /usr/bin/lp is linked to a switcher
script to handle different PRINT_SYSTEM values, and the above changes
need to be made in a different location, depending upon the value of
PRINT_SYSTEM in /etc/default/lpd. For example, if you have:
PRINT_SYSTEM=CUPS, create the wrapper script in /usr/lib/lp/cups, if
it is set to LPD, then the wrapper script needs to be created in
/usr/lib/lp/lpd. Be careful to set the ownership and permissions of
of the wrapper script to match the lp.orig file. Additionally, in the
wrapper script use the full path to the lp.orig file, so a script for
PRINT_SYSTEM=CUPS, would be /usr/lib/lp/cups/lp and look like this:#!/bin/sh
/usr/lib/lp/cups/lp.orig -o nobanner $*After you have your wrapper script in place with the proper
permissions restart lp with
# /etc/init.d/lp startor use "lpsched"Test with normal lp command
# lp -d printer_name /etc/hostsThis issue has been reported to SCO Engineering.