Test procedure for installing a plain text printer in RHEL5

Source: Internet
Author: User
RedHatEnterpriseLinux adopts the universal UNIX Printing System (CUPS). The printconf-tui Configuration tool has been canceled in the latest RHEL5. To get simple and quick printer configuration, you can use the graphical Tool system-config-printer, or use the CUPS web interface http: // localhost: 631. Check the required software package for CUPS running: Reference bash-3.1 # rpm

Red Hat Enterprise Linux uses a universal UNIX Printing System (CUPS). The printconf-tui Configuration tool has been canceled in the latest RHEL5. To get simple and quick printer configuration, you can use the graphical Tool system-config-printer, or use the CUPS web interface http: // localhost: 631.

Check the required software package for CUPS operation:

Reference bash-3.1 # rpm-qa | grep cups

Cups-1.2.4-11.5.3.el5

Cups-devel-1.2.4-11.5.el5

Hal-cups-utils-0.6.2-5

Libgnomecups-0.2.2-8

Cups-lpd-1.2.4-11.5.el5

Cups-libs-1.2.4-11.5.3.el5

Install the graphical Configuration Tool system-config-printer (yum source needs to be prepared in advance)

Reference bash-3.1 # yum install system-config-printer-y

Start the cups service and set it to self-start

Reference

Bash-3.1 # service cups start

Bash-3.1 # chkconfig cups on

Now you can configure the printer on The Gnome desktop, run the graphic configuration interface from System-> Administration-> Printing, or directly run system-config-printer in xterm.

The new version of CUPS does not include adding plain text printers by default. if you add a printer forcibly, the system will receive the "client-error-not possible" error. For details, refer to the official Cups Article, in/etc/cups. add a row in conf

Reference FileDevice yes

Then restart the cups service.

Reference service cups restart

Now you can use "New Printer" to add a printer. when selecting an interface, use "Other" and Enter file:/root/Printer in "Enter Device URI, in this way, the printed result is in the/root/printer File.

When selecting a printer manufacturer, use "Generic" and click "Forward" and "Models" to select "text-only printer, the "Drivers" shown below is texonly. ppd, continue "Forward", "Apply"

Go back to the main interface and set the Printer you just added to the Default "Make Default Printer"

Now you can use the printer. Test it:

Reference bash-3.1 # lpr/usr/share/doc/grep-2.5.1/README

Bash-3.1 # less/root/printer

Run the preceding command and you will see that the README content has been printed to the printer.

The RHEL5 Cups Service also provides web-based printer configuration. after starting the cups service, you can directly access http: // localhost: 631. by configuring conf, You can restrict access control on port 631 of the Local Machine by other machines on the network. conf is very similar.

Related Article

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.