Re: [gentoo-user] Sharing a CUPS printer

2006-09-19 Thread Mick
On Tuesday 19 September 2006 00:48, Mark Knecht wrote:

At this point I believe I'm supposed to set up IPP printing on the
 remote machines but everything I've tried there results in messages
 about the printer not being found, not responding, not existing, etc.
 I'm telling CUPS that it's an IPP printer and trying addresses like:

 ipp://lightning/ipp
 ipp://lightning/ipp/port1
 etc.

I had this problem some time back and could not get it to work on two counts.  
Name resolution would not work (so you may want to change lightning with the 
IP address of your server); and the syntax given in the gui example was 
wrong.  So, after some good advice from this list I changed mine to:

http://192.168.0.3:631/printers/Compaq-HP

where,
192.168.0.3:631 is the IP address and port where the server is listening at;
Compaq-HP is the name I have given to the server;
printers is . . . err, . . . not sure, I assume it is the list of printers set 
up on the server.

Anyway, also don't forget to allow connections from your client(s) on your 
server and your server's firewall.

If after setting it as suggested you still can't find your way through, please 
post back and I'll look deeper into it.
-- 
Regards,
Mick


pgprYrTruKdec.pgp
Description: PGP signature


Re: [gentoo-user] Sharing a CUPS printer

2006-09-19 Thread Sarpy Sam

On 9/18/06, Mark Knecht [EMAIL PROTECTED] wrote:

On 9/18/06, Sarpy Sam [EMAIL PROTECTED] wrote:
SNIP

 Maybe port 631 will work here, I have it set to Listen *.631

Changed it to

Listen *:631

and restarted CUPS on the server.

SNIP

 On the client mahines you want to comment out the listen localhost:631
 line in cupsd.conf.  Then you want to make a file in /etc/cups called
 client.conf.  Insert in it

 ServerName  *

Ah! OK, that makes sense. I changed it appropriately, restarted CUPS
on the client machine and now I get this far:

[EMAIL PROTECTED] ~ $ lpq
HP is ready
no entries
[EMAIL PROTECTED] ~ $ lpstat -a
HP accepting requests since Jan 01 00:00
[EMAIL PROTECTED] ~ $

So far this looks OK. However, if I go into the CUPS manager on the
client and try to print a test page it's telling me the printer is not
available.

Any ideas? I guess you can print a test page from within the CUPS
manager on the client?

Thanks a lot for this much. It's helpful.

I messed around some more with mine now and found out a few more things.

I also added the following to the cupsd.conf on the print server machine.

# Show shared printers on the local network.
Browsing On
BrowseOrder allow,deny
BrowseAllow 192.168.2.*
BrowseAllow @LOCAL


# Restrict access to the server...
Location /
 Order allow,deny
 Allow localhost
 Allow From 192.168.2.*
/Location

The 192.168.2.* is my local subnet I was trying to allow printing
from.  With a restart of the cups server on the machine with the
printer that client machine saw the peinter no problem.

I also now discovered that when I use the CUPS manager on the client
machine itr just forwards me to the CUPS manager on the Server
machine.  Since in cupsd.conf I haven't allowed a client machine
access to change anything I can't change any of the parameters of the
CUPS manager but I am able to print a test page.

I also finished setting up KDE and everything is now working fine on
the client with the setup I have described.  Sorry about forgetting to
tell you about the other two lines I changed in cupsd.conf.  Hope
these changes help you.
--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Sharing a CUPS printer

2006-09-19 Thread Nick Rout
On Tue, 19 Sep 2006 09:26:16 +0100
Mick [EMAIL PROTECTED] wrote:

 On Tuesday 19 September 2006 00:48, Mark Knecht wrote:
 
 At this point I believe I'm supposed to set up IPP printing on the
  remote machines but everything I've tried there results in messages
  about the printer not being found, not responding, not existing, etc.
  I'm telling CUPS that it's an IPP printer and trying addresses like:
 
  ipp://lightning/ipp
  ipp://lightning/ipp/port1
  etc.
 
 I had this problem some time back and could not get it to work on two counts. 
  
 Name resolution would not work (so you may want to change lightning with the 
 IP address of your server); and the syntax given in the gui example was 
 wrong.  So, after some good advice from this list I changed mine to:
 
 http://192.168.0.3:631/printers/Compaq-HP
 
 where,
 192.168.0.3:631 is the IP address and port where the server is listening at;
 Compaq-HP is the name I have given to the server;
 printers is . . . err, . . . not sure, I assume it is the list of printers 
 set 
 up on the server.
 
 Anyway, also don't forget to allow connections from your client(s) on your 
 server and your server's firewall.
 
 If after setting it as suggested you still can't find your way through, 
 please 
 post back and I'll look deeper into it.

I have never got ipp:// to work, but http://server:631/printers/printername 
usually works for me.

Incidentally here is a howto I wrote with printing from windows in mind, but it 
deals with permissions and the url to use:

*nick searches for the url: Bugger, its on the server http://clug.org.nz, which 
is down right now. Go there tomorrow and search for wincups

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Sharing a CUPS printer

2006-09-19 Thread Mark Knecht

On 9/18/06, Sarpy Sam [EMAIL PROTECTED] wrote:

 So far this looks OK. However, if I go into the CUPS manager on the
 client and try to print a test page it's telling me the printer is not
 available.

 Any ideas? I guess you can print a test page from within the CUPS
 manager on the client?

I never tried to print a test page from the client CUPS manager, but I
could print from the webbrowser which is what I was going for.  I
personally can't even get to the CUPS manager in the client machine
since the Listen localhost:631 has been commented out so there is no
manager to get to.

Your seeing the printer though.  That's a start.


Actually it turned out to be enough. Since the printer was seen in the
CUPS manager on the client machine it seems apps on that machine can
print across the network. I didn't have to make any more changes to
get it to work.

The confusion I had was that when I access the CUPS page in Firefox on
the client machine I thought I was managing something on that machine.
It seems it's really just showing what's on the network (i this case)
and a proxy for what is on the server.

I'll look through the comments in the emails that follow this one to
see if I can make any improvements but at least it's working.

Thanks!

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



[gentoo-user] Sharing a CUPS printer

2006-09-18 Thread Mark Knecht

Hi,
  Sorry. This has got to be me just not seeing the right way about
this. What do I have to do on my Gentoo AMD64 machine with a working
CUPS printer to share it with other Gentoo desktop machines here at
home?

  I have a working CUPS printer on my machine. I want to print to it
from my wife and son's machines. I've been trying to figure out how to
set that up but cannot get the right configuration. It seems that the
Gentoo Printing Guide is somewhat silent on this.

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

  On the machine with the printer I've done what I think the guide
has asked for, modified for my network IP addresses:

Location /
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
Allow From 192.168.1.*
/Location

Port 631
(make sure the next two lines are commented out)
#Listen 127.0.0.1:631
#Listen localhost:631

  At this point I believe I'm supposed to set up IPP printing on the
remote machines but everything I've tried there results in messages
about the printer not being found, not responding, not existing, etc.
I'm telling CUPS that it's an IPP printer and trying addresses like:

ipp://lightning/ipp
ipp://lightning/ipp/port1
etc.

However when I try to print to it I get messages in CUPS like:

Destination printer does not exist!

  I'm sure it's just me not understanding the right way to input the
printer's address.

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



Re: [gentoo-user] Sharing a CUPS printer

2006-09-18 Thread Sarpy Sam

On 9/18/06, Mark Knecht [EMAIL PROTECTED] wrote:

Hi,
   Sorry. This has got to be me just not seeing the right way about
this. What do I have to do on my Gentoo AMD64 machine with a working
CUPS printer to share it with other Gentoo desktop machines here at
home?

   I have a working CUPS printer on my machine. I want to print to it
from my wife and son's machines. I've been trying to figure out how to
set that up but cannot get the right configuration. It seems that the
Gentoo Printing Guide is somewhat silent on this.

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

   On the machine with the printer I've done what I think the guide
has asked for, modified for my network IP addresses:

Location /
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
Allow From 192.168.1.*
/Location

Port 631
(make sure the next two lines are commented out)
#Listen 127.0.0.1:631
#Listen localhost:631


Maybe port 631 will work here, I have it set to Listen *.631


   At this point I believe I'm supposed to set up IPP printing on the
remote machines but everything I've tried there results in messages
about the printer not being found, not responding, not existing, etc.
I'm telling CUPS that it's an IPP printer and trying addresses like:

ipp://lightning/ipp
ipp://lightning/ipp/port1
etc.


On the client mahines you want to comment out the listen localhost:631
line in cupsd.conf.  Then you want to make a file in /etc/cups called
client.conf.  Insert in it

ServerName  *

Add whatever the name or ip address of the server machine is.
Somewhere I read that you have to use the server name as defined in
/etc/host, you might have to add it to the file if you haven't done
this all ready.  I did it that way and restrated cups and it worked.

lpstat -a
Epson accepting requests since Mon Sep 18 12:19:08 2006
hp_photosmart_7700_series_USB_1 accepting requests since Wed Jul 26
20:25:52 2006

The lpstat command will show if you are seeing the printer or not.

I just figured this out last night.  Hope it works for you.



However when I try to print to it I get messages in CUPS like:

Destination printer does not exist!

   I'm sure it's just me not understanding the right way to input the
printer's address.

Thanks in advance,
Mark

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Sharing a CUPS printer

2006-09-18 Thread Mark Knecht

On 9/18/06, Sarpy Sam [EMAIL PROTECTED] wrote:
SNIP


Maybe port 631 will work here, I have it set to Listen *.631


Changed it to

Listen *:631

and restarted CUPS on the server.

SNIP


On the client mahines you want to comment out the listen localhost:631
line in cupsd.conf.  Then you want to make a file in /etc/cups called
client.conf.  Insert in it

ServerName  *


Ah! OK, that makes sense. I changed it appropriately, restarted CUPS
on the client machine and now I get this far:

[EMAIL PROTECTED] ~ $ lpq
HP is ready
no entries
[EMAIL PROTECTED] ~ $ lpstat -a
HP accepting requests since Jan 01 00:00
[EMAIL PROTECTED] ~ $

So far this looks OK. However, if I go into the CUPS manager on the
client and try to print a test page it's telling me the printer is not
available.

Any ideas? I guess you can print a test page from within the CUPS
manager on the client?

Thanks a lot for this much. It's helpful.

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



Re: [gentoo-user] Sharing a CUPS printer

2006-09-18 Thread Sarpy Sam

So far this looks OK. However, if I go into the CUPS manager on the
client and try to print a test page it's telling me the printer is not
available.

Any ideas? I guess you can print a test page from within the CUPS
manager on the client?


I never tried to print a test page from the client CUPS manager, but I
could print from the webbrowser which is what I was going for.  I
personally can't even get to the CUPS manager in the client machine
since the Listen localhost:631 has been commented out so there is no
manager to get to.

Your seeing the printer though.  That's a start.
--
gentoo-user@gentoo.org mailing list