|
From: O. G. <OG...@we...> - 2003-03-07 16:51:04
|
Samba is compiled against CUPS (ldd smbd shows it depends on libcups). Anyway, it is just an ordinary install of Mandrake 9. I installed the printer using Mandrake's printerdrake using the ppd files created by your driver. Below I post you the important lines of my smb.conf: [global] printing = cups printcap name = lpstat *snip* [printers] comment = All Printers path = /var/spool/samba browseable = no # to allow user 'guest account' to print. guest ok = yes writable = no printable = yes create mode = 0700 # ===================================== # print command: see above for details. # ===================================== print command = lpr-cups -P %p -o raw %s -r # using client side printer drivers. I think the most important entry is the "print command" direction which tells Samba to first spool the input to a temporary file and then execute the command given. This way, there is actually no need for the right drivers as the raw data, spooled by windows, is sent "as-is" to the printer, isn't it? To conclude, printing works using the ominous -o raw command. I'm really confused about this one since mime.convs tells me to enable "application/octet-stream ..." to "allow printing of arbitrary files *without* the -o raw option". This, however, does not seem to work as you can see at the failure trying to print using IPP. A smbclient -L ... actually gives me exactly one printer - the one I configured. But nothing like "CUPS [translated]". Unfortunately, I cannot give you any more input as I myself can't figure out how this thing exactly works (especially concerning CUPS). |