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://kitty.dnsalias.org/PKGS/SOURCES/cups-1.1.19-source.tar.bz2
Download (FTP): ftp://ftp.easysw.com/pub/cups/1.1.19/cups-1.1.19-source.tar.bz2
Download size: 3.5 MB
Estimated Disk space required: 32 MB
Estimated build time: 0.67 SBU
Install CUPS by running the following commands:
./configure && make && 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.
During the install, CUPS created the startup file /etc/rc.d/init.d/cups. The file works, but you may want to change it to a more conventional LFS startup file:
cat > /etc/rc.d/init.d/cups << "EOF" #!/bin/sh # Begin $rc_base/init.d/cups # Start or stop the CUPS server based upon the first argument to the script. source /etc/sysconfig/rc source $rc_functions case $1 in start) echo "Starting CUPS Printserver..." loadproc /usr/sbin/cupsd ;; stop) echo "Stopping CUPS Printserver..." killproc cupsd ;; reload) echo "Reloading CUPS Printserver..." reloadproc /usr/sbin/cupsd ;; restart) $0 stop sleep 1 $0 start ;; status) statusproc cupsd ;; *) echo "Usage: $0 {start|stop|reload|restart|status}" exit 1 ;; esac # End $rc_base/init.d/cups startup script. EOF |
Create the symbolic links to this file in the relevant rc.d directory with the following commands:
cd /etc/rc.d/init.d && ln -sf ../init.d/cups ../rc0.d/K00cups && ln -sf ../init.d/cups ../rc2.d/S99cups && ln -sf ../init.d/cups ../rc3.d/S99cups && ln -sf ../init.d/cups ../rc5.d/S99cups |
CUPS provides accept, cupsaddsmb, cupsd, cupstestppd, lpadmin, lpc, lpinfo, lpmove, reject, cancel, cups-config, disable, enable, lp, lpoptions, lppasswd, lpq, lpr, lprm, lpstat, libcups, libcupsimage and various scripts and filters.
lpc provides limited control over printer and class queues provided by CUPS .
cupsd is the scheduler for the Common Unix Printing System.
accept instructs the printing system to accept print jobs to the specified destinations.
reject reject instructs the printing system to reject print jobs to the specified destinations.
cupsaddsmb exports printers to the SAMBA software for use with Windows clients.
lpadmin configures printer and class queues provided by CUPS.
lpinfo lists the available devices or drivers known to the CUPS server.
lpmove moves the specified job to a new destination.
cupstestppd tests the conformance of PPD files.
lpq shows the current print queue status on the named printer.
lpr submits files for printing.
lprm cancels print jobs that have been queued for printing.
cancel cancels existing print jobs.
disable stops the named printers or classes.
enable starts the named printers or classes.
lp submits files for printing or alters a pending job.
lpoptions displays or sets printer options and defaults.
lpstat displays status information about the current classes, jobs, and printers.
lppasswd adds, changes or deletes passwords in the CUPS digest password file passwd.md5.
cups-config is the CUPS program configuration utility.