7
CIS 192B – Lesson 7 UNIX Printing

CIS 192B – Lesson 7 UNIX Printing. CIS 192B – Lesson 7 Printing Architecture Clients Scheduler/ Backends Network Spooler Named Queue Script Command-line

Embed Size (px)

Citation preview

Page 1: CIS 192B – Lesson 7 UNIX Printing. CIS 192B – Lesson 7 Printing Architecture Clients Scheduler/ Backends Network Spooler Named Queue Script Command-line

CIS 192B – Lesson 7

UNIX Printing

Page 2: CIS 192B – Lesson 7 UNIX Printing. CIS 192B – Lesson 7 Printing Architecture Clients Scheduler/ Backends Network Spooler Named Queue Script Command-line

CIS 192B – Lesson 7

Printing Architecture

Clients Scheduler/ Backends Network Spooler

Named Queue

Named Queue

Named Queue

Script

Script

Script

Command-line

Graphic applications

daemon

Page 3: CIS 192B – Lesson 7 UNIX Printing. CIS 192B – Lesson 7 Printing Architecture Clients Scheduler/ Backends Network Spooler Named Queue Script Command-line

CIS 192B – Lesson 7

The Components• The Print Spooler

– Collects and schedules jobs

• User-level Utilities– Command-line– Graphical

• Back Ends– Piped shell scripts that talk to devices

• A Newtork Protocol– Communication among spoolers

Page 4: CIS 192B – Lesson 7 UNIX Printing. CIS 192B – Lesson 7 Printing Architecture Clients Scheduler/ Backends Network Spooler Named Queue Script Command-line

CIS 192B – Lesson 7

The CUPS Daemon

• The daemon: – cupsd

• Configuration files:– /etc/cups/cupsd.conf– /etc/cups/printers.conf

• Backend script files– /etc/cups/ppd/*.ppd

Page 5: CIS 192B – Lesson 7 UNIX Printing. CIS 192B – Lesson 7 Printing Architecture Clients Scheduler/ Backends Network Spooler Named Queue Script Command-line

CIS 192B – Lesson 7

The Configuration File

• Very Apache-like• Important Directives:

– Port 631– BrowseAllow @LOCAL | All– BrowseAddress broadcast-addr:port– Allow from network-address

Page 6: CIS 192B – Lesson 7 UNIX Printing. CIS 192B – Lesson 7 Printing Architecture Clients Scheduler/ Backends Network Spooler Named Queue Script Command-line

CIS 192B – Lesson 7

User Agents• Command-line:

– lpadmin– lpoptions– cupsenable– cupsdisable

• Graphic: Web based– http://localhost:631– http://server:631/printers– http://server:631/admin

Page 7: CIS 192B – Lesson 7 UNIX Printing. CIS 192B – Lesson 7 Printing Architecture Clients Scheduler/ Backends Network Spooler Named Queue Script Command-line

CIS 192B – Lesson 7

Spooling

• Print Jobs are spooled in:– /var/spool/cups

• control files begin with ‘c’• data files begin with ‘d’