Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 12-27-2002, 07:29 PM   #1
Element Zero
LQ Newbie
Registered: Dec 2002
Distribution: Debian - Sarge
Posts: 2

Rep: Reputation: 0
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
Old 12-28-2002, 02:05 PM   #2
Registered: Aug 2001
Location: Kingsport, TN
Distribution: RHEL & FC
Posts: 267

Rep: Reputation: 30
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?
Old 12-28-2002, 06:41 PM   #3
Element Zero
LQ Newbie
Registered: Dec 2002
Distribution: Debian - Sarge
Posts: 2

Original Poster
Rep: Reputation: 0
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to print to Samba printer from WinXP TSloth Linux - Networking 3 02-06-2005 05:13 PM
WinXP open print sharing CaptainRegular Linux - Networking 3 08-23-2004 09:51 PM
how to file/print share using Redhat and WINXP thru SAMBA spandau Linux - Software 1 07-23-2004 06:59 AM
Samba print share from RH9 to WinXP nick_uk Linux - Software 5 08-11-2003 08:41 AM
Samba print share from RH9 to WinXP nick_uk Linux - Software 0 07-30-2003 09:19 AM > Forums > Linux Forums > Linux - Networking

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration