public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] gentoo rebuild, cups won't work
@ 2008-01-27 18:58 Kevin O'Gorman
  2008-02-01  9:01 ` Dave Jones
  0 siblings, 1 reply; 9+ messages in thread
From: Kevin O'Gorman @ 2008-01-27 18:58 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 916 bytes --]

I'm rebuilding a broken gentoo, taken down by hard drive failure.
Most things are working well, but printing just won't go.

Attpempts to print are accepted, but not printed.  lpstat -t shows the
attached printer is disabled.  Re-enabling only works until the next job
is submitted.  It has reported a variety of reasons, such as "Page not
Found" (whatever that means).
Or some thing about back end failure.  Or no reason stated at all.

I've got my old config files, so I was prepared for things to Just Work.
They don't.
I do not have my old world file, so I may be missing a piece.

I've installed cups and hplip.  I cannot follow the Gentoo printing guide,
because that worthy
document requires me to add hplip to the default runlevel, but hplip does
not put anything in
/etc/init.d.  My printer is an old HP Laserjet 4M, which I usually run as a
Postscrpt printer.

What have I missed?

-- 
Kevin O'Gorman, PhD

[-- Attachment #2: Type: text/html, Size: 1059 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] gentoo rebuild, cups won't work
  2008-01-27 18:58 [gentoo-user] gentoo rebuild, cups won't work Kevin O'Gorman
@ 2008-02-01  9:01 ` Dave Jones
  2008-02-01 10:26   ` Dale
  0 siblings, 1 reply; 9+ messages in thread
From: Dave Jones @ 2008-02-01  9:01 UTC (permalink / raw
  To: gentoo-user

Hi Kevin

Kevin O'Gorman wrote on 27/01/08 19:58:
> I've installed cups and hplip.  I cannot follow the Gentoo printing 
> guide, because that worthy document requires me to add hplip to the
> default runlevel, but hplip does not put anything in /etc/init.d.  My
> printer is an old HP Laserjet 4M, which I usually run as a Postscrpt
> printer.

> What have I missed?

Run hp-setup

You'll probably need to rework your cups config files if you've retained
them from the broken install.  hp-setup should enable local printing OK.

/etc/init.d/hplip is no longer necessary with recent hplip ebuilds.

Cheers, Dave
-- 
gentoo-user@lists.gentoo.org mailing list



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] gentoo rebuild, cups won't work
  2008-02-01  9:01 ` Dave Jones
@ 2008-02-01 10:26   ` Dale
  2008-02-02 18:18     ` Kevin O'Gorman
  0 siblings, 1 reply; 9+ messages in thread
From: Dale @ 2008-02-01 10:26 UTC (permalink / raw
  To: gentoo-user

Dave Jones wrote:
> Hi Kevin
>
> Kevin O'Gorman wrote on 27/01/08 19:58:
>   
>> I've installed cups and hplip.  I cannot follow the Gentoo printing 
>> guide, because that worthy document requires me to add hplip to the
>> default runlevel, but hplip does not put anything in /etc/init.d.  My
>> printer is an old HP Laserjet 4M, which I usually run as a Postscrpt
>> printer.
>>     
>
>   
>> What have I missed?
>>     
>
> Run hp-setup
>
> You'll probably need to rework your cups config files if you've retained
> them from the broken install.  hp-setup should enable local printing OK.
>
> /etc/init.d/hplip is no longer necessary with recent hplip ebuilds.
>
> Cheers, Dave
>   

And if it still gives you problems, delete /etc/cups then reemerge
cups.  I had to do that last part too. 

Dale

:-)  :-) 
-- 
gentoo-user@lists.gentoo.org mailing list



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] gentoo rebuild, cups won't work
  2008-02-01 10:26   ` Dale
@ 2008-02-02 18:18     ` Kevin O'Gorman
  2008-02-02 18:31       ` Kevin O'Gorman
  0 siblings, 1 reply; 9+ messages in thread
From: Kevin O'Gorman @ 2008-02-02 18:18 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1244 bytes --]

On Feb 1, 2008 2:26 AM, Dale <dalek1967@bellsouth.net> wrote:

> Dave Jones wrote:
> > Hi Kevin
> >
> > Kevin O'Gorman wrote on 27/01/08 19:58:
> >
> >> I've installed cups and hplip.  I cannot follow the Gentoo printing
> >> guide, because that worthy document requires me to add hplip to the
> >> default runlevel, but hplip does not put anything in /etc/init.d.  My
> >> printer is an old HP Laserjet 4M, which I usually run as a Postscrpt
> >> printer.
> >>
> >
> >
> >> What have I missed?
> >>
> >
> > Run hp-setup
> >
> > You'll probably need to rework your cups config files if you've retained
> > them from the broken install.  hp-setup should enable local printing OK.
> >
> > /etc/init.d/hplip is no longer necessary with recent hplip ebuilds.
> >
> > Cheers, Dave
> >
>
> And if it still gives you problems, delete /etc/cups then reemerge
> cups.  I had to do that last part too.
>
> Dale
>

The problem is that my printer is on the LPT port (/dev/lp0), and hp-setup
does
not find it.  In fact it has an option for LPT printers, but it is greyed
out.

The printer is really there: I can print by "cat printme >/dev/lp0" with a
suitably formed "printme" file (lines need CR, file ends with ^L^D).

++ kevin


-- 
Kevin O'Gorman, PhD

[-- Attachment #2: Type: text/html, Size: 1814 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] gentoo rebuild, cups won't work
  2008-02-02 18:18     ` Kevin O'Gorman
@ 2008-02-02 18:31       ` Kevin O'Gorman
  2008-02-02 21:01         ` Dave Jones
  0 siblings, 1 reply; 9+ messages in thread
From: Kevin O'Gorman @ 2008-02-02 18:31 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1635 bytes --]

On Feb 2, 2008 10:18 AM, Kevin O'Gorman <kogorman@gmail.com> wrote:

> On Feb 1, 2008 2:26 AM, Dale <dalek1967@bellsouth.net> wrote:
>
> > Dave Jones wrote:
> > > Hi Kevin
> > >
> > > Kevin O'Gorman wrote on 27/01/08 19:58:
> > >
> > >> I've installed cups and hplip.  I cannot follow the Gentoo printing
> > >> guide, because that worthy document requires me to add hplip to the
> > >> default runlevel, but hplip does not put anything in /etc/init.d.  My
> > >> printer is an old HP Laserjet 4M, which I usually run as a Postscrpt
> > >> printer.
> > >>
> > >
> > >
> > >> What have I missed?
> > >>
> > >
> > > Run hp-setup
> > >
> > > You'll probably need to rework your cups config files if you've
> > retained
> > > them from the broken install.  hp-setup should enable local printing
> > OK.
> > >
> > > /etc/init.d/hplip is no longer necessary with recent hplip ebuilds.
> > >
> > > Cheers, Dave
> > >
> >
> > And if it still gives you problems, delete /etc/cups then reemerge
> > cups.  I had to do that last part too.
> >
> > Dale
> >
>
> The problem is that my printer is on the LPT port (/dev/lp0), and hp-setup
> does
> not find it.  In fact it has an option for LPT printers, but it is greyed
> out.
>
> The printer is really there: I can print by "cat printme >/dev/lp0" with a
> suitably formed "printme" file (lines need CR, file ends with ^L^D).
>
> ++ kevin


Hmmm.  Digging slightly deeper, I found the /usr/bin/hp-probe program.  It
lets me
specifically request a probe of LPT, but finds nothing there.  The printer
remains
attached.  I'm even more deeply stumped than before.

++ kevin



-- 
Kevin O'Gorman, PhD

[-- Attachment #2: Type: text/html, Size: 2524 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] gentoo rebuild, cups won't work
  2008-02-02 18:31       ` Kevin O'Gorman
@ 2008-02-02 21:01         ` Dave Jones
  2008-02-02 21:26           ` Kevin O'Gorman
  0 siblings, 1 reply; 9+ messages in thread
From: Dave Jones @ 2008-02-02 21:01 UTC (permalink / raw
  To: gentoo-user

Hi Kevin

Kevin O'Gorman wrote on 02/02/08 19:31:

>>>> I've installed cups and hplip.  I cannot follow the Gentoo 
>>>> printing guide, because that worthy document requires me to add 
>>>> hplip to the default runlevel, but hplip does not put anything in
>>>> /etc/init.d.  My printer is an old HP Laserjet 4M, which I 
>>>> usually run as a Postscrpt printer.

>>>> What have I missed?

>>> Run hp-setup

>>> You'll probably need to rework your cups config files if you've 
>>> retained them from the broken install.  hp-setup should enable 
>>> local printing OK.

>> And if it still gives you problems, delete /etc/cups then reemerge 
>> cups.  I had to do that last part too.

> The problem is that my printer is on the LPT port (/dev/lp0), and 
> hp-setup does not find it.  In fact it has an option for LPT 
> printers, but it is greyed out.

> The printer is really there: I can print by "cat printme >/dev/lp0" 
> with a suitably formed "printme" file (lines need CR, file ends with 
> ^L^D).

> Hmmm.  Digging slightly deeper, I found the /usr/bin/hp-probe
> program. It lets me specifically request a probe of LPT, but finds
> nothing there.  The printer remains attached.  I'm even more deeply
> stumped than before.

Try: hp-setup -i /dev/parport0

See if that helps.

Try hp-setup -h    for other options.

I take it that your kernel has parallel port support generated, and that
you have file permission to access /dev/lp0 ?

Cheers, Dave
-- 
gentoo-user@lists.gentoo.org mailing list



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] gentoo rebuild, cups won't work
  2008-02-02 21:01         ` Dave Jones
@ 2008-02-02 21:26           ` Kevin O'Gorman
  2008-02-03  7:58             ` Dale
  2008-02-03 12:27             ` Dave Jones
  0 siblings, 2 replies; 9+ messages in thread
From: Kevin O'Gorman @ 2008-02-02 21:26 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 2469 bytes --]

On Feb 2, 2008 1:01 PM, Dave Jones <Dave.Jones@xs4all.nl> wrote:

> Hi Kevin
>
> Kevin O'Gorman wrote on 02/02/08 19:31:
>
> >>>> I've installed cups and hplip.  I cannot follow the Gentoo
> >>>> printing guide, because that worthy document requires me to add
> >>>> hplip to the default runlevel, but hplip does not put anything in
> >>>> /etc/init.d.  My printer is an old HP Laserjet 4M, which I
> >>>> usually run as a Postscrpt printer.
>
> >>>> What have I missed?
>
> >>> Run hp-setup
>
> >>> You'll probably need to rework your cups config files if you've
> >>> retained them from the broken install.  hp-setup should enable
> >>> local printing OK.
>
> >> And if it still gives you problems, delete /etc/cups then reemerge
> >> cups.  I had to do that last part too.
>
> > The problem is that my printer is on the LPT port (/dev/lp0), and
> > hp-setup does not find it.  In fact it has an option for LPT
> > printers, but it is greyed out.
>
> > The printer is really there: I can print by "cat printme >/dev/lp0"
> > with a suitably formed "printme" file (lines need CR, file ends with
> > ^L^D).
>
> > Hmmm.  Digging slightly deeper, I found the /usr/bin/hp-probe
> > program. It lets me specifically request a probe of LPT, but finds
> > nothing there.  The printer remains attached.  I'm even more deeply
> > stumped than before.
>
> Try: hp-setup -i /dev/parport0
>
> See if that helps.
>
> Try hp-setup -h    for other options.
>
> I take it that your kernel has parallel port support generated, and that
> you have file permission to access /dev/lp0 ?
>
> Cheers, Dave
> --
> gentoo-user@lists.gentoo.org mailing list
>
>
It runs, but only gives me options for usb and net.  This makes some sense
since there
are no /dev/parport* entries in my system.

Nevertheless, I have parallel port support as I understand it.  From my
kernel (2.6.22-gentoo-r6) .config file:

#
# Generic Driver Options
#
CONFIG_STANDALONE=y
CONFIG_PREVENT_FIRMWARE_BUILD=y
CONFIG_FW_LOADER=m
# CONFIG_SYS_HYPERVISOR is not set
# CONFIG_CONNECTOR is not set
# CONFIG_MTD is not set
CONFIG_PARPORT=y                       <<<< parallel port
CONFIG_PARPORT_PC=y                 <<<< PC style
# CONFIG_PARPORT_SERIAL is not set
# CONFIG_PARPORT_PC_FIFO is not set
# CONFIG_PARPORT_PC_SUPERIO is not set
# CONFIG_PARPORT_GSC is not set
# CONFIG_PARPORT_AX88796 is not set
CONFIG_PARPORT_1284=y
CONFIG_PNP=y
# CONFIG_PNP_DEBUG is not set

Thanks for the help.

-- 
Kevin O'Gorman, PhD

[-- Attachment #2: Type: text/html, Size: 3541 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] gentoo rebuild, cups won't work
  2008-02-02 21:26           ` Kevin O'Gorman
@ 2008-02-03  7:58             ` Dale
  2008-02-03 12:27             ` Dave Jones
  1 sibling, 0 replies; 9+ messages in thread
From: Dale @ 2008-02-03  7:58 UTC (permalink / raw
  To: gentoo-user

Kevin O'Gorman wrote:
>
>
> It runs, but only gives me options for usb and net.  This makes some
> sense since there
> are no /dev/parport* entries in my system.
>
> Nevertheless, I have parallel port support as I understand it.  From
> my kernel (2.6.22-gentoo-r6) .config file:
>
> #
> # Generic Driver Options
> #
> CONFIG_STANDALONE=y
> CONFIG_PREVENT_FIRMWARE_BUILD=y
> CONFIG_FW_LOADER=m
> # CONFIG_SYS_HYPERVISOR is not set
> # CONFIG_CONNECTOR is not set
> # CONFIG_MTD is not set
> CONFIG_PARPORT=y                       <<<< parallel port
> CONFIG_PARPORT_PC=y                 <<<< PC style
> # CONFIG_PARPORT_SERIAL is not set
> # CONFIG_PARPORT_PC_FIFO is not set
> # CONFIG_PARPORT_PC_SUPERIO is not set
> # CONFIG_PARPORT_GSC is not set
> # CONFIG_PARPORT_AX88796 is not set
> CONFIG_PARPORT_1284=y
> CONFIG_PNP=y
> # CONFIG_PNP_DEBUG is not set
>
> Thanks for the help.
>
> -- 
> Kevin O'Gorman, PhD

My printer is on my USB port now.  It used to be on parport tho.  Here
is my kernel config, shortened version:

root@smoker / # cat /usr/src/linux/.config | grep PARPORT
CONFIG_PARPORT=y
CONFIG_PARPORT_PC=y
CONFIG_PARPORT_SERIAL=y
# CONFIG_PARPORT_PC_FIFO is not set
# CONFIG_PARPORT_PC_SUPERIO is not set
# CONFIG_PARPORT_GSC is not set
# CONFIG_PARPORT_AX88796 is not set
CONFIG_PARPORT_1284=y
# CONFIG_I2C_PARPORT is not set
# CONFIG_I2C_PARPORT_LIGHT is not set
root@smoker / #  

Looks like you have the same two I have.  Mine did used to work anyway. 
Not real sure on that one.  You check your USE flags for the HP
package?  Here is mine: 

root@smoker / # emerge -pv hplip

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] net-print/hplip-2.7.10  USE="X ppds -doc -fax -minimal
-parport -scanner -snmp" 14,104 kB

Total: 1 package (1 reinstall), Size of downloads: 14,104 kB
root@smoker / #

Note the parport option?   Mine is disabled, by default I guess.  You
can add it to the package.use file if yours is disabled too.

Dale

:-)  :-) 
-- 
gentoo-user@lists.gentoo.org mailing list



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] gentoo rebuild, cups won't work
  2008-02-02 21:26           ` Kevin O'Gorman
  2008-02-03  7:58             ` Dale
@ 2008-02-03 12:27             ` Dave Jones
  1 sibling, 0 replies; 9+ messages in thread
From: Dave Jones @ 2008-02-03 12:27 UTC (permalink / raw
  To: gentoo-user

Kevin O'Gorman wrote on 02/02/08 22:26:

>     >>>> I've installed cups and hplip.  I cannot follow the Gentoo
>     >>>> printing guide, because that worthy document requires me to add
>     >>>> hplip to the default runlevel, but hplip does not put anything in
>     >>>> /etc/init.d.  My printer is an old HP Laserjet 4M, which I
>     >>>> usually run as a Postscrpt printer.
> 
>     >>>> What have I missed?
> 
>     >>> Run hp-setup
> 
>     >>> You'll probably need to rework your cups config files if you've
>     >>> retained them from the broken install.  hp-setup should enable
>     >>> local printing OK.
> 
>     >> And if it still gives you problems, delete /etc/cups then reemerge
>     >> cups.  I had to do that last part too.
> 
>     > The problem is that my printer is on the LPT port (/dev/lp0), and
>     > hp-setup does not find it.  In fact it has an option for LPT
>     > printers, but it is greyed out.
> 
>     > The printer is really there: I can print by "cat printme >/dev/lp0"
>     > with a suitably formed "printme" file (lines need CR, file ends with
>     > ^L^D).
> 
>     > Hmmm.  Digging slightly deeper, I found the /usr/bin/hp-probe
>     > program. It lets me specifically request a probe of LPT, but finds
>     > nothing there.  The printer remains attached.  I'm even more deeply
>     > stumped than before.
> 
>     Try: hp-setup -i /dev/parport0
> 
>     See if that helps.
> 
>     Try hp-setup -h    for other options.
> 
>     I take it that your kernel has parallel port support generated, and that
>     you have file permission to access /dev/lp0 ?

> It runs, but only gives me options for usb and net.  This makes some
> sense since there are no /dev/parport* entries in my system.

> Nevertheless, I have parallel port support as I understand it.  From my
> kernel (2.6.22-gentoo-r6) .config file:

> #
> # Generic Driver Options
> #
> CONFIG_STANDALONE=y
> CONFIG_PREVENT_FIRMWARE_BUILD=y
> CONFIG_FW_LOADER=m
> # CONFIG_SYS_HYPERVISOR is not set
> # CONFIG_CONNECTOR is not set
> # CONFIG_MTD is not set
> CONFIG_PARPORT=y                       <<<< parallel port
> CONFIG_PARPORT_PC=y                 <<<< PC style
> # CONFIG_PARPORT_SERIAL is not set
> # CONFIG_PARPORT_PC_FIFO is not set
> # CONFIG_PARPORT_PC_SUPERIO is not set
> # CONFIG_PARPORT_GSC is not set
> # CONFIG_PARPORT_AX88796 is not set
> CONFIG_PARPORT_1284=y
> CONFIG_PNP=y
> # CONFIG_PNP_DEBUG is not set

Your kernel set-up looks reasonable to me.

I don't have parallel port support generated into my system, as I don't
have a parallel printer.

On a Centos host with parallel port support, 2.6.18 kernel:

CONFIG_PARPORT=m
CONFIG_PARPORT_PC=m
CONFIG_PARPORT_SERIAL=m
# CONFIG_PARPORT_PC_FIFO is not set
# CONFIG_PARPORT_PC_SUPERIO is not set
CONFIG_PARPORT_PC_PCMCIA=m
CONFIG_PARPORT_NOT_PC=y
# CONFIG_PARPORT_GSC is not set
# CONFIG_PARPORT_AX88796 is not set
CONFIG_PARPORT_1284=y
CONFIG_PARIDE_PARPORT=m
CONFIG_I2C_PARPORT=m
CONFIG_I2C_PARPORT_LIGHT=m

ls /dev/par* shows:

/dev/par0  /dev/parport0  /dev/parport1  /dev/parport2  /dev/parport3

Do you have a standard parallel port, or a special IO card?

Have you modified /etc/udev.d rules? I have these (unmodified) entries:

rules.d/50-udev.rules:KERNEL=="lp*",            NAME="%k", GROUP="lp"
rules.d/50-udev.rules:KERNEL=="parport*",       NAME="%k", GROUP="lp"

I'm puzzled by this, as your /dev/lp0 print test worked.

The only other suggestion I have would be to try:

hp-setup -i /dev/lp0

Don't know if hp-setup will accept this, might be worth having a go.

Cheers, Dave
-- 
gentoo-user@lists.gentoo.org mailing list



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2008-02-03 12:27 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-27 18:58 [gentoo-user] gentoo rebuild, cups won't work Kevin O'Gorman
2008-02-01  9:01 ` Dave Jones
2008-02-01 10:26   ` Dale
2008-02-02 18:18     ` Kevin O'Gorman
2008-02-02 18:31       ` Kevin O'Gorman
2008-02-02 21:01         ` Dave Jones
2008-02-02 21:26           ` Kevin O'Gorman
2008-02-03  7:58             ` Dale
2008-02-03 12:27             ` Dave Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox