因为办公区里的打印机是HP 5200 下面整理安装的印机的全部过程:
在google里 搜索HP 5200 Linux
查到的网址是:
http://www.openprinting.org/printer/HP/HP-LaserJet_5200
http://hplipopensource.com/hplip-web/install_wizard/index.html
http://hplipopensource.com/hplip-web/install/install/index.html
Step 1: Download the Automatic Installer (.run file)Download HPLIP 3.11.3a: 下载文件的地址
(Download Digital Certificate) What's this?
Step 2: Run the Automatic Installer 运行.run文件来安装 命令如下图Running the installer requires that you open a command shell to enter commands. To do this, open a terminal or console window (how do I open a terminal?).
In the terminal/console, enter the following commands (type all the text after the $ character and then press enter):
Note
These instructions assume that the hplip-3.11.3a.run file was downloaded to your Desktop directory. You may have to adjust the 'cd' command based on where your web browser saved the file on your system.
Step 3: Select the Install Type 选择安装类型Select the install mode: Automatic (enter an 'a') or Custom (enter a 'c'). We recommended that most users select the Automatic install mode (what settings does automatic install mode use?)
Step 4: Verify your Linux DistributionNote
Ensure the installer detected the correct Linux distribution. Different Linux versions use different install procedures if the incorrect version is selected, the installer may fail.
Step 5: Select HPLIP Options to EnableNote
Enter 'y' to enable parallel support. By default, parallel support is disabled.
Step 6: Enter Your root/Superuser User Password Step 7: Read the Installation NotesDepending on your Linux distribution some steps may need to be completed before going further with the HPLIP install. Please follow any directions given.
Step 8: Detect Any Missing DependenciesThe installer will now detect what dependencies your system will need to install before installing HPLIP. In addition any package manager clean up steps will be ran. These are executed to try and minimze any potential package manager problems.
Step 9: Download and Install Any Missing DependenciesIf your system is missing any dependencies they are now downloaded and installed.
Step 10: './configure' and 'make' will run./configure prepares HPLIP for install as well as your system is verified to have all the required dependencies for HPLIP.
'make' is then executed. Make compiles ("builds") HPLIP for your system.
Step 11: 'make install' is Run'make install' is the actual install procedure, this step is where HPLIP is actually being installed to your system.
Using 'hp-setup' to configure your printerThis guide will walk you through configuring your printer using 'hp-setup'.
Step 12: Select How Your Printer will be Connected to Your ComputerThe first step is to select the printer connection type:
Step 13: Select the Printer to be ConfiguredNext the setup tool will display printers detected (depending on the connection type selected):
Step 14: Select the PPD file (or driver) to be Used for Your PrinterThe PPD files (drivers) which are most similar to your printer are displayed. Select the appropriate PPD file for your printer.
Note
Usually you will want to select the recommended PPD file.
Step 15: Enter any Printer Information You Wish to Update/ChangeEnter your printer information:
Step 16: Confirm the Printer Settings and Finish the Configuration ProcessClick "Finish" to complete the printer setup process:
这个我是在网上搜索 官方推荐的安装方式,但是我现在的系统是centos 5.6 没有安装成功,
又找另外的办法
网友提供的方法:
HPLIP安装详解(HP网络打印机的通用装法)
1。前期所需安装软件
yum install cups-devel
yum install python-devel
yum install PyQt
yum install net-snmp-devel
yum install libjpeg-devel
安装了防火墙的朋友记得先把防火墙打开,或者打开631端口,还有把SELinux也disable
2。安装HPLIP
去HPLIP的官方网站下载最新版本的HPLIP
tar zvxf hplip-0.9.4.tar.gz
cd hplip-0.9.4
./configure --prefix=/usr
make
make install
3。启动HPLIP服务
/etc/rc.d/init.d/hplip restart
/etc/rc.d/init.d/cups restart
4。添加打印机
用浏览器访问[url]http://localhost:631[/url]
点击Printers,选择Add Printer
在这里由于我们的网络打印机,所以选择Appsocket/JetDirect,然后下一步
在这里会让你填打印机的url,由于网络打印机有ip地址,所以我们可以直接填写,比如我的:socket"//192.168.2.8:9100
当然网络打印机可能接在一台主机上,不像我们公司直接接了一个打印服务器的盒子,所以,你要是不知道打印机的url,可以运行 /usr/share/hplip/probe -bnet 系统会系统搜索网络,比如搜索到"hp:/net/HP_Business_Inkjet_1200?ip=192.168.1.100".那你就可以在刚才的url填写hp:/net/HP_Business_Inkjet_1200?ip=192.168.1.100
下一步:
这里当然选择HP了,下一步:
好了,选择你的打印机型号,我的是,基本上最新的打印机都有支持,如果你还是没发现你的打印机型号,那你还是耐心等待新的版本,或者自己发邮件给他们的开发小组,说不定下个版本就支持了。
打印测试页面成功,到此安装Color LaserJet 3550 成功,真让人高兴:)
我这里讲述的是网络打印机的安装方法,其实USB或者并口的安装,也能用这个方法,只不过步骤稍微有点变化。
本文转自孤舟夜航之家博客51CTO博客,原文链接http://blog.51cto.com/cysky/558424如需转载请自行联系原作者
cysky