Книга: Fedora™ Unleashed, 2008 edition

Network-Attached Printer Configuration and Printing

Network-Attached Printer Configuration and Printing

Fedora supports other methods of remote printing, such as using a Novell Netware-based print queue or using a printer attached directly to your network with an HP JetDirect adapter. Some manufacturers even offer Linux-specific drivers and help. For example, HP provides graphical printer configuration tools and software drivers for other Linux distributions at http://h20000.www2.hp.com/bizsupport/TechSupport/Home.jsp.

You can set up network-attached printing quickly and easily, using a variety of devices. For example, NETGEAR's PS101 print server adapter works well with Linux. This tiny device (a self-hosted print server) is an adapter that directly attaches to a printer's Centronics port, eliminates the use of a parallel-port cable, and enables the use of the printer over a network. The PS101 offers a single 10Mbps ethernet jack and, after initial configuration and assignment of a static IP address, can be used to print to any attached printer supported by Fedora.

A JetDirect- or UNIX-based configuration using system-config-printer can be used to allow you to print to the device from Fedora or other remote Linux hosts. To see any open ports or services on the device, use the nmap command with the print server adapter's IP address like this:

$ nmap
Starting Nmap 4.20 ( http://insecure.org ) at 2007-10-23 21:11 BST
Interesting ports on
Not shown: 1691 closed ports
80/tcp   open  http
443/tcp  open  https
515/tcp  open  printer
9100/tcp open  jetdirect
9101/tcp open  jetdirect
9102/tcp open  jetdirect
Nmap finished: 1 IP address (1 host up) scanned in 1.532 seconds

To configure printing, select system-config-printer's JetDirect option; then specify the device's IP address ( in the example) and port 9100 (as shown previously — you are clued that this is the correct port by the Service entry, which states jetdirect in the example). Alternatively, you can configure the device and attached printer as a UNIX-based print server, but you need to use PS1 as the name of the remote printer queue. Note that the device hosts a built-in web server (HTTP on port 80); you can administer the device by browsing to its IP address (such as in the example). Other services, such as FTP and Telnet, are supported but undocumented:

$ telnet
Connected to (
Escape character is '^]'.
Welcome to Print Server
(P1)STATE: Idle
TYPE: Parallel
Connection closed by foreign host.


Curiously, NETGEAR does not promote the PS101 as Linux-supported hardware even though it works. Other types of network-attached print devices include Bluetooth- enabled printers and 802.11b wireless ethernet print servers such as TRENDnet's TEW-PS3, HP/Compaq's parallel-port-based WP 110, and the JetDirect 380x with USB. As always, research how well a product, such as a printer or print server, works with Linux before purchasing!

Оглавление книги

Генерация: 0.554. Запросов К БД/Cache: 3 / 1
Вверх Вниз