I couldn't setup printer to work with custom samba and internal printd daemon. I used cups and other print solution without success. After that I found a real good solution.
It is a p910nd - daemon. Setup is too easy and it works well for me.
1. For setting up you can download source from this page:
http://etherboot.sourceforge.net/p910nd/ (or use file from attachment to this message)
After unpacking uncomment string in Makefile:
Code:
CFLAGS += -DLOCKFILE_DIR=\"/var/run\"
Type make (buildroot package must be installed for this step)
Then copy p910nd file to /opt/bin/
Start this daemon with:
Code:
sudo p910nd -f /dev/usb/lp0 -i 192.168.1.1
where /dev/usb/lp0 - is your printer device and 192.168.1.1 - it's IP-address of lan-interface
For setup printer on local machine use this instruction:
http://wiki.openwrt.org/PrinterSharingHowto (section 5. Configure the clients for printing)
Add string
Code:
p910nd -f /dev/usb/lp0 -i 192.168.1.1
to startup script