[cups] CUPS server not working

Andrew Hakman andrew.hakman at gmail.com
Thu Sep 4 18:30:58 PDT 2014


Are you trying to print from another linux box? If so, if you share the
printer on the box it's setup on, it should just appear on the other box
(if avahi is working - if you have your own internal dns that uses
something other than .local TLD, avahi will never work, just give up on it
now and use old cups browsing instead).

It sounds like you're trying to administer the server from the other box
too - that's not allowed by default. You'd have to add some lines to
/etc/cups/cupsd.conf

to listen to an interface other than the loopback:

Listen 192.168.2.1:631 <-- add this line - change for the IP address of the
cups server box on your internal IP range
Listen localhost:631
Listen /var/run/cups/cups.sock

if it's really needing to access the remote admin interface:

Browsing On
BrowseLocalProtocols dnssd
DefaultAuthType Basic
WebInterface Yes
<Location />
  Order allow,deny
  Allow from 192.168.*.* <-- add this line - adjust for your IP range
</Location>
<Location /admin>
  Order allow,deny
  Allow from 192.168.*.* <-- add this line
</Location>

you shouldn't have to change anything in the rest of the file unless you're
wanting more specific access control

make the last 2 lines added more specific to your IP range - I have
multiple subnets in 192.168.*.* that need access which is why I allowed
access to the whole range - you should be more specific in your config

restart cupsd after

/etc/init.d/cupsd restart (or whatever's appropriate for your distro)

If you need more help with sharing and the printers automatically showing
up on your other boxes, let me know, I just went through that last week
again (it was working for years, then it all broke when I upgraded cups) -
it was a total pain to get working, but I can point you at some key things
to check to get it working.




On Thu, Sep 4, 2014 at 4:59 PM, Dave Edwards <dave.dae.edwards at gmail.com>
wrote:

> I spent a long time setting up my Lexmark z2300 printer to work on my linux
> machine, but finally got it working today.
> However I can't get it to work from other machines on my network.
>
> On a remote machine I can add a new printer, it sees the z2300 on my linux
> box, it installs it and everything looks fine until I try to print.
> Then I get 'Communications Not Available' message
> 'The printer cannot communicate with the computer'
>
> I checked firewall and the lexmark is in there enabled...
>
> When I look at the linux 'printers' dialogue and I click 'Server' then
> 'settings'
>
> I get 'There was an HTTP error: not found'
>
> Can anyone advise?
> _______________________________________________
> cups mailing list
> cups at cups.org
> https://www.cups.org/mailman/listinfo/cups
>



More information about the cups mailing list