|
Sams Teach Yourself Samba in 24 Hours |
|||||||||||||||||
|
Hour 8: Printers |
|||||||||||||||||
|
Q My users are printing to a PostScript printer, but the PostScript is being printed rather than the actual page. How do I fix this?
A Many UNIX systems have a PostScript printer that converts text files into PostScript (for example, enscript). The filter is smart enough to leave PostScript alone so it prints correctly. However, some Windows printer drivers place a Ctrl-D (^D) at the beginning of the file. This confuses the filter, which is usually looking for %!, and the PostScript in the print job is converted to PostScript and you get pages and pages of rubbish. You can fix this by adding the parameter postscript = yes to the printer share.
Q We print from our Windows clients to Samba printer shares, which are then sent to HP LaserJet printers or Lexmark printers using network printing cards (such as the JetDirect or MarkNet cards). Some print jobs seem to mess up badly, especially those with graphics in them. How do we fix this?
A This probably has to do with the way these types of network printers handle end-of-line sequences. Both of the types mentioned previously provide a raw queue (RAW in the case of HP, printer in the case of Lexmark), which simply takes the data provided and prints it. However, they both also provide a queue that converts standard UNIX text files into something printers can deal with. These queues (TEXT in the case of HP and printer_cr in the case of Lexmark) add a carriage return every time they see a newline character. This ensures that UNIX text files are printed correctly. However, if you send a binary from a PC, chances are you will corrupt the binary.
What you need to do is to provide two queues in your printcap file. One for the PCs to print to (perhaps specified with the printer parameter in the smb.conf file) and one for UNIX users and programs to print to. Samba should print to the raw style queue, whereas UNIX should print to the text style queue.
Q We have a System V machine. How do we tell Samba about all the print queues we have so our clients can browse them?
A Here you should add the following parameter to the global section of your smb.conf file:
printcap name = lpstat
|
Sams Teach Yourself Samba in 24 Hours |
|||||||||||||||||
|
Hour 8: Printers |
|||||||||||||||||
|
© Copyright Macmillan USA. All rights reserved.