> Table of content: IT-equipment and Company-organisation

Configuration and Usage of CUPS

* For this document and all references (links) please obey the hints and regulations concerning copyright, disclaimer and trademarks.

  • The owner of this web-site (www.javascout.biz) is not responsible for the content of web-sites linked within this document or linked within other documents of www.javascout.biz.

  • If this document or other documents of this web-site (www.javascout.biz) infringes your rights or you think that rights of others (third parties) are infringed, please inform the author.
    An e-mail can be sent by clicking onto the 'hungry mailbox' in the upper right corner.

Print this dokument.

 Last revision of this document: 
2007-09-24



Prerequisites to understand the content of this document:

* General knowledge how to enter a command on the command-line; respectively hot to start applications using a GUI

Approximate expenditure of time to work over this document:

Time to work on: ca. 30 minutes for each alternative installation.

This document contains the description how to 'config' an attached printer; i.e. select the fitting driver for the given manufacturer and model and change the driver-parameters, if necessary.

It is also considered, that a GUI (Graphic User Interface) might not be available – e.g at a not so powerful computer been used as Router.

Additionally, a bugfix is described to correct an error in RedHat Linux version 9.

Overview

Preface 
Prerequisites 
Printer Configuration with GNOME-GUI
 
Printer Configuration if GUI is not available 
SAMBA-Bugfix in RedHat Linux Version 9
 

Preface

Things, they are changing – that is also true for the development-progress of Linux.
The appearance of the GUI (Graphic User Interface) and description of the menu and applications are changing slightly from version to version.
The screenshots within this document were made from a RedHat**-Linux version 8.0 (published in 2001).
Therefore following versions (till Fedora Core 7 in 2007) will look significantly different.
Nevertheless, the task and the sequence of the installation stayed the same.
Don't be confused if appearance and description in the version you are using do not completely fit this description.
If you progressed through the installation of Linux till here, the Configuration of a Printer should not be an insuperable handicap for you ;-) .

Prerequisites

Logged on as user 'root'.
Valid for both methods.

Printer Configuration with GNOME-GUI

Preparation: Running automatic Hardware Detection

Configuration of Pinters can shortened if the connected printer was already recognized by the Hardware Detection.
Hardware Detection starts shortly after Linux started the boot-process.
If you recently connected a printer, switch it on and watch the boot-process of Linux.
If Hardware Detection recognizes the printer you are asked to confirm the configuration of the printer.

Start of the Printer Configuration

The application to configure a printer is started by the selection of
Menu (red Hat)System Settings - Printing.

Display with detected, respectively not detected printer

If the printer was already configured by the Hardware Detection program, it is already listed in the display.

If you want to change the symbolic name of the Queue, please click onto the icon [Edit] and continue with the next step (Rename the QueueName); otherwise continue with Review Driver Options fort.

If the printer was not found by the Hardware Detection the following display appears.

In that case please click ontot the icon [New] and continue with the step Add a new Print Queue .

Rename the Queue Name

After clicking the icon [Edit] a new window opens.

Within this window you might change the 'Queue Name'. This name is shown in lists to choose a printer from when a print-job is started.

In this example the 'Queue Name' was changed from lp0 to A4_white .

By clicking onto the icon [OK] the window will be closed again.

Please continue with the step Treiberoptionen überprüfen.


Add a new Print Queue

If the printer was not recognized and configured by the Hardware Detection, configuration of the printer will be started by clicking onto the icon [New] and a new window will appear.

This windows contains the information, that the configuration of your printer will be started by clicking onto the icon [Forward].


Set the Print Queue Name and Type

This window allows to set the 'Queue Name' and 'Queue Type'.

In this example the 'Queue Name' A4_white was chosen.

Furthermore the information, how the printer is connected to the computer. As this document covers only printers, that are directly connected to a PC, 'Local Printer' is selected.

The next step of this installation instruction is reached after clicking onto the icon [Forward] .


Configure a Local Printer

Within this step, the choice, at which interface the printer is connected' has to be made.

The PC used for this example has 2 printer-interfaces of type 'parallel' – which are shown for selection.
If the PC would have been equipped with an USB-connection, this choice would also have been listed.

After chosing the correct interface, please click onto the icon [Forward] to go to the next step.


Select a Print Driver

The driver for the attached printer is determined within this step.

For this purpose, manufacturers are listed (not visible any more at that example).
By clicking onto the triangle left of the manufacturers name, all printer-models, where a driver is contained in the installed Linux-package, are listed below the manufacturers name.
With a further click onto the triangle left of the printer-model, all available drivers are listed.
The recommended driver is marked by
(*) .

Possible pitfall:
Selecting just the printer-model is not sufficient; there has to be selected a driver too.

If your printer-model is not listed:
If you installed an older version of Linux (e.g. RedHat Version 8.0 for the 'Router') it might occur that your newer printer-model is not listed.
That is not a problem as long as you do not want to start a printout from the PC the printer is connected to.
Either choose a predecessor-model of the same manufacturer
or select 'Raw Print Queue' (at top of the list, before the manufacturers list start).
Control of the printer is then handed over to the workstation-PC that is accessing the printer.
If there a correct driver for the printer is installed (e.g. with a newer version of Linux or Windows), the printer receives correct preprocessed data.

The final step of the installation will be reached by clicking onto the icon [Forward] .


Finish and Create the New Print Queue

Finally, a summary of the installation just carried out is shown.

The window will be closed by clicking onto the icon [Apply] .


Review Driver Options (Page Size, etc.)

By selecting the printer and clicking the icon [Edit] at the window for the Printer Configuration, a new window with possible adjustments will be opened.

The appearance depends highly on the configured printer-driver and might be highly different at your installed printer.

Usually, the values are set automatically.
It is recommended to review the following values:
Page Size:
This value is set depending on the selected language (e.g. 'A4' for Deutsch (German), 'Letter' for English) and might therefore be different from the paper used.
Ink Type (print-heads):
This value is changeable if the print-heads of the printer can be changed (e.g. 'Black Only', '4-Color', 'Photo').

This window will be closed by clicking onto the icon [OK] .

Store (Apply) of the changes made

By clicking onto the icon [Apply] changes will be stored and become valid.

A confirmation window (no illustration shown) will appear thereafter.


Testing the printer

The print-out of a test-page will be started by selecting Test and the desired page-size thereafter.



to overview

Printer Configuration if GUI (Graphic User Interface) is not available

Preparation: Running automatic Hardware Detection

Configuration of Pinters can shortened if the connected printer was already recognized by the Hardware Detection.
Hardware Detection starts shortly after Linux started the boot-process.
If you recently connected a printer, switch it on and watch the boot-process of Linux.
If Hardware Detection recognizes the printer you are asked to confirm the configuration of the printer.

Starting the printer-configuration

Die text-basierte Installation wird durch das Kommando
redhat-config-printer
begonnen.

Anzeige bei erkanntem bzw. nicht erkanntem Drucker

Abhängig, ob die automatische Hardware-Erkennung den Drucker bereits erkannt hat, wird der Drucker bereits aufgelistet

to overview

SAMBA-Bugfix in RedHat Linux Version 9

RedHat Linux 9 (maybe other versions too) was delivered with an error preventing, that a printer, which was made accessible to other workstations within the internal network using SAMBA, will print jobs sent to it.
This error may confuse users, as the printer is listed as 'ready', accepts print-jobs – but does not print them out.

Thanks for preliminary work to:

An excellent documentation and solution of the problem can be found under http://www.wlug.org.nz/SambaPrinting.
A big Thank You to the anonymous authors.

Prerequisites

Installation Instruction

Open the file /etc/samba/smb.conf
and identify the description for the installed printer.
The following example is for an installed HP-Deskjet-340 and named
HPDJ-340 (therefore identified with [HPDJ-340]).
For your installation, the identifier will be different – for sure.

Add the commands printed in bold:
[HPDJ-340]
comment = portable printer
path = /var/spool/samba
read only = No
printable = Yes
printer name = HPDJ-340
oplocks = No
print command = lpr -P %p -o raw %s -r
lpq command = lpstat -o %p
lprm command = cancel %p-%j

Test

'Install' the printer on a workstation with windows and print a Test-Page.


to overview