views:

71

answers:

1

Hello,

I'm printing some labels on a Zebra TLP-2844 printer, and been doing it fine on windows by sending the EPL instructions to the shared USB printer, as following:

type Label.prn > \my-pc\zebra

and it seems to work with serial ports to with

type Label.prn > COM1

Now i'm trying to to the same on linux, but it's getting really hard! My first guess was:

cat Label.prn | /dev/bus/usb/005/002

since my printer is on bus 005, device 002 (checked it with lsusb command) but it doesn't work at all, as i get a bad

bash: /dev/bus/usb/005/002: Permission denied

Any guesses?

+1  A: 

The command you did

cat Label.prn | /dev/bus/usb/005/002

will try to run /dev/bus/usb/005/002, which is not executable, hence "permission denied". The correct command would be, similar to windows

cat Label.prn > /dev/bus/usb/005/002

However, not sure if you actually can write anything to a printer like that in linux. If the printer is set up properly, you might also try:

lpr Label.prn
unbeli
didn't work =/i forgot to mention there are no available drivers to the printer on linux, i'm trying to send this like "raw data" to see what happens!
Lucas d. Prim
I think you must be # root to be able to do that.
karlphillip
Solved it! It seems to be impossible to send the data directly to the device, but when setting the printer up with CUPS generic text-printer driver and using lpr, it works perfectly! Thanks a lot!
Lucas d. Prim