Printing with CUPS, Part 1 - Page 3

 By Carla Schroder
Page 3 of 4   |  Back to Page 1
Print Article


Most modern Linux distributions should come with CUPS already installed. CUPS is designed to be adaptable and extensible, so the various distributions take advantage of this and customize it — some rather heavily. The commands remain the same, but file locations may be all goobered up; don't yell at me if files aren't where I say they are.

It is best to have the latest version. Look in the title bar of the CUPS browser to see the installed version. The current stable version is 1.1.19. If this version is not installed on your system, please see Resources. Also be sure to remove any installed printer systems before installing CUPS.

Here's how to tell if the CUPS daemon, cupsd, is running:

$ lpstat -t
scheduler is running
system default destination: HPLaserJet
members of class test:

The -t switch acts like all the lpstat switches combined, giving complete status information.

Starting and stopping cupsd depends on how your system handles init scripts. The executable should be /usr/sbin/cupsd. In Debian:

# /etc/init.d/cupsys {start|stop|restart|force-reload}

Red Hat 8.0 uses /sbin/service cups {}, Gentoo /etc/init.d/cups {} – well, you get the idea – see the docs for your distribution. By default CUPS should start itself at boot; the restart command is needed only after making changes to the configuration files (/etc/cups/cupsd.conf or /etc/cups/client.conf).

Page 4: Standalone Linux PC with Attached Printer

This article was originally published on Jul 9, 2003
Get the Latest Scoop with Networking Update Newsletter