On 03 Jun 12:05, Srdjan Todorovic wrote:
Hi,
On 3 June 2010 11:51, nev young nev@nevilley.demon.co.uk wrote:
On 03/06/10 10:17, Srdjan Todorovic wrote:
Been having problems figuring out how to print to a remote CUPS server. Followed a couple of "tutorials" [1] and spoke to people in #cups but nothing seems to help.
Environment: - Fedora Core 6 machine "A" (CUPS server, CUPS 1.4.x) - Fedora Core 6 machine "B" (CUPS client, CUPS 1.2.x) - USB printer
ASCII Art: [B]--------[A]-----[Printer]
Goal: Enable machine B to print to the Printer, using the CUPS server on A.
This is almost what I have.
ASCII Art:
[B] --------[A]-----[lp1] [C] ----/ --[lp2]
All I had to do to make it work was define the printers to CUPS on server [A] and run the command:
sudo iptables -A INPUT -p tcp --dport 631 -j ACCEPT
to open the firewalls on the server and both clients.
I dont think it's a firewall issue. I have straced lpstat and can see that it connects ok to the remote CUPS server.
Could you please email me your cups server config file? I think that could be very useful to determine if I've got a configuration error.
Another thing I have thought of trying was to get the same version of CUPS on both machines - but I find it hard to believe that the CUPS developers would have released a newer version of CUPS in the same major release that would have broken the inter-CUPS protocols.
Have you remembered to tick the box to share the printer... if you don't share it, it'll not appear... if you do share it, then you should be able to avahi-browse it...
avahi-browse -t _ipp._tcp
Should list it in it's output... e.g.
brettp@erwin:~$ avahi-browse -t _ipp._tcp + vpn6 IPv6 Xerox Phaser 6110 @ fleur.catnip.org.uk Internet Printer local + vpn6 IPv6 laserjet @ fleur.catnip.org.uk Internet Printer local brettp@erwin:~$
If that's done, then you should be able to just do a Find Printers in cups on the client and it'll just work...
(I would point out that peversely those 2 printers are sitting in my flat at home in Brighton, and I'm sitting in Port Solent... and that I configured those in to the setup on my laptop this morning, but people might think me a little odd... I have a tunnel'd ipv6 setup and the laptop and the desktop at home are on the same subnet, hence being able to browse them from, erm, basically anywhere :)
Cheers,