Please check in file /etc/samba/smb.conf, the section
[Printers]
path = /var/spool/samba
if the directory in path exists and has permissions for write/execute.
On my (development) system it was missing. I just did, as user 'root'
mkdir -p /var/spool/samba
chmod a+wx /var/spool/samba
And in my linux box I was able to create and print a test page using the
"lpd" protocol and the "smb" protocol. I used two different printers.
Please let us know it this solves the problem.
I suspect that lpd will not work in MS-Windows, I will try it.
But if you install the cups package in the box it will work for MS-Windows.
I can do it:
jcard@silver:> smbclient -N //nas/lp0
Anonymous login successful
Domain=[HOMENET] OS=[Unix] Server=[Samba 3.3.9]
smb: \> showconnect
//nas/lp0
smb: \>
As I told before, I can create and use a cups printer, its name being:
jcard@silver:> lpstat -s
device for naslpd: lpd://192.168.1.76/lp0
(the nas has 192.168.1.76 as its IP)
Remember that 'lp0' is the queue name
> And the command " lpr -Plp0 /some/file" entered directly in the box
> (via ssh) does nothing. Is that normal ?
Depends on your printer.
Busybox 'lpd' is a very stripped-down lpd implementation (that's why I doubt
that MS-W will work with it). Basically all it does is accept the print job
and dump it to the printer. No local processing or filtering is done.
If your printer is an old one, so that it prints the letter 'A' when the
character 'A' is sent to it, then ' lpr -Plp0 some-text-file' will work fine
-- that's what happens with my old hp laserjet 5l.
Modern printers has to be sent the pixels (pixmap) of what you intent to
print, so 'lpr <text-file>' doesn't work -- that's what happens with my new
printer, a hp-c6280.
This means that print jobs sent to the printer must be pre-processed in the
sending computer, and the generated pixmap pages sent to the printer.
Cups in my linux machine does it for both my hp-5l and hp-c5280 printers, so I
can use any.
lpd by itself, even a full-featured one, don't do any page filtering or
processing, that's the role of the filter program specified in the termcap
file.
Alt-F princap only specifies the printer queue, 'lpd0', and the printer name,
as specified by the manufacturer, so users can select the proper printer
driver in the host computer.
Hope this can help.
>
> Thanks