I need to share out a Therma Printer (Fujitsu FP410, receipt printing) from my Win2K machine and to be used from my Redhat9.
I have configured the Samba and I am able to send print job using smbclient command. Everything is fine up to here.
However, after added the Samba printer to my Print Configuration and tried to print a file using lpr, I found the printer printed somethnig incorrect.
For example, I tried to print /etc/hosts, which only has a few lines. But the printer printed a super long list which started with :
%!PS-Adobe-3.0
%RBINumberCopies:1
%%Page: (atend)
%%BoundingBox: 0 0 612 792
%%Creator: texttops/CUPS v.1.1.17
%%CreationDate: Mon 25 Aug 2003 05
Skip...)
%%Title: hosts
%%For : root
...
.(Skip, I off the printer otherwise I won't know
when will it stop.)
..
The following is my [printers] declaration in my smb.conf:
[printers]
comment = All Printers
path = /var/spool/samba
browseable = yes
# Set public = yes to allow user 'guest account' to print
# public = yes
guest ok = no
writable = no
printable = yes
print command = lpr-cups -P %p -o raw %s
So I assume it uses the driver in my Win2k machine. How strange! Why smbclient is able to print perfectly but not my lpr?
Please help me.
Thanks