Lab 9b - Printing (CUPS)

Lab 9b - Printing (CUPS)

CUPS provides printing services for Unix and Linux workstations. In this lab we will setup CUPS to use the network laser printer in the lab. CUPS is now the default method of printing with Red Hat.

1. Install the cups and cups-libs rpm packages if needed from disk 1.

2. Start the cups service.

3a. To access CUPS from the server start a web browser and go to the CUPS web management system at http://localhost:631.

3b. To access CUPS for any computer on the network (ie. you windows client) make the changes below and then start a web browser from any computer and go to the CUPS web management system at http://serverIP:631.

To access CUPS from a computer other than the server you must change the config file to allow access. Do this by editting the file /etc/cups/cupsd.conf and add the following line at the end of the file:

Listen yourIP:631

You will also have to look for lines that allow access to various parts of the CUPS web administration and add a line to each section to allow network access:

Allow From 127.0.0.1
Allow From 10.1.

(The first line will already be there, the second line must be added to allow access from our network. 10.11. will work for 80B, for other networks specify the network portion of the IP address.)

4. Click Manage Printers and then Add Printer and use the following settings:

Name: Lexmark_yourname (i.e. Lexmark_phil)
Location: Anything you wish
Description: Anything you wish

Select Device:  Internet Printing Protocol (ipp)
Device URI:  ipp://10.11.0.101/ipp/
Make: Postscript
Model: Generic postscript printer (en)

5. Print a test page from the CUPS web interface. If that works, print any small text file on the server from the command line using lp filename.

6. Have your work checked by the instructor.