Setting up Samba as a Print Server

Revision as of 20:29, 4 March 2006 by Rcsu (talk | contribs) (Using a printer connected to a Windows server: short description)

Using printers connected to the Samba server

In most of the cases you want to use printers which are directly connected to the samba server. A printer can be connected via various hardware devices (i.e. parallel port, usb, scsi and so forth). But thats not all, you have to take care about the fact that two users can request a print job at the same time. To serve this, you need a software which controls the printer.


CUPS is currently the most widely used spool system in Unix environments. Samba has built in support and defaults to CUPS if the develepment package (aka header files and librarys) could be found at compile time. The home of CUPS is [[1]]. Basically all sorts of files can be printed with CUPS, but using a Postscript printer driver will give you the most benefit and the client can controll the settings for the printers. A multi purpose printer driver for Windows can be found at the Adobe site, see [[2]]. The very big advantage of using Postscript as the printing language is that it doesn't matter wether your job has to be printed on a cheap inkjet or a big laser.


This is the first widely used printing system. It is very simple and doesnt use Postscript. But it is binary clean, so you can print to it directly via client side installed printer drivers.

Providing Printer Drivers to Windows clients with the [print$] share

Uploading a printer driver

Directory structure in drivers directory

Using printers connected to another Samba or Windows server

Using a printer connected to another Samba server

It is most likely that the other server is running CUPS to. So you only have to forward the print jobs to the other CUPS service. This is a simple to do in CUPS.

Using a printer connected to a Windows server

You also can use CUPS for it. CUPS has the special backend smb://<server>/<printer>. This in turn calls the smbspool program which is part of the samba suite. So if you set up a printer connected to a Windows server, you set up a normal printer with a special PrinterURI.

Note: the full form of that URI is: smb://[<username>[%<password>]@]//<server>/<printer>