Page 1 of 1

Anyone Know How to Install Hp Deskjet D2360 in Puppy Linux

Posted: Tue 07 Apr 2009, 12:07
by asim987345
Please Help Me installing Hp 2300 Deskjet
Please Reply Me With Quick Solution as Soon as Possible!!!!!!!


Thanks,,,

Posted: Tue 07 Apr 2009, 12:26
by rcrsn51
Your Deskjet D2360 uses the HPIJS driver, which can be installed into Puppy.

Go to Menu > Setup > Puppy Package Manager.
Select the System group and download the hpijs-2.8.2-static-1.pet
Follow the steps to install it.

If you are using Puppy 4.2, there is another step.

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

Restart the CUPS daemon. Go to a console and type: /etc/init.d/cups restart

Go to the Setup menu and run the CUPS Printer Wizard.

Posted: Tue 07 Apr 2009, 13:24
by ttuuxxx
rcrsn51 wrote: Change the top line to #!/usr/bin/perl -U
Why do you have to do that step? Sure I made the printing package for 4.2, But before that I never really used CUPS, So I'm asking due to lack of knowledge of the subject and just want to learn a bit :wink: And should I do that by default for my puppy releases?
Thanks
ttuuxxx

Posted: Tue 07 Apr 2009, 16:52
by rcrsn51
The file in question is part of the HPIJS driver package, not part of the CUPS install. The full explanation is in Patriot's 1.3.9 thread, but here is the basic idea.

The foomatic software sits between CUPS and Ghostscript and is used with certain drivers, like HPIJS. (Gutenprint doesn't need it.) You can tell by looking in the PPD file to see how the print job needs to be processed. The old foomatic code was written as Perl scripts. In CUPS 1.1.23, the Perl interpreter would happily run the foomatic code and send the print job over to Ghostscript.

However, the new CUPS versions have much tighter security requirements concerning ownership of the print job whenever external programs need to be run. This is part of the whole "running as root" issue. Now when Perl runs the foomatic script, it detects some permissions conflict in the job and aborts. The solution is to run Perl in -Unsafe mode so Perl will ignore whatever it doesn't like.

Puppy has foomatic in two places. The first is in /usr/bin and is used, for example, by printers in the pnm2ppa group. However, when you (ttuuxxx) upgraded to CUPS 1.4b, the Perl scripts were replaced by binary code. This eliminates the problem for these printers.

The other foomatic is in the hpijs.pet. It is still a Perl script, so must be patched after it is installed into a Puppy that has a new version of CUPS. Eventually, this package will need upgrading, either by adding the -U patch or by compiling its foomatic.

I think that's a reasonable explanation, but Patriot is better qualified than I to speak on the issue.

Posted: Tue 07 Apr 2009, 16:59
by ttuuxxx
naaa worked for me great job I totally understand it now thanks you very much :)
ttuuxxx

HPIJS words on other models too

Posted: Sun 31 May 2009, 23:35
by Jackm
I just used this package to install my HP D2430 printer. It worked. No doubt this package handles the entire D series for this HP printer line.

Posted: Sun 31 May 2009, 23:52
by rcrsn51
If you are running Puppy 4.2.1 Final, the new hpijs-3.9.4-dynppds.pet is available through the Puppy Package Manager. This is a one-step procedure to install the HPIJS driver package.