Problem
I have freshly installed OpenServer 5.0.7 and have applied a Maintenance Pack and then Update Pack x to the system or just the latest Maintenance Pack.
I now go to setup an lpd printer in "scoadmin printer" and as normal it confirms that remote printing needs to be installed (ie. this is the first remote printer)
When I confirm this I get the following error message :
Unable to configure remote printing (rlp).Failed to replace the following attribute(s) of local printer lpd:
==>configStatus configured.General failure occurred in processing attribute configStatusThe TCP/IP rlp remote printing package is not configured.
If I try to run "mkdev rlp" then mkdev complains that "rlp" is not there and sure enough, if I run "mkdev", rlp is no longer in the list and is missing from /usr/lib/mkdev.
Cause
According to the documentation of Update Pack x and Maintenance Pack x, "mkdev rlp" MUST be run before applying Update Pack x or when including CUPS as part of the installation of the Maintenance Pack as detailed in:
CUPS and Remote Printing (LPD)Although CUPS supports LPD as both a server and a client, the CUPS LPD server implementation does not support access control (based on the settings in the /etc/hosts.equiv and /etc/hosts.lpd files). If your setup requires the use of the standard LPD, or you wish to use access control, do not install CUPS.
________________________________________________________________WARNING If you have never run mkdev rlp and you wish to do
so, the CUPS package must be removed before running mkdev rlp
and then reinstalled after remote printing is configured.________________________________________________________________From the Maintenance Pack Release Notes:The Common UNIX Printing System (CUPS) is unchanged in Maintenance Pack 5 (1.1.23). When installed, both the CUPS and standard (SYSV) print systems are active. Although both systems use the same command names, the options and behavior differ somewhat (each print system has a separate set of commands stored in /usr/lib/lp/cups and /usr/lib/lp/sysv):
accept cancel disable enable lp lpadmin lpmove lpr lpstat reject
Both command sets are supported. To make it easier to use the commands, you can define the default command set (SYSV or CUPS) to be used when a print command (such as lpstat) is entered on the command line. This can be done in any of three ways:
* on a system-wide basis in /etc/default/lpd. The default entry is for the SYSV print system:
PRINT_SYSTEM=SYSV* on a per-login basis by including PRINT_SYSTEM=CUPS or PRINT_SYSTEM=SYSV in the environment.
Solution
"mkdev rlp" loads in it's own command lp command set, so in order for you to run "mkdev rlp" for the first time:
Run "custom" and select the Update Pack/Maintenance software.
Press Return to drill down until you see the CUPS package.
Click on this package and remove it because CUPS loads in it's own
lp command set, as stated above.NOTE: Alternately, you can remove cups from the commandline using:
custom -r SCO:cupsYou will then be able to run "mkdev rlp".
NOTE: If you already had run "mkdev rlp" and have added the Maintenance
Pack and are now unable to run "scoadmin printer" -> Printer ->
Add Remote (ie. (UNIX) ) is not able to be highlighted to add new
Remote Printers then the cause is /usr/lib/mkdev/rlp is missing.The file 'rlp' is kept in /usr/lib/lp/sysv/save and can be copied back to /usr/lib/mkdev/rlp
This issue has been reported to SCO Engineering.
NOTE: If you need CUPS to be removed in order for you to use LPD as
detailed above in the Maintenance Pack installation notes BUT also
require SAMBA to be used then please note that the removal of CUPS
will also remove a number of libraries vital to Samba from /usr/lib:libcups.a@
libcups.so@
libcups.so.2@
libcupsimage.a@
libcupsimage.so@
libcupsimage.so.2@Which should be copied and placed back into /usr/lib after CUPS has been removed in order for SAMBA 3.0.20A to function otherwise you may see:
# /etc/init.d/smb start
dynamic linker : /usr/sbin/smbd : could not open libcups.so.2 See also
http://www.sco.com/support/update/download/osr507list.html