SUSE Linux Enterprise Desktop Administration Chapter 12

Download Report

Transcript SUSE Linux Enterprise Desktop Administration Chapter 12

SUSE Linux Enterprise Desktop
Administration
Chapter 12
Administer Printing
Objectives
• Objective 1—Understand How CUPS Works
• Objective 2—Configure Printers and Queues
• Objective 3—Understand Novell iPrint
SUSE Linux Enterprise Desktop Administration
2
Objective 1—Understand How CUPS
Works
• 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
3
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
SUSE Linux Enterprise Desktop Administration
4
Steps of the Printing Process
(continued)
Figure 12-1 Filtering process
SUSE Linux Enterprise Desktop Administration
5
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
SUSE Linux Enterprise Desktop Administration
6
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
SUSE Linux Enterprise Desktop Administration
7
Log Files (continued)
• The error_log File
– Lists messages from the scheduler (such as errors
and warnings)
SUSE Linux Enterprise Desktop Administration
8
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
SUSE Linux Enterprise Desktop Administration
9
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
SUSE Linux Enterprise Desktop Administration
10
When to Configure a Printer
• You can configure your printer at the following times:
– During installation
– After installation
SUSE Linux Enterprise Desktop Administration
11
Required Printing Software
Table 12-1 Packages needed to set up a print server
SUSE Linux Enterprise Desktop Administration
12
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
SUSE Linux Enterprise Desktop Administration
13
Figure 12-2 YaST Printer Configuration
SUSE Linux Enterprise Desktop Administration
14
Figure 12-3 Printer Type
SUSE Linux Enterprise Desktop Administration
15
Figure 12-4 New queue for existing printer
SUSE Linux Enterprise Desktop Administration
16
Figure 12-5 Directly connected printers
SUSE Linux Enterprise Desktop Administration
17
Figure 12-7 Network printers
SUSE Linux Enterprise Desktop Administration
18
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)
SUSE Linux Enterprise Desktop Administration
19
Figure 12-8 Print via CUPS Network Server
SUSE Linux Enterprise Desktop Administration
20
Figure 12-9 CUPS client only connection
SUSE Linux Enterprise Desktop Administration
21
Figure 12-11 CUPS using broadcasting connection
SUSE Linux Enterprise Desktop Administration
22
Figure 12-13 Remote IPP queue
SUSE Linux Enterprise Desktop Administration
23
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
SUSE Linux Enterprise Desktop Administration
24
Figure 12-14 Print directly to a network printer
SUSE Linux Enterprise Desktop Administration
25
Figure 12-15 Direct TCP Port Printer
SUSE Linux Enterprise Desktop Administration
26
Figure 12-16 Queue Name
SUSE Linux Enterprise Desktop Administration
27
Figure 12-17 Print to an SMB printer
SUSE Linux Enterprise Desktop Administration
28
Add a Printer (continued)
• Add and remove printers with the GNOME Printers
dialog
– See Figures 12-19 through 12-22
SUSE Linux Enterprise Desktop Administration
29
Figure 12-19 Add a new printer
SUSE Linux Enterprise Desktop Administration
30
Figure 12-20 Select the manufacturer and the model of the printer
SUSE Linux Enterprise Desktop Administration
31
Figure 12-21 Printer properties
SUSE Linux Enterprise Desktop Administration
32
Figure 12-22 Add a network printer
SUSE Linux Enterprise Desktop Administration
33
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
SUSE Linux Enterprise Desktop Administration
34
Exercise 12-1: Change Your Printer
Configuration
• In this exercise, you add a local printer to a remote
queue
SUSE Linux Enterprise Desktop Administration
35
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
SUSE Linux Enterprise Desktop Administration
36
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
SUSE Linux Enterprise Desktop Administration
37
Describe the Purpose and Architecture
of Novell iPrint (continued)
Figure 12-24 Finding and installing a printer with iPrint
SUSE Linux Enterprise Desktop Administration
38
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
SUSE Linux Enterprise Desktop Administration
39
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
SUSE Linux Enterprise Desktop Administration
40
Figure 12-25 iPrint components
SUSE Linux Enterprise Desktop Administration
41
Describe the Purpose and Architecture
of Novell iPrint (continued)
Figure 12-26 iPrint Print Manager
SUSE Linux Enterprise Desktop Administration
42
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
SUSE Linux Enterprise Desktop Administration
43
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
SUSE Linux Enterprise Desktop Administration
44
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
SUSE Linux Enterprise Desktop Administration
45
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
SUSE Linux Enterprise Desktop Administration
46
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
SUSE Linux Enterprise Desktop Administration
47
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
SUSE Linux Enterprise Desktop Administration
48
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
SUSE Linux Enterprise Desktop Administration
49
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
SUSE Linux Enterprise Desktop Administration
50
Figure 12-27 Manage Print Manager
SUSE Linux Enterprise Desktop Administration
51
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
SUSE Linux Enterprise Desktop Administration
52
Configure Novell iPrint (continued)
• Manage printers
– You can modify the settings by doing the following:
• Create additional printers (See Figures 12-28 and 1229)
• 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
SUSE Linux Enterprise Desktop Administration
53
Configure Novell iPrint (continued)
Figure 12-28 Create a new printer
SUSE Linux Enterprise Desktop Administration
54
Configure Novell iPrint (continued)
Figure 12-29 Select default drivers for a new printer
SUSE Linux Enterprise Desktop Administration
55
Figure 12-30 Manage printer agents
SUSE Linux Enterprise Desktop Administration
56
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
SUSE Linux Enterprise Desktop Administration
57
Install the Novell iPrint Client
(continued)
Table 12-2 Differences between the two clients
SUSE Linux Enterprise Desktop Administration
58
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
SUSE Linux Enterprise Desktop Administration
59
Install the Novell iPrint Client
(continued)
Figure 12-31 Install the client from the Novell iPrint Printer list
Web page
SUSE Linux Enterprise Desktop Administration
60
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
SUSE Linux Enterprise Desktop Administration
61
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
SUSE Linux Enterprise Desktop Administration
62
Exercise 12-2: Printing with the Novell
iPrint Client
• In this exercise, you install and use the Novell iPrint
client
SUSE Linux Enterprise Desktop Administration
63
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
SUSE Linux Enterprise Desktop Administration
64
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
SUSE Linux Enterprise Desktop Administration
65