Re: Samba vs. direct CUPS for Windows clients?

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

 




David Krider wrote:
On Mon, 2003-04-07 at 13:34, Miloslav Trmac wrote:


The cups configuration allows access only from 127.0.0.1 ("localhost")
by default.


Indeed. You need to add "Listen <A.B.C.D>" to the bottom of
/etc/cups/cupsd.conf, where "A.B.C.D" is the IP address of the interface
you want it to respond to requests on. If you want to also be able to
_administrate_ cups from this address, you need to allow that in the
"admin" location further up in the file.

I edited cupsd.conf to my liking, and removed redhat-config-printer
completely. The init script just checks for its presence; if it's not
there, it won't run the config and lose your edits. It wasn't doing
anything for me anyway.

However, I must emphasize that I was not just impressed, but TOTALLY
BLOWN AWAY that, on install, Anaconda not only recognized my printers
(an HP 5L and an HP 2000C), but also loaded working drivers for them. (I
didn't have to try 14 different drivers to get good output.) I just
needed to tweak the sharing of them on the network.

Since anaconda recognized them it's easy for you:)


goto /etc/alchmist/namespace/printconf.

mv local.adl local.adl.gz
gunzip local.adl.gz

in local.adl is the XML file, that princonmf uses to store printerconfig info. You can then add the shring option in there:

Looking at one is see the sharing section right after filter_type and before jobsheets. This was to see the format of the different sharing options form the config tool.

<sharing ANONYMOUS="TRUE" TYPE="LIST">
   <hosts1 TYPE="STRING" VALUE="ALL"/>
   <hosts2 TYPE="STRING" VALUE="eth0"/>
   <hosts3 TYPE="STRING" VALUE="127.0.0.1"/>
   <hosts4 TYPE="STRING" VALUE="192.84.61.255/255.255.255.0"/>
</sharing>


A single share option would be just the hosts1. each hostsX line becones and Allow line in cupsd.conf for the printer. So the above becomes

Allow from All
Allow from @IF(eth0)
Allow from 127.0.0.1
Allow from 192.84.61.255/255.255.255.0

in cupsd.conf. So you can setup the sharing permisions in local.adl so they will be preserved if printconf-backend rewrites cupsd.conf.

-Thomas






[Index of Archives]     [Fedora Users]     [Centos Users]     [Kernel Development]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat Phoebe Beta]     [Yosemite Forum]     [Fedora Discussion]     [Gimp]     [Stuff]     [Yosemite News]

  Powered by Linux