Re: CUPS (Sid) not printing. (SOLVED?)

2006-07-23 Thread David Baron
OK, here is the current status of this:

I have two printers, both use /dev/lp0 and I have one of those switchboxes.

One of them is listed as idle, the other is stopped. To print to the 
latter, I need to go to http://localhost:631 and start this printer. This 
stops the other one. So I must do two things: flip the switch on the box 
and start the desired printer. A pain.

Is there a script I can use to do this, preferably automatically when I select 
the printer on the print dialog or else a simple command line rather than 
starting a browzer, finding the place, entering a root password, etc.?


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: CUPS (Sid) not printing. (SOLVED?)

2006-07-18 Thread David Baron
  I went into http://localhost:631/ and started the printer.
 
  I never had to do this before so how to I make this happen
  automatically?

 If you put

 lp

 in /etc/modules

 and reboot, is /dev/lp0 created with the correct permissions?

 My /dev is static. I am not using udev. I have set the permissions to
 crw.rw Somehow, it had been changed to NO rw at all.

 This doesn't help if the module isn't loaded.  Make sure it shows up
in the lsmod output, along with parport.

 If so, does CUPS then start-up and make the printer available without
 manual intervention?

 I had to add lp to /etc/modules sometime after a 2.6.16.x upgrade.

 I will add it to /set/modules and see. I did not have this problem
 with 2.6.16 kernels but then again, I do not do all that much
 printing so maybe I did.  Cups writes printer.conf with the default
 printer (with the data switch setting the parallel line to it) as
 idle and the second printer (not live) to stopped. So why did I
 need to manually start the supposedly idle printer?

 Run

 /usr/sbin/tunelp -s /dev/lp0

 and see what it says.  It should ideally say online/ready.

 I have two printers and use them through a switchbox.
 Either one with it power off: 127, out of paper, on-line
 The (default) hp690 turned on: 95, busy, on-line
 The epson lq570, 223, on-line.

 The hps listed as idle, the epson as stopped. Changing this by starting or
 stopping the printers from localhost:631 makes no difference.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: CUPS (Sid) not printing. (SOLVED?)

2006-07-18 Thread Roger Leigh
David Baron [EMAIL PROTECTED] writes:

 I will add it to /set/modules and see. I did not have this problem
 with 2.6.16 kernels but then again, I do not do all that much
 printing so maybe I did.  Cups writes printer.conf with the default
 printer (with the data switch setting the parallel line to it) as
 idle and the second printer (not live) to stopped. So why did I
 need to manually start the supposedly idle printer?

 Run

 /usr/sbin/tunelp -s /dev/lp0

 and see what it says.  It should ideally say online/ready.

  I have two printers and use them through a switchbox.
  Either one with it power off: 127, out of paper, on-line
  The (default) hp690 turned on: 95, busy, on-line
  The epson lq570, 223, on-line.


I also see this behaviour.  At least it shows the parallel port is
working.

Physical connection:

Disconnected:   127, busy, out of paper, on-line
Connected at host only: 127, busy, out of paper, on-line

EPSON C60:

Connected to printer (off): 127, busy, out of paper, on-line
Connected to printer (on):  95, busy, on-line
Connected to printer (off): 95, busy, on-line

EPSON EPL-6200:

Connected to printer (off): 127, busy, out of paper, on-line
Connected to printer (startup): 87, busy, on-line, error
Connected to printer (on): 223, on-line
Connected to printer (off): 127, busy, out of paper, on-line

  The hps listed as idle, the epson as stopped. Changing this by starting or
  stopping the printers from localhost:631 makes no difference.

Next, set LogLevel to debug in /etc/cups/cupsd.conf.  Restart cups,
and then try printing something.  The log in /var/log/cups/error_log
should give some explanation of what went wrong.  You can put the
error_log up for download if you can't see yourself what's wrong.


Regards,
Roger

-- 
  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux http://people.debian.org/~rleigh/
 `. `'   Printing on GNU/Linux?   http://gutenprint.sourceforge.net/
   `-GPG Public Key: 0x25BFB848   Please sign and encrypt your mail.


pgpHEJLdGTX4f.pgp
Description: PGP signature


Re: CUPS (Sid) not printing.

2006-07-17 Thread David Baron
On Monday 17 July 2006 05:04, Katipo wrote:
 David Baron wrote:
 Jobs get queued and simply stay that way?
 
 What's happening?
 
 Using latest 2.6.17 kernel, Sid

 Happened to me too.
 Reinstalling foomatic modules fixed it.

Did that, does not help.

Some more info:

NO lp module was installed. Easy enough to modprobe it. DIdn't help

The parallel port /dev/lp0 was listed with attributes c-.
Set rw for owner (root) and group (lp) as in all the (unused) /dev/lp1, etc.
Didn't help.

Maybe need to reboot? Kernel bug?


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: CUPS (Sid) not printing. (SOLVED?)

2006-07-17 Thread David Baron
On Monday 17 July 2006 15:17, David Baron wrote:
 On Monday 17 July 2006 05:04, Katipo wrote:
  David Baron wrote:
  Jobs get queued and simply stay that way?
  
  What's happening?
  
  Using latest 2.6.17 kernel, Sid
 
  Happened to me too.
  Reinstalling foomatic modules fixed it.

 Did that, does not help.

 Some more info:

 NO lp module was installed. Easy enough to modprobe it. DIdn't help

 The parallel port /dev/lp0 was listed with attributes c-.
 Set rw for owner (root) and group (lp) as in all the (unused) /dev/lp1,
 etc. Didn't help.

 Maybe need to reboot? Kernel bug?

I went into http://localhost:631/ and started the printer.

I never had to do this before so how to I make this happen automatically?



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: CUPS (Sid) not printing. (SOLVED?)

2006-07-17 Thread Arthur Marsh

David Baron wrote:

On Monday 17 July 2006 15:17, David Baron wrote:

On Monday 17 July 2006 05:04, Katipo wrote:

David Baron wrote:

Jobs get queued and simply stay that way?

What's happening?

Using latest 2.6.17 kernel, Sid

Happened to me too.
Reinstalling foomatic modules fixed it.

Did that, does not help.

Some more info:

NO lp module was installed. Easy enough to modprobe it. DIdn't help

The parallel port /dev/lp0 was listed with attributes c-.
Set rw for owner (root) and group (lp) as in all the (unused) /dev/lp1,
etc. Didn't help.

Maybe need to reboot? Kernel bug?


I went into http://localhost:631/ and started the printer.

I never had to do this before so how to I make this happen automatically?





If you put

lp

in /etc/modules

and reboot, is /dev/lp0 created with the correct permissions?

If so, does CUPS then start-up and make the printer available without 
manual intervention?


I had to add lp to /etc/modules sometime after a 2.6.16.x upgrade.

Arthur.


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: CUPS (Sid) not printing. (SOLVED?)

2006-07-17 Thread David Baron
On Monday 17 July 2006 18:50, Arthur Marsh wrote:
  I went into http://localhost:631/ and started the printer.
 
  I never had to do this before so how to I make this happen automatically?

 If you put

 lp

 in /etc/modules

 and reboot, is /dev/lp0 created with the correct permissions?

My /dev is static. I am not using udev. I have set the permissions to
crw.rw Somehow, it had been changed to NO rw at all.

 If so, does CUPS then start-up and make the printer available without
 manual intervention?

 I had to add lp to /etc/modules sometime after a 2.6.16.x upgrade.
I will add it to /set/modules and see. I did not have this problem with 2.6.16 
kernels but then again, I do not do all that much printing so maybe I did.
Cups writes printer.conf with the default printer (with the data switch 
setting the parallel line to it) as idle and the second printer (not live) 
to stopped. So why did I need to manually start the supposedly idle 
printer?

See what happens after next reboot.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: CUPS (Sid) not printing. (SOLVED?)

2006-07-17 Thread Roger Leigh
David Baron [EMAIL PROTECTED] writes:

 On Monday 17 July 2006 18:50, Arthur Marsh wrote:
  I went into http://localhost:631/ and started the printer.
 
  I never had to do this before so how to I make this happen automatically?

 If you put

 lp

 in /etc/modules

 and reboot, is /dev/lp0 created with the correct permissions?

 My /dev is static. I am not using udev. I have set the permissions to
 crw.rw Somehow, it had been changed to NO rw at all.

This doesn't help if the module isn't loaded.  Make sure it shows up
in the lsmod output, along with parport.

 If so, does CUPS then start-up and make the printer available without
 manual intervention?

 I had to add lp to /etc/modules sometime after a 2.6.16.x upgrade.
 I will add it to /set/modules and see. I did not have this problem
 with 2.6.16 kernels but then again, I do not do all that much
 printing so maybe I did.  Cups writes printer.conf with the default
 printer (with the data switch setting the parallel line to it) as
 idle and the second printer (not live) to stopped. So why did I
 need to manually start the supposedly idle printer?

Run

/usr/sbin/tunelp -s /dev/lp0

and see what it says.  It should ideally say online/ready.


Regards,
Roger

-- 
  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux http://people.debian.org/~rleigh/
 `. `'   Printing on GNU/Linux?   http://gutenprint.sourceforge.net/
   `-GPG Public Key: 0x25BFB848   Please sign and encrypt your mail.


pgph4uf5cJOw0.pgp
Description: PGP signature


Re: CUPS (Sid) not printing.

2006-07-16 Thread Carl Fink
On Sun, Jul 16, 2006 at 02:46:59PM +0300, David Baron wrote:
 Jobs get queued and simply stay that way?
 
 What's happening?

Your printer isn't plugged in?

In fact, I had to purge CUPS and reinstall it (as suggested on this list) to
get it to work after some recent changes. 
-- 
Carl Fink [EMAIL PROTECTED]
If you attempt to fix something that isn't broken, it will be.
-Bruce Tognazzini


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



RE: CUPS (Sid) not printing.

2006-07-16 Thread David Baron
Jobs get queued and simply stay that way?

What's happening?

Using latest 2.6.17 kernel, Sid

I purged and reinstalled cupsys as recommended by poster.
It will not start now, complains that 127.0.0.1:631 is already in use.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: CUPS (Sid) not printing.

2006-07-16 Thread David Baron
On Sunday 16 July 2006 20:46, David Baron wrote:
 Jobs get queued and simply stay that way?
 
 What's happening?
 
 Using latest 2.6.17 kernel, Sid

 I purged and reinstalled cupsys as recommended by poster.
 It will not start now, complains that 127.0.0.1:631 is already in use.

Actually, if I set debug:
Listens on this on fd1
The above error from fd2
Listens on the sock on fd3

the (KDE) printmanager echos that printer list cannot be accessed.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: CUPS (Sid) not printing.

2006-07-16 Thread Carl Fink
On Sun, Jul 16, 2006 at 08:46:53PM +0300, David Baron wrote:
 Jobs get queued and simply stay that way?
 
 What's happening?
 
 Using latest 2.6.17 kernel, Sid
 
 I purged and reinstalled cupsys as recommended by poster.
 It will not start now, complains that 127.0.0.1:631 is already in use.

What does netstat -tupan | grep 631 show?
-- 
Carl Fink   [EMAIL PROTECTED]
   Patriotism is supporting your country all the time, and your
   government when it deserves it.
  - Mark Twain


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: CUPS (Sid) not printing.

2006-07-16 Thread Florian Kulzer
On Sun, Jul 16, 2006 at 20:46:53 +0300, David Baron wrote:
 Jobs get queued and simply stay that way?
 
 What's happening?
 
 Using latest 2.6.17 kernel, Sid
 
 I purged and reinstalled cupsys as recommended by poster.
 It will not start now, complains that 127.0.0.1:631 is already in use.

Check if there is a process that blocks port 631:

netstat -plant | grep :631

(This must be run as root to get the PID and name of the process.)

Check if there are multiple occurrences of Listen localhost:631 in
/etc/cups/cupsd.conf. If cupsd.conf sources other files you also have to
check these.

The problem with the KDE printing system which you mention in your other
mail should go away if you comment out the line

Listen /var/run/cups/cups.sock

in /etc/cups/cupsd.conf.

-- 
Regards,
  Florian


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: CUPS (Sid) not printing.

2006-07-16 Thread David Baron
On Sunday 16 July 2006 21:12, Florian Kulzer wrote:
 On Sun, Jul 16, 2006 at 20:46:53 +0300, David Baron wrote:
  Jobs get queued and simply stay that way?
  
  What's happening?
  
  Using latest 2.6.17 kernel, Sid
 
  I purged and reinstalled cupsys as recommended by poster.
  It will not start now, complains that 127.0.0.1:631 is already in use.

 Check if there is a process that blocks port 631:

 netstat -plant | grep :631

 (This must be run as root to get the PID and name of the process.)

 Check if there are multiple occurrences of Listen localhost:631 in
 /etc/cups/cupsd.conf. If cupsd.conf sources other files you also have to
 check these.

 The problem with the KDE printing system which you mention in your other
 mail should go away if you comment out the line

 Listen /var/run/cups/cups.sock

 in /etc/cups/cupsd.conf.


The KDE printer manager will NOT work off cups.sock. I reset it to use 
localhost:631 and it now works. Reconfigured my printers.

Now I am back where I started this thread. The job is queued and then sits 
there.

The netstat shows a lot of tcp processes TIME_WAIT


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: CUPS (Sid) not printing.

2006-07-16 Thread Katipo

David Baron wrote:


Jobs get queued and simply stay that way?

What's happening?

Using latest 2.6.17 kernel, Sid


 


Happened to me too.
Reinstalling foomatic modules fixed it.
Regards,


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]