LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 03-01-2009, 12:54 AM   #1
trist007
Senior Member
 
Registered: May 2008
Distribution: Slackware
Posts: 1,004

Rep: Reputation: 67
Having trouble adding my printer...


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.

What should I do?

Last edited by trist007; 03-01-2009 at 01:01 AM.
 
Old 03-01-2009, 03:24 AM   #2
mlangdn
Senior Member
 
Registered: Mar 2005
Location: Kentucky
Distribution: Slackware64-current
Posts: 1,386

Rep: Reputation: 181Reputation: 181
Open a console while running the gui in init 3.

su to root and issue the command:

hp-setup

Then follow the prompts. I would suggest that you first open cups in a browser and remove the printer first. After all this is done, restart cups.
 
Old 03-01-2009, 03:45 AM   #3
trist007
Senior Member
 
Registered: May 2008
Distribution: Slackware
Posts: 1,004

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

Last edited by trist007; 03-01-2009 at 04:34 AM.
 
Old 03-01-2009, 04:49 AM   #4
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 54
Did you try amd set up the printer by opening a browser and going to http://localhost:631
 
Old 03-01-2009, 09:02 AM   #5
trist007
Senior Member
 
Registered: May 2008
Distribution: Slackware
Posts: 1,004

Original Poster
Rep: Reputation: 67
Bro, if you read my OP, you'll see I've already done that.
 
Old 03-01-2009, 09:09 AM   #6
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
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.
 
Old 03-01-2009, 12:04 PM   #7
trist007
Senior Member
 
Registered: May 2008
Distribution: Slackware
Posts: 1,004

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

What to do?

Last edited by trist007; 03-01-2009 at 12:23 PM.
 
Old 03-01-2009, 12:28 PM   #8
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 54
This may help;
https://answers.launchpad.net/hplip/+question/25654
 
Old 03-01-2009, 12:31 PM   #9
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
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
 
Old 03-01-2009, 01:11 PM   #10
trist007
Senior Member
 
Registered: May 2008
Distribution: Slackware
Posts: 1,004

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

Last edited by trist007; 03-01-2009 at 01:13 PM.
 
Old 03-01-2009, 02:00 PM   #11
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
Get it here:
http://ftp.gwdg.de/pub/linux/slackwa....4a-i486-2.tgz

Then run this where you downloaded it:
Code:
installpkg hplip-1.7.4a-i486-2.tgz
 
Old 03-01-2009, 06:01 PM   #12
trist007
Senior Member
 
Registered: May 2008
Distribution: Slackware
Posts: 1,004

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

Any ideas?

Last edited by trist007; 03-01-2009 at 06:07 PM.
 
Old 03-01-2009, 09:29 PM   #13
trist007
Senior Member
 
Registered: May 2008
Distribution: Slackware
Posts: 1,004

Original Poster
Rep: Reputation: 67
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.)
 
Old 03-01-2009, 10:05 PM   #14
trist007
Senior Member
 
Registered: May 2008
Distribution: Slackware
Posts: 1,004

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

Last edited by trist007; 03-01-2009 at 10:11 PM.
 
Old 03-01-2009, 10:47 PM   #15
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 54
In /etc/cups/cups.conf make sure
LogLevel debug

then look at the logs
/var/log/cups/error_log

it is just make not ./make
 
  


Reply

Tags
printer, slackware


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Adding a Printer wnkltd Linux - Newbie 3 03-16-2007 06:43 PM
I need help adding a printer rehuntley Linux - Newbie 3 09-11-2005 08:43 PM
Trouble adding an SMB printer through the GUI linux-who? Linux - Newbie 2 07-20-2005 08:20 AM
Adding a printer krackerroot Linux - Networking 1 10-12-2003 02:14 PM
adding a printer Schizo265 Linux - Hardware 2 12-01-2002 05:49 AM


All times are GMT -5. The time now is 12:33 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration