HP2100,smb,lprng /var/spool/samba
Marcel Kunath
kunathma at pilot.msu.edu
Mon Dec 18 02:17:36 GMT 2000
I have trouble finding an error in my setup pertaining to printing via samba.
SuSE 7.0/LPRng/Samba 2.0.7
Printing via Linux works. Sharing Linux drive with Win98 machine works too.
Printing via Win98 works _only_ so far that the win98 print job is being put
into /var/spool/samba (permissions:1777) but then is not printed out or deleted
as intended.
/etc/printcap:
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
/etc/smb.conf:
[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
On start of samba it says this in log.smb file:
[2000/12/16 20:23:00, 1] smbd/server.c:main(641)
smbd version 2.0.7 started.
Copyright Andrew Tridgell 1992-1998
[2000/12/16 20:23:00, 0] param/loadparm.c:map_parameter(1681)
Unknown parameter encountered: "printcap file"
[2000/12/16 20:23:00, 0] param/loadparm.c:lp_do_parameter(2223)
Ignoring unknown parameter "printcap file"
What is this printcap error?
/var/log/samba-log.lab2 as I tried to print:
[2000/12/16 20:26:28, 1] smbd/service.c:make_connection(550)
lab2 (192.168.1.3) connect to service smurf as user nobody (uid=65534,
gid=65534) (pid 17653)
[2000/12/16 20:26:28, 1] smbd/service.c:close_cnum(583)
lab2 (192.168.1.3) closed connection to service smurf
Somehow it seems my job gets spooled via samba to the Linux box but then it
doesn't start printing it. Could it be an ifhp filter problem? I tried it all
the last 5 days and I don't seem to find my problem.
Help appreciated,
Thanks,
mk
More information about the samba
mailing list