[Samba] printer configuration issue

haiku at lowplaces.net haiku at lowplaces.net
Sun Mar 9 19:38:08 GMT 2003


Kurt,

> hello paul...
>
> i cannot connect to lowplaces.net with http...
> so i was not able to look at your files...

Very strange.  Perhaps your browser needs the "www" explicitly stated, as
in http://www.lowplaces.net/samba/smb.conf ?

> 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...

you *are* right - not that I doubted, but it seems that your theory is
playing out.

> 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:

It looks like this will be another project!  My server doesn't use
/etc/printcap directly - it is administered by CUPS.  I'm reading up on it
- and apsfilter - right now.

In any case, I'll let you know what happens.  Thanks!

Paul

> 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

=============================================================
Paul David Mena
Haiku in Low Places, Ltd.
Email: haiku at lowplaces.net
Webpage: http://www.lowplaces.net
=============================================================



More information about the samba mailing list