[Samba] Samba-Cups: all works except browsing when printer is not
defined in smb.conf
Koen Linders
koen.linders at koca.be
Tue Jun 30 10:10:25 GMT 2009
Cups 1.2.7
Debian Etch with Samba 3.0.24
Clients: WinXP SP3 (with Firewall completely off for testing)
When I define a printer specifically in smb.conf, they show up as shared
printers in WinXP. But when I follow the normal way (see below) to load all
from cups they don't.
I followed mainly the latest SAMBA-HOWTO (chapter 21-22)
The only error I see in log.smbd when accessing the Printers&Faxes where
they should be, is:
[2009/06/30 11:13:50, 0] smbd/service.c:make_connection(1111)
mpi025 (192.168.1.106) couldn't find service
::{2227a280-3aea-1069-a2de-08002b30309d}
When I add them by name instead of via browsing all works, but I wish to
understand what goes wrong and where.
This works:
runas /netonly /user:root "rundll32 printui.dll,PrintUIEntry /p /t3 /n
"\\newton\2420N-240"
rundll32 printui.dll,PrintUIEntry /in /n "\\newton\2420N-240"
Any suggestions would be very welcome.
Koen Linders
Extra relevant stuff.
*Checking cups support for samba: ldd `which smbd`
-snip-
libcups.so.2 => /usr/lib/libcups.so.2 (0xb7d9b000)
-snip-
*relevant samba sections
smb.conf
printing = cups
printcap name = cups
load printers = yes
[printers]
comment = Samba Printers Spool
path = /data/spool
printable = yes
guest ok = yes
browseable = no
writable = no
[print$]
comment = Printer Drivers
path = /data/printers
browseable = yes
guest ok = yes
read only = yes
write list = root +domadmins
*permissions on maps
drwxrwsrwx 3 root domadmins 4096 2009-06-29 13:25 printers
drwxrwxrwt 2 root root 4096 2009-06-29 13:50 spool
*driver installation from cups to samba
I did put following items in /usr/share/cups/drivers
cups6.inf (from www.cups.org)
cups6.ini (from www.cups.org)
cupsps6.dll (from www.cups.org)
cupsui6.dll (from www.cups.org)
ps5ui.dll (from your Windows system)
pscript.hlp (from your Windows system)
pscript.ntf (from your Windows system)
pscript5.dll (from your Windows system)
And to confirm to add drivers to [print$]
cupsaddsmb -U root -v -a -H newton
-snipped all extra info showing only one printer-
Printer Driver 2420N-240 successfully installed.
Succesfully set 2420N-240 to driver 2420N-240.
More information about the samba
mailing list