Stefan-Michael,
Stefan-Michael. Guenther (in-put GbR) wrote:
Hi,
I'm using some kind of pseudo printer on our samba server to automatically produce PDF files. The smb.conf looks like this (the samba server is successfully conteced to an ADS):
[global] workgroup = ADS netbios name = pc103.ads.local realm = ADS.LOCAL security = ADS password server = win2ksrv.ads.local log level = 2 winbind separator = + template homedir = /home/%U idmap uid = 10000-20000 idmap gid = 10000-20000 winbind enum users = yes winbind enum groups = yes winbind enable local accounts = yes template shell = /bin/bash log file = /var/log/samba/log.smb.%U max log size = 500 printing = cups printcap name = cups cups options = raw
The samba HowTo in chapter 20 says (^^^^ emphasis mine):
"ldd `which smbd` libssl.so.0.9.6 => /usr/lib/libssl.so.0.9.6 (0x4002d000) libcrypto.so.0.9.6 => /usr/lib/libcrypto.so.0.9.6 (0x4005a000) libcups.so.2 => /usr/lib/libcups.so.2 (0x40123000) [....]
The line libcups.so.2 => /usr/lib/libcups.so.2 (0x40123000) shows there is CUPS support compiled into this version of Samba. If this is the case, and printing = cups is set, then any otherwise manually set print
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
command in smb.conf is ignored. This is an important point to remember!
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Tip
Should it be necessary, for any reason, to set your own print commands, you can do this by setting printing = sysv. However, you will lose all the benefits of tight CUPS/Samba integration. When you do this you must manually configure the printing system commands (most important: print command; other commands are lppause command, lpresume command, lpq command, lprm command, queuepause command and queue resume command)."
So what you need is
[pdfprinter] comment = Minolta Color PageWorks/Pro Ps
printing = bsd
path = /samba/pdfprinter
print command = /samba/pdfprinter/pdfscript "%s" printable = yes
public = yes
writeable = yes
and you'll also need a
lpq command=/bin/true
otherwise your printer is going to show offline and jobs won't clear from the queue on the clients.
HTH,
Regards,
Urs Rau
-- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba