Need help installing my printer on Slackware 12.0
I have an HP Deskjet D1455 hooked up to my laptop via usb. When I run lsusb, my printer comes out. However, when I go to Konqueror--System--Settings--Hardware--Printers--Add Printer
the local usb option is grayed out. So I downloaded the hplip-2.8.7-i486.tgz and installpkg After that, I tried looking for a hplip.sh script in the /etc/rc.d dir, but nothing. So then I opened up firefox and went to http://localhost:631 to the cups web page. I added a printer, then on the Device page, there was no usb direct option, only HP Printer (HPLIP) option so I selected that one and chose my printer. I printed a test page but it said that the destination printer was not found. I hade put http://localhost:631 as the destination. How would I do it if it was a usb printer? I also tried hp-setup, ran the installation, added the printer successfully, send a request to print the test page but nothing came out. I checked http://localhost:631 and the printer page said /usr/lib/cups/filter/foomatic-rip-hplip failed |
Here's the output for hp-check
bt ~ # hp-check warning: python-dbus not installed. HP Linux Imaging and Printing System (ver. 2.8.7) Dependency/Version Check Utility ver. 14.0 Copyright (c) 2001-8 Hewlett-Packard Development Company, LP This software comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to distribute it under certain conditions. See COPYING file for more details. Note: hp-check can be run in three modes: 1. Compile-time check mode (-c or --compile): Use this mode before compiling the HPLIP supplied tarball (.tar.gz or .run) to determine if the proper dependencies are installed to successfully compile HPLIP. 2. Run-time check mode (-r or --run): Use this mode to determine if a distro supplied package (.deb, .rpm, etc) or an already built HPLIP supplied tarball has the proper dependencies installed to successfully run. 3. Both compile- and run-time check mode (-b or --both) (Default): This mode will check both of the above cases (both compile- and run-time dependencies). Saving output in log file: hp-check.log Initializing. Please wait... warning: Invalid ppd_dir value: None --------------- | SYSTEM INFO | --------------- Basic system information: Linux bt 2.6.21.5 #4 SMP Thu Apr 10 04:23:56 GMT 2008 i686 AMD Turion(tm) X2 Ultra Dual-Core Mobile ZM-80 AuthenticAMD GNU/Linux Distribution: unknown 0.0 HPOJ running? No, HPOJ is not running (OK). Checking Python version... OK, version 2.5.1 installed Checking PyQt version... error: NOT FOUND OR FAILED TO LOAD! Checking SIP version... error: SIP not installed or version not found. Checking for CUPS... Status: scheduler is running Version: 1.3.7 error_log is set to level: info note: For troubleshooting printing issues, it is best to have the CUPS 'LogLevel' note: set to 'debug'. To set the LogLevel to debug, edit the file /etc/cups/cupsd.conf (as root), note: and change the line near the top of the file that begins with 'LogLevel' to read: note: LogLevel debug note: Save the file and then restart CUPS (see your OS/distro docs on how to restart CUPS). note: Now, when you print, helpful debug information will be saved to the file: note: /var/log/cups/error_log note: You can monitor this file by running this command in a console/shell: note: tail -f /var/log/cups/error_log Checking for dbus/python-dbus... dbus daemon is running. warning: python-dbus not installed. ------------------------------------ | COMPILE AND RUNTIME DEPENDENCIES | ------------------------------------ note: To check for compile-time only dependencies, re-run hp-check with the -c parameter (ie, hp-check -c). note: To check for run-time only dependencies, re-run hp-check with the -r parameter (ie, hp-check -r). Checking for dependency: cups - Common Unix Printing System... OK, found. Checking for dependency: cups-ddk - CUPS driver development kit... warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly. Checking for dependency: cups-devel- Common Unix Printing System development files... OK, found. Checking for dependency: dbus - Message bus system... OK, found. Checking for dependency: gcc - GNU Project C and C++ Compiler... OK, found. Checking for dependency: GhostScript - PostScript and PDF language interpreter and previewer... error: NOT FOUND! This is a REQUIRED/RUNTIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP. Checking for dependency: libcrypto - OpenSSL cryptographic library... OK, found. Checking for dependency: libjpeg - JPEG library... OK, found. Checking for dependency: libnetsnmp-devel - SNMP networking library development files... OK, found. Checking for dependency: libpthread - POSIX threads library... OK, found. Checking for dependency: libtool - Library building support services... OK, found. Checking for dependency: libusb - USB library... OK, found. Checking for dependency: make - GNU make utility to maintain groups of programs... OK, found. Checking for dependency: PIL - Python Imaging Library (required for commandline scanning with hp-scan)... warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly. Checking for dependency: ppdev - Parallel port support kernel module.... error: NOT FOUND! This is a REQUIRED/RUNTIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP. Checking for dependency: PyQt - Qt interface for Python... error: NOT FOUND! This is a REQUIRED/RUNTIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP. Checking for dependency: python-ctypes - A foreign function library for Python... OK, found. Checking for dependency: python-dbus - Python bindings for dbus... error: NOT FOUND! This is a REQUIRED/RUNTIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP. Checking for dependency: python-devel - Python development files... OK, found. Checking for dependency: Python 2.3 or greater - Required for fax functionality... OK, found. Checking for dependency: Python 2.2 or greater - Python programming language... OK, found. Checking for dependency: Reportlab - PDF library for Python... warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly. Checking for dependency: SANE - Scanning library... error: NOT FOUND! This is a REQUIRED/RUNTIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP. Checking for dependency: SANE - Scanning library development files... error: NOT FOUND! This is a REQUIRED/COMPILE TIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP. Checking for dependency: scanimage - Shell scanning program... warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly. Checking for dependency: xsane - Graphical scanner frontend for SANE... warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly. ---------------------- | HPLIP INSTALLATION | ---------------------- Currently installed HPLIP version... HPLIP 2.8.7 currently installed in '/usr/share/hplip'. Current contents of '/etc/hp/hplip.conf' file: [dirs] run = /var/run cupsbackend = /usr/lib/cups/backend ppd = /usr/share/cups/model/HP doc = /usr/share/doc/hplip-2.8.7 drv = /usr/share/cups/drv/hp ppdbase = /usr/share/cups/model home = /usr/share/hplip cupsfilter = /usr/lib/cups/filter icon = /usr/share/applications [hplip] version = 2.8.7 plugin = 1 [configure] foomatic-rip-hplip-install = yes foomatic-ppd-install = yes doc-build = yes cups11-build = no gui-build = yes internal-tag = 2.8.7.3 foomatic-drv-install = yes pp-build = yes scanner-build = yes network-build = yes restricted-build = no dbus-build = yes shadow-build = no fax-build = yes ------------------------------- | DISCOVERED PARALLEL DEVICES | ------------------------------- No devices found. error: 'ppdev' kernel module not loaded. -------------------------- | DISCOVERED USB DEVICES | -------------------------- Device URI Model ---------------------------------- ----------------------- hp:/usb/Deskjet_D1400_series?seria HP Deskjet D1400 series l=TH7442407504Y4 --------------------------------- | INSTALLED CUPS PRINTER QUEUES | --------------------------------- Deskjet_D1400 ------------- Type: Printer Installed in HPLIP?: Yes, using the hp: CUPS backend. Device URI: hp:/usb/Deskjet_D1400_series?serial=TH7442407504Y4 PPD: /etc/cups/ppd/Deskjet_D1400.ppd PPD Description: HP Deskjet d1400 series Foomatic/hpijs, hpijs 2.8.7.3 Printer status: printer Deskjet_D1400 is idle. enabled since Tue Sep 30 17:46:36 2008 Communication status: Good ---------------------- | SANE CONFIGURATION | ---------------------- 'hpaio' in '/etc/sane.d/dll.conf'... error: '/etc/sane.d/dll.conf' not found. Is SANE installed? --------------------- | PYTHON EXTENSIONS | --------------------- Checking 'cupsext' CUPS extension... OK, found. Checking 'pcardext' Photocard extension... OK, found. Checking 'hpmudext' I/O extension... OK, found. Checking 'scanext' SANE scanning extension... error: NOT FOUND OR FAILED TO LOAD! Please reinstall HPLIP and check for the proper installation of scanext. ----------------- | USB I/O SETUP | ----------------- Checking for permissions of USB attached printers... ----------- | SUMMARY | ----------- error: 15 errors and/or warnings. Please refer to the installation instructions at: http://hplip.sourceforge.net/install/index.html Done. bt ~ # |
Is it a problem with permissions? I also installed sane-1.0.15-i486.tgz
Still, I get the same error. |
I've never configured a USB printer (we have a network printer at work), but from what I can determine the following should print the lpadmin man page to the printer:
Code:
man lpadmin | lp -d Deskjet_D1400 |
|
I'm using hplip, stll no cigar.
|
Do you have the foomatic package installed?
|
Quote:
Configure CUPS (do it with printer attached) via its web/KDE/... GUI configurator. Afterwards, *check* that you have the *correct* USB port definition in the /etc/cups/printers.conf -- GUI configurators tend to put something unworkable there, but *file:/dev/usb/lp0* is what actually works. |
in /etc/cups/printers.conf
I have what the cups web interface had DeviceURI hp:/usb/Deskjet_D1400_series?serial=TH7442407504Y4 I have the PyQt, dbus-python, ghostscript, hplip, sane, and xsane packages installed. Also, I remember before when I used the konqueror--system-settings--hardware--printers--add printer I would be able to select local usb printer option, however it never worked on the test page. However, now I can't even select that option. |
Quote:
Packages sane and xsane are for scanners, PyQt is for programming. You may leave printers.conf as is for a while, but if there'll be a situation where printer blinks (receiving data) but does not print -- then try changing the DeviceURI as advised. |
Well evidently CUPS can't find GhostScript:
Quote:
|
Yea sorry, that output was before I had installed the ghostscript package.
I chmod 700 /usr/lib/cups/backend/usb I still get the foomatic-rip-hplip failed message |
My advice is to dispense with all this hplip/foomatic extra stuff. Once *I* did this, I was able to configure things fairly soon. I have no foomatic on my system whatsoever, and I *am* able to print on Xerox Phaser 3117. With your model of Deskjet, you *may*, possibly, need the foomatic-database package, to get the 100% right PPD, but that should be all.
Alternatively, you may open the foomatic-rip-hplip (it is shell script, right?) and check for the location of GS executable (would be coded in at the beginning of the script) *or* you may try to install newer ghostscript (Slackware has, what, version 7.*?). |
Aha, yet another thing -- if you use fonts in "non-standard" locations, ghostscript started from CUPS won't find them (and may fail, if I recall correctly)... I solved this by modifying the /etc/rc.d/rc.cups script, adding following (possibly, sub-optimal) fragment to the 'start' parameter section, before the instruction to actually start the cupsd:
all=` find /usr/local/share/fonts -type d -mindepth 1 ` GS_FONTPATH='/usr/local/share/fonts' for hit in $all do GS_FONTPATH="${GS_FONTPATH}"':'"${hit}" done export GS_FONTPATH |
Quote:
It is in the x directory of your Slackware DVD |
All times are GMT -5. The time now is 09:10 PM. |