There's one thing I can't find: how to use lpd to print from programs like OpenOffice. Is it possible at all, or should I print to a file and then print the file from command line using lpd?
No printers can be installed, because the file system is read-only. Please contact your system administrator.
samsung|Samsung ML-2850 PostScript printer:\
:sh:sd=/var/spool/output/lpd:\
:lp=/dev/ulpt0:\
:af=/etc/print/Samsung-ML-2850D-Postscript.ppd:\
:if=/usr/local/bin/foomatic-rip:\
:lf=/var/log/lpd-errs:\
:rg=print:\
:rs=true:
lptest
command. Then /etc/print/Samsung-ML-2850D-Postscript.ppd is the PPD file for this model of printer, which works with foomatic-rip on Linux, Solaris and FreeBSD CUPS configuration. lptest > /dev/ulpt0
works more or less: it prints a succession of printable characters, though processing three sheets of paper and only printing on the last one. But when trying the whole setup with printf “This is a test\r\n\f†| lpr
, I get:
lpr: lp: unknown printer
lpr
command. What I did is modifying the first line in /etc/printcap to look like this:
[B]lp[/B]|samsung|...
-Z duplex
added to lpr
doesn't work.Well, at leastwblock@ said:CUPS and the real lpr(1)/lpd(8) don't mix well. /usr/bin/lpr is the real one. CUPS had the great idea of using the same filename, but since it is installed from a port, it is in /usr/local/bin/lpr. Unless you have told it to overwrite the base one... If both are installed, you get the first one on the path, unless you type in a full path.
which lpr
gives me /usr/bin/lpr and there is also /usr/local/bin/lpr...
Found that at OpenPrinting web-page. Didn't think it was for CUPS, because with CUPS the setup is pretty straightforward and doesn't need editing /etc/printcap at all...
Why are you using the rg and rs properties in printcap? Suggested setup here: lpd Printing With FreeBSD.
Yes, so they say there if you rebuild it with CUPS enabled (which by default is not so in the FreeBSD-9.1 package), then spadmin starts well even with cupsd daemon not running. This one I'll check once my build finishes.The newest LibreOffice appears to want/expect CUPS, period. It will go through the motions of printing to a file, but no file is created. The right thing to do would be search LibreOffice bug reports for ones involving the real lpr(1). That could be complicated by the stupid name choice made by the CUPS people. If no such bug report exists, it should be added.
tail -f /var/log/lpd-errs
I can see that it uses foomatic. Tried disabling foomatic stuff in /etc/printcap and it works the same, as your manual says Firefox provides PostScript-formatted output. And my printer is a PostScript one.