On Sunday 19 February 2006 10:09 pm, maxim wexler wrote:
> This looks like an elaborate form of
>
> echo -e "This text should appear on the printer\f" >
> /dev/lp0
>
> Which works fine. Also, from apsfilter I was able to
> print a test page. So the hardware seems to be OK.

OK, then. Now, if I remember correctly, you require pure text printing using 
the printer's built-in bitmap fonts, correct?

Is this an absolute requirement, or is the requirement just to be able to 
print text files? If the latter, then CUPS may still be an option. CUPS will 
convert the text file to Postscript, then pipe it through Ghostscript and 
print it out on the printer in graphical mode.

The disadvantages of this method are a) it will probably be slower than pure 
text printing, b) the font used to print the text will be something like 
Courier instead of the printer's built-in font, and c) if your print file 
includes printer escape sequences (to change font size, etc.) it won't work 
correctly.

These issues can be worked around by defining a raw CUPS queue and manually 
filtering the input file through unix2dos or something similar, 

Now, supposing that you do require pure text printing, you'll want 
an /etc/printcap entry like the following:

lp:sd=/var/spool/lpd/%P
        :force_localhost
        :lp=/dev/lp0
        :filter=/usr/lib/filters/lpf

Once you've created the entry, run "checkpc" to check for any configuration 
errors, and "/etc/init.d/lprng start" - let's see if that does the trick. I 
think the "force_localhost" may resolve your hostname issues.

-- 
Manuel A. McLure KE6TAW <[EMAIL PROTECTED]> <http://www.mclure.org>
...for in Ulthar, according to an ancient and significant law,
no man may kill a cat.                       -- H.P. Lovecraft
-- 
[email protected] mailing list

Reply via email to