SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
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.
I have a Slackware 12.0 box. I also have a local via usb HP Desktop D1455. I run Settings-Printers on the gui Desktop. I select CUPS as the service. I select my brand and model. I setup the settings for legal paper. Then I click TEST for the test page, it prompts for a password, I tried both my user and the password and root and the root's password and neither worked. So instead of inputing another user name and password I hit cancel. I get a message saying the test page printed successfully even though it did not. I then get another notice labeled Catastrophe. Here's a http://68.203.185.145/images/snapshot1.png pic of the notice. I then click ok and then cancel the user name and password again and then I get another notice saying that it was unable to remove printer.
It's weird on the printer screen, when I click on administrator mode, I put in the correct root password, but kernel says it's not the right one. Really odd. So I login to the desktop as root. I open up printers, add a printer, and again, the same error in that picture pops up. I've been using Slackware 12.0 for about 6 months and I love it. I've gotten to know how to do everything. Getting really proficient with the distro. The only thing that is really left is to be able to print, which would be great.
I went to OpenPrinting and downloaded the hplip-3.9.2.run file. I ran it, chmod 755 rc.cups, started cups, opened a browser and went to localhost:631, added printer via the ppd and it was added. It was all green, no red spots hehe. I hit print test page and this error returned
"Unable to start filter "foomatic-rip-hplip" - No such file or directory."
So I ran the hplip-3.9.2.run file. However, I'm confused. I'm running Slackware and none of the distro options are anything close to Slax. So I tried them all and none of them worked.
There is no hp-setup, only hplip-3.9.2.run file. When I run hplip-3.9.2.run file, I get stuck in the installation because it asks me which distro I use and slackware is not one of them.
I think the mistake that you made is that you installed another version of hplip when there is already a version of hplip that comes with Slackware. Since you have done that, I think it probably messed up a lot of stuff, not sure I can help much.
I never installed another version of hplip, I only ran the hplip.run file, but I never completed the installation when running that file. I would always quit, when it asked me what distro to use, since Slackware wasn't in there? In any case, any way to troubleshoot? I don't mind reformatting, I don't have much stuff saved, I could just move it over to a windows share. Takes me 20 mins to reinstall. But, just want to make sure that there's nothing else I can do.
So normally, if I do reformat. I should just start the cups server and browse to 127.0.0.1:631 and add a printer using the ppd file? What route exactly should I take when I use the browser cups method?
I also noticed that in my /etc/rc.d there are two cups scripts.
rc.cups
rc.cups.new
I've been using rc.cups, should I mv rc.cups.new rc.cups ? I think I tried that in the past and it didn't help.
I also have a slackware laptop that I hadn't ran hplip on. So I started the rc.cups server, browsed to 127.0.0.1:631, added the printer, I noticed this time under device the USB HP Desjet D1455 was an option as one of the drivers, whereas last time it was not and I tried using AppSocket/ HP Jet Direct last time. Anyhow, so I started with a good feeling. On the next page I selected HP Deskjet with serial number instead of selecting a ppd file and clicked on add printer. It added it. No red areas on the printer. So I clicked print Test Page. Then I get this error
Error:
Unsupported format 'application/postcript'!
So then I tried modifying printers and adding a ppd file. So I went to openprinting.org, selecting hpijs, generated a ppd file for my specific printer hp deskjet d1400 and used the browser method and modified the printer by selecting a ppd file instead. It installed. When I went to the printers screen, there were red parts, so I had to select start printer, then all was green. I printed the test page and then I got this error.
"Unable to start filter "foomatic-rip" - No such file or directory."
Well, first, since you're running 12.0, I believe it still has a '/etc/rc.d/rc.hplip', make sure that is executable, and also make sure that '/etc/rc.d/rc.cups' is executable, because they must be started IN ORDER, this is done in rc.M:
Code:
# Start the print spooling system. This will usually be LPRng (lpd) or CUPS.
if [ -x /etc/rc.d/rc.cups ]; then
# If HPLIP (HP's complete print/scan/fax system) is installed,
# then it should be run first:
if [ -x /etc/rc.d/rc.hplip ]; then
# Start HPLIP:
/etc/rc.d/rc.hplip start
fi
# Start CUPS:
/etc/rc.d/rc.cups start
elif [ -x /etc/rc.d/rc.lprng ]; then
# Start LPRng (lpd):
. /etc/rc.d/rc.lprng start
fi
Once it is run in that order you then should try installing it ...
1) Go here http://localhost:631/
and install the printer ... click ...
Printers -> Add Printer ->
a) Name the printer
b) Device: HP Printer
c) Make: HP
d) Model: Your HP Printer Model
e) That's it
I don't have a rc.hplip script. Could you guys cat the contents for me? I'd still be missing the files tho. So I guess I do need to install hplip? Only that during the install there's no option for slackware.
You know, I'm thinking. I'm using Backtrack 3, and I understand it's a leaner version of Slackware. Maybe I'm just missing hplip. In either case, I'm not sure how I'm going to install hplip if there's no option for Slackware during the install.
I installed hplip, then added that the rc.hplip start and rc.cups start to rc.M. I used that script you had posted above, and just added that to rc.M. Then I rebooted, saw that both rc.hplip and rc.cups were loaded successfully, added the printer, under devices there were two usb hp deskjets, one with hplip and another without, I tried the one with hplip, click print test page and got
"/usr/lib/cups/filter/foomatic-rip failed"
I tried the other device and still no dice. I ls -l foomatic-rip and it's got 777 permissions.
I ran sudo hp-check -g and got this under the printer in question
D1455
-----
Device URI: usb://HP/Deskjet%20D1400%20series?serial=TH7442407504Y4
Installed in HPLIP? No
PPD: /etc/cups/ppd/D1455.ppd
PPD Description: HP DeskJet D1400 Foomatic/hpijs (recommended)
hp-check[4210]: debug: printer D1455 is idle. enabled since Sun Mar 1 20:26:08 2009
/usr/lib/cups/filter/foomatic-rip failed
Printer status: printer D1455 is idle. enabled since Sun Mar 1 20:26:08 2009
/usr/lib/cups/filter/foomatic-rip failed
error: Printer is not HPLIP installed. Printers must use the hp: or hpfax: CUPS backend to function in HPLIP. (You can still print to this printer using another backend and HPIJS.)
The only thing I can think is that hplip does not install correctly.
Do you think that the hplip-1.7.4a-i486-2.tgz is too old a version? It installed with no errors, but whenever I run hp-check, it says that the printer was not hplip installed.
I tried downloading the newer version, hplip-3.9.2.tar.gz and used the linuxprinting.org site for instructions on how to install the file.
I extracted it, then ran ./configure, then I tried ./make but it said no targets were specified.
I really want to get this working. Might even consider opening a port with vncviewer listening so somebody could show me how it's done. I know the security risk, but reformating and reinstalling the OS wouldnt' take me long.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.