-   Linux - Networking (
-   -   WinXP Can't Print Through Samba (

Element Zero 12-27-2002 07:29 PM

WinXP Can't Print Through Samba
Hey. When I try and print a test page to CUPs / Samba, I get this error output in the samba log file, and nothing prints:

[2002/12/28 01:20:16, 2] smbd/reply.c:reply_special(92)
netbios connect: name1=OMEGA name2=SERFER
[2002/12/28 01:20:16, 2] smbd/reply.c:reply_special(111)
netbios connect: local=omega remote=serfer
[2002/12/28 01:20:23, 2] libsmb/namequery.c:name_query(420)
Got a positive name query response from ( )
[2002/12/28 01:20:29, 0] printing/print_cups.c:cups_job_submit(655)
Unable to print file to Epson_C62 - client-error-document-format-not-supported

This is my smb.conf file:

load printers = yes
printing = cups
printcap name = cups
interfaces = eth1
encrypt passwords = yes
log level = 2
log file = /usr/local/samba/var/samba.log
netbios name = OMEGA
workgroup = ZZZ
guest only = yes
guest account = family
security = user
printer driver file = /etc/samba/drivers/printers.def

socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192

guest ok = yes
comment = All Printers
path = /var/spool/samba
browseable = no
public = yes
guest ok = yes
writable = no
printable = yes
print command = /usr/bin/lpr -P %p -o raw %s # using client side printer drivers.
lpq command = /usr/bin/lpq -P%p
lprm command = /usr/bin/lprm -P%p %j
printer driver = EPSON Stylus C62
printer driver location = \\%L\PRINTER$

comment = Printer Drivers
path = /etc/samba/drivers
browsable = no
guest ok = yes
read only = yes

Any suggestions on solving this problem? Thanks :)

wdingus 12-28-2002 02:05 PM

Just a few thoughts...

I assume you can lpr a file command line to the printer in question and get it to print? Your "print command" looks fine except for one thing keep in mind. Usually there is an "-r" in there to remove the file after printing. On Samba print jobs a temporary spool file is created when receiving print data from a PC and if you don't delete it afterwards you'll eventually fill up a filesystem.

I see security=user but the printers are set guest ok and public. If you've not got it set to be a domain controller and are really ignoring user/pass information and just want it to accept print jobs from anyone local to it, you might consider security=share.

You have a lowercase [printers] section which is for _ALL_ printers but you have print driver and driver location statements. I'm not certain but that looks odd. What if you had 5 printers from HP, Canon, Epson and other manufacturers combined. If you have queues setup in Linux for all of them they'd all show up per this [printers] section but obviously you don't want to point specifically to some Epson drivers for all. I'd try commenting out those lines and get basic functionality working first I think.

All I can think of for the moment... What version of Samba and what Distro/version?

Element Zero 12-28-2002 06:41 PM

Many many thanks for your reply. After rewriting the config file with your suggestions, I'm able to print from WinXP using an Apple Color LaswerWriter II postscript driver - it all works fine now :)

All times are GMT -5. The time now is 08:04 AM.