[Samba] printer configuration issue
Kurt Weiss
input.maillists at kwnet.at
Sun Mar 9 18:03:03 GMT 2003
hello paul...
i cannot connect to lowplaces.net with http...
so i was not able to look at your files...
but maybe it's not the samba based part, which makes problems...
<hope>maybe this one helpes</hope>
u said, from DOS u can print with net use and print - so samba will run
well.
it could be, that u print to an ascii printer - this will have such an
effect:
unix/linux changes <cr><lf> to <lf> and - maybe - more. so the printjob
will be sent corrupt to the printer.
test following:
*) redirect the printer to "file"
*) produce a testpage on a file e.g. "test.prn"
*) send this file over "print" in DOS mode to samba
*) if i'm right, this job will fail too...
windows needs a raw printer...
so u have to install an lpraw on your server (in my case over apsfilter)
and it will run - maybe.
here's the part of my /etc/printcap:
###this is the wrong one in my case - ascii printer###
hp970-ascii|lp1|cdj970-a4-ascii-mono-600-hp970|cdj970 a4 ascii mono 600:\
:lp=/dev/usblp0:\
:sd=/var/spool/lpd/cdj970-a4-ascii-mono-600-hp970:\
:lf=/var/spool/lpd/cdj970-a4-ascii-mono-600-hp970/log:\
:af=/var/spool/lpd/cdj970-a4-ascii-mono-600-hp970/acct:\
:if=/var/lib/apsfilter/bin/cdj970-a4-ascii-mono-600-hp970:\
:la@:mx#0:\
:tr=:cl:sh:sf:
###this is the printer which is printing right...###
hpusb|lp4|cdj970-a4-raw-hp970|cdj970 a4 raw:\
:lp=/dev/usblp0:\
:sd=/var/spool/lpd/cdj970-a4-raw-hp970:\
:lf=/var/spool/lpd/cdj970-a4-raw-hp970/log:\
:af=/var/spool/lpd/cdj970-a4-raw-hp970/acct:\
:if=/var/lib/apsfilter/bin/cdj970-a4-raw-hp970:\
:la@:mx#0:\
:tr=:cl:sh:sf:
i can access both printers over samba, but if i print on
\\server\hp970-ascii i have a similar problem. (instead of ignoring, my
printer prints garbage)
on
\\server\hpusb i can print well...
<hope multiplier="2">maybe i could help this time</hope>
gk
More information about the samba
mailing list