CentOS6.4安装HP(以DeskJet5650为例)打印机
ManualBuildandInstallInstructionsforCentOS
Important
ThisprocesshasbeentestedonCentOS5andCentOS6
Step1:InstallationPrerequisiteSteps
ViewthecurrentReleaNotesforadditionalinformationonthisrelea.
Note
Yoonot
haverootaccesscontactyoursystemadminforassistance.
Step2:InstallDependencyPackages
lthedevelopmentenvironment.
Click:
Applications
SystemSettings
Add/RemoveApplications
Clickthecheckmarknextto"DevelopmentTools"thenclick"Update".
Completethe"PackageManager"instructionstoinstallthedevelopmenttools.
ltheHPLIPdependencies.
su-c"yum-y-d10-e1installcupscups-develgcc-c++ghostscriptlibjpeg-develglibc-headers
libtoollibusb-develmakepythonpython-develPyXMLopenssl-devel
net-snmp-develpolicycoreutils-guiPyQtPyQt-develdbus-pythonnotify-pythonsane-backends
sane-backends-develsane-frontendsxsanepython-imagingpython-imaging-devel"
tallationStep(s)
Inaterminalrun:
su-c"rpm-ev--nodepslibsane-hpaio"
su-c"rpm-evhplip-gui"
su-c"rpm-evhplip"
su-c"rpm-evhpijs"
ulttheyarenotlinkedasneededforHPLIP.
su-c"ln-s/lib/.0.9.8b/lib/"
Step3:DisableSELinux
BecauthenewerversionofHPLIPisnotpartoftheSELinuxpolicy--SELinuxneedstobe
disabled.
Run:
su-c"gedit/etc/linux/config"
Changethelinefrom"Enforcing"to"Disabled".
Step4:DownloadHPLIP
Note
WerecommendthatyoudownloadtheHPLIPtarballtoyourhomeordesktopdirectory.
eretoDownloadtheRegularTarball
edirectorywhereyoudownloadedtheHPLIPtarball.
Example:
cd~/Desktop
ressthetarball.
Enterthiscommand:
Thiswillcreateadirectorywiththesamenameasthetarballfile.
yourworkingdirectorytothehplip-3.13.11directory.
Example:
cdhplip-3.13.11
Step5:ConfigureHPLIPforinstallation
Thisstepconfiguresthedevelopmentenvironmentandchecksthatyoursystemisreadyto
installHPLIP.
Enterthiscommand(lecttheappropriatecommanddependingonyoursystem
configuration):
Note
eofthecommands:
32bitdistrours(mosturswilluthiscommand):
./configure--prefix=/usr--with-hpppddir=/usr/share/cups/model/HP--enable-qt3--disable-qt4
--disable-hpcups-install--disable-cups-drv-install--disable-cups-ppd-install
--enable-hpijs-install--enable-foomatic-drv-install--enable-foomatic-ppd-install
--enable-foomatic-rip-hplip-install--disable-fax-build--disable-dbus-build
--enable-network-build--enable-scan-build--disable-policykit--enable-libusb01_build
--enable-udev_sysfs_rules--enable-doc-build
64bitdistrours:
./configure--prefix=/usr--with-hpppddir=/usr/share/cups/model/HP--libdir=/usr/lib64
--enable-qt3--disable-qt4--disable-hpcups-install--disable-cups-drv-install
--disable-cups-ppd-install--enable-hpijs-install--enable-foomatic-drv-install
--enable-foomatic-ppd-install--enable-foomatic-rip-hplip-install--disable-fax-build
--disable-dbus-build--enable-network-build--enable-scan-build--disable-policykit
--enable-libusb01_build--enable-udev_sysfs_rules--enable-doc-build
Enterthiscommand(lecttheappropriatecommanddependingonyoursystem
configuration):
Note
eofthecommands:
32bitdistrours(mosturswilluthiscommand):
./configure--with-hpppddir=/usr/share/cups/model/HP--prefix=/usr--enable-qt4
--disable-libusb01_build--enable-doc-build--enable-cups-ppd-install
--disable-foomatic-drv-install--disable-foomatic-ppd-install--disable-hpijs-install
--disable-udev_sysfs_rules--disable-policykit--disable-cups-drv-install
--enable-hpcups-install--enable-network-build--enable-dbus-build--enable-scan-build
--enable-fax-build
64bitdistrours:
./configure--with-hpppddir=/usr/share/cups/model/HP--libdir=/usr/lib64--prefix=/usr
--enable-qt4--disable-libusb01_build--enable-doc-build--enable-cups-ppd-install
--disable-foomatic-drv-install--disable-foomatic-ppd-install--disable-hpijs-install
--disable-udev_sysfs_rules--disable-policykit--disable-cups-drv-install
--enable-hpcups-install--enable-network-build--enable-dbus-build--enable-scan-build
--enable-fax-build
Step6:RunMake
ThisstepwillcompiletheHPLIPsource.
Important
Youwanttorunmakeasaregularur,NOTasroot.
Enterthiscommand:
make
Step7:RunMakeInstall
ThisstepwillinstallHPLIP.
Enterthiscommand:
su-c"makeinstall"
Step8:PostInstallationStep(s)
malursotherthanrootaddurnameto"lp"and"sys"group:
su-c"/usr/sbin/urmod-a-Glp,sys$USER"
RestartyourPC(or)logoutandlogin
regoingtobettingupaprinterwithUSBandtheprinterisalreadypluggedin,you
willneedtodooneofthefollowing:
andre-plugintheUSBprinter,or
tyourPC.
FailuretodothiswillcauyourUSBprintertonotbedetectedbyHPLIP.
Step9:Configuringyourprinterusinghp-tup
Configureyourprinterusinghp-tup
Note:ryoumaybeableto
configureyourprinterusingoneofthemethodsbelow(dependingonyourdistroand/or
configuration).
ureyourprinterusingCUPS.
ureyourprinterusingYaST(SUSEOnly)
Tocontinueusinghp-tup--readbelow.
Note:Youwillneedtoberoottoconfigureyourprinter.
su
hp-tup
orifsudo:
sudohp-tup
Thefirststepistolecttheprinterconnectiontype:
Nextthetuptoolwilldisplayprintersdetected(dependingontheconnectiontypelected):
ThePPDfiles(drivers)the
appropriatePPDfileforyourprinter:
Enteryourprinterinformation:
ClickFINISHtocompletetheprintertupprocess:
Next
adanytroublesfeelfreetosubmitan
eorreviewtheonlinedocumentation.
Installation-Step4-CUPS–(USB/Parallel)
tyourHPprintertoyourcomputerusingUSBorParallel.
Note:SeeyourprinterdocumentationforspecificinstructionsonconnectingtheUSB,Parallel
orNetworkcabletoyourprinterandcomputer.
onsole/terminalwindow.
hiscommandtologinassuperur;(Ubuntuursgotostep5)
Warning:Therootpasswordgivesyouadministrativeprivilegesonthesystem.
su
hiscommandtorestarttheCommonUNIXPrintingsystem(CUPS)
/etc/init.d/cupsrestart
Onsomesystemsyoumayneedtoenterthiscommand:(FedoraCoreforexample)
/etc/init.d/cupsysrestart
Urs:Enterthiscommand:
sudo/etc/init.d/cupsrestart
ebbrowr,andthenenterthefollowingaddressintheaddress
box:http://localhost:631
ClickPrinters->AddPrinter
herooturnameandpassword.(whenprompted)
nameforyourHPprinterintheNamebox.
Note:Thenameyouentermustnotcontainspaces.
10.(Optional)EnteradescriptionofthelocationoftheprinterintheLocationbox.
(Example:3rdFloorOffice)
11.(Optional)EnteradescriptionoftheprinterintheDescriptionbox.(Example:
HPLJ3380)
ontinue.
eDevicedrop-downlistlecttheprintertobeinstalled.
Note:YouMUSTmakealectionfromthedropdownthatappearssuchas
"hp:/usb/hp_deskjet_5600?rial=MY31R1K02179".
hp:/usb/[printername,rialnumber]
ontinue.
akelist;
ClickHP->Continue.
odellist,clicktheprintermodelthatmostclolymatchesyourprinter,and
thenclickContinue.
Note:ToconfigureyourprinterforusingFax,followthesteps,otherwigotoStep27.
eprinterisaddedusingtheabovesteps,gobacktostep7.
9,e:"photosmart_3310_fax"
13,lectyourdevicethatstartswith"hpfax://".
Example:"hpfax:/usb/psc_2500_ries?rial=XXXXXXXXX(HPpsc_2500_ries)
15,lectHP.
16,scrolltotheverybottomandlect"HPLIPFax(en)"
tethetupprocess.
ehp-toolbox.(Openaterminal/consolewindowandenter)
Note:YoucanalsoopentheHPDeviceManagerbyusingtheGNOMEorKDEmenusystem.
hp-toolbox
Note:Ifttingupfaxcontinueelgotostep30.
yourprinter.
he"Tools&Settings"tab.
"SetupFax.."
ourinformationinthe"FaxHeaderInformation"ction.
"Ok".
upisnowcomplete.
heTools&Settingstab,andthenclickPrintTestPage.
Installation-Step4-CUPS–(Network)
ttheprintertothenetwork.
Note:SeeyourprinterdocumentationforspecificinstructionsonconnectingtheUSB,Parallel
orNetworkcabletoyourprinterandcomputer.
hePrinterSetupMenusonyourprinter,printthe"NetworkConfiguration"page.
ThispagewillhavetheIPaddressoftheprinter,whichisntialtocompletethe
printertup.
Note:Seeyourprinterdocumentationforspecificinstructionsonprintingthenetwork
configurationpage.
onsole/terminalwindow.
hiscommandtoarchfortheprinterURI:(Example:"hp-makeuri
192.168.1.100")
hp-makeuri<.2>
eCUPSURIcreatedfortheprinter.(Example:
"hp:/net/HP_Business_Inkjet_1200?ip=192.168.1.100")
Hint:Utheright-clickmenutocopyandpastetext.
ebbrowr,andthenenterthefollowingaddressintheAddress
box:http://localhost:631
enubaratthetopofthepage,clickPrinters->AddPrinter
herooturnameandpassword.(whenprompted)
nameforyourHPprinterintheNamebox.
Note:Thenameyouentermustnotcontainspaces.
10.(Optional)EnteradescriptionofthelocationoftheprinterintheLocationbox.
(Example:3rdFloorOffice)
11.(Optional)EnteradescriptionoftheprinterintheDescriptionbox.(Example:
HPLJ3380)
ontinue.
eDevicedrop-downlist,clickAppsocket/JetDirect,andthenclickContinue.
eviceURItextbox,pastetheprinterURIyoucopiedinstep5,andthenclick
Continue.
akelist,clickHP->Continue.
odellist,clicktheprintermodelthatmostclolymatchesyourprinter,and
thenclickContinue.
Note:ToconfigureyourprinterforusingFax,followthesteps,otherwigotoStep28.
eprinterisaddedusingtheabovesteps,gobacktostep6.
9,e:"photosmart_3310_fax"
14,lectyourdevicethatstartswith"hpfax://".Example:
"hpfax:/usb/psc_2500_ries?rial=XXXXXXXXX(HPpsc_2500_ries)
15,lectHP
13,scrolltotheverybottomandlect"HPLIPFax(en)
tethetupprocess.
ehp-toolbox.(Openaterminal/consolewindowandenter;)
Note:YoucanalsoopentheHPDeviceManagerbyusingtheGNOMEorKDEmenusystem.
hp-toolbox
NoteIfttingupfaxcontinueelgotostep30.
yourprinter.
he"Tools&Settings"tab.
"SetupFax.."
ourinformationinthe"FaxHeaderInformation"ction.
"Ok".
upisnowcomplete.
heTools&Settingstab,andthenclickPrintTestPage.
Installation-Step4–(SUSE)
Note:Theinstruc
youcontinuetohaveproblemsthenpleafollowtheinstructions.
B/Parallelcabletoconnecttheprintertothecomputerorconnecttheprinter
toanetwork.
Note:SeeyourprinterdocumentationforspecificinstructionsonconnectingtheUSB,Parallel
orNetworkcabletoyourprinterandcomputer.
reconnectingyourprinterviaanetworkinterfaceutheabovenetwork
instructionstodeterminethenetworkprinteraddressusingthehp-makeuriprocess.
onsole/terminalwindow.
hiscommand:
hp-info
edeviceURIforyourprinter.(Example:
"hp:/usb/OfficeJet_6100_Series?rial=MY27H134G22R")
FollowthestepstoopentheYaSTPrinterConfigurationtool:
heMenubutton->System->YaST.
eftpaneoftheYaSTdialogbox,clickHardware.
ightpaneoftheYaSTdialogbox,clickPrinter.
Followthestepstoconfiguretheprinter:
aSTPrinterConfigurationdialogbox,clickOtherinthePrinterstoConfigure
list,andthenclickConfigure.
electyourPrinterTypelist,clickOtherkindoftup,andthenclickNext.
RItextbox,pastetheURIyoucopiedinstep2c,andthenclickNext.
OntheQueuenamedialogboxdothesteps:
nameforyourHPprinterintheNamebox.
Note:Thenameyouentermustnotcontainspaces.
descriptionoftheprinterintheDescriptionofPrinterbox.
ext.
OnthePrinterModeldialogbox,dothesteps:
electmanufacturer,clickHP.
electmodel,clicktheprintermodel.
ext.
theconfiguration,andthenclickOK.
inish.
Thesystemsavestheprintqueue.
Followthestepstoprintatestpage:
eHPDeviceManager:
onsole/terminalwindow.
hiscommand:
hp-toolbox
Note:YoucanalsoopentheHPDeviceManagerbyusingtheGNOMEorKDEmenusystem.
ourHPprinterintheleftpane.
heTools&Settingstab,andthenclickPrintTestPage.
本文发布于:2023-03-11 12:57:21,感谢您对本站的认可!
本文链接:https://www.wtabcd.cn/fanwen/zuowen/1678510642215148.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文word下载地址:hp笔记本电脑.doc
本文 PDF 下载地址:hp笔记本电脑.pdf
留言与评论(共有 0 条评论) |