Networking Forums

Networking Forums > Computer Networking > Linux Networking > Printer sharing with 2 machines using CUPS and router?

Reply
Thread Tools Display Modes

Printer sharing with 2 machines using CUPS and router?

 
 
Al C.
Guest
Posts: n/a

 
      07-22-2004, 10:03 PM
Wife and I each have machines running Slackware. We use a Linksys router to
share the SBC DSL modem via DHCP/PPPoE.

She has a parallel color deskjet printer under CUPS attached to her laptop. I
have an ancient parallel HP LaserJet under CUPS attached to my tower.

Each machine runs CUPS.

We don't need to share files but I'd like to be able to use her color printer
from time to time. Is this possible? I've been all over the net looking for
how to do this and all I can find is multiple printers under one CUPS
'server'. I know I have to change one of the the cupsd.conf on one (both?) of
the machines, but I'm lost. Do I need to "add" a printer on my machine via
localhost:631?

Can anyone point me in the right direction?

Al

 
Reply With Quote
 
 
 
 
Claire McIvor
Guest
Posts: n/a

 
      07-23-2004, 01:04 AM
On Thu, 22 Jul 2004 15:03:47 -0700, Al C. wrote:

> Wife and I each have machines running Slackware. We use a Linksys router
> to share the SBC DSL modem via DHCP/PPPoE.
>
> She has a parallel color deskjet printer under CUPS attached to her
> laptop. I have an ancient parallel HP LaserJet under CUPS attached to my
> tower.
>
> Each machine runs CUPS.
>
> We don't need to share files but I'd like to be able to use her color
> printer from time to time. Is this possible? I've been all over the net
> looking for how to do this and all I can find is multiple printers under
> one CUPS 'server'. I know I have to change one of the the cupsd.conf on
> one (both?) of the machines, but I'm lost. Do I need to "add" a printer on
> my machine via localhost:631?
>
> Can anyone point me in the right direction?
>
> Al


I don't have personal experience of slackware and how it sets up, but
generally CUPS will handle all the queue assignments for you and you need
tell it only about the paramaters for the printer type, driver, resolution
and location. Suse handles this quite neatly through the YAST
configuration tool. It may be that Slackware has something similar.

Regards,

Claire

 
Reply With Quote
 
Thomas Maguin
Guest
Posts: n/a

 
      07-23-2004, 07:43 AM
Al C. wrote:

> We don't need to share files but I'd like to be able to use her color
> printer from time to time. Is this possible?


Yes.

Ensure, that your firewall/Router allows to use port 631 in the local net.
Perhaps you have to open port 631 in iptables.
Then select remote printer in cupsconfig / Printing Manager, fill the
dialog. The URI is IPP://$RemoteHostname:631/printers/$PrinterName.

Thomas
 
Reply With Quote
 
Al C.
Guest
Posts: n/a

 
      07-23-2004, 06:37 PM
Thomas Maguin wrote:

> Al C. wrote:
>
>> We don't need to share files but I'd like to be able to use her color
>> printer from time to time. Is this possible?

>
> Yes.
>
> Ensure, that your firewall/Router allows to use port 631 in the local net.


The Linksys router lets me do port forwarding but I don't know which computer
to forward to .... mine or my wifes?

> Perhaps you have to open port 631 in iptables.


We're not using a software firewall.

> Then select remote printer in cupsconfig / Printing Manager, fill the
> dialog. The URI is IPP://$RemoteHostname:631/printers/$PrinterName.
>


I did this but it does not see my wife's printer on her server. She has a
specific driver that I don't have because the 712C is a piece of crap and
does not use the 'standard' driver.

Are you sure I don't have to change her cupsd.conf file? Or mine?

Al

 
Reply With Quote
 
Grant Taylor
Guest
Posts: n/a

 
      07-24-2004, 08:47 PM
"Al C." <(E-Mail Removed)> writes:

> Wife and I each have machines running Slackware. We use a Linksys
> router to share the SBC DSL modem via DHCP/PPPoE.


I assume you have the obvious household network topology of two hosts
on a single ethernet, with the router as the third host as well as
being both the hub/switch and the lone router on the local network.

For the love of dog do not adjust your firewall/forwarding/router
settings to let printer service through, as another poster suggested.

> She has a parallel color deskjet printer under CUPS attached to her
> laptop. I have an ancient parallel HP LaserJet under CUPS attached
> to my tower.


> We don't need to share files but I'd like to be able to use her
> color printer from time to time. Is this possible?


Yes. Turn on the broadcast advertising feature in cups on both
machines. Then all cups clients will be able to see any cups printers
on your network.

The settings are in /etc/cups/cupsd.conf (possibly located in /etc or
elsewhere). There should be comments in that file making it somewhat
clear what to do. Edit this file, then restart the cups service, all
on both sides. Key settings will include:

Browsing On
BrowseProtocols cups
BrowseAddress @LOCAL
BrowseAllow All
BrowseInterval 30

--
Grant Taylor
Embedded Linux Consultant
http://www.picante.com/
 
Reply With Quote
 
Al C.
Guest
Posts: n/a

 
      07-25-2004, 04:39 AM
Grant Taylor wrote:

> "Al C." <(E-Mail Removed)> writes:
>
>> Wife and I each have machines running Slackware. We use a Linksys
>> router to share the SBC DSL modem via DHCP/PPPoE.

>
> I assume you have the obvious household network topology of two hosts
> on a single ethernet, with the router as the third host as well as
> being both the hub/switch and the lone router on the local network.
>
> For the love of dog do not adjust your firewall/forwarding/router
> settings to let printer service through, as another poster suggested.
>
>> She has a parallel color deskjet printer under CUPS attached to her
>> laptop. I have an ancient parallel HP LaserJet under CUPS attached
>> to my tower.

>
>> We don't need to share files but I'd like to be able to use her
>> color printer from time to time. Is this possible?

>
> Yes. Turn on the broadcast advertising feature in cups on both
> machines. Then all cups clients will be able to see any cups printers
> on your network.
>
> The settings are in /etc/cups/cupsd.conf (possibly located in /etc or
> elsewhere). There should be comments in that file making it somewhat
> clear what to do. Edit this file, then restart the cups service, all
> on both sides. Key settings will include:
>
> Browsing On
> BrowseProtocols cups
> BrowseAddress @LOCAL
> BrowseAllow All
> BrowseInterval 30
>



Thanks for the help. I got it to work. The "BrowseAllow" All is the key.

ANC

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
cups printer does not like me Mauricio Tavares Linux Networking 0 02-28-2007 01:42 AM
Can't print through CUPS from Linux to Windows XP printer d Linux Networking 4 08-02-2006 07:18 AM
CUPS printer hangs after inactivity, requires CUPS restart Frnak McKenney Linux Networking 0 07-28-2005 11:56 PM
CUPS and DHCP for remote printer Al. C Linux Networking 6 03-05-2005 07:00 PM
Network printer & Cups - What about you ? apkwa Linux Networking 1 10-07-2003 01:52 PM



1 2 3 4 5 6 7 8 9 10 11