Page 1 of 2

How to Install CUPS 1.3.9 in Puppy 4.2.x [Updated]

Posted: Wed 01 Apr 2009, 18:09
by rcrsn51
[Updated] Read here instead.

For HPLIP devices, try the following:

1. Go here and install Patriot's hplipfw-p42-3.9.2-i486.

2. Then go here and install the cupsddk-1.2.3-i486.pet.

---------------------------------------------------------------------------------------------------------
[These are the original instructions]

1. Go here and get the CUPS 1.3.9 stable release package. Download it but do not install it yet.

2. Go here and get the cupsd.conf.zip download at the bottom of the page. Unzip it.

3. Go to a console and type:

Code: Select all

 /etc/init.d/cups stop
4. Create a temporary folder needed by CUPS. Type:

Code: Select all

mkdir /var/cache
Before continuing, verify that the folder /var/cache has been created. (If you have upgraded an existing pup_save file, you may already have this folder.)

5. Install the cups-1.3.9-i486.pet
You don't need to restart your computer.

6. Copy the file cupsd.conf from Step 2 into the folder /etc/cups. This will eliminate the annoying "woofwoof" logins.

7. Type:

Code: Select all

/etc/init.d/cups start
8. Run the CUPS Printer Wizard and install a printer. Print a test page.

If your printer uses HPIJS, you must also do the following:

9. Install the HPIJS driver from the Puppy Package Manager. It is listed in the System category as hpijs-2.8.2_static-1.

10. Go to the folder /usr/lib/cups/filter
Locate the file foomatic-rip-hplip and open it in a text editor
Change the top line to #!/usr/bin/perl -U

11. Restart CUPS with

Code: Select all

/etc/init.d/cups restart
[/url]

Posted: Wed 01 Apr 2009, 19:05
by DaveS
What would I gain by changing the CUPS in 4.2 please? Does 1.3.9 offer any advantages over 1.4? Specifically, does it cure the problem of CUPS hanging when trying to modify a printer?

Posted: Wed 01 Apr 2009, 19:13
by rcrsn51
Yes. And some other strange behaviours disappear too. Based on very limited testing, the combination of CUPS 1.3.9 and the other printing components in 4.2 looks stable.

Posted: Wed 01 Apr 2009, 20:42
by DaveS
rcrsn51 wrote:Yes. And some other strange behaviours disappear too. Based on very limited testing, the combination of CUPS 1.3.9 and the other printing components in 4.2 looks stable.
OK. I followed your instructions with complete success. I can now modify my printer instead of having to re-install it when my router goes down due to power cut (its an HP Photosmart c4380 wifi printer) and assigns it a different ip address. The test page is different and seems better defined.
There were some install differences as I had previously installed Patriots(?) files to even get it to print at all, so /var/cache was already on my system.
The whole root/woofwoof thing has gone too. Thanks a million for this.
Mind, CUPS 1.42b can autodetect my printer, but 1.3.9 cannot.

Posted: Wed 01 Apr 2009, 22:14
by DaveS
Dont work in 4.1.1 though :)

Posted: Thu 02 Apr 2009, 13:40
by rcrsn51
Glad to hear that it's working. Your problem with back-porting to 4.1 may be a kernel issue.

So far, I've tested this with usb, smb and socket protocols, and with the HPIJS driver (using the -U fix). They all appear to be solid. And cupsd is running happily at 0% CPU.

Posted: Thu 02 Apr 2009, 14:33
by jakfish
Hi, rcrsn51,

I'm still having a bear of a time getting any CUPS past 4.1.2's 1.1.23 version to work with the no-bling 4.2/4.1.2 pup_save file.

Your fine instructions/files in the post made CUPS work for a while, but after a couple of re-boots, I lost printing both via usb and samba (in CUPS 1.39, samba choice is now "unknown network").

Clearly, there's a problem with 4.1.2 pup_save and 4.2.

I have uninstalled all possible CUPS and tried to install 1.1.23, which does NOT install. My searching tells me that's because an updated samba version in 4.2 renders 1.1.23 obsolete. Is that correct?

If not, is it possible to install CUPS 1.1.23 in PL 4.2?

Thanks,
Jake

Posted: Thu 02 Apr 2009, 14:54
by rcrsn51
The problem with Linux printing is that there are so many interconnected parts - Ghostscript, Foomatic, Gutenprint, CUPS, etc. And they are not necessarily mix-and-match. Ttuuxxx did an excellent job getting them to mesh in 4.2. So I have no opinion on whether CUPS 1.1.23 can be installed into 4.2.

Is your current problem specifically with your "no-bling" version? Where did it come from? Can you still print in your full version?

Things that used to work and then stop working are always difficult to analyse.

Posted: Thu 02 Apr 2009, 17:53
by jakfish
I figured it would be complicated. Since the full version is complicated in itself on the eee's small screen, I haven't much played with it and my 4.1.2 pup_save file.

I should go do that, though I was dismayed to discover that despite your great CUPS build and even better instructions, that printing eventually quit nonetheless in my eee. I wonder if that might not happen with the full version. I'll have to play with it and see.

Your explanation of how many moving parts Linux uses for printing is eye-opening. No wonder so many people have problems, and DIFFERENT problems. That's what makes even researching the causes so difficult.

So I'm much obliged for your help,
Jake

How to Install CUPS 1.3.9 in Puppy 4.2

Posted: Fri 03 Apr 2009, 21:54
by w6kkt
rcrsn51, I followed your instructions and now my HPC3100 works great in Puppy4.2. My printer worked great using Puppy4.12, but when I upgraded to Puppy4.2 I could not get it to print, no matter how hard I tried. I think the hpijs driver is the same for both distros, so it must be the later Cups 1.3.9 that did it.
Many,many thanks

Posted: Fri 03 Apr 2009, 22:25
by ecomoney
thanks for reporting this...maybe something to consider for 4.2.1

How to Install CUPS 1.3.9 in Pup4.2

Posted: Sat 04 Apr 2009, 17:07
by w6kkt
rcrsn51, I wanted to find out why Cups 1.4/Puppy4.2 combo did not work with my HPC3100. I compared Cups 1.4 & 1.3.9 foomatic-rip-hplip files for differences. What I found was: "-U" was left out at the end of /usr/bin/perl file in Cups1.4. When I deleted the "-U" from 1.3.9 my printer stopped working. My fix for Puppy4.2 / Cups1.4 was to edit and add -U to to the end of #!/usr/bin/perl -U . Printing now works great using Puppy4.2/cups1.4, like it did when I was using Puppy4.12/cups1.3.9.

rcrcn51, thanks again, your post has helped much.

Re: How to Install CUPS 1.3.9 in Pup4.2

Posted: Sat 04 Apr 2009, 23:27
by WhoDo
w6kkt wrote:I compared Cups 1.4 & 1.3.9 foomatic-rip-hplip files for differences. What I found was: "-U" was left out at the end of /usr/bin/perl file in Cups1.4. When I deleted the "-U" from 1.3.9 my printer stopped working. My fix for Puppy4.2 / Cups1.4 was to edit and add -U to to the end of #!/usr/bin/perl -U . Printing now works great using Puppy4.2/cups1.4, like it did when I was using Puppy4.12/cups1.3.9.
I'd like to implement this in CUPS-1.4.2 for the next release of Puppy-4.2.x but I can't find specifically where the change needs to be made. Can you humour an ignorant old man and be more specific about the file that needs the -U added to that line, please? Thanks in anticipation. 8){Marge, get me another Duff while I'm watchin' the WWE here!} :P

Posted: Sat 04 Apr 2009, 23:49
by rcrsn51
The file in question is contained in the various HPIJS/HPLIP printer driver packages. See Step 9 above. It is not part of Puppy 4.2 proper.

The need for the patch is explained in Patriot's CUPS 1.3.9 thread. Ultimately, it will be the responsibility of the maintainers of those packages to upgrade them.
I'd like to implement this in CUPS-1.4.2
Unless you have privileged information, there is no such thing. CUPS has been stuck on 1.4 Beta 2 since December.

How to Install Cups 1.3.9 in Puppy 4.2

Posted: Sun 05 Apr 2009, 01:20
by w6kkt
WhoDo, File location: /usr/lib/cups/filter/foomatic-rip-hplip.
Edit top line to read; #!/usr/bin/perl -U

Puppy4.2 & Cups 1.4 on my computer left out the "-U"

Re: How to Install Cups 1.3.9 in Puppy 4.2

Posted: Sun 05 Apr 2009, 01:24
by WhoDo
w6kkt wrote:WhoDo, File location: /usr/lib/cups/filter/foomatic-rip-hplip.
Edit top line to read; #!/usr/bin/perl -U

Puppy4.2 & Cups 1.4 on my computer left out the "-U"
Done! Thanks, w6kkt. 8)

@rcrsn51 - Yes, I just got lazy when describing the version of CUPS and yes it is a b2 version.

Posted: Sun 05 Apr 2009, 19:55
by ecomoney
'd like to implement this in CUPS-1.4 beta 2 for the next release of Puppy-4.2.x
(correction mine)

Did I read that correctly Whodo? You are planning to use a beta testing version of the printing system in the next Puppy? :shock:

Posted: Fri 10 Apr 2009, 17:56
by jackieflorida
w6kkt wrote:
WhoDo, File location: /usr/lib/cups/filter/foomatic-rip-hplip.
Edit top line to read; #!/usr/bin/perl -U
It works for me with my old HP Deskjet 3845 which went into error condition before making this edit.

Thanks w6kkt

Posted: Sun 12 Apr 2009, 02:30
by HP-TQ-RPM
Go to the folder /usr/lib/cups/filter
Locate the file foomatic-rip-hplip and open it in a text editor
The only file I find is a symlink foomatic-rip (no -hplip), and a psearch for foomatic didn't locate anything with -hplip. Did I botch something in steps 1-7?

(And my HP Deskjet D4260 isn't working. :( )

Edit: I found this this thread http://www.murga-linux.com/puppy/viewtopic.php?t=40913
Go to Menu > Setup > Puppy Package Manager.
Select the System group and download the hpijs-2.8.2-static-1.pet
Installing this created the foomatic-rip-hplip file, which I was then able to edit.

After installing the hpjis.pet my printer works. :) :) The current CUPS setup does not show you the username & password needed for the final step of the printer setup. They are root & woofwoof.[/quote]

Posted: Sun 12 Apr 2009, 02:59
by jackieflorida
TO: HP-TQ-RPM

See w6kkt's correction quoted in my post just above yours.