LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Need help installing my printer on Slackware 12.0 (https://www.linuxquestions.org/questions/linux-newbie-8/need-help-installing-my-printer-on-slackware-12-0-a-673397/)

trist007 09-30-2008 05:12 PM

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

trist007 09-30-2008 05:52 PM

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 ~ #

trist007 09-30-2008 05:54 PM

Is it a problem with permissions? I also installed sane-1.0.15-i486.tgz

Still, I get the same error.

ciotog 09-30-2008 08:38 PM

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
This assumes of course that Deskjet_D1400 is the printer name.

Bruce Hill 09-30-2008 11:57 PM

http://openprinting.org/show_printer...-Deskjet_D1455

trist007 10-01-2008 12:10 AM

I'm using hplip, stll no cigar.

djake 10-01-2008 01:15 AM

Do you have the foomatic package installed?

Yury_T 10-01-2008 07:19 AM

Quote:

Originally Posted by trist007 (Post 3296642)
I'm using hplip, stll no cigar.

Don't bother with anything (HPLIP, foomatic etc.) besides CUPS + decent Ghostscript (I compiled mine -- or you may go with the Slackware's default GS package) + driver for your printer.
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.

trist007 10-01-2008 09:06 AM

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.

Yury_T 10-01-2008 03:34 PM

Quote:

Originally Posted by trist007 (Post 3297037)
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.
...

Start configurators with printer connected AND check your installation -- files in /usr/lib/cups/backend (namely, usb executable file) should have permissions 0700, as these sometimes get corrupted by CUPS addons somehow.

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.

ciotog 10-01-2008 05:41 PM

Well evidently CUPS can't find GhostScript:
Quote:

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.
Maybe try reinstalling it?

trist007 10-01-2008 06:14 PM

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

Yury_T 10-02-2008 01:06 AM

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.*?).

Yury_T 10-02-2008 01:14 AM

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

zezettepglc 10-12-2008 01:03 PM

Quote:

Originally Posted by trist007 (Post 3296396)
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

I had the same problem with Slackware 12.0 and 12.1 : One package was missing in my installation : fontconfig

It is in the x directory of your Slackware DVD


All times are GMT -5. The time now is 09:10 PM.