Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Sep 1999 10:08:51 +0900
From:      "Nguyen Huu Bach" <bachng@mail.com>
To:        "question FreeBSD" <questions@freebsd.org>
Subject:   Help:printing with samba 
Message-ID:  <020401bf00a9$350423c0$0e181c0a@archi.gifunct.ac.jp>

next in thread | raw e-mail | index | archive | help
I failed to print from my Unix box (installed with FreeBSD 3.2) to Windows95
printer (LP-1000) with Samba.
When I print one file from the Unix box (using lpr command), there was no
error but nothing was printed out at all. After that when I print something
else from Windows it comes with the content of the previous file at the top.

My config files are

>>printcap
# setting of shuubun fuji printer
fuji|using smbclient :\
 :lp=/dev/null:\
 :sd=/var/spool/output/lpd/smb:sh:\
 :lf=/var/log/lpd-errs:\
 :if=/usr/local/libexec/smbprint:


>>smbprint
#!/bin/sh
(        
 echo translate
 echo "print -"
 cat
) | /usr/local/bin/smbclient \\\\shuubun\\fuji -N -P
exit 0

>>smb.conf
[global]
 workgroup = dalab
 writable = no
 browseable = yes
 allow hosts = 10.28.24. 127.
 valid users = a0981
 password Level = 8
 coding system = cap
 socket options = TCP_NODELAY
[homes] 
 comment = Home Directories
 writable = yes
 create mask = 0744
 directory mask = 0755
 browseable = no
[tmp]
 path = /tmp
 writable = yes
 create mask = 0644
 directory mask = 0755


any advices would be appeciated.





To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?020401bf00a9$350423c0$0e181c0a>