I configured a ticket usb thermal printer locally and enabled sharing. It works well with my app locally and from client windows (in windows I added it as a network raw printer). But it does not work from another ubuntu client, it prints garbage. In ubuntu client I created it with http://xxx:631/printers/tickets and as a raw queue.I changed my app to save a file with the escpos generated before sending to printer, if I send then generated file with (from ubuntu client):
lpr -P tickets file.prn
it prints garbage, with
lpr -P tickets -o raw file.prn
it prints ok.
So, How can I enforce all print jobs to be of type raw? even those coming from any application ?