Re: [gentoo-user] USB printer questions...

2005-02-03 Thread Nick Rout

On Thu, 03 Feb 2005 20:16:04 +0100
Jean Magnan de Bornier <[EMAIL PROTECTED]> wrote:

> Maybe the online administrator manual could help:
> http://localhost:631/sam.html#RemoteRoot

Read the manual? what a novel approach!

> 
> cheers
> -- 

> --
> gentoo-user@gentoo.org mailing list

-- 
Nick Rout <[EMAIL PROTECTED]>


--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] USB printer questions...

2005-02-03 Thread Jean Magnan de Bornier
Le 02/03/05 Mark Knecht <[EMAIL PROTECTED]> a écrit notamment:

> On Thu, 03 Feb 2005 10:02:28 -0400, Arran Fraser <[EMAIL PROTECTED]> wrote:
>> > > On a side note, this problem would be a little less severe if I could
>> > > restart the printer without being root.  Can anyone provide a hint for
>> > > that?
>> >
>> > use sudo perhaps?
>> >
>> 
>> At the risk of making a fool of myself (because I've never actually used
>> sudo), I don't think that applies.
>> 
>> In my case, anyone can browse to http://localhost:631/ and see things.
>> You click "Printers" and it shows the printer to be "Stopped".  So you
>> click "Start Printer" and the browser pops up with a username/password
>> prompt.  The only account that seems to work for this is root's.
>> 
>> Not only is this annoying, it doesn't seem Linux-like to collect the
>> root password in such a way.  Is there a group that I'm supposed to add
>> users to so they can admin CUPS?
>> 
>> Anyhoo, I've now officially hijacked the thread.  Remember, the original
>> poster was really looking for a solution to why CUPS stopped the printer
>> in the first place.
>> 
>
> Not a hijack if the original author agrees. Seems ot me that you've
> got it more or less right in my case also. As root all I did was tell
> the printer to start. I'd like it if a user could do the same.
Maybe the online administrator manual could help:
http://localhost:631/sam.html#RemoteRoot

cheers
-- 
Jean Magnan de Bornier
3 Cours Victor Hugo, 13980 Alleins   France
Tel: 08 70 39 34 03Port: 06 09 17 35 87
e-mots: jean*at*bornier.net

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] USB printer questions...

2005-02-03 Thread Mark Knecht
On Thu, 03 Feb 2005 10:02:28 -0400, Arran Fraser <[EMAIL PROTECTED]> wrote:
> > > On a side note, this problem would be a little less severe if I could
> > > restart the printer without being root.  Can anyone provide a hint for
> > > that?
> >
> > use sudo perhaps?
> >
> 
> At the risk of making a fool of myself (because I've never actually used
> sudo), I don't think that applies.
> 
> In my case, anyone can browse to http://localhost:631/ and see things.
> You click "Printers" and it shows the printer to be "Stopped".  So you
> click "Start Printer" and the browser pops up with a username/password
> prompt.  The only account that seems to work for this is root's.
> 
> Not only is this annoying, it doesn't seem Linux-like to collect the
> root password in such a way.  Is there a group that I'm supposed to add
> users to so they can admin CUPS?
> 
> Anyhoo, I've now officially hijacked the thread.  Remember, the original
> poster was really looking for a solution to why CUPS stopped the printer
> in the first place.
> 

Not a hijack if the original author agrees. Seems ot me that you've
got it more or less right in my case also. As root all I did was tell
the printer to start. I'd like it if a user could do the same.

thanks,
Mark

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] USB printer questions...

2005-02-03 Thread Arran Fraser
> > On a side note, this problem would be a little less severe if I could
> > restart the printer without being root.  Can anyone provide a hint for
> > that?
> 
> use sudo perhaps?
> 

At the risk of making a fool of myself (because I've never actually used
sudo), I don't think that applies.  

In my case, anyone can browse to http://localhost:631/ and see things. 
You click "Printers" and it shows the printer to be "Stopped".  So you
click "Start Printer" and the browser pops up with a username/password
prompt.  The only account that seems to work for this is root's.

Not only is this annoying, it doesn't seem Linux-like to collect the
root password in such a way.  Is there a group that I'm supposed to add
users to so they can admin CUPS?

Anyhoo, I've now officially hijacked the thread.  Remember, the original
poster was really looking for a solution to why CUPS stopped the printer
in the first place.


-- Arran


--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] USB printer questions...

2005-02-02 Thread Nick Rout

On Wed, 02 Feb 2005 09:12:22 -0400
Arran Fraser <[EMAIL PROTECTED]> wrote:

> On a side note, this problem would be a little less severe if I could
> restart the printer without being root.  Can anyone provide a hint for
> that?

use sudo perhaps?


-- 
Nick Rout <[EMAIL PROTECTED]>


--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] USB printer questions...

2005-02-02 Thread Boyd Stephen Smith Jr.
On Wednesday 02 February 2005 07:12 am, Arran Fraser 
<[EMAIL PROTECTED]> wrote:
> Also, it is often a default setting to log everything to vt-12, which
> you can see by pressing .  (Return to your GUI with
> .)

FWIW, this was not enabled by default when I installed gentoo.  It is 
fairly simply to enable it, but you have to twiddle the metalog 
configuration and a shell script.  Also, you'd have to change metalog to 
non-buffered (default varies based on metalog ebuild version).

-- 
Boyd Stephen Smith Jr.
[EMAIL PROTECTED]
ICQ: 514984 YM/AIM: DaTwinkDaddy

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] USB printer questions...

2005-02-02 Thread Arran Fraser
> > 
> > What do you mean by "off-line" - I usually take this to mean an
> > electrical disconnection by, for example, pushing the "offline" button
> > on the printer. do you mean cupsd stops running or something? Do you
> > mean the printer physically turns itself off?
> 
> Oh, sorry. I open CUPS manager in Mozilla (localhost:631) and look at
> the printer. I'm told it's 'Stopped'. There's a button there to
> 'Start' the printer which I do and it starts printing whatever is in
> the print queue.

For what it's worth, I administer a box (also for my Dad) with this same
problem.  Having to restart the printer at an obscure URL with the root
password every once in a while has not helped me confince them of the
merits of Linux!

The computer is off right now, so I can't get the exact logs for you. 
However, when inspecting it earlier I noticed cups saying that a print
job has exited with a non-zero status code, and that entry seemed to
correlate the the printer becoming "Stopped".  I was at a lost as to how
to convince CUPS to keep the printer "Started" no matter what happens to
an individual print job -- and, the only forums I could find reporting
this error remain unsolved.


> > 
> > OK, how far apart are these messages, dmesg doesn't tell you, but
> > /var/log/syslog | /var/log/klog may do.
> 
> Don't have either AFAICT:
> 
> gandalf log # ls
> Xorg.0.log  criticaleverything  lastlog   pwdfail   wtmp
> Xorg.0.log.old  crond   ftpdmail  scrollkeeper.log  xdm.log
> apache2 cupsgdm news  sshd
> apcupsd.events  emerge.log  kernel  ntpd.log  telnet
> gandalf log # ps aux | grep log
> root  6827  0.0  0.1  1516  664 ?Ss   Jan28   0:00 metalog
> [MASTER]
> root  6828  0.0  0.1  1468  536 ?SJan28   0:00 metalog 
> [KERNEL] 
Looked in everything/current and saw nothing interesting. Looked in
> the cups error log. Nothing there either.

Edit /etc/cups/cupsd.conf and set the LogLevel to debug.  Then, restart
cups and you'll find *lots* more info in /var/log/cups/*

On a side note, this problem would be a little less severe if I could
restart the printer without being root.  Can anyone provide a hint for
that?


>  Don't know where metalog
> puts what you might be interested in.
> 

You can probably figure out from metalog's config where it puts stuff;
look for it in /etc/*metalog*

Also, it is often a default setting to log everything to vt-12, which
you can see by pressing .  (Return to your GUI with
.)




--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] USB printer questions...

2005-02-01 Thread Nick Rout
maybe the file or directory called "kernel" in the log directory.

if all else fails grep the log directory for what you want, that should
id the file you need to look at.




On Tue, 1 Feb 2005 15:08:38 -0800
Mark Knecht <[EMAIL PROTECTED]> wrote:

> Looked in everything/current and saw nothing interesting. Looked in
> the cups error log. Nothing there either. Don't know where metalog
> puts what you might be interested in.

-- 
Nick Rout <[EMAIL PROTECTED]>


--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] USB printer questions...

2005-02-01 Thread Mark Knecht
On Wed, 02 Feb 2005 11:54:19 +1300, Nick Rout <[EMAIL PROTECTED]> wrote:
> 
> On Tue, 1 Feb 2005 10:27:06 -0800
> Mark Knecht <[EMAIL PROTECTED]> wrote:
> 
> > Hi,
> >We've got a nice Gentoo box that's been working pretty well for
> > about 16 months but for some reason printing continues to be sort of
> > problematic. No idea if this is a Gentoo issue or a CUPS issue. Thanks
> > in advance.
> >
> >For whatever reason the printer will, at times, just go off line.
> > It's an Epson All-in-One printer/scanner/copier. When it's online it
> > works fine. However it goes off line at odd times and then I have to
> > ssh into the box and start it up as my dad, now in his late 70's, is
> > not administering it at all.
> 
> What do you mean by "off-line" - I usually take this to mean an
> electrical disconnection by, for example, pushing the "offline" button
> on the printer. do you mean cupsd stops running or something? Do you
> mean the printer physically turns itself off?

Oh, sorry. I open CUPS manager in Mozilla (localhost:631) and look at
the printer. I'm told it's 'Stopped'. There's a button there to
'Start' the printer which I do and it starts printing whatever is in
the print queue.

> 
> Incidentally I have a problem where my wife cannot print from her win2k
> box unless I restart hpoj [1], cupsd and samba in somewhat random order
> until it works. Very annoying. perhaps related.
> 
> you haven't told us whteher your father is printing from gentoo or
> somewhere else on his lan (if he has one).

Printing from Gentoo only. I don't run Samba on this machine and the
printer isn't (or shouldn't be) shared.

> 
> [1] hpoj isn't relevant to you, it is a service related to hp printers
> >
> >Why do printers go off line in Linux? The last time it happened he
> > had received a warning message earlier in the day in dmesg about
> > magenta ink being low. Does CUPS/Linux automatically take a printer
> > off line for that sort of reason? Can that be changed?
> >
> >This morning I'm seeing the following in dmesg:
> >
> > usb 1-1: new full speed USB device using address 3
> > drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 3 if
> > 1 alt 0 proto 2 vid 0x04B8 pid 0x0801
> > usb 1-1: USB disconnect, address 3
> > drivers/usb/class/usblp.c: usblp0: removed
> > ohci_hcd :00:02.0: wakeup
> > usb 1-1: new full speed USB device using address 4
> > drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 4 if
> > 1 alt 0 proto 2 vid 0x04B8 pid 0x0801
> > usb 1-1: USB disconnect, address 4
> > drivers/usb/class/usblp.c: usblp0: removed
> > ohci_hcd :00:02.0: wakeup
> >
> 
> OK, how far apart are these messages, dmesg doesn't tell you, but
> /var/log/syslog | /var/log/klog may do.

Don't have either AFAICT:

gandalf log # ls
Xorg.0.log  criticaleverything  lastlog   pwdfail   wtmp
Xorg.0.log.old  crond   ftpdmail  scrollkeeper.log  xdm.log
apache2 cupsgdm news  sshd
apcupsd.events  emerge.log  kernel  ntpd.log  telnet
gandalf log # ps aux | grep log
root  6827  0.0  0.1  1516  664 ?Ss   Jan28   0:00 metalog
[MASTER]
root  6828  0.0  0.1  1468  536 ?SJan28   0:00 metalog [KERNEL] 

Looked in everything/current and saw nothing interesting. Looked in
the cups error log. Nothing there either. Don't know where metalog
puts what you might be interested in.

If I shouldn't be using metalog and there are some simple instructions
on how to change to something else I'd be happy to do that. This is
the only machine I have using that.

Thanks,
Mark

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] USB printer questions...

2005-02-01 Thread Nick Rout

On Tue, 1 Feb 2005 10:27:06 -0800
Mark Knecht <[EMAIL PROTECTED]> wrote:

> Hi,
>We've got a nice Gentoo box that's been working pretty well for
> about 16 months but for some reason printing continues to be sort of
> problematic. No idea if this is a Gentoo issue or a CUPS issue. Thanks
> in advance.
> 
>For whatever reason the printer will, at times, just go off line.
> It's an Epson All-in-One printer/scanner/copier. When it's online it
> works fine. However it goes off line at odd times and then I have to
> ssh into the box and start it up as my dad, now in his late 70's, is
> not administering it at all.

What do you mean by "off-line" - I usually take this to mean an
electrical disconnection by, for example, pushing the "offline" button
on the printer. do you mean cupsd stops running or something? Do you
mean the printer physically turns itself off?

Incidentally I have a problem where my wife cannot print from her win2k
box unless I restart hpoj [1], cupsd and samba in somewhat random order
until it works. Very annoying. perhaps related.

you haven't told us whteher your father is printing from gentoo or
somewhere else on his lan (if he has one).





[1] hpoj isn't relevant to you, it is a service related to hp printers
> 
>Why do printers go off line in Linux? The last time it happened he
> had received a warning message earlier in the day in dmesg about
> magenta ink being low. Does CUPS/Linux automatically take a printer
> off line for that sort of reason? Can that be changed?
> 
>This morning I'm seeing the following in dmesg:
> 
> usb 1-1: new full speed USB device using address 3
> drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 3 if
> 1 alt 0 proto 2 vid 0x04B8 pid 0x0801
> usb 1-1: USB disconnect, address 3
> drivers/usb/class/usblp.c: usblp0: removed
> ohci_hcd :00:02.0: wakeup
> usb 1-1: new full speed USB device using address 4
> drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 4 if
> 1 alt 0 proto 2 vid 0x04B8 pid 0x0801
> usb 1-1: USB disconnect, address 4
> drivers/usb/class/usblp.c: usblp0: removed
> ohci_hcd :00:02.0: wakeup
> 

OK, how far apart are these messages, dmesg doesn't tell you, but
/var/log/syslog | /var/log/klog may do.

> 
> 
> drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 15 if
> 1 alt 0 proto 2 vid 0x04B8 pid 0x0801
> usb 1-1: USB disconnect, address 15
> drivers/usb/class/usblp.c: usblp0: removed
> ohci_hcd :00:02.0: wakeup
> usb 1-1: new full speed USB device using address 16
> drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 16 if
> 1 alt 0 proto 2 vid 0x04B8 pid 0x0801
> usb 1-1: USB disconnect, address 16
> drivers/usb/class/usblp.c: usblp0: removed
> ohci_hcd :00:02.0: wakeup
> usb 1-1: new full speed USB device using address 17
> drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 17 if
> 1 alt 0 proto 2 vid 0x04B8 pid 0x0801
> [EMAIL PROTECTED] mark $
> 
> 
> Any ideas what this is about? 
> 
> Thanks in advance for your ideas.
> 
> Cheers,
> Mark
> 
> --
> gentoo-user@gentoo.org mailing list

-- 
Nick Rout <[EMAIL PROTECTED]>


--
gentoo-user@gentoo.org mailing list



[gentoo-user] USB printer questions...

2005-02-01 Thread Mark Knecht
Hi,
   We've got a nice Gentoo box that's been working pretty well for
about 16 months but for some reason printing continues to be sort of
problematic. No idea if this is a Gentoo issue or a CUPS issue. Thanks
in advance.

   For whatever reason the printer will, at times, just go off line.
It's an Epson All-in-One printer/scanner/copier. When it's online it
works fine. However it goes off line at odd times and then I have to
ssh into the box and start it up as my dad, now in his late 70's, is
not administering it at all.

   Why do printers go off line in Linux? The last time it happened he
had received a warning message earlier in the day in dmesg about
magenta ink being low. Does CUPS/Linux automatically take a printer
off line for that sort of reason? Can that be changed?

   This morning I'm seeing the following in dmesg:

usb 1-1: new full speed USB device using address 3
drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 3 if
1 alt 0 proto 2 vid 0x04B8 pid 0x0801
usb 1-1: USB disconnect, address 3
drivers/usb/class/usblp.c: usblp0: removed
ohci_hcd :00:02.0: wakeup
usb 1-1: new full speed USB device using address 4
drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 4 if
1 alt 0 proto 2 vid 0x04B8 pid 0x0801
usb 1-1: USB disconnect, address 4
drivers/usb/class/usblp.c: usblp0: removed
ohci_hcd :00:02.0: wakeup



drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 15 if
1 alt 0 proto 2 vid 0x04B8 pid 0x0801
usb 1-1: USB disconnect, address 15
drivers/usb/class/usblp.c: usblp0: removed
ohci_hcd :00:02.0: wakeup
usb 1-1: new full speed USB device using address 16
drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 16 if
1 alt 0 proto 2 vid 0x04B8 pid 0x0801
usb 1-1: USB disconnect, address 16
drivers/usb/class/usblp.c: usblp0: removed
ohci_hcd :00:02.0: wakeup
usb 1-1: new full speed USB device using address 17
drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 17 if
1 alt 0 proto 2 vid 0x04B8 pid 0x0801
[EMAIL PROTECTED] mark $


Any ideas what this is about? 

Thanks in advance for your ideas.

Cheers,
Mark

--
gentoo-user@gentoo.org mailing list