Re: [gentoo-user] CUPS server cannot be contacted

2006-09-14 Thread Mark Knecht

On 9/14/06, darren kirby <[EMAIL PROTECTED]> wrote:



OK, I just tried lpq on my system (on a local terminal) and it works fine.


As it did on mine before I took down the Mac. I may as well try
turning the MAc on again this evening and see if this problem really
changes when it's on the network.


Here's an idea, maybe the lpq command needs to have explicit access to:





HEre is my admin section from /etc/cups/cupsd.conf:



AuthType Basic
AuthClass System

## Restrict access to local domain
Order Deny,Allow
Deny From All
Allow From 127.0.0.1

#Encryption Required




to access the queue...though this is a crapshoot, as I believe 127.0.0.1 is
allowed this access by default.

>I've seen this before, actually, when the Mac was turned off.
> Linux/Gnome would only see the local CUPS server after it had seen the
> remote server on the Mac.
>
>I'm thinking that the system (some part of it anyway) has cached
> the fact that the Mac had a CUPS server somewhere. Now that the Mac is
> gone it cannot move forward. I have no data to back up that idea
> though and I have no idea how to prove it true or false...

Hmm, I have not heard of a Cups 'printer cache' but that certainly doesn't
mean there is not one...

I assume you have removed all traces of the Mac printer/daemon through the
Cups web administration interface and /etc/cups/client.conf?



I had thought so but it wasn't the case. client.conf had a pointer to
to the Mac Mini. I removed it by hand and restarted cupsd here and now
get different/better results:

lightning ~ # lpq
lpq: error - no default destination available.
lightning ~ #

After setting the local pronter as default using the Cups admin tool
it now acts nice:

lightning ~ # lpq
HP is ready
no entries
lightning ~ #

Thanks for the help!

Cheers,
Mark
--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] CUPS server cannot be contacted

2006-09-14 Thread Mark Knecht

On 9/14/06, darren kirby <[EMAIL PROTECTED]> wrote:

quoth the Mark Knecht:
> and this
>
> #Port 631
> Port localhost:631
>
> or this
>
> Port 631
> #Port localhost:631

Which of these do you have in your file? I found just yesterday that

Port 631



Same as your working version:

lightning ~ # cat /etc/cups/cupsd.conf | grep 631
# default IPP port of 631.  It changes users whenever an external
# Ports/addresses that we listen to.  The default port 631 is reserved
#Port 631
#Listen hostname:631
#Listen 1.2.3.4:631
Port 631
#Port localhost:631
#BrowsePort 631
lightning ~ #


lightning ~ # lpq
lpq: Unable to contact server!
lightning ~ # /etc/init.d/cupsd start
* Starting cupsd ...
  [ ok ]lightning ~ # lpq
lpq: Unable to contact server!
lightning ~ #

  I've seen this before, actually, when the Mac was turned off.
Linux/Gnome would only see the local CUPS server after it had seen the
remote server on the Mac.

  I'm thinking that the system (some part of it anyway) has cached
the fact that the Mac had a CUPS server somewhere. Now that the Mac is
gone it cannot move forward. I have no data to back up that idea
though and I have no idea how to prove it true or false...

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



Re: [gentoo-user] CUPS server cannot be contacted

2006-09-14 Thread darren kirby
quoth the Mark Knecht:
> and this
>
> #Port 631
> Port localhost:631
>
> or this
>
> Port 631
> #Port localhost:631

Which of these do you have in your file? I found just yesterday that 

Port 631

will work while:

Port localhost:631

does not...

HTH

-d
-- 
darren kirby :: Part of the problem since 1976 :: http://badcomputer.org
"...the number of UNIX installations has grown to 10, with more expected..."
- Dennis Ritchie and Ken Thompson, June 1972
-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] CUPS server cannot be contacted

2006-09-14 Thread Mark Knecht

Hi,
  I decided I wanted to sell my Mac Mini as it's turned out to be
nothing but a glorified print server. (No one uses it including me.)
Anyway, I'm trying to move my HP printer from the Mac to my Gentoo box
using the Gentoo Printing Guide:

http://www.gentoo.org/doc/en/printing-howto.xml

  The printer is hooked up and I can print test pages from my local
machine using the CUPS admin page in Firefox. However, when I open a
terminal and type lpq I have problems:

lightning ~ # lpq
lpq: Unable to contact server!
lightning ~ #

and inside of an app like Open Office I don't see the printer. It just
says Generic Printer. If I try the Printer Admin app in Gnome it says
the CUPS server cannot be contacted.

  The two changes I've tried in /etc/cups/cupsd.conf, as per the guide, are:


Order Deny,Allow
Deny From All
Allow From 127.0.0.1
Allow From 192.68.1.*



and this

#Port 631
Port localhost:631

or this

Port 631
#Port localhost:631

It seems I must be missing something obvious. I have restarted cupsd
after each config file change but nothing helps yet.

Where do I look to get info to help fix this up?

Thanks,
Mark
--
gentoo-user@gentoo.org mailing list