LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-30-2008, 05:12 PM   #1
trist007
Senior Member
 
Registered: May 2008
Distribution: Slackware
Posts: 1,052

Rep: Reputation: 70
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

Last edited by trist007; 09-30-2008 at 05:25 PM.
 
Old 09-30-2008, 05:52 PM   #2
trist007
Senior Member
 
Registered: May 2008
Distribution: Slackware
Posts: 1,052

Original Poster
Rep: Reputation: 70
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 ~ #
 
Old 09-30-2008, 05:54 PM   #3
trist007
Senior Member
 
Registered: May 2008
Distribution: Slackware
Posts: 1,052

Original Poster
Rep: Reputation: 70
Is it a problem with permissions? I also installed sane-1.0.15-i486.tgz

Still, I get the same error.

Last edited by trist007; 09-30-2008 at 06:54 PM.
 
Old 09-30-2008, 08:38 PM   #4
ciotog
Member
 
Registered: Mar 2004
Location: Canada
Distribution: Slackware current
Posts: 728
Blog Entries: 2

Rep: Reputation: 43
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.
 
Old 09-30-2008, 11:57 PM   #5
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
http://openprinting.org/show_printer...-Deskjet_D1455
 
Old 10-01-2008, 12:10 AM   #6
trist007
Senior Member
 
Registered: May 2008
Distribution: Slackware
Posts: 1,052

Original Poster
Rep: Reputation: 70
I'm using hplip, stll no cigar.
 
Old 10-01-2008, 01:15 AM   #7
djake
LQ Newbie
 
Registered: Nov 2006
Location: Vimmerby, Sweden
Distribution: Slackware, Fedora
Posts: 10

Rep: Reputation: 0
Do you have the foomatic package installed?
 
Old 10-01-2008, 07:19 AM   #8
Yury_T
Member
 
Registered: Aug 2008
Distribution: Slackware
Posts: 63
Blog Entries: 10

Rep: Reputation: 16
Quote:
Originally Posted by trist007 View Post
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.
 
Old 10-01-2008, 09:06 AM   #9
trist007
Senior Member
 
Registered: May 2008
Distribution: Slackware
Posts: 1,052

Original Poster
Rep: Reputation: 70
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.

Last edited by trist007; 10-01-2008 at 09:20 AM.
 
Old 10-01-2008, 03:34 PM   #10
Yury_T
Member
 
Registered: Aug 2008
Distribution: Slackware
Posts: 63
Blog Entries: 10

Rep: Reputation: 16
Quote:
Originally Posted by trist007 View Post
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.
 
Old 10-01-2008, 05:41 PM   #11
ciotog
Member
 
Registered: Mar 2004
Location: Canada
Distribution: Slackware current
Posts: 728
Blog Entries: 2

Rep: Reputation: 43
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?
 
Old 10-01-2008, 06:14 PM   #12
trist007
Senior Member
 
Registered: May 2008
Distribution: Slackware
Posts: 1,052

Original Poster
Rep: Reputation: 70
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

Last edited by trist007; 10-01-2008 at 06:16 PM.
 
Old 10-02-2008, 01:06 AM   #13
Yury_T
Member
 
Registered: Aug 2008
Distribution: Slackware
Posts: 63
Blog Entries: 10

Rep: Reputation: 16
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.*?).
 
Old 10-02-2008, 01:14 AM   #14
Yury_T
Member
 
Registered: Aug 2008
Distribution: Slackware
Posts: 63
Blog Entries: 10

Rep: Reputation: 16
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
 
Old 10-12-2008, 01:03 PM   #15
zezettepglc
LQ Newbie
 
Registered: Oct 2008
Location: Brussels
Distribution: Slackware
Posts: 5

Rep: Reputation: 1
Lightbulb

Quote:
Originally Posted by trist007 View Post
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
 
  


Reply

Tags
printer, slackware



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
installing a "MFC210C" Brother Printer on Slackware davimint Linux - Hardware 21 07-24-2009 03:10 PM
Can't get printer to work in Slackware. sr_25 Linux - Newbie 1 07-28-2006 02:02 PM
Installing Canon LBP USB Printer as network printer on a Fedora Core without XWindow boy3dfx2 Linux - Newbie 5 06-03-2006 01:23 PM
slackware 10.1 printer configuration joma Slackware 2 02-23-2005 04:44 AM
setup printer on client machine(slackware 8) to server (slackware7) network printer changwoo Slackware 9 05-02-2003 05:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration