printing still
Marcel Kunath
kunathma@pilot.msu.edu
Sun, 17 Dec 2000 14:13:11 -0500 (EST)
I still got trouble printing from Win98 box via samba. I can at least now
transfer the print job as file to the Linux box but it won't print but only
saves the file in the spool directory.
Got Linux box with lprng and samba. Printing from Linux box works fine.
Win98 box can share drive fine but has trouble printing. When I print the
file gets transferred to /var/spool/samba (permissions 1777) but is then not
printed and also not deleted as was intended.
Here is my printcap and smb.conf
smurf:cm=Network Printer smurf:\
:lp=smurf.mydomain.com%9100:\
:sd=/var/spool/lpd/%P:\
:ifhp=model=hp2100,status@:\
:sh:\
:filter=/usr/local/libexec/filters/ifhp:\
:mx#0
[global]
workgroup = SHADOWWARRIOR
guest account = nobody
keep alive = 30
os level = 2
kernel oplocks = false
security = user
encrypt passwords = yes
log file = /var/log/samba-log.%m
lock directory = /var/lock/samba
hosts allow = 192.168.1.
interfaces = 192.168.1.1/255.255.255.0
load printers = yes
[network-drive]
path = /winmount
comment = Network Drive
create mode = 644
writeable = yes
guest ok = yes
[printers]
path = /var/spool/samba
print ok = yes
printing = lprng
printable = yes
printcap file = /etc/printcap
guest ok = yes
public = yes
print command = /usr/bin/lpr -U%U@%M -P%p -r %s
lpq command = /usr/bin/lpq -U%U@%M -P%p
lprm command = /usr/bin/lprm -U%U@%M -P%p %j
lppause command = /usr/sbin/lpc -U%U@%M hold %p %j
lpresume command = /usr/sbin/lpc -U%U@%M release %p %j
queuepause command = /usr/sbin/lpc -U%U@%M -P%p stop
queueresume command = /usr/sbin/lpc -U%U@%M -P%p start
[smurf]
path = /var/spool/samba
guest ok = yes
printable = yes
print ok = yes
public = yes
printing = lprng
printer name = smurf
print command = /usr/bin/lpr -U%U@%M -P%p -r %s
lpq command = /usr/bin/lpq -U%U@%M -P%p
lprm command = /usr/bin/lprm -U%U@%M -P%p %j
lppause command = /usr/sbin/lpc -U%U@%M hold %p %j
lpresume command = /usr/sbin/lpc -U%U@%M release %p %j
queuepause command = /usr/sbin/lpc -U%U@%M -P%p stop
queueresume command = /usr/sbin/lpc -U%U@%M -P%p start
/var/log/log.smb:
[2000/12/16 23:15:51, 1] smbd/server.c:main(641)
smbd version 2.0.7 started.
Copyright Andrew Tridgell 1992-1998
[2000/12/16 23:15:51, 0] param/loadparm.c:map_parameter(1681)
Unknown parameter encountered: "printcap file"
[2000/12/16 23:15:51, 0] param/loadparm.c:lp_do_parameter(2223)
Ignoring unknown parameter "printcap file"
/var/log/samba-log.lab2:
[2000/12/16 23:16:53, 1] smbd/service.c:make_connection(550)
lab2 (192.168.1.3) connect to service printers as user nobody (uid=65534,
gid=65534) (pid 18223)
[2000/12/16 23:19:36, 1] smbd/service.c:close_cnum(583)
lab2 (192.168.1.3) closed connection to service printers
[2000/12/16 23:23:25, 1] smbd/service.c:make_connection(550)
lab2 (192.168.1.3) connect to service printers as user nobody (uid=65534,
gid=65534) (pid 18234)
[2000/12/16 23:26:30, 1] smbd/service.c:close_cnum(583)
lab2 (192.168.1.3) closed connection to service printers
mk