Re: Printing to a Linux/CUPS/Samba printer from Windows machines

From: Matt Payton (mattpayton_at_hotmail.com)
Date: 01/27/04


Date: Tue, 27 Jan 2004 16:44:59 GMT

Balwinder Singh Dheeman wrote:
> Matt Payton wrote:
>

[...]

>
>
> and the log entries (errors and, or messages I read in my current log
> files):
>
> [2004/01/26 20:57:48, 0] printing/print_cups.c:cups_job_submit(655)
> Unable to print file to lp0 - client-error-document-format-not-supported
> [2004/01/27 02:14:30, 0] printing/print_cups.c:cups_printername_ok(291)
> Unable to get printer status for
> ::{2227a280-3aea-1069-a2de-08002b30309d} - client-error-not-found
> [2004/01/27 02:14:30, 0] smbd/service.c:make_connection(252)
> cto (203.152.135.66) couldn't find service
> ::{2227a280-3aea-1069-a2de-08002b30309d}
> [2004/01/27 02:23:02, 0] printing/print_cups.c:cups_job_submit(655)
> Unable to print file to lp0 - client-error-document-format-not-supported
>
> Please not that we can print, but only text files to this shared
> Linux/CUPS/Samba printer.

So, just to confirm, you manually loaded the print drivers on the pc(s)
you're printing from ?

If so, try creating a printer on Linux that is basically a plain text
printer, and map the Win machines to that...It looks to me that Windows
is formatting the print job with it's driver, the job is getting to
CUPS, and the CUPS driver is rejecting it...This is over-simplified.

Anyway, I'm not all that familiar with CUPS, but when using either bsd
lpr or LPRng I typically set up 2 spools for each individual
printer...One for printing from *nix, and one for printing from Win
machines. The one for printing from Win has no filter associated with
it, so it just passes the raw data to the printer...This works because
they are already "formatted" by the Windows drivers.

So a typical entry in /etc/printcap looks something like :

lp:\
mx#0:\
sd=/var/spool/lpd/lp:\
sh:lp=/dev/lpt0:\
if=/usr/local/libexec/if-simple:

lpwin:\
mx#0\
:sd=/var/spool/lpd/lpwin:\
sh:\
sf:\
lp=/dev/lpt0:

There are of course other ways of getting this to go, but this has
always worked for me...

-- 
- Matt -


Relevant Pages

  • RE: TS printing is driving me nuts
    ... I have informed my users not to attempt printing large documents ... User defined inf files are per server, and defined in the registry to ... map printer drivers they way they were done in Citrix MetaFrame 1.8, ... print job pending, when the system restarts that print job can print anywhere ...
    (microsoft.public.windows.terminal_services)
  • Re: Printing Problems and Cancel Print Problems
    ... Printer is an HP2000c inkjet printer, using WinXP Home (and the drivers that come with it). ... Every once in a while instead of printing a sheet containing a picture, the printer will start printing gibberish, about a line or two to a page and start zipping through paper like crazy. ... I try cancelling the print job. ... So sometimes I stand there with a half a dozen sheets of paper and feed them into the printer, picking up the printed sheets to feed back into the printer. ...
    (microsoft.public.windowsxp.print_fax)
  • Re: DJ500 dead after >= 16 years.
    ... I would keep native LPD spooling system instead ... as all the X-windows drivers and the jpg and other image drivers. ... I would really love to see you personally updating chapter about printing in the Handbook. ... printers that are documented to work with PPD files they can get from Linux Printing web-site. ...
    (freebsd-questions)
  • Re: Inkjet printer best results. RIP software ?
    ... printing technologies so I apologize if my questions seem rather basic. ... Although I have been using inkjet photo printers for a while, ... or 'best dpi' all change the output res. ... the HPIJS drivers are mostly written by HP ...
    (comp.sys.mac.printing)
  • Re: Printing Question - another try
    ... Latest drivers here ... go into the display settings in windows. ... When printing, click file/print/properties. ... colour management tools or fine tuning options. ...
    (rec.photo.digital)