How to correctly configure CUPS



This tutorial describes how to install a Linux print server with CUPS. It also covers the installation and configuration of printer drivers on the print server using samba share as well as the printer setup on a Windows 2000 (or higher) client


CUPS – Common Unix Printing System is a modular printing system for unixlike computer operating system which allows a computer to act as a print-server. A computer running CUPS is a host that accept print jobs from client computers, process them and send them to the appropriate printers.

CUPS was initially developed by a guy called Michael Sweet and the protocol used back then was LPD. Due to LPD limitations and vendors incompactibility, it was replaced with IPP (internet printing protocol). CUPS was quickly adopted by various linux distributions as the default printing system. Notable among them were Red Hat Linux, Fedora, SuSE, Mandrake and in March 2002, Apple joined (using CUPS as printing system for Mac OS X 10.2). In February 2007, Apple hired chief developer Michael Sweet and purchased CUPS source code.

Now, let’s proceed with the step-bystep installing and configuring CUPS

Step #1 – Install cups service

a.) # su –

b.) # yum -y install cups

Step #2 – Configuration

a.) # vi /etc/cups/cupsd.conf

The default CUPS configuration limits access only to the local machine (cups server). If you wish to open up the access, edit /etc/cups/cupsd.conf and comment out the following lines:

Order deny, allow

Deny from all

Allow from

b.) #vi /etc/cups/cupsd.conf

I’m not sure if this is advicable but if you wish to avoid password authentication, you need to edit and comment out the following lines:

AuthType Basic

AuthClass System

These lines above restrict the printer access to system users.

Step #3 – Restart the CUPS server

# service cups restart

To be continued…

Posted in Linux, Linux Installation, samba and tagged , , by with comments disabled.