=?gb2312?q?=CB=EF=20=D1=E0?= asiaswallow at
Sun Oct 8 04:52:50 GMT 2000

I have a question about samba.
I have a SUN workstation and several PCs in our lab .
One of my PCs have a printer (style:epson            
stylus color 300)       
I want to share the print with my SUN,so I install the
samba2.0.7(binary).It run very well.
   I find the samba2.0.7  has no  smbprint.sysv ,so 
I copy it from samba1.9(maybe),and move it to the
path: /opt/samba
   # ls /opt/samba
 bin/ man/ lib/ swat/ doc/ license/ smbprint.sysv
   # cd /opt/samba
   # ls smbprint.sysv
 -rw-r--r-- 1 root  other 1853 9.28 11:51
  and I modify the smbprint.sysv
   # vi /opt/samba/smbprint.sysv
 set :
      server = lxf (lxf is the netbios name of the 
                      PC which has the printer)
      service = EPSON (its shared printer name)
      passwd = "" (no passwd)
 and I modify the script
  add "bin":
    echo translate
    echo "print -"
    cat $*"
) | /opt/samba/bin/smbclient "\\\\$server\\%service"

              .... here I add bin

$passwd -N -P > /dev/null 
exit $?
 then :
    # lpadmin -p epson_printer -v /dev/null -i  
    # enable  epson_printer
    # accept  epson_printer
 it runs well.
   # admintool
 I use admintool to set the epson_printer default
    then I restart the Samba daemons 
when I usr 
     # lp text <filename>
it show :
    request id is epson_printer-1(1 file(s))
    It looks like right
 but the printer has no reaction!!!!!!!!!!
   (The printer is no wrong,I use very well)
    and when I input:
    # lpstat -p -l
 it shows:
 printer epson_printer is idle enable since Thursday
September 28 16:15:29 CST 2000 available
 Form mounted:
 Contant types: simple
 Printer types: unknown
 on fault:write to root once
 After fault:continue
 Users allowed:
 Forms allowed:
 Banner required
 Character sets:
 Default pitch
 Default page size
 Default port settings:

the up is all.
 Is the file "smbprint.sysv"  wrong? I don't know.
Could you give me the file :smbprint.sysv?
Because I have no printer with SUN , my smb.conf
include [printers] this part,and I have set no items
correlative to printer (such as load printers = yes)
I have no way to do this. 
Could you give me a hand?
 Thank you very much! Hope your email!!!

  SUN: ultra10

email:AsiaSwallow at

Do You Yahoo!?  µÇ¼Ãâ·ÑµçÓÊÕʺÅ
Get your free address at

More information about the samba mailing list