Anyone Know How to Install Hp Deskjet D2360 in Puppy Linux

Problems and successes with specific brands/models of printers
Post Reply
Message
Author
asim987345
Posts: 2
Joined: Sun 22 Feb 2009, 06:45

Anyone Know How to Install Hp Deskjet D2360 in Puppy Linux

#1 Post by asim987345 »

Please Help Me installing Hp 2300 Deskjet
Please Reply Me With Quick Solution as Soon as Possible!!!!!!!


Thanks,,,

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#2 Post 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.

User avatar
ttuuxxx
Posts: 11171
Joined: Sat 05 May 2007, 10:00
Location: Ontario Canada,Sydney Australia
Contact:

#3 Post 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
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#4 Post 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.
Last edited by rcrsn51 on Tue 07 Apr 2009, 17:26, edited 1 time in total.

User avatar
ttuuxxx
Posts: 11171
Joined: Sat 05 May 2007, 10:00
Location: Ontario Canada,Sydney Australia
Contact:

#5 Post by ttuuxxx »

naaa worked for me great job I totally understand it now thanks you very much :)
ttuuxxx
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)

Jackm
Posts: 38
Joined: Thu 31 Jul 2008, 17:08

HPIJS words on other models too

#6 Post 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.

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#7 Post 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.

Post Reply