Configuring printer in samba

Hyperblaze

Lifer
May 31, 2001
10,027
1
81
I've got a linux machine running gentoo with a hp psc 1315 all-in-one printer attached to it by usb.

Following this howto, I was able to get the printer working in linux without any issues (at this point anyways)

http://forums.gentoo.org/viewtopic-t-365403-highlight-hp+psc.html

Now I'd like to get my windows box to be able to print also.

Currently on my linux box I have samba running with two shared folders. I want to add printer support to it.

my printer section looks like this right now.

[printers]
comment = Server Printer
path = /var/spool/samba
browseable = yes
read only = true
; guest ok = yes
; writable = no
printable = yes
create mode = 0700

I'm able to see the printer if I type "\\192.168.1.2" in the "Run" command line.

However, if i double click on it, it tells me that "the server for the printer does not have the correct printer driver installed. if you want to search for the proper driver, click OK. Otherwise, blah blah blah blah blah"

So I'm thinking that windows can't find the linux printing drivers. Should it be included in samba?

 

Zelmo3

Senior member
Dec 24, 2003
772
0
0
What about installing the Windows drivers on the client machine? You can add the following lines to printer section in your smb.conf:

cups options = Raw
use client driver = yes

and then your Windows client will use its driver to send raw print data to the Samba server, which will put it straight to the spool.