Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have to use the oki microline 320 turbo dot matrix printer for many customers. It installs perfectly via the USB cable and selects the foomatic/okiibm driver and foomatic-rip filter.

When printing from any program or web-browser it prints fine, but when I send a text file to it via command line:

lpr -P ML320-1TURBO test_print.txt

the font is barely legible.
The default print quality is 120x72 dpi and the font get a little better, but still unacceptable, when setting it to 120x144. However, any setting above that causes the printer to crash and a power-cycle is necessary.

Unfortunately, the project requirements require my software to print reports automatically, without user intervention, and lpr is the only way I know how to do that.

How can I get the command line printing to print in the same font as other programs with a print button? Or is there a way to use the print window instead of the command line, without user intervention?

I'm using Ubuntu 12.04 LTS.

share|improve this question
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.