This chapter contains spooling printer management systems and ghostscript applications to render PostScript for display on terminals or paper.
The Common Unix Printing System (CUPS) is a print spooler and associated utilities. It is based on the "Internet Printing Protocol" and provides printing services to most PostScript and raster printers.
Download (HTTP): http://ftp.easysw.com/pub/cups/1.1.23/cups-1.1.23-source.tar.bz2
Download (FTP): ftp://ftp.easysw.com/pub/cups/1.1.23/cups-1.1.23-source.tar.bz2
Download MD5 sum: 4ce09b1dce09b6b9398af0daae9adf63
Download size: 8.7 MB
Estimated disk space required: 48 MB
Estimated build time: 0.5 SBU
libjpeg-6b, libpng-1.2.12, and LibTIFF-3.8.2
OpenSSL-0.9.8c or GnuTLS (which needs libgpg-error, libgcrypt and opencdk, in that order), Linux-PAM-0.99.4.0, PHP-5.1.4, Python-2.4.3, JDK-1.5.0_08, OpenSLP, libpaper and Valgrind (optionally used if running the test suites)
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/cups
Create an lp user, as CUPS will install the lppasswd command SUID to this user. Use the following command as the root user:
useradd -c "Print Service User" -d /dev/null -g lp -s /bin/false -u 9 lp
If you utilize Linux-PAM, you need to modify some files so CUPS can find needed headers. Make the appropriate modifications using the following command:
sed -i -e "s@pam/pam@security/pam@g" \
{config-scripts/cups-pam.m4,scheduler/auth.c,configure}
If you plan on running the test suite, you should apply the patch listed above to fix several issues in the test suite script. Note that if you have the non-free htmldoc program installed, the patch disables its use.
patch -Np1 -i ../cups-1.1.23-testsuite_fix-1.patch
Install CUPS by running the following commands:
./configure && make
To test the results, issue: make check. Note that the “torture load testing” test uses more resources than those displayed in the prompt.
Now, as the root user:
make install
The basic default behavior of the installation is appropriate for LFS systems. CUPS files are placed in /usr/bin, /usr/sbin, /var and /etc/cups.
Configuration of CUPS is dependent on the type of printer and can be complex. Generally, PostScript printers are easier. For detailed instructions on configuration and use of CUPS, see http://www.cups.org/documentation.php. The Software Administrators Manual and Software Users Manual are particularly useful.
For non-PostScript printers to print with CUPS, you need to install ESP Ghostscript-8.15.2 to convert PostScript to raster images and a driver (e.g., from Gimp-Print-4.2.7) to convert the resulting raster images to a form that the printer understands. Foomatic drivers use Ghostscript to convert PostScript to a printable form directly, but this is considered to be a hack by CUPS developers.
During the installation, CUPS added startup files in /etc/rc.d. These scripts will work in most cases, but will fail if you provide printers to Samba clients. Additionally, they are not consistent with standard LFS style scripts. Replace the installed scripts with the scripts and symlinks included in the blfs-bootscripts-20060910 package:
make install-cups
Last updated on 2006-06-21 11:26:07 -0500