Introduction to the advanced printing system in Linux

Source: Internet
Author: User
Article title: Introduction to the advanced printing system in Linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Printer is an essential tool for many organizations during their daily work. in order to save costs, it is impossible to provide printer hardware equipment for each department, therefore, our printers are usually configured as network printers. Take our department as an example. in our office network system, HP LaserJet 8000 is installed for the joint use of several departments, which reduces costs, it also improves the utilization of devices.
  
However, based on actual work needs, most of our colleagues generally enable the Linux operating system. while printing materials, it is not time-consuming and laborious to switch to the Windows operating system environment. Is HP LaserJet 8000 Printer unavailable in Linux? The answer is No. Next, I will introduce a solution to this problem.
  
   1. RPM Package Overview
Before installation, we need to download some RPM packages. These rpm packages are collectively referred to as the EnhancedPrinting System ). The following describes two types of packages: front-end user tools and backend tools/libraries.
  
1.1 front-end user tools:
Printtool-upgrade Red Hat printtool to use libprinterconf to automatically detect printers, use printfilters to create printcap items, and create a print queue.
Gpr-the front-end graphical user interface of lpr. with this interface, you can select print queue and print settings. Based on the PPD files of different printers (using libppd), Some printer-specific options are dynamically constructed.
Lpr-upgrade lpr, accept new command line options for job attributes described by the PPD file, and send these options to the printfilters script.
  
1.2 backend tools/libraries:
Libprinterconf -- function library used to detect printers connected to the parallel port and the network.
Libprinterconf-devel -- header file and document.
Printfilters -- replacement of rhs-printfilters, a set of scripts and databases, which map
The spooler filter is a PPD file and uses ppdfilt to modify the PostScript print job.
Libppd-supports reading the Library of the PostScript PPD file.
Libppd-devel -- header file and document of libppd
Ppdfilt-an independent application that modifies a PostScript file based on command line options and the PPD file.
Snmpkit-function library, which uses SNMP for communication (used by libprinterconf ).
Snmpkit-devel-header files and documents.
Ghostscript-Ghostscript applications and tools, which are roughly equivalent to the corresponding version of Red Hat 7.0.
Ghostscript-fonts-another part of the aforementioned ghostscript.
  
1.3 Printer-specific files:
Hp-ppd-a package containing all HP (from the latest printer to LaserJet 4) PPD files.
  
For different Linux distributions, the installation of the advanced printing system software may be different. It supports the following releases:
RedHat 6.0, 6.1 (these two versions use 6.2 packages), 6.2, 7.0
Mandrake 7.2
Turbo Linux 6.1
SuSE 6.4, 7.0
  
These packages can all be obtained from the http://sourceforge.net/projects/lpr. Pay attention to your
Linux release version. I have downloaded the red hat 6.2 package. you can contact me for help. The following describes the implementation process in Red Hat 6.2.
  
   2. download and install
First, download the preceding packages corresponding to Red Hat 6.2 to a directory and enter the directory. Then, perform the following operations:
  
Rpm-e printtool # Delete the red hat printtool package (if this package is installed)
Rpm-e rhs-printfilters # Delete the red hat rhs-printfilters package (if
Words)
Rpm-Uvh *. rpm # install all packages
/Etc/rc. d/init. d/lpd restart # restart the daemon
  
   3. use the system
3.1 create a print queue
  
To create a print queue using the advanced printing system, you must start printtool as the root user. a graphic window pops up to allow you to manage the print queue (create, modify, and delete ). See the figure.
  
    
Click "AutoDetect" to bring up the "AutoDetect Printers" dialog box.
()
    
If you have a parallel printer (usually not), click the right side
"Detect..." button; otherwise, enter the host name or IP address (range) of the printer next to "HostSpecification" under "Network Printers" in the pop-up dialog box, and click
The "Detect..." button will pop up another dialog box listing the detected printer ().
    
Select one from it and click "Add Printer". the print queue creation dialog box () is displayed (),
  
You can set the name of the print queue.
Click the Select button to change the Input Filter settings ().
    
Click "OK" to save the Input Filter settings and close the dialog box. In the "Edit Printer Entry" dialog box
Click "OK" to install the print queue. At this time, a message may prompt you to need the PPD file; do not worry, this file has been installed in the aforementioned installation process.
  
Repeat the above process to install another print queue.
  
3.2 Print with gpr
  
You can use gpr to replace lpr when printing documents. Lpr can still be used, but gpr's graphical user interface (),
    
This allows you to select a print queue and then select the specific features of the printer connected to the print queue, such as watermarks and duplex ().
  
After selecting the appropriate options, you can click "Print" to Print the job. Gpr builds the lpr command line according to the selected items and calls this command line. (
  

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.