SUSE Linux Enterprise Desktop Administration Chapter 12 Administer Printing.

65
SUSE Linux Enterprise Desktop Administration Chapter 12 Administer Printing

Transcript of SUSE Linux Enterprise Desktop Administration Chapter 12 Administer Printing.

Page 1: SUSE Linux Enterprise Desktop Administration Chapter 12 Administer Printing.

SUSE Linux Enterprise Desktop Administration

Chapter 12Administer Printing

Page 2: 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

Page 3: SUSE Linux Enterprise Desktop Administration Chapter 12 Administer Printing.

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

Page 4: SUSE Linux Enterprise Desktop Administration Chapter 12 Administer Printing.

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

Page 5: SUSE Linux Enterprise Desktop Administration Chapter 12 Administer Printing.

SUSE Linux Enterprise Desktop Administration

Steps of the Printing Process (continued)

5

Figure 12-1 Filtering process

Page 6: SUSE Linux Enterprise Desktop Administration Chapter 12 Administer Printing.

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

Page 7: SUSE Linux Enterprise Desktop Administration Chapter 12 Administer Printing.

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

Page 8: SUSE Linux Enterprise Desktop Administration Chapter 12 Administer Printing.

SUSE Linux Enterprise Desktop Administration

Log Files (continued)

• The error_log File– Lists messages from the scheduler (such as errors

and warnings)

8

Page 9: SUSE Linux Enterprise Desktop Administration Chapter 12 Administer Printing.

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

Page 10: SUSE Linux Enterprise Desktop Administration Chapter 12 Administer Printing.

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

Page 11: SUSE Linux Enterprise Desktop Administration Chapter 12 Administer Printing.

SUSE Linux Enterprise Desktop Administration

When to Configure a Printer

• You can configure your printer at the following times:– During installation– After installation

11

Page 12: SUSE Linux Enterprise Desktop Administration Chapter 12 Administer Printing.

SUSE Linux Enterprise Desktop Administration

Required Printing Software

12

Table 12-1 Packages needed to set up a print server

Page 13: SUSE Linux Enterprise Desktop Administration Chapter 12 Administer Printing.

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 12-7

13

Page 14: SUSE Linux Enterprise Desktop Administration Chapter 12 Administer Printing.

SUSE Linux Enterprise Desktop Administration 14

Figure 12-2 YaST Printer Configuration

Page 15: SUSE Linux Enterprise Desktop Administration Chapter 12 Administer Printing.

SUSE Linux Enterprise Desktop Administration 15

Figure 12-3 Printer Type

Page 16: SUSE Linux Enterprise Desktop Administration Chapter 12 Administer Printing.

SUSE Linux Enterprise Desktop Administration 16

Figure 12-4 New queue for existing printer

Page 17: SUSE Linux Enterprise Desktop Administration Chapter 12 Administer Printing.

SUSE Linux Enterprise Desktop Administration 17

Figure 12-5 Directly connected printers

Page 18: SUSE Linux Enterprise Desktop Administration Chapter 12 Administer Printing.

SUSE Linux Enterprise Desktop Administration 18

Figure 12-7 Network printers

Page 19: SUSE Linux Enterprise Desktop Administration Chapter 12 Administer Printing.

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

Page 20: SUSE Linux Enterprise Desktop Administration Chapter 12 Administer Printing.

SUSE Linux Enterprise Desktop Administration 20

Figure 12-8 Print via CUPS Network Server

Page 21: SUSE Linux Enterprise Desktop Administration Chapter 12 Administer Printing.

SUSE Linux Enterprise Desktop Administration 21

Figure 12-9 CUPS client only connection

Page 22: SUSE Linux Enterprise Desktop Administration Chapter 12 Administer Printing.

SUSE Linux Enterprise Desktop Administration 22

Figure 12-11 CUPS using broadcasting connection

Page 23: SUSE Linux Enterprise Desktop Administration Chapter 12 Administer Printing.

SUSE Linux Enterprise Desktop Administration 23

Figure 12-13 Remote IPP queue

Page 24: SUSE Linux Enterprise Desktop Administration Chapter 12 Administer Printing.

SUSE Linux Enterprise Desktop Administration

Add a Printer (continued)

• Add a printer with YaST (continued)– Print Directly to a Network Printer

• See Figures 12-14 through 12-16

– Print to an SMB Printer• See Figures 12-17

24

Page 25: SUSE Linux Enterprise Desktop Administration Chapter 12 Administer Printing.

SUSE Linux Enterprise Desktop Administration 25

Figure 12-14 Print directly to a network printer

Page 26: SUSE Linux Enterprise Desktop Administration Chapter 12 Administer Printing.

SUSE Linux Enterprise Desktop Administration 26

Figure 12-15 Direct TCP Port Printer

Page 27: SUSE Linux Enterprise Desktop Administration Chapter 12 Administer Printing.

SUSE Linux Enterprise Desktop Administration 27

Figure 12-16 Queue Name

Page 28: SUSE Linux Enterprise Desktop Administration Chapter 12 Administer Printing.

SUSE Linux Enterprise Desktop Administration 28

Figure 12-17 Print to an SMB printer

Page 29: SUSE Linux Enterprise Desktop Administration Chapter 12 Administer Printing.

SUSE Linux Enterprise Desktop Administration

Add a Printer (continued)

• Add and remove printers with the GNOME Printers dialog– See Figures 12-19 through 12-22

29

Page 30: SUSE Linux Enterprise Desktop Administration Chapter 12 Administer Printing.

SUSE Linux Enterprise Desktop Administration 30

Figure 12-19 Add a new printer

Page 31: SUSE Linux Enterprise Desktop Administration Chapter 12 Administer Printing.

SUSE Linux Enterprise Desktop Administration 31

Figure 12-20 Select the manufacturer and the model of the printer

Page 32: SUSE Linux Enterprise Desktop Administration Chapter 12 Administer Printing.

SUSE Linux Enterprise Desktop Administration 32

Figure 12-21 Printer properties

Page 33: SUSE Linux Enterprise Desktop Administration Chapter 12 Administer Printing.

SUSE Linux Enterprise Desktop Administration 33

Figure 12-22 Add a network printer

Page 34: SUSE Linux Enterprise Desktop Administration Chapter 12 Administer Printing.

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 12-23

• 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

Page 35: SUSE Linux Enterprise Desktop Administration Chapter 12 Administer Printing.

• 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

Page 36: SUSE Linux Enterprise Desktop Administration Chapter 12 Administer Printing.

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

Page 37: SUSE Linux Enterprise Desktop Administration Chapter 12 Administer Printing.

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

Page 38: SUSE Linux Enterprise Desktop Administration Chapter 12 Administer Printing.

SUSE Linux Enterprise Desktop Administration

Describe the Purpose and Architecture of Novell iPrint (continued)

38

Figure 12-24 Finding and installing a printer with iPrint

Page 39: SUSE Linux Enterprise Desktop Administration Chapter 12 Administer Printing.

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

Page 40: SUSE Linux Enterprise Desktop Administration Chapter 12 Administer Printing.

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 12-26

40

Page 41: SUSE Linux Enterprise Desktop Administration Chapter 12 Administer Printing.

SUSE Linux Enterprise Desktop Administration 41

Figure 12-25 iPrint components

Page 42: SUSE Linux Enterprise Desktop Administration Chapter 12 Administer Printing.

SUSE Linux Enterprise Desktop Administration

Describe the Purpose and Architecture of Novell iPrint (continued)

42

Figure 12-26 iPrint Print Manager

Page 43: SUSE Linux Enterprise Desktop Administration Chapter 12 Administer Printing.

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

Page 44: SUSE Linux Enterprise Desktop Administration Chapter 12 Administer Printing.

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

Page 45: SUSE Linux Enterprise Desktop Administration Chapter 12 Administer Printing.

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 631

45

Page 46: SUSE Linux Enterprise Desktop Administration Chapter 12 Administer Printing.

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

Page 47: SUSE Linux Enterprise Desktop Administration Chapter 12 Administer Printing.

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 iManager47

Page 48: SUSE Linux Enterprise Desktop Administration Chapter 12 Administer Printing.

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

Page 49: SUSE Linux Enterprise Desktop Administration Chapter 12 Administer Printing.

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

Page 50: SUSE Linux Enterprise Desktop Administration Chapter 12 Administer Printing.

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

Page 51: SUSE Linux Enterprise Desktop Administration Chapter 12 Administer Printing.

SUSE Linux Enterprise Desktop Administration 51

Figure 12-27 Manage Print Manager

Page 52: SUSE Linux Enterprise Desktop Administration Chapter 12 Administer Printing.

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

Page 53: SUSE Linux Enterprise Desktop Administration Chapter 12 Administer Printing.

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 12-28 and 12-29)

• 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

Page 54: SUSE Linux Enterprise Desktop Administration Chapter 12 Administer Printing.

SUSE Linux Enterprise Desktop Administration 54

Figure 12-28 Create a new printer

Configure Novell iPrint (continued)

Page 55: SUSE Linux Enterprise Desktop Administration Chapter 12 Administer Printing.

SUSE Linux Enterprise Desktop Administration 55

Figure 12-29 Select default drivers for a new printer

Configure Novell iPrint (continued)

Page 56: SUSE Linux Enterprise Desktop Administration Chapter 12 Administer Printing.

SUSE Linux Enterprise Desktop Administration 56

Figure 12-30 Manage printer agents

Page 57: SUSE Linux Enterprise Desktop Administration Chapter 12 Administer Printing.

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 12-2

57

Page 58: SUSE Linux Enterprise Desktop Administration Chapter 12 Administer Printing.

SUSE Linux Enterprise Desktop Administration 58

Table 12-2 Differences between the two clients

Install the Novell iPrint Client (continued)

Page 59: SUSE Linux Enterprise Desktop Administration Chapter 12 Administer Printing.

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:

http://server_IP_address_or_dns_name/ipp– See Figure 12-31

• Select the printer you want to install

• When prompted, save the Novell iPrint client RPM to your desktop or home directory

59

Page 60: SUSE Linux Enterprise Desktop Administration Chapter 12 Administer Printing.

SUSE Linux Enterprise Desktop Administration 60

Figure 12-31 Install the client from the Novell iPrint Printer listWeb page

Install the Novell iPrint Client (continued)

Page 61: SUSE Linux Enterprise Desktop Administration Chapter 12 Administer Printing.

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

Page 62: SUSE Linux Enterprise Desktop Administration Chapter 12 Administer Printing.

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

Page 63: SUSE Linux Enterprise Desktop Administration Chapter 12 Administer Printing.

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

Page 64: SUSE Linux Enterprise Desktop Administration Chapter 12 Administer Printing.

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

Page 65: SUSE Linux Enterprise Desktop Administration Chapter 12 Administer Printing.

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