From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org)
	by nuthatch.gentoo.org with esmtp (Exim 4.60)
	(envelope-from <gentoo-user+bounces-51441-garchives=archives.gentoo.org@gentoo.org>)
	id 1GPdHS-0006Ke-Jh
	for garchives@archives.gentoo.org; Tue, 19 Sep 2006 10:56:47 +0000
Received: from robin.gentoo.org (localhost [127.0.0.1])
	by robin.gentoo.org (8.13.8/8.13.6) with SMTP id k8JAsv2s029016;
	Tue, 19 Sep 2006 10:54:57 GMT
Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.196])
	by robin.gentoo.org (8.13.8/8.13.6) with ESMTP id k8JAkxHi014654
	for <gentoo-user@lists.gentoo.org>; Tue, 19 Sep 2006 10:47:00 GMT
Received: by nz-out-0102.google.com with SMTP id n1so1796332nzf
        for <gentoo-user@lists.gentoo.org>; Tue, 19 Sep 2006 03:46:59 -0700 (PDT)
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;
        s=beta; d=gmail.com;
        h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references;
        b=hbG3RqEEFwWposgsyQeDYitGRCq0ubkd4Qu51ur1H1JCM5vOMmvhWL3XofIm2NW5co0sSdsvG2wvMoEFiJ5pxdzaXTW5OJoWLtDVu3BZYbR7k47nx1toPny8aj+dR9YeSMjNnJD5lI0bZYjxj4emoyayDarSUYgzCcovjPxiNZs=
Received: by 10.65.59.20 with SMTP id m20mr14277985qbk;
        Tue, 19 Sep 2006 03:46:59 -0700 (PDT)
Received: by 10.64.183.7 with HTTP; Tue, 19 Sep 2006 03:46:58 -0700 (PDT)
Message-ID: <b69857cf0609190346k16406f6ma3b5ae316faec6ed@mail.gmail.com>
Date: Tue, 19 Sep 2006 04:46:58 -0600
From: "Sarpy Sam" <sarpy.sam@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Sharing a CUPS printer
In-Reply-To: <5bdc1c8b0609181838j4dfbc7bv9685bce698734b5b@mail.gmail.com>
Precedence: bulk
List-Post: <mailto:gentoo-user@lists.gentoo.org>
List-Help: <mailto:gentoo-user+help@gentoo.org>
List-Unsubscribe: <mailto:gentoo-user+unsubscribe@gentoo.org>
List-Subscribe: <mailto:gentoo-user+subscribe@gentoo.org>
List-Id: Gentoo Linux mail <gentoo-user.gentoo.org>
X-BeenThere: gentoo-user@gentoo.org
Reply-to: gentoo-user@lists.gentoo.org
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
References: <5bdc1c8b0609181648g1b730181h1d4f6bf435a27bf4@mail.gmail.com>
	 <b69857cf0609181719n661af42dl242ddfa7828131a5@mail.gmail.com>
	 <5bdc1c8b0609181838j4dfbc7bv9685bce698734b5b@mail.gmail.com>
X-Archives-Salt: 6d791bc6-eb58-48da-9bac-0eb04158e179
X-Archives-Hash: 42fcc76dda5638f07e08f8dd0135423e

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