SUSE Linux Enterprise Desktop Administration Chapter 12 Administer Printing
SUSE Linux Enterprise Desktop Administration Objectives Objective 1—Understand How CUPS Works Objective 2—Configure Printers and Queues Objective 3—Understand Novell iPrint 2
SUSE Linux Enterprise Desktop Administration Objective 1—Understand How CUPS Works 3 To understand how CUPS works, you need to understand the following: Steps of the Printing Process Print Queues Log Files
SUSE Linux Enterprise Desktop Administration Steps of the Printing Process The printing process involves the following steps: –A print job is submitted by a user or by a program –The file destined for the printer is stored in a print queue Creates two files per print job in the directory /var/spool/cups/ –The cupsd printer daemon acts as the print spooler –The conversion of print data is done (See Figure 12-1) –Once the print job has been transferred to the printer, the print spooler deletes the job from the queue and starts processing the next job 4
SUSE Linux Enterprise Desktop Administration Steps of the Printing Process (continued) 5 Figure 12-1 Filtering process
SUSE Linux Enterprise Desktop Administration Print Queues Printer devices are addressed using print queues –Print jobs are sent to a print queue associated with the device On a print server, each print queue is registered with its name in the /etc/cups/printers.conf file –Several print queues can be defined for one printer Each existing queue has its own configuration file –Stored on the print server in the /etc/cups/ppd/ directory On the client side, the names of queues are registered in the /etc/printcap file 6
SUSE Linux Enterprise Desktop Administration Log Files The access_log File –Lists each HTTP resource that is accessed by a Web browser or CUPS/IPP client The page_log File –Lists each page that is sent to a printer 7
SUSE Linux Enterprise Desktop Administration Log Files (continued) The error_log File –Lists messages from the scheduler (such as errors and warnings) 8
SUSE Linux Enterprise Desktop Administration Configuration File The configuration file for CUPS is /etc/cups/cupsd.conf –Format is similar to that of the configuration file for the Apache Web server Various options are used to configure the server itself –As well as to configure filtering, networking, browsing, and access 9
SUSE Linux Enterprise Desktop Administration Objective 2—Configure Printers and Queues YaST provides printer installation and configuration functionality To configure a printer, you need to know the following: –When to Configure a Printer –Required Printing Software –Add a Printer –Manage Print Queues with the GNOME Printers Dialog 10
SUSE Linux Enterprise Desktop Administration When to Configure a Printer You can configure your printer at the following times: –During installation –After installation 11
SUSE Linux Enterprise Desktop Administration Required Printing Software 12 Table 12-1 Packages needed to set up a print server
SUSE Linux Enterprise Desktop Administration Add a Printer Add a printer with YaST –The Printer Configuration dialog used to configure your printer is the same during and after installation –See Figures 12-2 and 12-3 –Available printer types New Queue for Existing Printer –See Figure 12-4 Directly Connected Printers –See Figure 12-5 Network Printers –See Figure
SUSE Linux Enterprise Desktop Administration14 Figure 12-2 YaST Printer Configuration
SUSE Linux Enterprise Desktop Administration15 Figure 12-3 Printer Type
SUSE Linux Enterprise Desktop Administration16 Figure 12-4 New queue for existing printer
SUSE Linux Enterprise Desktop Administration17 Figure 12-5 Directly connected printers
SUSE Linux Enterprise Desktop Administration18 Figure 12-7 Network printers
SUSE Linux Enterprise Desktop Administration Add a Printer (continued) Add a printer with YaST (continued) –CUPS supports the IPP, LPD, SMB, IPX, and socket protocols –Print via CUPS Network Server See Figure 12-8 Types of connections for the CUPS server –CUPS Client Only (see Figure 12-9) –CUPS Using Broadcasting (see Figure 12-11) –Remote IPP Queue (see Figure 12-13) 19
SUSE Linux Enterprise Desktop Administration20 Figure 12-8 Print via CUPS Network Server
SUSE Linux Enterprise Desktop Administration21 Figure 12-9 CUPS client only connection
SUSE Linux Enterprise Desktop Administration22 Figure CUPS using broadcasting connection
SUSE Linux Enterprise Desktop Administration23 Figure Remote IPP queue
SUSE Linux Enterprise Desktop Administration Add a Printer (continued) Add a printer with YaST (continued) –Print Directly to a Network Printer See Figures through –Print to an SMB Printer See Figures
SUSE Linux Enterprise Desktop Administration25 Figure Print directly to a network printer
SUSE Linux Enterprise Desktop Administration26 Figure Direct TCP Port Printer
SUSE Linux Enterprise Desktop Administration27 Figure Queue Name
SUSE Linux Enterprise Desktop Administration28 Figure Print to an SMB printer
SUSE Linux Enterprise Desktop Administration Add a Printer (continued) Add and remove printers with the GNOME Printers dialog –See Figures through
SUSE Linux Enterprise Desktop Administration30 Figure Add a new printer
SUSE Linux Enterprise Desktop Administration31 Figure Select the manufacturer and the model of the printer
SUSE Linux Enterprise Desktop Administration32 Figure Printer properties
SUSE Linux Enterprise Desktop Administration33 Figure Add a network printer
SUSE Linux Enterprise Desktop Administration Manage Print Queues with the GNOME Printers Dialog In the Printers dialog (Computer > Control Center > Printers) –Select a printer icon to open the Printing dialog for a printer –See Figure Use the menus, or the context menu available when right-clicking on a print job, to start or to stop a job, or to remove a job from the queue 34
In this exercise, you add a local printer to a remote queue SUSE Linux Enterprise Desktop Administration Exercise 12-1: Change Your Printer Configuration 35
SUSE Linux Enterprise Desktop Administration Objective 3—Understand Novell iPrint Novell iPrint extends print services securely across multiple networks and operating systems To use Novell iPrint effectively on SUSE Linux Enterprise Desktop 10, you need to understand the following: –Describe the Purpose and Architecture of Novell iPrint –Configure Novell iPrint –Install the Novell iPrint client 36
SUSE Linux Enterprise Desktop Administration Describe the Purpose and Architecture of Novell iPrint What Novell iPrint is –Novell iPrint lets mobile employees, business partners, and customers access printers from a variety of remote locations using existing Internet connections –Novell iPrint uses the Internet Printing Protocol (IPP), which has the following benefits: Uses the IP protocol Provides broad vendor support Works over local networks and the Internet Provides for print data encryption (SSL, TLS) Provides a standard print protocol for all platforms 37
SUSE Linux Enterprise Desktop Administration Describe the Purpose and Architecture of Novell iPrint (continued) 38 Figure Finding and installing a printer with iPrint
SUSE Linux Enterprise Desktop Administration Describe the Purpose and Architecture of Novell iPrint (continued) What Novell iPrint is (continued) –Novell’s implementation of Novell iPrint adds the following functionality: Printer driver download and installation Location-based printing Browser-enabled printer installation interface Customizable user interface Secure information transfer –For secure printing needs, Novell iPrint integrates with Novell eDirectory 39
SUSE Linux Enterprise Desktop Administration Describe the Purpose and Architecture of Novell iPrint (continued) Novell iPrint components on Linux –Main components: The Print Manager, the Driver Store, and the Novell iPrint client –Other supporting components: Apache Web Server, Novell iManager, and eDirectory –Print Manager Provides a platform for Printer Agents to reside on the server Printer Agents are representations of actual printers See Figure
SUSE Linux Enterprise Desktop Administration41 Figure iPrint components
SUSE Linux Enterprise Desktop Administration Describe the Purpose and Architecture of Novell iPrint (continued) 42 Figure iPrint Print Manager
SUSE Linux Enterprise Desktop Administration Describe the Purpose and Architecture of Novell iPrint (continued) Novell iPrint components on Linux (continued) –Print Manager access control components Printer Agent IPP server Novell iPrint gateway –Driver Store A repository of printer drivers for your print system Only one Driver Store is required on a network When the first user of a printer installs that printer –The Print Manager requests the associated printer driver from the Driver Store 43
SUSE Linux Enterprise Desktop Administration Describe the Purpose and Architecture of Novell iPrint (continued) Novell iPrint components on Linux (continued) –Novell iPrint Client Linux Novell iPrint client Macintosh Novell iPrint client Windows Novell iPrint client –Apache Web Server Apache 2.0 is the Web server for Novell iPrint Serves up HTML pages, handles secure (SSL/TLS) and nonsecure requests, and utilizes LDAP for authentication 44
SUSE Linux Enterprise Desktop Administration Describe the Purpose and Architecture of Novell iPrint (continued) Novell iPrint components on Linux (continued) –Novell iManager You use Novell iManager to create, configure, and manage your Novell iPrint system Novell iPrint Port Usage –Novell iPrint defaults to two primary ports: Port 443—All secure printing occurs over port 443 using SSL Port 631—All nonsecure printing occurs over port
SUSE Linux Enterprise Desktop Administration Configure Novell iPrint Set up and configure the Driver Store –Create a Driver Store From Novell iManager (on the left), select iPrint > Create Driver Store Fill in the appropriate fields When you finish filling in the fields, select OK –Add printer drivers A printer driver or PostScript Printer Description (PPD) file is a software entity that directly supports a physical printer, enabling it to carry out its functions 46
SUSE Linux Enterprise Desktop Administration Configure Novell iPrint (continued) Set up and configure the Driver Store (continued) –Add printer drivers (steps) From Novell iManager (on the left), select iPrint >Manage Driver Store; then browse to and select the Driver Store you want Select Drivers; then select the client platform you want to work with Do one of the following: –Add printer resources from a printer driver.inf file or PPD file –Add drivers from the workstation you are running Novell iManager 47
SUSE Linux Enterprise Desktop Administration Configure Novell iPrint (continued) Set up and configure the Driver Store (continued) –Add printer drivers (steps) (continued) Select the driver you want; then select OK Save your changes by selecting OK –Create a DNS name for the Print Manager Print Manager creates a URL for each printer based on the Print Manager configuration You can specify an IP address or DNS name for the Novell iPrint Service You should always use a DNS name 48
SUSE Linux Enterprise Desktop Administration Configure Novell iPrint (continued) Set up and configure the Print Manager –Create a Print Manager Make sure you have configured a DNS name for the Print Manager From Novell iManager (on the left), select iPrint > Create Print Manager Fill in the appropriate fields Make sure the Start Print Manager after Creation check box is selected When you finish, select OK 49
SUSE Linux Enterprise Desktop Administration Configure Novell iPrint (continued) Set up and configure the Print Manager (continued) –Start the Print Manager From Novell iManager, select iPrint > Manage Print Manager Browse to and select the Print Manager you want to manage Start the Print Manager by selecting Manager Control > Startup –(To stop the Print Manager, select Manager Control > Shutdown) Select OK 50
SUSE Linux Enterprise Desktop Administration51 Figure Manage Print Manager
SUSE Linux Enterprise Desktop Administration Configure Novell iPrint (continued) Create printers –From Novell iManager (on the left), select iPrint > Create Printer –Follow the prompts and fill in the fields –You can view explanations about the fields by selecting Help –When you finish, select Next; then select the drivers for this printer –When you finish, create the printer by selecting Next 52
SUSE Linux Enterprise Desktop Administration Configure Novell iPrint (continued) Manage printers –You can modify the settings by doing the following: Create additional printers (See Figures and ) Manage Printer Agents (See Figure 12-30) Use printer driver profiles Enable Novell iPrint Direct Manage print jobs –View print job information –Delete print jobs –Change the order of print jobs 53
SUSE Linux Enterprise Desktop Administration54 Figure Create a new printer Configure Novell iPrint (continued)
SUSE Linux Enterprise Desktop Administration55 Figure Select default drivers for a new printer Configure Novell iPrint (continued)
SUSE Linux Enterprise Desktop Administration56 Figure Manage printer agents
SUSE Linux Enterprise Desktop Administration Install the Novell iPrint Client Novell iPrint Client Requirements –SUSE Linux Enterprise Desktop 10, SuSE Open Linux 10.0 and 10.1 (or later) –Konqueror or a Mozilla-based browser such as Epiphany, Firefox, or Galeon Access Control to the Workstation Print System –The Linux Novell iPrint client is packaged in two different specialized installations Control access to the workstation’s print system –See Table
SUSE Linux Enterprise Desktop Administration58 Table 12-2 Differences between the two clients Install the Novell iPrint Client (continued)
SUSE Linux Enterprise Desktop Administration Install the Novell iPrint Client (continued) How to install the Novell iPrint client and your first printer on Linux –Install the client from the Novell iPrint Printer List Web page From a Web browser on the Linux desktop, enter the following Novell iPrint server URL: –See Figure Select the printer you want to install When prompted, save the Novell iPrint client RPM to your desktop or home directory 59
SUSE Linux Enterprise Desktop Administration60 Figure Install the client from the Novell iPrint Printer list Web page Install the Novell iPrint Client (continued)
SUSE Linux Enterprise Desktop Administration Install the Novell iPrint Client (continued) How to install the Novell iPrint client and your first printer on Linux (continued) –Install the client from the Novell iPrint Printer List Web page (continued) Install the Novell iPrint client RPM by double-clicking the RPM Exit and restart your Web browser before installing your first printer Enter the Novell iPrint server URL From the Novell iPrint server page, select a printer you want to install 61
SUSE Linux Enterprise Desktop Administration Install the Novell iPrint Client (continued) How to install the Novell iPrint Client and your first printer on Linux (continued) –Deliver the client using distribution software You can use client distribution software (such as Novell ZENworks) –To deliver the Novell iPrint client, and possibly printers, to your client workstations 62
SUSE Linux Enterprise Desktop Administration Exercise 12-2: Printing with the Novell iPrint Client In this exercise, you install and use the Novell iPrint client 63
SUSE Linux Enterprise Desktop Administration Summary SUSE Linux uses the CUPS printing system by default CUPS uses IPP, but can support the socket, LPD, IPX, and SMB printing protocols You can configure a CUPS printers during installation, or after installation using YaST, the GNOME Printers dialog, or by editing the appropriate configuration files in the /etc/cups directory and restarting the CUPS daemon 64
SUSE Linux Enterprise Desktop Administration Summary (continued) CUPS print jobs are sent to a queue directory (/var/spool/cups) before being sent to the printer itself The CUPS daemon writes logging information to the /var/log/cups/error_log, /var/log/cups/access_log, and /var/log/cups/page_log files Novell iPrint can be used to install, access, and manage IPP printers remotely using a Web browser Before adding printers to Novell iPrint, you must first create a Driver Store as well as configure a Print Manager with Printer Agents 65