Skip to main content

Printer setting in Red Hat

Printing Configuration in Red Hat


Printer Configuration Tool allows users to configure a printer. This tool helps maintain the printer configuration file, print spool directories, print filters, and printer classes.
Red Hat Enterprise Linux 5 uses the Common Unix Printing System (CUPS). If a system was upgraded from a previous Red Hat Enterprise Linux version that used CUPS, the upgrade process preserves the configured queues.
Using Printer Configuration Tool requires root privileges. To start the application, select System (on the panel) => Administration => Printing, or type the command system-config-printer at a shell prompt.

Printer Configuration Tool

The following types of print queues can be configured:
  • AppSocket/HP JetDirect — a printer connected directly to the network through HP JetDirect or Appsocket interface instead of a computer.
  • Internet Printing Protocol (IPP) — a printer that can be accessed over a TCP/IP network via the Internet Printing Protocol (for example, a printer attached to another Red Hat Enterprise Linux system running CUPS on the network).
  • LPD/LPR Host or Printer — a printer attached to a different UNIX system that can be accessed over a TCP/IP network (for example, a printer attached to another Red Hat Enterprise Linux system running LPD on the network).
  • Networked Windows (SMB) — a printer attached to a different system which is sharing a printer over an SMB network (for example, a printer attached to a Microsoft Windows™ machine).
  • Networked JetDirect — a printer connected directly to the network through HP JetDirect instead of a computer.

    Clicking the Apply button prompts the printer daemon to restart with the changes you have configured.
    Clicking the Revert button discards unapplied changes.


    Adding a Local Printer

    To add a local printer, such as one attached through a parallel port or USB port on your computer, click the New Printer button in the main Printer Configuration Tool window to display the window in Figure.

    Adding a Printer

    Click Forward to proceed.
    Enter a unique name for the printer in the Printer Name field. The printer name can contain letters, numbers, dashes (-), and underscores (_); it must not contain any spaces.
    You can also use the Description and Location fields to further distinguish this printer from others that may be configured on your system. Both of these fields are optional, and may contain spaces.
    Click Forward to open the New Printer dialogue (refer to Fegure) If the printer has been automatically detected, the printer model appears in Select Connection. Select the printer model and click Forward to continue.
    If the device does not automatically appear, select the device to which the printer is connected (such asLPT #1 or Serial Port #1) in Select Connection.


    Next, select the printer type.

    OR if you select ipp Printer then do the following process:-

    Adding an IPP Printer


    An IPP printer is a printer attached to a different system on the same TCP/IP network. The system this printer is attached to may either be running CUPS or simply configured to use IPP.
    If a firewall is enabled on the printer server, then the firewall should be configured to allow send / receive connections on the incoming UDP port 631. If a firewall is enabled on on the client (the system sending the print request) then the firewall must be allowed to accept and create connections through port 631.
    You can add a networked IPP printer by clicking the New Printer button in the main Printer Configuration Tool window to display the window in Figure. Enter the Printer Name (printer names cannot contain spaces and may contain letters, numbers, dashes (-), and underscores (_)),Description, and Location to distinguish this printer from others that you may configure on your system. Click Forward to proceed.
    In the window shown in Figure, enter the hostname of the IPP printer in the Hostname field as well as a unique name for the printer in the Printername field.

    Adding an IPP Printer

    Click Forward to continue.
    Next, select the printer type.

    Selecting the Printer Model and Finishing

    Once you have properly selected a printer queue type, you can choose either option:
    • Select a Printer from database - If you select this option, choose the make of your printer from the list of Makes. If your printer make is not listed, choose Generic.
    • Provide PPD file - A PostScript Printer Description (PPD) file may also be provided with your printer. this file is normally provided by the manufacturer. If you are provided with a PPD file, you can choose this option and use the browser bar below the option description to select the PPD file.
    Refer to Figure:

    Selecting a Printer Model

    After choosing an option, click Forward to continue. Figure appears. You now have to choose the corresponding model and driver for the printer.
    The recommended printed driver is automatically selected based on the printer model you chose. The print driver processes the data that you want to print into a format the printer can understand. Since a local printer is attached directly to your computer, you need a printer driver to process the data that is sent to the printer.
    If you have a PPD file for the device (usually provided by the manufacturer), you can select it by choosing Provide PPD file. You can then browse the filesystem for the PPD file by clicking Browse.

    Confirming Printer Configuration

    The last step is to confirm your printer configuration. Click Apply to add the print queue if the settings are correct. Click Back to modify the printer configuration.
    After applying the changes, print a test page to ensure the configuration is correct.

    Printing a Test Page

    After you have configured your printer, you should print a test page to make sure the printer is functioning properly. To print a test page, select the printer that you want to try out from the printer list, then click Print Test Page from the printer's Settings tab.
    If you change the print driver or modify the driver options, you should print a test page to test the different configuration.

    Managing Print Jobs

    When you send a print job to the printer daemon, such as printing a text file from Emacs or printing an image from The GIMP, the print job is added to the print spool queue. The print spool queue is a list of print jobs that have been sent to the printer and information about each print request, such as the status of the request, the the job number, and more.
    During the printing process, the Printer Status icon appears in the Notification Area on the panel. To check the status of a print job, double click the Printer Status, which displays a window similar to Figure.

    GNOME Print Status

    To cancel a specific print job listed in the GNOME Print Status, select it from the list and select Edit =>Cancel Documents from the pulldown menu.
    To view the list of print jobs in the print spool from a shell prompt, type the command lpq. The last few lines look similar to the following:
    Rank   Owner/ID              Class  Job Files       Size Time 
    active user@localhost+902    A      902 sample.txt  2050 01:20:46
    
    Example 1. Example of lpq output

    If you want to cancel a print job, find the job number of the request with the command lpq and then use the command lprm job number. For example, lprm 902 would cancel the print job in Example 1. You must have proper permissions to cancel a print job. You can not cancel print jobs that were started by other users unless you are logged in as root on the machine to which the printer is attached.
    You can also print a file directly from a shell prompt. For example, the command lpr sample.txt prints the text file sample.txt. The print filter determines what type of file it is and converts it into a format the printer can understand.


    Important commands, which is used to printing the documents or files in linux.


     Installed Documentation

    • map lpr — The manual page for the lpr command that allows you to print files from the command line.
    • man lprm — The manual page for the command line utility to remove print jobs from the print queue.
    • man mpage — The manual page for the command line utility to print multiple pages on one sheet of paper.
    • man cupsd — The manual page for the CUPS printer daemon.
    • man cupsd.conf — The manual page for the CUPS printer daemon configuration file.
    • man classes.conf — The manual page for the class configuration file for CUPS.


Comments

Popular posts from this blog

Red Hat Enterprise version list

Red Hat Enterprise Linux 6 Release/Update General Availability Date redhat-release Errata Date* Kernel Version RHEL 6 Update 4 TBA TBA TBA RHEL 6 Update 3 2012-06-20 2012-06-19 RHSA-2012-0862 2.6.32-279 RHEL 6 Update 2 2011-12-06 2011-12-06 RHEA-2011:1743 2.6.32-220 RHEL 6 Update 1 2011-05-19 2011-05-19 RHEA-2011:0540 2.6.32-131.0.15 RHEL 6 GA 2010-11-09 - 2.6.32-71 Codename: Santiago (based on a mix of Fedora 12, Fedora 13, and several modifications) Red Hat Enterprise Linux 5 Release/Update General Availability Date redhat-release Errata Date* Kernel Version RHEL 5 Update 9 TBA TBA TBA RHEL 5 Update 8 02/20/2012 02/20/2012 RHEA-2012:0315 2.6.18-308 RHEL 5 Update 7 07/21/2011 07/20/2011 RHEA-2011:0977 2.6.18-274 RHEL 5 Update 6 01/13/2011 01/12/2011 RHEA-2011:0020 2.6.18-238 RHEL 5 Update 5 03/30/2010 03/30/2010 RHEA-2010:0207 2.6.18-194 RHEL 5 Update 4 09/02/2009 09/02/2009 ...

Installation Red Hat Enterprise & make standered partition

First of all select DVD and reboot your computer. After Booting from DVD you will get below screen. Select  Install or Upgrade an Existing System and press Enter. If you get the following screen then let Anaconda take another step. Select your preferred  Language and Select  Keyboard Layout . In Following Screen you will be able to see 4 Installation Methods, Let me explain Methods here:- Local CD/DVD – It is obvious that If you use CD/DVD media then Choose this option. Hard Drive – Select this if you have dumped your source into any other Linux partition. NFS Directory – You can select this option if you have configured NFS server. URL – Select this if you want to install using FTP or HTTP Source link. So for step by step installation of RHEL 6 I had  Local CD/DVD Installation Method. If you are not sure about your media then select  OK to verify else select  Skip . If your media is fine till now it will take ...

MBR, Primary, Extended & Logical partition in Red Hat

MBR, Primary, Extended & Logical partition in Red Hat Hard disk and storage device are normally divided up into smaller chunks called partitions. So that different parts of it can be formatted with different file system or used for different purposes. For example, one partition could contain user home directories while another could contain system data and logs; by placing the data in two separate file system on two separate partitions, even if a user fills up the home directories partition with data, the system data partition may have space. Most Red Hat Enterprise Linux system on the x86 and x86-64 processor architectures use the MBR partitioning format for their hard disk. This is the same format that is used by most Microsoft Windows systems, and dates back to the IBM PC.                              Storage device: /dev/sda In this format, the first sector of the disk is reser...