Yuriy Kuznetsov
2008-Feb-08 12:21 UTC
[Samba] How to set Samba and Cups on different servers ?
Hi guys, I'm looking for Samba gurus on this list who might be able to help in solving my issue and my sencere appologies for sending this email to wide alias. Could you help with your advice on how to set samba on one server and cups on another server? At the moment I have Samba+OpenLDAP+CUPS on the same server but I need to move CUPS to another machine for some reason. So lets assume that at the moment windows clients(and they are the most users on the network) can see printers on Server1(Samba+OpenLDAP+CUPS). CUPS installed on Server2(CUPS) and it is possible to print directly(using lp) to the same printers. So what changes need to be done so that users still will be loging to Server1 but print effectivly via Server2. I reckon that printers still would be shown on the network using Samba on Server1. I was trying the following : Added "cups server = IP-address-server2" to /etc/samba/smb.conf on server1: printing = cups printcap name = cups cups server = 192.168.1.20 Also I have updated /etc/cups/printers.conf with printers' information on server2. After I have restarted samba on server1 I have lost connection to all printers which originally were on server1. Did anyone set something similar ? Could you give an example of smb.conf with external CUPS server configuration in it, please? Thanks a lot in advance, yuriy
Adam Tauno Williams
2008-Feb-08 14:32 UTC
[Samba] How to set Samba and Cups on different servers ?
> Also I have updated /etc/cups/printers.conf with printers' information > on server2. After I have restarted samba on server1 I have lost > connection to all printers which originally were on server1. > Did anyone set something similar ?Yep.> Could you give an example of smb.conf with external CUPS server > configuration in it, please?Nope, this isn't a Samba issue. Your making it too complicated. CUPS handles networking transparent printing all on its own. Define the print queues on the print server (where CUPS is running as the server). Start the CUPS client on the Samba server. Shortly thereafter you will be able to "lpq -P{queuename}" on the Samba server. Then the default Samba settings will work just fine, printers will appear in the network neighborhood. You'll just need to upload Win32 drivers, etc... for the printers into the Samba server. You can adjust CUPS browsing operations, polling, etc... to make it more efficient, but that all has to do with CUPS and nothing at all to do with Samba. If "lpq -P..." doesn't work Samba won't, if it does, Samba will. -- Adam Tauno Williams, Network & Systems Administrator Consultant - http://www.whitemiceconsulting.com Developer - http://www.opengroupware.org