3rd Party Thermal Printers

Folks - I feel … very slow intellectually - I’m at an event with lots of free time found the following:

Printer plugged into Linux machine located at /dev/usb/…

did lsusb first to find if the printer is dectected:

on my machine:

/dev/usb/lp1

when I ran:

ls -l /dev/usb/lp1
crw-rw---- 1 root lp 180, 1 Aug 25 16:44 /dev/usb/lp1

changed access to port:

sudo chmod 777 /dev/usb/lp1

tested the port:

echo -e “This is a test.\n\n\n” > /dev/usb/lp1

got a this is a test out of the printer…

now use the cat command:

cat {full path with file name} > /dev/usb/lp1

or you can use

cd {full path name}

cat {file name} > /dev/usb/lp1

and it works with plan text files!!!

case closed …

1 Like