Re: Brainydeal Receipt Printer - SOLVED
On Tue 09 Sep 2014 at 23:22:09 -0400, Ethan Rosenberg wrote:
> From the command line -
>
> lpr -o portrait -o cpi=17 -P POS58 /var/www/receipt.txt
Glad you now have printing to your satisfaction, but the "-o portrait"
option is bothering because neither the manual page for lp (which has
the same function as lpr) nor the online documentation (localhost:631)
mention it. It also doesn't appear to be in the source code of
cups-filters. Where did you get it from?
lpr -o landscape=false -o cpi=17 -P POS58 /var/www/receipt.txt
is what could be used for portrait orientation.
Anyway, be that as it may, you can save yourself some typing by doing
lpoptions -p POS58 -o landscape=false -o cpi=17
This creates a file ~/.cups/lpoptions (/etc/cups/lpoptions if done as
root) which is read by any application using cups, including lp and lpr.
It is now sufficient to type
lpr -P POS58 /var/www/receipt.txt
Even this can be shortened to
lpr /var/www/receipt.txt
by setting POS58 as your default printer:
lpoptions -d POS58
Reply to: