Re: Printing via Samba



Doug Laidlaw wrote:

Günther Schwarz wrote:

Doug Laidlaw wrote:

I have printing from a laptop running XP to my Linux printer via
Samba, but printing from the laptop's Adobe Acrobat just sits in the
outgoing queue on
the laptop. The [printers] stanza of my smb.conf follows:

[printers]

# clients request the driver
use client driver = yes

The *.inf file from the driver disk was installed on the XP box by
the printer setup wizard.

You might also want to search the samba mailing list which is
available at linux.samba (moderated group).
And then I simply can't resist to renew my statement from the
previous thread <1690030.CuI6EyJn6a@xxxxxxxxxxxxxxxxxx>: Try printing
directly to CUPS. Printing via samba is a major PITA and I can see
just no good reason to do so in small networks.

To print directly to CUPS, don't I need a PostScript printer on the
Windows
box? I tried installing winsteng, but the printer had to be there
first, and when the Samba config worked, I didn't go back to it.

Well, I use real printers, networked LaserJets. For those postscript
drivers are readily available. But then I also have an almost forgotten
InkJet somewhere. So let's try: to nobody's surprise the CUPS server
won't accept jobs sent by a Windows client to this printer:

D [04/Jun/2008:16:30:12 +0200] Print-Job
http://cups-server:631/printers/dj980c
D [04/Jun/2008:16:30:12 +0200] print_job: auto-typing file...
D [04/Jun/2008:16:30:12 +0200] print_job: request file type is
application/octet-stream.
D [04/Jun/2008:16:30:12 +0200] Print-Job
client-error-document-format-not-supported: Unsupported format
'application/octet-stream'!
D [04/Jun/2008:16:30:12 +0200] cupsdProcessIPPRequest: 13
status_code=40a (client-error-document-format-not-supported)

Printing from Linux clients just works fine as these send proper
postscript which is then translated by hpijs to the Esperanto the
printer understands.
So I would either have to create postscript first or to define a 'raw'
queue on the CUPS server which directly sends the slang to the printer
without processing it. Note that printing via Samba does not resolve
this problem as Samba is not a print server system but just translates
the network protocols between Windows and a CUPS server, and cares
about access rights, but not about the actual print jobs.
So as printing via Samba basically works in your network printing
directly to the CUPS server should work also.

Günther
.



Relevant Pages

  • Re: FC4 Printer Sharing
    ... I'm having trouble getting my printer to share to my other Windows ... computers on my network via Samba. ... I turned on Samba and browsing for printers in Samba. ... Printing Options: ...
    (Fedora)
  • Samba - trouble with simple smb.conf
    ... The fileserver is using samba and should allow a number of clients (Mac, ... I made a guest user on the file server machine: ... Error connecting to 192.168.0.8 (Connection refused) ... # lprprinting. ...
    (Debian-User)
  • Re: Printing without Samba
    ... chmod 666 on /dev/lpt0 restarted lpd but it's still a no go. ... tried it without a filter but it stilled failed to print. ... I really want to do this without Samba. ... When printing via Samba, the job appears ...
    (comp.unix.bsd.freebsd.misc)
  • Re: Help Sought with Samba pseudo printer for PDF...
    ... Printing seems to work ... and I'm pretty sure that I'm not asking Samba to use CUPS. ... This is to make sure that your script is really working. ... I'm not out to destroy Microsoft. ...
    (RedHat)
  • Re: Samba and network printing
    ... CUPS, though generic local printing works fine, but there was no PPD ... > through CUPS on the UNIX side, nor printing through Samba on the Windows ... > side as long as I manually install the drivers. ...
    (Debian-User)