Top Banner
Linux Printing Chapter 14
24

Linux Printing Chapter 14. Linux Printing Configuring a local printer Configuring a remote printer Traditional UNIX printing CUPS web Interface CUPS on.

Jan 03, 2016

Download

Documents

Lewis Armstrong
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 2: Linux Printing Chapter 14. Linux Printing Configuring a local printer Configuring a remote printer Traditional UNIX printing CUPS web Interface CUPS on.

Linux Printing

• Configuring a local printer

• Configuring a remote printer

• Traditional UNIX printing

• CUPS web Interface

• CUPS on the command line

• Integration with Windows

Page 3: Linux Printing Chapter 14. Linux Printing Configuring a local printer Configuring a remote printer Traditional UNIX printing CUPS web Interface CUPS on.

Printing with CUPS

• The role of printing– Receive print job from application– Get it to the appropriate queue– Format it for printing

Page 4: Linux Printing Chapter 14. Linux Printing Configuring a local printer Configuring a remote printer Traditional UNIX printing CUPS web Interface CUPS on.

LPR / CUPS / IPP

• LPR & LPD are the traditional Unix/Linux printing systems– Used the Line Printer Daemon for the server – Line Pinter Remote for the client end

Page 5: Linux Printing Chapter 14. Linux Printing Configuring a local printer Configuring a remote printer Traditional UNIX printing CUPS web Interface CUPS on.

LPR / CUPS / IPP

• CUPS– Common UNIX Printing System is a cross

platform print server built around IPP

• IPP – Internet Printing Protocol (based on http)

Page 6: Linux Printing Chapter 14. Linux Printing Configuring a local printer Configuring a remote printer Traditional UNIX printing CUPS web Interface CUPS on.

LPR / CUPS / IPP

• CUPS– Contains numerous standard printer drivers– Cross platform – Linux, Windows, & Mac OS X– Supports

• LPD/LPR, http, SMB, and JetDirect protocols

Page 7: Linux Printing Chapter 14. Linux Printing Configuring a local printer Configuring a remote printer Traditional UNIX printing CUPS web Interface CUPS on.

IPP Project

• The IPP project began in 1996 when Novell and several other companies decided to design a protocol for printing over the Internet

• IPP is capable of determining:– the capabilities of a printer– Status of a printer– Status of a print job– As well as submitting and cancelling printjobs

Page 8: Linux Printing Chapter 14. Linux Printing Configuring a local printer Configuring a remote printer Traditional UNIX printing CUPS web Interface CUPS on.

Getting ready for CUPS

• The following packages need to be installed for CUPS printing:- CUPS- System-config-printer (optional)- Kdebase (provides optional kprinter)

Page 9: Linux Printing Chapter 14. Linux Printing Configuring a local printer Configuring a remote printer Traditional UNIX printing CUPS web Interface CUPS on.

Starting CUPS

• To start CUPS– /etc/rc.d/init.d/cups start

• To set CUPS to auto start in Multiuser mode– /sbin/chkconfig cups on

Page 10: Linux Printing Chapter 14. Linux Printing Configuring a local printer Configuring a remote printer Traditional UNIX printing CUPS web Interface CUPS on.

Configuring a local printer

• The fastest way to add a printer is to use the “system-config-printer” command

• This will bring up Printer Configuration

Page 12: Linux Printing Chapter 14. Linux Printing Configuring a local printer Configuring a remote printer Traditional UNIX printing CUPS web Interface CUPS on.

Adding a new printer queue

• Queue name– The name needs to start with a letter and contains no

spaces– Queue description is optional but a good idea

• Queue Type– By default this will be set to “Locally-connected” – LPT1 port will be displayed as /dev/lp0– USB ports will be displayed as /dev/usb/lp0

• They appear as Line printers inder the USB directory

Page 13: Linux Printing Chapter 14. Linux Printing Configuring a local printer Configuring a remote printer Traditional UNIX printing CUPS web Interface CUPS on.

Adding a new printer queue

• Printer Model– Standard printers can be chosen from a list of

manufacturers and models– If a printer is not listed, check to see if there is

a printer that can be emulated

• Finish

Page 14: Linux Printing Chapter 14. Linux Printing Configuring a local printer Configuring a remote printer Traditional UNIX printing CUPS web Interface CUPS on.

Configuring a Remote Printer

• CUPS allows you to connect to a printer over the network and manipulate the configuration or check its status.

• CUPS runs on port 631– To connect to a host you will need to

reference the port.– To connect to your local port you will need to

use your browser to get to http://localhost:631

Page 17: Linux Printing Chapter 14. Linux Printing Configuring a local printer Configuring a remote printer Traditional UNIX printing CUPS web Interface CUPS on.

LPR/LPD printing

• Command based printing uses the “lp” or “lpr” command.– “lp memo.txt” will send the memo.txt file to the

default printer– To specify a printer use the “-d” command

• ‘lp –d colorlaser memo.txt”

Page 18: Linux Printing Chapter 14. Linux Printing Configuring a local printer Configuring a remote printer Traditional UNIX printing CUPS web Interface CUPS on.

LPR/LPD printing• “lpstat” is used to display information

about a printer’s queue

• Each print job is given a job number – you can use the “cancel” command to remove them from a queue– “cancel 15”

• This is also availablethrough the browser

Page 19: Linux Printing Chapter 14. Linux Printing Configuring a local printer Configuring a remote printer Traditional UNIX printing CUPS web Interface CUPS on.

CUPS on the Command Line

• lpinfo– Displays the available drivers – Try combining this with a grep search to

minimized the list – lpinfo | grep “Brother”

• Lpadmin – Add, modify or configure printers – Add: “lpadmin –p colourlaser –m hp4150c.ppd.gz

• Adds an HP 4150C printer called colourlaser

Page 20: Linux Printing Chapter 14. Linux Printing Configuring a local printer Configuring a remote printer Traditional UNIX printing CUPS web Interface CUPS on.

CUPS Files & Services

• /etc/cups/printers.conf– Printer information

• /usr/share/cups/model– Printer drivers

• /etc/cups/cupsd.conf– CUPS configuration

• /sbin/service cups– Cups daemon

Page 22: Linux Printing Chapter 14. Linux Printing Configuring a local printer Configuring a remote printer Traditional UNIX printing CUPS web Interface CUPS on.

Microsoft Integration

• Printing from Windows– Requires SAMBA (Chapter 23)– Printers are shared and Windows 2000 and

later printers can print to the Linux printer via IPP

• Printing to Windows– Linux treats a Windows IPP printer as any

other printer

Page 23: Linux Printing Chapter 14. Linux Printing Configuring a local printer Configuring a remote printer Traditional UNIX printing CUPS web Interface CUPS on.

Linux Printing

• Configuring a local printer

• Configuring a remote printer

• Traditional UNIX printing

• CUPS web Interface

• CUPS on the command line

• Integration with Windows

Page 24: Linux Printing Chapter 14. Linux Printing Configuring a local printer Configuring a remote printer Traditional UNIX printing CUPS web Interface CUPS on.

Today’s Task

• Install CUPS and get a printer installed

• Test your install by printing to file or getting your document to show up in the queue