Simon Hobson
2004-Jul-03 09:12 UTC
[Samba] Can't print properly through server, only direct client->printer
We are having great problems printing from XP clients through our Samba server. We are using the Adobe PS driver, and are configured for automatic driver download/install from the server. Samba is 2.2.8a and part of a Suse OpenExchange server, printing is through CUPS. Printers are an assortment of different makes of Postscript (and compatible) lasers. Basically, we have 'wierd' behaviour. Excel documents send as landscape which are formatted for landscape, but not rotated on the page; jobs which just don't print at all (postscript errors); Printouts where every occurance of a particular character is missing, or characters are changed. If we re-configure the clients to talk directly to the printers via an IP port, they work fine with the same drivers and PPDs. I've configured CUPS to support raw printing (as per 8.5.14 in the Samba Howto). Anyone got any ideas what could be wrong ? Simon smb.conf extracts : [global] printcap name = CUPS printing = cups [print$] comment = Printer Drivers path = /var/lib/samba/drivers write list = @ntadmin,@root force group = ntadmin create mask = 0664 directory mask = 0775 guest ok = Yes [printers] comment = All Printers path = /var/tmp create mask = 0600 guest ok = Yes printable = Yes print command = grep -v '^[0-9]* *VM\?' <%s >%s-2 ; rm %s ; lpr -P%p -o raw %s-2 browseable = No -- Simon Hobson MA MIEE, Technology Specialist Colony Gift Corporation Limited Lindal in Furness, Ulverston, Cumbria, LA12 0LD Tel 01229 461100, Fax 01229 461101 Registered in England No. 1499611 Regd. Office : 100 New Bridge Street, London, EC4V 6JA.
Alex Satrapa
2004-Jul-05 00:33 UTC
[Samba] Can't print properly through server, only direct client->printer
On 3 Jul 2004, at 19:13, Simon Hobson wrote:> [printers] > print command = grep -v '^[0-9]* *VM\?' <%s >%s-2 ; rm %s ; > lpr -P%p -o raw %s-2What's this supposed to achieve? Looks to me like you're tampering with the PostScript by removing any line that starts with 'VM?' optionally preceeded by any number of spaces, optionally preceeded by any number of numeric digits. Obviously the PostScript being generated is working correctly, since direct to printer works fine. What happens if you comment out this parameter, and leave the print command alone? Alex -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 220 bytes Desc: This is a digitally signed message part Url : http://lists.samba.org/archive/samba/attachments/20040705/68279dc1/PGP.bin