public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Sharing a CUPS printer
@ 2006-09-18 23:48 Mark Knecht
  2006-09-19  0:19 ` Sarpy Sam
  2006-09-19  8:26 ` Mick
  0 siblings, 2 replies; 9+ messages in thread
From: Mark Knecht @ 2006-09-18 23:48 UTC (permalink / raw
  To: gentoo-user

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



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

* Re: [gentoo-user] Sharing a CUPS printer
  2006-09-18 23:48 [gentoo-user] Sharing a CUPS printer Mark Knecht
@ 2006-09-19  0:19 ` Sarpy Sam
  2006-09-19  1:38   ` Mark Knecht
  2006-09-19  8:26 ` Mick
  1 sibling, 1 reply; 9+ messages in thread
From: Sarpy Sam @ 2006-09-19  0:19 UTC (permalink / raw
  To: gentoo-user

On 9/18/06, Mark Knecht <markknecht@gmail.com> 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



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

* Re: [gentoo-user] Sharing a CUPS printer
  2006-09-19  0:19 ` Sarpy Sam
@ 2006-09-19  1:38   ` Mark Knecht
  2006-09-19  2:06     ` Sarpy Sam
                       ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Mark Knecht @ 2006-09-19  1:38 UTC (permalink / raw
  To: gentoo-user

On 9/18/06, Sarpy Sam <sarpy.sam@gmail.com> 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:

mark@dragonfly ~ $ lpq
HP is ready
no entries
mark@dragonfly ~ $ lpstat -a
HP accepting requests since Jan 01 00:00
mark@dragonfly ~ $

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



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

* Re: [gentoo-user] Sharing a CUPS printer
  2006-09-19  1:38   ` Mark Knecht
@ 2006-09-19  2:06     ` Sarpy Sam
  2006-09-19 16:37       ` Mark Knecht
       [not found]     ` <7573e9640609181943j640398bev63dfaa831a992842@mail.gmail.com>
  2006-09-19 10:46     ` [gentoo-user] " Sarpy Sam
  2 siblings, 1 reply; 9+ messages in thread
From: Sarpy Sam @ 2006-09-19  2:06 UTC (permalink / raw
  To: gentoo-user

> 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



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

* [gentoo-user]  Re: Sharing a CUPS printer
       [not found]     ` <7573e9640609181943j640398bev63dfaa831a992842@mail.gmail.com>
@ 2006-09-19  7:49       ` Stefan Wimmer
  0 siblings, 0 replies; 9+ messages in thread
From: Stefan Wimmer @ 2006-09-19  7:49 UTC (permalink / raw
  To: gentoo-user

* Richard Fish <bigfish@asmallpond.org> [2006-09-19 02:43] :
>  You said you have been trying paths like:
> 
>  ipp://lightning/ipp
>  ipp://lightning/ipp/port1
> 
>  Neither is correct [1].  If the printer is named "HP" on the server,
>  the correct paths would be:
> 
>  ipp://lightning/printers/HP
>        or
>  http://lightning:631/ipp/HP
> 
>  -Richard

Hmmm strange, I use ipp://<host>/<printer> and it works as well ...

Greetz
Stefan 

-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] Sharing a CUPS printer
  2006-09-18 23:48 [gentoo-user] Sharing a CUPS printer Mark Knecht
  2006-09-19  0:19 ` Sarpy Sam
@ 2006-09-19  8:26 ` Mick
  2006-09-19 11:05   ` Nick Rout
  1 sibling, 1 reply; 9+ messages in thread
From: Mick @ 2006-09-19  8:26 UTC (permalink / raw
  To: gentoo-user

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

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

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

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

* Re: [gentoo-user] Sharing a CUPS printer
  2006-09-19  1:38   ` Mark Knecht
  2006-09-19  2:06     ` Sarpy Sam
       [not found]     ` <7573e9640609181943j640398bev63dfaa831a992842@mail.gmail.com>
@ 2006-09-19 10:46     ` Sarpy Sam
  2 siblings, 0 replies; 9+ messages in thread
From: Sarpy Sam @ 2006-09-19 10:46 UTC (permalink / raw
  To: gentoo-user

On 9/18/06, Mark Knecht <markknecht@gmail.com> wrote:
> On 9/18/06, Sarpy Sam <sarpy.sam@gmail.com> 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:
>
> mark@dragonfly ~ $ lpq
> HP is ready
> no entries
> mark@dragonfly ~ $ lpstat -a
> HP accepting requests since Jan 01 00:00
> mark@dragonfly ~ $
>
> 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



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

* Re: [gentoo-user] Sharing a CUPS printer
  2006-09-19  8:26 ` Mick
@ 2006-09-19 11:05   ` Nick Rout
  0 siblings, 0 replies; 9+ messages in thread
From: Nick Rout @ 2006-09-19 11:05 UTC (permalink / raw
  To: gentoo-user

On Tue, 19 Sep 2006 09:26:16 +0100
Mick <michaelkintzios@gmail.com> 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



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

* Re: [gentoo-user] Sharing a CUPS printer
  2006-09-19  2:06     ` Sarpy Sam
@ 2006-09-19 16:37       ` Mark Knecht
  0 siblings, 0 replies; 9+ messages in thread
From: Mark Knecht @ 2006-09-19 16:37 UTC (permalink / raw
  To: gentoo-user

On 9/18/06, Sarpy Sam <sarpy.sam@gmail.com> 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



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

end of thread, other threads:[~2006-09-19 16:47 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-18 23:48 [gentoo-user] Sharing a CUPS printer Mark Knecht
2006-09-19  0:19 ` Sarpy Sam
2006-09-19  1:38   ` Mark Knecht
2006-09-19  2:06     ` Sarpy Sam
2006-09-19 16:37       ` Mark Knecht
     [not found]     ` <7573e9640609181943j640398bev63dfaa831a992842@mail.gmail.com>
2006-09-19  7:49       ` [gentoo-user] " Stefan Wimmer
2006-09-19 10:46     ` [gentoo-user] " Sarpy Sam
2006-09-19  8:26 ` Mick
2006-09-19 11:05   ` Nick Rout

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