[Samba] Samba config for Windows XP Printer [Z52]

Kurt Pfeifle kpfeifle at danka.de
Sun Mar 9 13:33:30 GMT 2003


Laura West wrote on Samba-Digest:

> Date: Sat, 08 Mar 2003 17:36:11 -0800
> From: Laura West <lwest54 at mindspring.com>
> To: samba at lists.samba.org
> Subject: [Samba] Samba config for Windows XP Printer
> Message: 27
> Hello,
> My Samba installation seems to be going pretty smoothly thanks to this 
> list.  One thing left to do and that is to be able to have my Redhat 8.0 
> box print to my Lenmark z52 printer, connected ( and shared ) on my XP 
> Professional machine.   I am wondering whether this is possible at 
> all....The Lenmark drivers I found were for Redhat 6.x and I couldn't 
> find any for Redhat 8.0.  Tried to install the drivers, but it depends 
> on an old rpm.  ( I tried to intall that even, but no success. ) I've 
> been reading the Samba documentation, but it does not mention XP.  
> Anyone have any hints on how to get my Linux box to print to the XP printer?
> Laura

Hi, Laura,

have a look at http://www.linuxprinting.org/ website for all printing
related matters first.

To learn about linux printing in general, please look at


I'd suggest you use CUPS for your printing subsystem. It is the most
flexible and powerful one out there now. (You may use another one too,
but then you will have to rely on other advice.)

To get your WinXP-attached Z52 to work via Samba, you first must make
sure, that it prints as a Linux-attached printer too. Z52 is supported
perfectly thru the "Gimp-Print" drivers.

To make z52 print from Linux with CUPS, follow the steps described at:


(To make it print with LPRng, read


The driver description for the z52 is here:


(Please note, that the latest stable Gimp-Print release is 4.2.5 -- not
4.1.99 as mentioned on above noted website).

You should install:

* CUPS-1.1.18
   (Source code is at ftp://ftp.easysw.com/pub/cups/1.1.18/cups-1.1.18-source.tar.bz2,
   in case you don't find pre-compiled binaries)

* ESP Ghostscript-7.05.6

* Gimp-Print-4.2.5 (the IJS-supporting version)

* foomatic-rip

* the z52-PPD-file

to get it printing perfectly from Linux.

Then, make sure you have the "smb" backend in your "/usr/lib/cups/backend/"
directory. If it is not there, ask your root user to issue the command

   "ln -s `which smbspool` /usr/lib/cups/backend/smb"

for you. Then, the installation of the printer is done with

   lpadmin -p z52onXP -v smb://[winXP-netbiosname]/[z52-sharename] -E -P /path/to/the/z52-PPD-file

Sounds complicated? Yes, I know. Because it still *is* kind of complicated.
But in the end it works.


More information about the samba mailing list