[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Sharing Linux printer with Mac



On Sat, Jan 21, 2006 at 02:59:21AM -0500, Chinook wrote:
> Paul E Condon wrote:
> >On Sat, Jan 21, 2006 at 01:36:26AM -0500, Chinook wrote:
> >  
...
> But I did find where Gary Kerbaugh (someone I trust) explained it to 
> someone on the Unix forum.  It sounds about like what I did so I'm just 
> copying his post for you.  Now you owe me :-)
> 
> .................................................................................
> 
> Hi Chris,
>   I've not done this with a Mac but CUPS is CUPS. Open the 
> /etc/cups/client.conf file on your Linux machine and change the 
> ServerName line to point to your Mac. That may be all you have to do 
> because the Mac's CUPS automatically adds the local printer for you. You 
> may have to define a queue for it; I'm not sure but I don't think so. 
> Also, you will probably have to authorize it on the Mac. The 
> /etc/cups/cupsd.conf file on the Mac should have a line in it that look 
> like:
> 
> Listen <Mac_IP>:631
> 
> where <Mac_IP> should be replaced by the IP address of your Mac, (not 
> 127.0.0.1) and similarly for <Linux_IP> below. Such a line should 
> already exist for 127.0.0.1. Just copy-and-paste in a new copy of this 
> line and change the IP address. Inside the definition of root directory 
> you similarly may need to add an "Allow From" statement:
> 
> <Location />
>   ...
>   Allow From <Linux_IP>
> </Location>
> 
> The directory definitions are modeled on similar definitions in Apache's 
> httpd.conf file. There may be more that is necessary; I'll see if I can 
> find more specific information that I've saved. If you have to do more, 
> please post it to this thread so that there is complete documentation 
> for others. Of course a consistent configuration depends on having 
> static IP addresses on your local network.
> 
>   I'm not really surprised that you didn't find much if you searched 
> for strings including Mac or Apple; this is a purely UNIX question. The 
> CUPS administration documentation can be found online at cups.org or 
> even on your own machine at http://localhost:631/ or on your drive in 
> the /usr/share/doc/cups directory.
> -- 
> Gary
> ~~~~
...

This is a limited solution. By pointing /etc/cups/client.conf at the
Mac you give up the possibility of having the Debian box using
printers that are connected to other hosts than the Mac. From the
header of /etc/cups/client.conf

# ServerName: the hostname of your server.  By default CUPS will use the
# hostname of the system or the value of the CUPS_SERVER environment
# variable.  ONLY ONE SERVER NAME MAY BE SPECIFIED AT A TIME.  To use
# more than one server you must use a local scheduler with browsing
# and possibly polling.

I have a postscript printer attached to my main Debian box, and color
inkjet printers attached to a couple of Macs. One inkjet is notably
better than the other, so I want to share the inkjets among the Macs,
share the inkjet to the Debian for color picture printing, and share
the postscript printer all around. I failed. But these instructions
gave me some more things to try. 

In my setup the Macs do a bad thing which I would like to overcome:
When I turn on print sharing, they readvertise all the printers they
find on the LAN as if they were available from within their own resources.
So, for example, when I browse, I see three listings of the postscript
printer. And they readvertise each others' inkjets. Since this setup
doesn't work anyway, I have not 

And I *did* give you a clue about starting services at 'login'.

-- 
Paul E Condon           
pecondon@mesanetworks.net



Reply to: