Книга: 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 192.168.0.9
Starting Nmap 4.20 ( http://insecure.org ) at 2007-10-23 21:11 BST
Interesting ports on 192.168.0.9:
Not shown: 1691 closed ports
PORT STATE SERVICE
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 (192.168.0.9 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 http://192.168.2.52 in the example). Other services, such as FTP and Telnet, are supported but undocumented:
$ telnet 192.168.2.52
Trying 192.168.2.52...
Connected to 192.168.2.52 (192.168.2.52).
Escape character is '^]'.
Welcome to Print Server
PS>monitor
(P1)STATE: Idle
TYPE: Parallel
PRINTER STATUS: On-Line
PS>exit
Connection closed by foreign host.
TIP
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!
- Network and Remote Printing with Fedora
- Разработка приложений баз данных InterBase на Borland Delphi
- Open Source Insight and Discussion
- Introduction to Microprocessors and Microcontrollers
- Chapter 6. Traversing of tables and chains
- Chapter 8. Saving and restoring large rule-sets
- Chapter 11. Iptables targets and jumps
- Chapter 5 Installing and Configuring VirtualCenter 2.0
- Chapter 16. Commercial products based on Linux, iptables and netfilter
- Appendix A. Detailed explanations of special commands
- Appendix B. Common problems and questions
- Appendix E. Other resources and links