You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!

Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.

If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.

Having a problem logging in? Please visit this page to clear all LQ-related cookies.

Introduction to Linux - A Hands on Guide

This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.

Hi,
I have a printer HP LJ P1102w and phlip says I need a plugin for it. I downloaded the plugin version 3.11.10 but a "version mismatch" error occurred. I can not find anywhere the older plugin and now I see even current uses 3.11.3a. Can anyone help here?

Grab the SlackBuild from your DVD or CD-ROM, edit the version number, build it and upgradepkg. You may want to removepkg what's already there but that's most likely not necessary.

According to the H-P web page, a plug-in is required for your printer model; the documentation at http://hplipopensource.com/node/309 explains the need for and how to get and install the plug-in:

Quote:

Most Linux distributions include HPLIP with their software, but most do not include the plug-in. Therefore, it is a safe practice to run a utility called "hp-setup", which, will install the printer into the CUPS spooler, download, and install the plug-in at the appropriate time.

You really ought to read that page.

So, you need to open a terminal window and execute

Code:

hp-setup

I'd recommend getting and installing version 3.11.10 just so you've got the most current stuff to work with.

I don't have DVD handy at the moment, sorry: Easy way to find stuff on your Slackware media -- insert the disk that has the source tree on it (that will be the DVD or one of the CD-ROMs), mount it and use find something like this

Code:

find /mnt/whatevernameitis -type f -name 'hplip*.tar.gz'

That will find source (the "*.tar.gz") -- the SlackBuild is in the same directory that the "*.tar.gz" is (find will show you the full path to the source file).

OK, I created a package and upgraded it.
Installed the printer but it can not print:

"/usr/lib/cups/filter/foomatic-rip-hplip failed"

That was the only info I managed to get from CUPS webpage. Before that I tried to print a test page using HP interface. The printer just didn't print with no errors shown on screen.
I tried it as normal user as well as root.

Are you up-to-date with patches? Particularly, ghostscript-9.02? There were some problems with CUPS that turned out to be in Ghostscript (but it wouldn't hurt to download and upgrade all available patches if you haven't done so in any event). Are you up-to-date with foomatic-filters-4.0.6 (in Slackware 13.37 -- are you actually running Slackware 11 or 12 as indicated in your profile or are you using Slackware 13.37)?

Did you install the printer with hp-setup (not directly with CUPS)? And did hp-setup "see" the printer and recommend a "model" to use? If you use hp-setup, it creates the entries in CUPS for you (and you should delete any existing entries for that printer in CUPS before you execute hp-setp). What's you interface? Ethernet, USB, parallel? Does hp-setup find the printer and display information about it? If you're using Ethernet, do you have the printer set with a fixed-IP address (rather than DHCP) and is name of the printer and that fixed-IP address in your /etc/hosts file (make life easier, that)? Did you set the printer (in CUPS) to be the system default by name so that you can simply lp file and it goes to the printer?

What does lpstat -t show you? I have two HP printers installed and your should see something similar to this if you execute lpstat -t (and, of course, your model name(s) will vary):

tronayne I use Slackware 13.37 now sorry for the outdated profile. Thanks for the advice I upgraded all packages from "patches".
Even before I used hp-setup to locate and suggest the model of the printer. It all went well. lpstat -t :

OK, do you have the H-P logo on your task manager bar (won't be there logged in as root, should be as a user if you did hp-setup)? You should be able to right-click it and select HP Device Manager; that will pop up a window that shows you all the H-P printers you have attached. Your HP_LaserJet_Professional_P1102w should appear on that list; Select the Printer Control tab and you should have Started/Idle and Accepting Jobs with green lights. You should also be able to the Status tab (which should tell you that it's idle, top of the list, ignore anything below the top item) or the Supplies tab (that should tell you ink levels).

If you don't see any of those, you're not communicating with the thing and you may want to use CUPS directly rather than the Device Manager to see if you can get it on line.

Open a browser and got to http://localhost:631, click the Administration tab, then Manage Printers tab, then select that printer from the list. Click the Maintenance tab; there will be a list, on that list may be enable printer -- that line will either say Pause Printer or Enable Printer and right below will be either Accept Jobs or Reject Jobs (you want those two to be Pause Pinter and Reject Jobs which indicates that the printer is enables and is accepting jobs). Once you get those, click Print Test Page (not Print Self Test Page!). Also, you should click Cancel All Jobs somewhere during this to clean out the queue for that printer (you've been testing and they're all sitting in the queue).

The only other things I can think of is that you've got a bum USB cable or if the printer has an Ethernet connection that your set up menu may be looking in the wrong direction?

If you do have an Ethernet connection, try that -- but set the printer to a fixed-IP address rather than DHCP; you can use any address less that 100 (where DHCP starts leasing) such as 192.168.1.15 or something -- if you do this you'll need to run through hp-setup again for that printer. And, you know, if you don't have an Ethernet connection, well, forget about that.

lpstat -t is telling you that it's there but CUPS isn't seeing it; could be off-line, could be that it's just not enabled or that it's rejecting jobs.

Did you install the printer with hp-setup (not directly with CUPS)? And did hp-setup "see" the printer and recommend a "model" to use? If you use hp-setup, it creates the entries in CUPS for you (and you should delete any existing entries for that printer in CUPS before you execute hp-setp).

Just want to share with whoever that might stuck in the same problem about how did I solved the same issue finally. Thanks to tronayne for saving my day. I have been working on my new HP P1102 for the whole week and still can't make it to work. Finally I solved it with the clue from the above hint!

I am using slackware 13.37 and the hplip package version in it is 3.11.3a. This version of hplip will not able to talk with the P1102, it says it need a special plugin. In order to get the plugin, you can run hp-plugin. But the problem is, when hplip-plugin went to get the plugin, it couldn't find it as there is no such plugin version of 3.11.3a. What I did is, went to get the hplip-3.11.12 from http://sourceforge.net/projects/hpli...hplip/3.11.12/ and compile it with hplip.SlackBuild (can get it easily from the slackware DVD or http://mirrors.slackware.com/slackwa...lip.SlackBuild). Remember to compile it as root.

After getting hplip-3.11.12-i486-1.txz, install it and run hp-plugin and you will find out it actually goes to http://hplip.sf.net/plugin.conf to get the link to download the appropriate file. Once hplip-3.11.12-plugin.run downloaded, it will try to install but fail. It needs a root access to do it. I then login into X windows again with root, and run that xx-plugin.run file again. Ok, it installed correctly. However it still can't print. Same error "/usr/lib/cups/filter/foomatic-rip-hplip failed"

Finally I tried to remove that printer from CUPS admin webpage, relogin to X windows as root, run the hp-setup again, add my new printer, then only finally, done ! I can now print with HP P1102 without issue, and running lpstat -t gives a nice output like this (I have another printer HP J4660):

Thanks a lot to tronayne as I will not able to figure this out without your hints. I am sharing this out so others need not to waste their time trying so much efforts to make it works, since we just want to get the simple printer to do it's job, it shouldn't be so much hassle.

Thanks a lot to tronayne as I will not able to figure this out without your hints. I am sharing this out so others need not to waste their time trying so much efforts to make it works, since we just want to get the simple printer to do it's job, it shouldn't be so much hassle.

You are more than welcome! Glad to know you got it going.

By the way, there is a new version of HPLIP (3.13.5) available at HP Linux Imaging and Printing: http://prdownloads.sourceforge.net/h...-3.13.5.tar.gz. You might want to take a look and see if it adds any functionality for your printers (it did for my two H-P printer, scanner and plotter). You can build it with the SlackBuild (keep your current one handy just in case), upgradepkg and give it a try; you can always removepkg then installpkg the current package if a problem crops up.

I've never had any problems with any H-P printer (or scanner or plotter) using HPLIP -- just lucky, I guess. H-P releases (and fixes!) HPLIP when they add new printer lines for Linux and that makes me a happy customer. Here's hoping your experience will be better from here on.