hplip and hpliplite packages

Problems and successes with specific brands/models of printers
Message
Author
Shep
Posts: 878
Joined: Sat 08 Nov 2008, 07:55
Location: Australia

#81 Post by Shep »

disciple wrote:You seem to have had something uniquely weird go wrong
The story of my life!![/size] :wink: :P

Shep
Posts: 878
Joined: Sat 08 Nov 2008, 07:55
Location: Australia

Re: possible workaround?

#82 Post by Shep »

lluamco wrote:@Shep
If you don't mind trying it and giving feedback, I suggest the following

1. Stop cups with the command

/etc/init.d/cups stop
I'm not clear on the procedure I should follow. Do you want me to first
uninstall the printer, then click on the CUPS wizard and begin reinstalling
the printer? And at what stage do I go to a terminal screen and stop CUPS?

CUPS is not a constantly running background process here. Should it be??
Last edited by Shep on Tue 09 Feb 2010, 09:03, edited 1 time in total.

Shep
Posts: 878
Joined: Sat 08 Nov 2008, 07:55
Location: Australia

#83 Post by Shep »

rcrsn51 wrote:
There should be a way to return CUPS configuration to its 'factory default'.
I can't comment on how CUPS is configured in Dpup, but the ususal solution to the multiple-entry issue is to just reboot your machine.
Are you saying what I tripped up on is a known issue? :x
The machine was shut two nights in a row, and that did nothing to fix
the problem.

lluamco
Posts: 208
Joined: Fri 16 Mar 2007, 09:10
Location: Banyoles, Spain

Re: possible workaround?

#84 Post by lluamco »

Shep wrote:
lluamco wrote:@Shep
If you don't mind trying it and giving feedback, I suggest the following

1. Stop cups with the command

/etc/init.d/cups stop
I'm not clear on the procedure I should follow. Do you want me to first
uninstall the printer, then click on the CUPS wizard and begin reinstalling
the printer? And at what stage do I go to a terminal screen and stop CUPS?
I was suggesting to open a terminal screen and run the commands. Afterwards,
you can install/reinstall your printer using the cups wizard.
In the meantime, I have realized that the commands to be executed in the terminal can be simplified to this four command's sequence:

Code: Select all

/etc/init.d/cups stop
rm /usr/share/ppd/ppd
rm /etc/cups/ppds.dat
/etc/init.d/cups start
Note that there is no need to download the above ppds.dat.gz file, since cups regenerates it.

Edit: cupsd is constantly running in the background in puppy 4.3.1. I do not know in dpup.

Shep
Posts: 878
Joined: Sat 08 Nov 2008, 07:55
Location: Australia

Re: possible workaround?

#85 Post by Shep »

lluamco wrote:

Code: Select all

/etc/init.d/cups stop
rm /usr/share/ppd/ppd
rm /etc/cups/ppds.dat
/etc/init.d/cups start
Showing caution, I tentatively tried:

# /etc/init.d/cups stop
cups: stopped scheduler.
# ls -l /usr/share/ppd/ppd
lrwxrwxrwx 1 root root 14 2010-02-04 21:58 /usr/share/ppd/ppd -> /usr/share/ppd
# ls -l /etc/cups/ppds.dat
ls: cannot access /etc/cups/ppds.dat: No such file or directory


Is that informative?

And there is no cups string in `ps a` here, though I don't have a
printer connected right now.

lluamco
Posts: 208
Joined: Fri 16 Mar 2007, 09:10
Location: Banyoles, Spain

Re: possible workaround?

#86 Post by lluamco »

Shep wrote:
lluamco wrote:

Code: Select all

/etc/init.d/cups stop
rm /usr/share/ppd/ppd
rm /etc/cups/ppds.dat
/etc/init.d/cups start
Showing caution, I tentatively tried:

# /etc/init.d/cups stop
cups: stopped scheduler.
# ls -l /usr/share/ppd/ppd
lrwxrwxrwx 1 root root 14 2010-02-04 21:58 /usr/share/ppd/ppd -> /usr/share/ppd
# ls -l /etc/cups/ppds.dat
ls: cannot access /etc/cups/ppds.dat: No such file or directory


Is that informative?

And there is no cups string in `ps a` here, though I don't have a
printer connected right now.
OK, I have been looking at dpup. It uses cups.1.3.8, a more recent version that the one included in puppy.4.3.1. The cups daemon is also permanently running, and you can check it issuing

Code: Select all

ps aux | grep cupsd
On the other hand, the location of the ppds.dat file is changed. In dpup, it is located at /var/cache/cups/ppds.dat. Thus the correct sequence of commands in dpup is:

Code: Select all

/etc/init.d/cups stop
rm /usr/share/ppd/ppd
rm /var/cache/cups/ppds.dat
/etc/init.d/cups start
(You can replace rm /var/cache/cups/ppds.dat by mv /var/cache/cups/ppds.dat /var/cache/cups/ppds.dat.keep if you feel uneasy...)
Finally, when you install the printer, there are still some models repeated, but only a few times (two times, typically). I think this is harmless...

lluamco
Posts: 208
Joined: Fri 16 Mar 2007, 09:10
Location: Banyoles, Spain

hpliplite-3.10.2

#87 Post by lluamco »

hpliplite updated to version 3.10.2
See first post

User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

Re: hpliplite-3.10.2

#88 Post by edoc »

lluamco wrote:hpliplite updated to version 3.10.2
See first post

I followed the instructions:

hpliplite-3.10.2 INSTALLATION:

Please install first the package libnetsnmp-15.pet,
http://dotpups.de/puppy4/dotpups/Printi ... nmp-15.pet
or
http://puppyfiles.ca/dotpupsde/puppy4/d ... nmp-15.pet

and afterwards install

http://dotpups.de/puppy4/dotpups/Printi ... 3.10.2.pet or
http://puppyfiles.ca/dotpupsde/puppy4/d ... 3.10.2.pet
I am getting a "Media Tray Empty" error, though there is paper and this printer was recently working on a different pc.

I did try powering the printer down and up again in case it needed to reset.
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603

User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#89 Post by edoc »

This code does not work for me:
mkdir /usr/share/hplip/prnt/plugins
mkdir /usr/share/hplip/data/firmware
install_hp_plugin name_of_the_correct_plugin
This directory did not exist, so I needed to add a step to create it:
mkdir /usr/share/hplip/prnt/
This was not recognized:
install_hp_plugin name_of_the_correct_plugin
So I tried this:

Code: Select all

install hp_plugin name_of_the_correct_plugin
Here is the output from rxvt:
# install_hp_laserjet_p1006.plugin
bash: install_hp_laserjet_p1006.plugin: command not found
# install hp_laserjet_p1006.plugin
install: missing destination file operand after `hp_laserjet_p1006.plugin'
Try `install --help' for more information.
# cd /usr/share/hplip/prnt/plugins
# install_hp_laserjet_p1006.plugin
bash: install_hp_laserjet_p1006.plugin: command not found
# install hp_laserjet_p1006.plugin
install: missing destination file operand after `hp_laserjet_p1006.plugin'
Try `install --help' for more information.
#
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603

User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#90 Post by edoc »

What is this trying to tell me, please?

The "Device URI" looks especially weird.
HP Photosmart c4400 Series hpijs, 3.9.12.29
Description: c4480
Location: dmc
Printer State: idle, accepting jobs.
"/ioerror in --.outputpage--"
Device URI: usb://Q8388A?serial=CN894HZ1660557
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603

lluamco
Posts: 208
Joined: Fri 16 Mar 2007, 09:10
Location: Banyoles, Spain

#91 Post by lluamco »

Hi edoc,
I have no experience with printers requiring plugins. However, although you are right that you needed to create the directory you mentioned,
edoc wrote:This directory did not exist, so I needed to add a step to create it:
mkdir /usr/share/hplip/prnt/
it is strange that the command
install_hp_plugin name_of_the_correct_plugin
was not recognized.

1. Did you downloaded your needed plugin

Code: Select all

hp_laserjet_p1006.plugin 
from
http://www.linuxprinting.org/download/p ... P/plugins/ ?

2. Did you install the install_hp_plugin.pet ?(it is available at http://dotpups.de/puppy4/dotpups/Printi ... plugin.pet)
Once this pet is installed, you should be able to execute the command

Code: Select all

 install_hp_plugin hp_laserjet_p1006.plugin 
Can you please try it again and give feedback?

User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#92 Post by edoc »

It works fine on my 4.31 Puppy laptop but not on her 4.21 Puppy laptop.

Is that the difference or should I look for something else that may be missing?

I do need to upgrade her laptop but am kinda stalling ... 4.31 is pretty stable ...
but Lighthouse Pup, despite or because of the KDE-bloat, has a lot of features that would be useful to her. Hmmmmm.
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603

User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#93 Post by edoc »

I am returning to the never-ending battle to coax CUPS into playing nicely with Puppy.

I am running Wary 030 and need either my HP Laserjet P1006 or HP Photosmart C4480 to work.

I would, of course, prefer that both work but at this point after 2-3 weeks without a working printer I will take what I can get.

The HP site lists several versions of Linux when you go to download their Linux driver for the P1006 but sadly, they do not include Puppy as an option. Which of the versions are most likely to be compatible with Wary 030, please?
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603

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

#94 Post by rcrsn51 »

Check your other post.

User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#95 Post by edoc »

CUPS generates a blank screen when I go here: http://localhost:631/ then select Manage Printers.

This happened before and after loading the foo2xxx_r220909-0.0-i486.pet

Did I need to do a reboot?
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603

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

#96 Post by rcrsn51 »

First of all, this PET is just the driver package - it doesn't auto-install the printer. You still have to do that yourself from the CUPS Admin tab. Select Find New Printers or Add Printer.

You mentioned in a previous post about the Manage Printers page being blank. It should at least show the built-in CUPS-PDF driver. Boot from your Wary Live CD using "puppy pfix=ram" and see what happens.

User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#97 Post by edoc »

When I clicked on CUPS (1.3.11 in Wary 030) from MENU-CUPS Printer Wizard it asked if I wanted to add a new printer - and I selected YES.

It opened a CUPS Web Interface Help window then a Common UNIX Printing System 1.3.11 window.

I selected again ADD PRINTER and it cycled for several minutes and finally opened a blank window with this address: "http://localhost:631/admin?OP=add-printer"

I allowed session cookies, images, and popups and refreshed it is back to "Waiting for localhost ..." now for at least a minute.

Something is not working right for sure!

I am going to reboot but I think the problem is a broken CUPS install.

Should I try to reinstall 1.3.11 or try something newer?

I had a horrible mess of CUPS patches and add-ins before and really don't want to go there again. I'd like to clean out the old before trying something new or different.

WDYT?
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603

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

#98 Post by rcrsn51 »

edoc wrote:Something is not working right for sure!I am going to reboot but I think the problem is a broken CUPS install.Should I try to reinstall 1.3.11 or try something newer?WDYT?
rcrsn51 wrote:Boot from your Wary Live CD using "puppy pfix=ram" and see what happens.

User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#99 Post by edoc »

I will have to create a CD, I never needed it as I just clicked on the downloaded ISO and copied the three files to a /wary directory then edited my GRUB menu.lst file.

Is there any reason that adding Wary 030 as a Frugal install would be a problem doing it that way?

I did just reboot and no joy with CUPS.

CUPS is having trouble finding localhost.

Note: Barry's Simple Network app never remembers the settings - so CUPS isn't the only thing misbehaving - then again, I recall that I saw the same problem in Lucid 5.01 and I think Quirky (on different computers).
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603

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

#100 Post by rcrsn51 »

Is there any reason that adding Wary 030 as a Frugal install would be a problem doing it that way?
No, but modify your GRUB entry by adding "pfix=ram" to the end of the kernel line. That starts a fresh copy of Wary that doesn't use your corrupted pupsave file.

Post Reply