Hi,
I haven't really set up printing on FreeBSD before, so I may be missing something simple. Any help appreciated!
I have a HP-1020 USB printer. When I attach it to my FreeBSD 9 system, I see in dmesg:
That all seems fine as far as I can tell.
I also have a 'raw printer' share set up in samba. When I print from Windows (which has a HP-1020 driver), it sends a printer-ready file into samba's spool.
For example, when I print from Windows, it might create the file:
I have confirmed that this file is in the expected format - its first 4 bytes are 'JZJZ', which indicates a ZjStream document, the wire protocol this printer understands.
Now, if I understand this correctly, I just need to send this file to the printer, nothing fancy. I am not trying to print from FreeBSD or any other unix machine. I do not need or want CUPS or anything else like that. I just want to send some already-prepared data straight to my printer.
So I try:
It takes a moment before completing, but the printer does nothing.
The same happens if I use '/dev/unlpt0'.
Shouldn't this just work?
Any ideas as to what might be going wrong, here?
I know about (but have not used, yet) foo2zjs and HPLIP, but from my reading those seem to exist for the purpose of converting normal documents into the format the printer understands. If I print from Windows, its driver already does the hard part, so I don't think I should need them...
Thanks for any help
-John
I haven't really set up printing on FreeBSD before, so I may be missing something simple. Any help appreciated!
I have a HP-1020 USB printer. When I attach it to my FreeBSD 9 system, I see in dmesg:
Code:
ulpt0: <Hewlett-Packard HP LaserJet 1020, class 0/0, rev 2.00/1.00, addr 2> on usbus3
ulpt0: using bi-directional mode
That all seems fine as far as I can tell.
I also have a 'raw printer' share set up in samba. When I print from Windows (which has a HP-1020 driver), it sends a printer-ready file into samba's spool.
For example, when I print from Windows, it might create the file:
Code:
/var/spool/samba/smbprn.00000007.hVEF9i
I have confirmed that this file is in the expected format - its first 4 bytes are 'JZJZ', which indicates a ZjStream document, the wire protocol this printer understands.
Now, if I understand this correctly, I just need to send this file to the printer, nothing fancy. I am not trying to print from FreeBSD or any other unix machine. I do not need or want CUPS or anything else like that. I just want to send some already-prepared data straight to my printer.
So I try:
Code:
# cat /var/spool/samba/smbprn.00000007.hVEF9i > /dev/ulpt0
It takes a moment before completing, but the printer does nothing.
The same happens if I use '/dev/unlpt0'.
Shouldn't this just work?
Any ideas as to what might be going wrong, here?
I know about (but have not used, yet) foo2zjs and HPLIP, but from my reading those seem to exist for the purpose of converting normal documents into the format the printer understands. If I print from Windows, its driver already does the hard part, so I don't think I should need them...
Thanks for any help
-John